Структуры данных | |
class | StomachItem |
Функции | |
void | PlayerStomach (PlayerBase player) |
float | GetStomachVolume () |
float | GetStomachTemperature () |
void | ClearContents () |
void | ReduceContents (float percent) |
void | SetAgentTransferFilter (int filter_agents) |
int | GetAgentTransferFilter () |
static void | RegisterItem (string classname, int id) |
static string | GetClassnameFromID (int id) |
static int | GetIDFromClassname (string name) |
static bool | InitData () |
int | GetStorageVersion () |
bool | IsDigesting () |
int | GetDigestingType () |
void | UpdateStomachTemperature () |
void | Update (float delta_time) |
void | ProcessNutrients (float delta_time) |
void | DigestAgents (int agents, float quantity) |
float | GetVolumeContainingAgent (eAgents agent) |
float | GetVolumeContainingAgent01 (eAgents agent) |
void | PrintUpdate () |
void | AddToStomach (string class_name, float amount, int food_stage=0, int agents=0, float temperature=0) |
void | OnStoreSave (ParamsWriteContext ctx) |
bool | OnStoreLoad (ParamsReadContext ctx, int version) |
int | GetDebugObject (array< ref Param > object_out) |
Переменные | |
class StomachItem | DIGESTING_WATER = 1 |
const int | DIGESTING_ENERGY = 2 |
const int | quantity_bit_offset = 16 |
const int | id_bit_offset = 4 |
static int | CHECKSUM |
const float | DIGESTION_POINTS = PlayerConstants.DIGESTION_SPEED |
const int | ACCEPTABLE_QUANTITY_MAX = 32768 |
const int | ACCEPTABLE_FOODSTAGE_MAX = FoodStageType.COUNT - 1 |
static ref map< string, int > | m_NamesToIDs = new map<string, int> |
static ref map< int, string > | m_IDsToNames = new map<int, string> |
static const bool | m_InitData = PlayerStomach.InitData() |
ref array< ref StomachItem > | m_StomachContents = new array<ref StomachItem> |
int | m_AgentTransferFilter |
bool | m_Digesting |
int | m_DigestingType |
PlayerBase | m_Player |
float | m_StomachVolume |
float | m_StomachTemperature |
const int | STORAGE_VERSION = 106 |