4 private const int GARDEN_SLOT_COUNT = 9;
14 if ( !super.OnStoreLoad(ctx, version) )
28 super.EEDelete(parent);
44 return GARDEN_SLOT_COUNT;
49 HideSelection(
"SeedBase_1");
50 HideSelection(
"SeedBase_2");
51 HideSelection(
"SeedBase_3");
52 HideSelection(
"SeedBase_4");
53 HideSelection(
"SeedBase_5");
54 HideSelection(
"SeedBase_6");
55 HideSelection(
"SeedBase_7");
56 HideSelection(
"SeedBase_8");
57 HideSelection(
"SeedBase_9");
58 HideSelection(
"slotCovered_01");
59 HideSelection(
"slotCovered_02");
60 HideSelection(
"slotCovered_03");
61 HideSelection(
"slotCovered_04");
62 HideSelection(
"slotCovered_05");
63 HideSelection(
"slotCovered_06");
64 HideSelection(
"slotCovered_07");
65 HideSelection(
"slotCovered_08");
66 HideSelection(
"slotCovered_09");
78 override void OnHologramBeingPlaced( Man player )
85 super.OnPlacementComplete( player, position, orientation );
136class GardenPlotPolytunnel : GardenPlot
154 HideSelection(
"SeedBase_1");
155 HideSelection(
"SeedBase_2");
156 HideSelection(
"SeedBase_3");
157 HideSelection(
"SeedBase_4");
158 HideSelection(
"SeedBase_5");
159 HideSelection(
"SeedBase_6");
160 HideSelection(
"SeedBase_7");
161 HideSelection(
"SeedBase_8");
162 HideSelection(
"SeedBase_9");
163 HideSelection(
"SeedBase_10");
164 HideSelection(
"SeedBase_11");
165 HideSelection(
"SeedBase_12");
166 HideSelection(
"SeedBase_13");
171 override void OnPlacementComplete( Man player,
vector position =
"0 0 0",
vector orientation =
"0 0 0" )
180class GardenPlotPlacing
extends GardenPlot
class PASBroadcaster extends AdvancedCommunication IsInventoryVisible
override bool CanRemoveFromCargo(EntityAI parent)
const int ECE_PLACE_ON_SURFACE
bool IsSurfaceFertile(string surface)
Checks if the surface is fertile.
proto float SurfaceGetType3D(float x, float y, float z, out string type)
Y input: Maximum Y to trace down from; Returns: Y position the surface was found.
Serialization general interface. Serializer API works with:
override void EEDelete(EntityAI parent)
override bool CanPutInCargo(EntityAI parent)
override void OnPlacementComplete(Man player, vector position="0 0 0", vector orientation="0 0 0")
override bool CanPutIntoHands(EntityAI parent)
override bool IsTakeable()
const float PLACEMENT_HEIGHT_LIMIT
override bool CanBePlaced(Man player, vector position)
proto native CGame GetGame()
override void SyncSlots()
class GardenPlot extends GardenBase POLYTUNNEL_SLOT_COUNT
override int GetGardenSlotsCount()
override void RefreshSlots()
class JsonUndergroundAreaTriggerData GetPosition
override void OnPlacementStarted(Man player)
bool OnStoreLoad(ParamsReadContext ctx, int version)
override void EOnInit(IEntity other, int extra)