Skip to content

Commit 4450478

Browse files
committed
Added tutorial, can release.
1 parent 52c665b commit 4450478

File tree

9 files changed

+11
-7
lines changed

9 files changed

+11
-7
lines changed

Content/Maps/MainMap.umap

1.26 KB
Binary file not shown.
105 KB
Binary file not shown.

Content/UI/EscapeMenu.uasset

2.13 KB
Binary file not shown.

Content/UI/Tutorial.uasset

56.9 KB
Binary file not shown.

Source/GardenProject/Private/Items/Vegetable.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -110,7 +110,7 @@ AVegetable* AVegetable::LoadVegetable(const FVegetableSaveStruct& SaveStruct)
110110
->SpawnActor<AVegetable>(
111111
AVegetable::StaticClass(),
112112
SaveStruct.ActorLocation,
113-
FRotator());
113+
FRotator(0, 0, 0));
114114

115115
NewVegetable->Initialize(SaveStruct.VegetableName);
116116
NewVegetable->PlantingTime = SaveStruct.PlantingTime;

Source/GardenProject/Private/Plots/CultivablePlot.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ void ACultivablePlot::PlantVegetable(const FString& VegetableName)
9090

9191
// Create and assign the new vegetable actor to this plot vegetable.
9292
this->Vegetable = this->GetWorld()->SpawnActor<AVegetable>(
93-
VegetableLocation, FRotator());
93+
VegetableLocation, FRotator(0, 0, 0));
9494
this->Vegetable->Initialize(VegetableName);
9595

9696
// Set the new plot state.
@@ -155,7 +155,8 @@ FCultivablePlotSaveStruct ACultivablePlot::GetSaveStruct(ACultivablePlot* Plot)
155155
return SaveStruct;
156156
}
157157

158-
ACultivablePlot* ACultivablePlot::LoadPlot(const FCultivablePlotSaveStruct& SaveStruct){
158+
ACultivablePlot* ACultivablePlot::LoadPlot(const FCultivablePlotSaveStruct& SaveStruct)
159+
{
159160

160161
UWorld* World = GEngine->GameViewport->GetWorld();
161162

@@ -167,7 +168,7 @@ ACultivablePlot* ACultivablePlot::LoadPlot(const FCultivablePlotSaveStruct& Save
167168
ACultivablePlot* NewPlot = World->SpawnActor<ACultivablePlot>(
168169
ClassToSpawn,
169170
SaveStruct.ActorLocation,
170-
FRotator());
171+
FRotator(0, 0, 0));
171172

172173
// Fill the actor with data.
173174
NewPlot->TimeOfLastWatering = SaveStruct.TimeOfLastWatering;

Source/GardenProject/Private/Tools/AbstractTool.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ AAbstractTool::AAbstractTool()
1313
this->SetRootComponent(this->Mesh);
1414
}
1515

16-
void AAbstractTool::UseToolOn(ACultivablePlot* PlotTarget){}
16+
void AAbstractTool::UseToolOn(ACultivablePlot* PlotTarget)
17+
{}
1718

1819
void AAbstractTool::EnablePhysics(const bool bEnable)
1920
{

Source/GardenProject/Private/Tools/Hammer.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ AHammer::AHammer()
66
: AAbstractTool()
77
{}
88

9-
void AHammer::UseToolOn(ACultivablePlot* PlotTarget){
9+
void AHammer::UseToolOn(ACultivablePlot* PlotTarget)
10+
{
1011
// Spawn here a new actor.
1112
this->SpawnNewPlotAt(this->LastSelectedNewPlotLocation);
1213
};

Source/GardenProject/Private/Tools/Hoe.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@ AHoe::AHoe()
66
: AAbstractTool()
77
{}
88

9-
void AHoe::UseToolOn(ACultivablePlot* PlotTarget){
9+
void AHoe::UseToolOn(ACultivablePlot* PlotTarget)
10+
{
1011

1112
const ECultivablePlotStates CurrentPlotState = PlotTarget->GetState();
1213

0 commit comments

Comments
 (0)