DIFF

class PlayerStomachSource

Constructors 1

void PlayerStomach(PlayerBase player)
References m_Player
Referenced by PlayerBase.Init()

Constants 9

const int DIGESTING_WATER = 1
const int DIGESTING_ENERGY = 2
const int quantity_bit_offset = 16
Referenced by OnStoreLoad(), and OnStoreSave()
const int id_bit_offset = 4

based on food stage count(+1 for safe measure)

Referenced by OnStoreLoad(), and OnStoreSave()
const float DIGESTION_POINTS = PlayerConstants.DIGESTION_SPEED
Referenced by ProcessNutrients()
const int ACCEPTABLE_QUANTITY_MAX = 32768
Referenced by AddToStomach()
const int ACCEPTABLE_FOODSTAGE_MAX = FoodStageType.COUNT - 1
Referenced by AddToStomach()
static const bool m_InitData = PlayerStomach.InitData()
const int STORAGE_VERSION = 106
Referenced by GetStorageVersion()

Members 10

static int CHECKSUM
static ref map<string, int> m_NamesToIDs = new map<string, int>
static ref map<int, string> m_IDsToNames = new map<int, string>
int m_AgentTransferFilter

bit mask that prevents agents set in the mask from passing to the player

bool m_Digesting
int m_DigestingType
float m_StomachVolume
protected float m_StomachTemperature

Methods 24

float GetStomachTemperature()
void ClearContents()
void ReduceContents(float percent)
void SetAgentTransferFilter(int filter_agents)
int GetAgentTransferFilter()
static void RegisterItem(string classname, int id)
References string.Hash(), map.Insert(), map.Insert()
Show 3 more, CHECKSUM, m_IDsToNames, and m_NamesToIDs
Referenced by InitData()
static string GetClassnameFromID(int id)
References map.Get(), and m_IDsToNames
static int GetIDFromClassname(string name)
int GetStorageVersion()
References STORAGE_VERSION
bool IsDigesting()
References m_DigestingType
int GetDigestingType()
References m_DigestingType
protected void UpdateStomachTemperature()
void Update(float delta_time)
Referenced by StomachMdfr.OnTick()
float GetVolumeContainingAgent(eAgents agent)
void PrintUpdate()
References array.Count(), array.Get(), StomachItem.GetAmount()
Show 4 more, GetFoodStage(), Print(), m_StomachContents, and m_StomachVolume
int GetDebugObject(array<ref Param> object_out)