DayZ 1.26
DayZ Explorer by KGB
Загрузка...
Поиск...
Не найдено
Класс GardenBase

Закрытые члены

void GardenPlot ()
 
override void EEInit ()
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void EEDelete (EntityAI parent)
 
override bool IsInventoryVisible ()
 
override int GetGardenSlotsCount ()
 
void RefreshSlots ()
 
override void OnPlacementStarted (Man player)
 
override void OnHologramBeingPlaced (Man player)
 
override void OnPlacementComplete (Man player, vector position="0 0 0", vector orientation="0 0 0")
 
override bool CanBePlaced (Man player, vector position)
 
override bool IsTakeable ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanRemoveFromCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI parent)
 

Закрытые данные

Object m_ClutterCutter
 
const int GARDEN_SLOT_COUNT = 9
 

Подробное описание

Методы

◆ CanBePlaced()

override bool CanBePlaced ( Man player,
vector position )
inlineprivate
113 {
114 string surface_type;
115 GetGame().SurfaceGetType3D( position[0], position[1], position[2], surface_type );
116
117 return GetGame().IsSurfaceFertile(surface_type);
118 }
Definition EntityAI.c:95
proto native CGame GetGame()

Перекрестные ссылки GetGame().

◆ CanPutInCargo()

override bool CanPutInCargo ( EntityAI parent)
inlineprivate
126 {
127 return false;
128 }

◆ CanPutIntoHands()

override bool CanPutIntoHands ( EntityAI parent)
inlineprivate
137 {
138 return false;
139 }

◆ CanRemoveFromCargo()

override bool CanRemoveFromCargo ( EntityAI parent)
inlineprivate
131 {
132 return false;
133 }

◆ EEDelete()

override void EEDelete ( EntityAI parent)
inlineprivate
31 {
32 super.EEDelete(parent);
33
34 if (m_ClutterCutter && GetGame())
35 {
36 GetGame().ObjectDelete(m_ClutterCutter);
38 }
39 }
Object m_ClutterCutter
Definition GardenPlot.c:3

Перекрестные ссылки GetGame() и m_ClutterCutter.

◆ EEInit()

override void EEInit ( )
inlineprivate
12 {
13 super.EEInit();
14 }

◆ GardenPlot()

void GardenPlot ( )
inlineprivate
7 {
8 SetBaseFertility(0.5);
9 }

◆ GetGardenSlotsCount()

◆ IsInventoryVisible()

override bool IsInventoryVisible ( )
inlineprivate
42 {
43 return true;
44 }

◆ IsTakeable()

override bool IsTakeable ( )
inlineprivate
121 {
122 return false;
123 }

◆ OnHologramBeingPlaced()

override void OnHologramBeingPlaced ( Man player)
inlineprivate
83 {
85 }
void RefreshSlots()
Definition GardenPlot.c:51

Перекрестные ссылки RefreshSlots().

◆ OnPlacementComplete()

override void OnPlacementComplete ( Man player,
vector position = "0 0 0",
vector orientation = "0 0 0" )
inlineprivate
88 {
89 super.OnPlacementComplete( player, position, orientation );
90
92 //vector pos = player_base.GetLocalProjectionPosition();
93 //vector ori = player_base.GetLocalProjectionOrientation();
94
95 if ( GetGame().IsServer() )
96 {
97 // To properly move the clutter cutter from spawn position, it must be deleted and created again.
99 {
100 GetGame().ObjectDelete(m_ClutterCutter);
102 }
103
104 if (!m_ClutterCutter)
105 {
106 m_ClutterCutter = GetGame().CreateObjectEx( "ClutterCutter6x6", GetPosition(), ECE_PLACE_ON_SURFACE );
107 m_ClutterCutter.SetOrientation( orientation );
108 }
109 }
110 }
const int ECE_PLACE_ON_SURFACE
Definition CentralEconomy.c:37
class JsonUndergroundAreaTriggerData GetPosition
Definition UndergroundAreaLoader.c:9
Definition PlayerBaseClient.c:2

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame(), GetPosition и m_ClutterCutter.

◆ OnPlacementStarted()

override void OnPlacementStarted ( Man player)
inlineprivate
78 {
80 }

Перекрестные ссылки RefreshSlots().

◆ OnStoreLoad()

override bool OnStoreLoad ( ParamsReadContext ctx,
int version )
inlineprivate
17 {
18 if ( !super.OnStoreLoad(ctx, version) )
19 return false;
20
21 if ( !m_ClutterCutter )
22 {
23 m_ClutterCutter = GetGame().CreateObjectEx( "ClutterCutter6x6", GetPosition(), ECE_PLACE_ON_SURFACE );
24 m_ClutterCutter.SetOrientation( GetOrientation() );
25 }
26
27 return true;
28 }
vector GetOrientation()
Definition AreaDamageManager.c:306

Перекрестные ссылки ECE_PLACE_ON_SURFACE, GetGame(), GetOrientation(), GetPosition и m_ClutterCutter.

◆ RefreshSlots()

void RefreshSlots ( )
inlineprivate
52 {
53 HideSelection("SeedBase_1");
54 HideSelection("SeedBase_2");
55 HideSelection("SeedBase_3");
56 HideSelection("SeedBase_4");
57 HideSelection("SeedBase_5");
58 HideSelection("SeedBase_6");
59 HideSelection("SeedBase_7");
60 HideSelection("SeedBase_8");
61 HideSelection("SeedBase_9");
62 HideSelection("slotCovered_01");
63 HideSelection("slotCovered_02");
64 HideSelection("slotCovered_03");
65 HideSelection("slotCovered_04");
66 HideSelection("slotCovered_05");
67 HideSelection("slotCovered_06");
68 HideSelection("slotCovered_07");
69 HideSelection("slotCovered_08");
70 HideSelection("slotCovered_09");
71 }

Поля

◆ GARDEN_SLOT_COUNT

const int GARDEN_SLOT_COUNT = 9
private

◆ m_ClutterCutter

Object m_ClutterCutter
private

Объявления и описания членов класса находятся в файле: