class PlayerStomachSource
Constructors 1
Constants 9
const int DIGESTING_WATER = 1const int DIGESTING_ENERGY = 2const int quantity_bit_offset = 16const int id_bit_offset = 4based on food stage count(+1 for safe measure)
const float DIGESTION_POINTS = PlayerConstants.DIGESTION_SPEEDReferenced by ProcessNutrients()
const int ACCEPTABLE_QUANTITY_MAX = 32768Referenced by AddToStomach()
const int ACCEPTABLE_FOODSTAGE_MAX = FoodStageType.COUNT - 1Referenced by AddToStomach()
static const bool m_InitData = PlayerStomach.InitData()const int STORAGE_VERSION = 106Referenced by GetStorageVersion()
Members 10
static int CHECKSUMref array<ref StomachItem> m_StomachContents = new array<ref StomachItem>int m_AgentTransferFilterbit mask that prevents agents set in the mask from passing to the player
bool m_Digestingint m_DigestingTypePlayerBase m_Playerfloat m_StomachVolumeReferenced by ClearContents(), GetDebugObject(), GetStomachVolume()
Show 3 more
, PrintUpdate(), ProcessNutrients(), and ReduceContents()protected float m_StomachTemperatureReferenced by ClearContents(), GetDebugObject(), GetStomachTemperature()
Show 1 more
, UpdateStomachTemperature()Methods 24
float GetStomachVolume()References m_StomachVolume
float GetStomachTemperature()References m_StomachTemperature
Referenced by Environment.ProcessHeatComfort()
void ClearContents()Referenced by PlayerBase.ResetPlayer()
void ReduceContents(float percent)References StomachItem.AddAmount(), Math.Clamp(), StomachItem.GetAmount()
Show 2 more
, m_StomachContents, and m_StomachVolumeReferenced by VomitSymptom.OnAnimationStart()
void SetAgentTransferFilter(int filter_agents)References m_AgentTransferFilter
int GetAgentTransferFilter()References m_AgentTransferFilter
References string.Hash(), map.Insert(), map.Insert()
Show 3 more
, CHECKSUM, m_IDsToNames, and m_NamesToIDsReferenced by InitData()
static bool InitData()References CGame.ConfigGetChildName(), CGame.ConfigGetChildrenCount(), CGame.ConfigGetInt()
Show 5 more
, CGame.ConfigIsExisting(), array.Count(), array.Get(), array.Insert(), and RegisterItem()int GetStorageVersion()References STORAGE_VERSION
bool IsDigesting()References m_DigestingType
int GetDigestingType()References m_DigestingType
protected void UpdateStomachTemperature()References array.Count(), StomachItem.GetTemperature(), m_StomachContents
Show 1 more
, m_StomachTemperaturevoid ProcessNutrients(float delta_time)References PlayerStat.Add(), PlayerStat.Add(), array.Count()
Show 18 more
, DigestAgents(), PlayerBase.GetStatEnergy(), PlayerBase.GetStatWater(), PlayerBase.HasBloodyHands(), Math.Max(), StomachItem.ProcessDigestion(), array.Remove(), UpdateStomachTemperature(), PlayerConstants.BLOODY_HANDS_FOOD_POISON_AGENT_INCREMENT, DIGESTING_ENERGY, DIGESTING_WATER, DIGESTION_POINTS, StomachItem.m_Agents, m_DigestingType, m_Player, StomachItem.m_Profile, m_StomachContents, and m_StomachVolumeReferenced by Update()
food poisoning specific override by bloody hands
Referenced by ProcessNutrients()
Referenced by GetVolumeContainingAgent01()
void PrintUpdate()References array.Count(), array.Get(), StomachItem.GetAmount()
Show 4 more
, GetFoodStage(), Print(), m_StomachContents, and m_StomachVolumevoid AddToStomach(string class_name, float amount, int food_stage = 0, int agents = 0, float temperature = 0)References StomachItem.AddAgents(), StomachItem.AddAmount(), StomachItem.AddTemperature()
Show 17 more
, array.Count(), array.Get(), NutritionalProfile.GetAgents(), StomachItem.GetClassName(), StomachItem.GetFoodStage(), GetIDFromClassname(), Edible_Base.GetNutritionalProfile(), Liquid.GetNutritionalProfileByName(), array.Insert(), NutritionalProfile.IsLiquid(), new StomachItem(), UpdateStomachTemperature(), ACCEPTABLE_FOODSTAGE_MAX, ACCEPTABLE_QUANTITY_MAX, StomachItem.m_Agents, StomachItem.m_Amount, and m_StomachContentsvoid OnStoreSave(ParamsWriteContext ctx)Referenced by PlayerBase.OnStoreSave()
bool OnStoreLoad(ParamsReadContext ctx, int version)References AddToStomach(), GetClassnameFromID(), Math.Pow()
Show 5 more
, Print(), Serializer.Read(), CHECKSUM, id_bit_offset, and quantity_bit_offsetReferenced by PlayerBase.OnStoreLoad()
References array.Count(), array.Get(), GetIDFromClassname()
Show 5 more
, GetTemperature(), array.Insert(), m_StomachContents, m_StomachTemperature, and m_StomachVolumeReferenced by PluginDeveloperSync.SendRPCStomach()