181 all_paths.Insert(
"cfgLiquidDefinitions");
292 Print(
"================================");
301 Print(
"amount:" + amount);
307 Print(
"================================");
405 Print(
"Stomach checksum fail");
PlayerSpawnPresetDiscreteItemSetSlotData name
one set for cargo
void OnStoreSave(ParamsWriteContext ctx)
const int STORAGE_VERSION
bool OnStoreLoad(ParamsReadContext ctx, int version)
class OptionSelectorMultistate extends OptionSelector class_name
void AddToStomach(string class_name, float amount, int food_stage=0, int agents=0)
const int ACCEPTABLE_QUANTITY_MAX
const int ACCEPTABLE_FOODSTAGE_MAX
int GetAgentTransferFilter()
static ref map< int, string > m_IDsToNames
const float DIGESTION_POINTS
class StomachItem DIGESTING_WATER
const int quantity_bit_offset
void DigestAgents(int agents, float quantity)
int GetDebugObject(array< ref Param > object_out)
const int DIGESTING_ENERGY
void ProcessNutrients(float delta_time)
static void RegisterItem(string classname, int id)
static string GetClassnameFromID(int id)
void SetAgentTransferFilter(int filter_agents)
ref array< ref StomachItem > m_StomachContents
static const bool m_InitData
static int GetIDFromClassname(string name)
int m_AgentTransferFilter
static ref map< string, int > m_NamesToIDs
void PlayerStomach(PlayerBase player)
static NutritionalProfile GetNutritionalProfile(ItemBase item, string classname="", int food_stage=0)
static NutritionalProfile GetNutritionalProfileByName(string class_name)
static const float DIGESTION_SPEED
Serialization general interface. Serializer API works with:
void SetFoodStage(int food_stage)
float GetNutritions(float digestion_points, NutritionalProfile profile, out float water, out float energy, out float toxicity)
ref NutritionalProfile m_Profile
bool ProcessDigestion(float digestion_points, out float water, out float energy, out float toxicity, out float volume, out int agents, out float consumed_amount)
void StomachItem(string class_name, float amount, NutritionalProfile profile, int foodstage, int agents)
void AddAmount(float amount)
void AddAgents(int agents)
proto native CGame GetGame()
proto void Print(void var)
Prints content of variable to console/log.
array< string > TStringArray
static proto float Log2(float x)
Returns the binary (base-2) logarithm of x.
static proto float Pow(float v, float power)
Return power of v ^ power.