DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено
Файл PlantBase.c

См. исходные тексты.

Перечисления

enum  EPlantState {
  PAUSED = 0 , GROWING , MATURE , SPOILED ,
  DRY
}
 

Функции

void PlantBase ()
 
void ~PlantBase ()
 
void Init (GardenBase garden_base, float fertility, float harvesting_efficiency, float water)
 
void Tick ()
 
override bool OnStoreLoad (ParamsReadContext ctx, int version)
 
override void OnStoreSave (ParamsWriteContext ctx)
 
string GetCropsType ()
 
bool OnStoreLoadCustom (ParamsReadContext ctx, int version)
 
void OnStoreSaveCustom (ParamsWriteContext ctx)
 
void PrintValues ()
 
override bool CanPutInCargo (EntityAI parent)
 
override bool CanPutIntoHands (EntityAI parent)
 
override bool CanRemoveFromHands (EntityAI parent)
 
void ChangeInfestation (bool is_infested)
 
void UpdatePlant ()
 
void GrowthTimerTick ()
 
void SetSpoiled ()
 
void SetDry ()
 
void SprayPlant (float consumed_quantity)
 
string StopInfestation (float consumed_quantity)
 
void RemovePlantEx (vector pos)
 
void DestroyPlant ()
 
void Harvest (PlayerBase player)
 
void SetPlantState (int state)
 
EPlantState GetPlantState ()
 
int GetPlantStateIndex ()
 
float GetWater ()
 
float GetWaterMax ()
 
bool NeedsWater ()
 
float GetSprayQuantity ()
 
float GetSprayUsage ()
 
void RemoveSlot ()
 
void SetSlot (Slot slot)
 
Slot GetSlot ()
 
GardenBase GetGarden ()
 
bool IsSprayable ()
 
bool IsHarvestable ()
 
bool HasCrops ()
 
override void SetActions ()
 
void DebugSetTimes (int maturity, int spoil, int spoilRemove, int dryDelete)
 
static void DebugSetGlobalTimes (int maturity, int spoil, int spoilRemove, int dryDelete)
 
static void DebugSetTickSpeedMultiplier (float multiplier)
 
void DeleteDryPlantTick ()
 
void SpoiledRemoveTimerTick ()
 
void InfestationTimerTick ()
 
void CheckWater ()
 
bool IsMature ()
 
bool IsSpoiled ()
 
bool IsDry ()
 
bool IsGrowing ()
 
bool NeedsSpraying ()
 
void RemovePlant ()
 

Переменные

enum EPlantState m_SprayUsage
 
float m_InfestationChance
 
int m_GrowthStagesCount
 
int m_CropsCount
 
bool m_HasCrops
 
string m_CropsType
 
float m_PlantMaterialMultiplier
 
int m_PlantStateIndex
 
float m_CurrentPlantMaterialQuantity
 
EPlantState m_PlantState
 
bool m_IsInfested
 
float m_SprayQuantity
 
bool m_MarkForDeletion = false
 
int m_DeleteDryPlantTime
 
int m_SpoiledRemoveTime
 
int m_FullMaturityTime
 
int m_SpoilAfterFullMaturityTime
 
float m_StateChangeTime
 
ref Timer m_TimeTicker
 
float m_TimeTracker
 
GardenBase m_GardenBase = NULL
 
ref Slot m_Slot = NULL
 
PluginHorticulture m_ModuleHorticulture
 
const float SPOIL_AFTER_MATURITY_TIME = 14400
 
const int TICK_FREQUENCY = 1
 
static int m_DebugFullMaturityTime
 
static int m_DebugSpoilTime
 
static int m_DebugSpoilRemoveTime
 
static int m_DebugDeleteDryTime
 
static float m_DebugTickSpeedMultiplier = 1
 
static const int STATE_DRY = 0
 
static const int STATE_GROWING = 1
 
static const int STATE_MATURE = 2
 
static const int STATE_SPOILED = 3
 
ref Timer m_SpoiledRemoveTimer
 
ref Timer m_DeleteDryPlantTimer
 
ref Timer m_SpoilAfterFullMaturityTimer
 
ref Timer m_GrowthTimer
 
ref Timer m_InfestationTimer