Class Stomach
Inheritance
System.Object
Stomach
Implements
System.ComponentModel.INotifyPropertyChanged
Assembly: Eco.Gameplay.dll
Syntax
public class Stomach : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged
Constructors
Stomach()
Declaration
Fields
CalorieMult
Declaration
Field Value
Type |
Description |
System.Single |
|
CaloriesChangedEvent
Declaration
public static ThreadSafeAction<Stomach> CaloriesChangedEvent
Field Value
ChangedEvent
Declaration
public ThreadSafeAction ChangedEvent
Field Value
Contents
Declaration
public ThreadSafeList<StomachEntry> Contents
Field Value
CravingSatisfiedEvent
Declaration
public static ThreadSafeAction<User, FoodItem> CravingSatisfiedEvent
Field Value
FoodContentUpdatedEvent
Declaration
public static ThreadSafeAction<User, Type> FoodContentUpdatedEvent
Field Value
FoodEatenEvent
Declaration
public ThreadSafeAction<FoodItem> FoodEatenEvent
Field Value
MaxCaloriesChangedEvent
Declaration
public static ThreadSafeAction<Stomach> MaxCaloriesChangedEvent
Field Value
NoCaloriesEvent
Declaration
public ThreadSafeAction NoCaloriesEvent
Field Value
NutritionMultiplierDisplayName
Declaration
public static readonly string NutritionMultiplierDisplayName
Field Value
Type |
Description |
System.String |
|
Owner
Declaration
Field Value
PlayerCravingSatifiedEvent
Declaration
public static ThreadSafeAction<User, FoodItem> PlayerCravingSatifiedEvent
Field Value
WasteChangedEvent
Declaration
public static ThreadSafeAction<Stomach> WasteChangedEvent
Field Value
Properties
BalancedDietMult
Declaration
public float BalancedDietMult { get; }
Property Value
Type |
Description |
System.Single |
|
CalorieRate
Declaration
public float CalorieRate { get; }
Property Value
Type |
Description |
System.Single |
|
Calories
Declaration
public float Calories { get; }
Property Value
Type |
Description |
System.Single |
|
ControllerID
Declaration
public ref int ControllerID { get; }
Property Value
Type |
Description |
System.Int32 |
|
Craving
Declaration
public Type Craving { get; }
Property Value
Type |
Description |
System.Type |
|
CravingMult
Declaration
public float CravingMult { get; }
Property Value
Type |
Description |
System.Single |
|
CravingMultDesc
Declaration
public string CravingMultDesc { get; }
Property Value
Type |
Description |
System.String |
|
Cravings
Declaration
public Cravings Cravings { get; }
Property Value
FullStomachMsg
Declaration
public LocString FullStomachMsg { get; }
Property Value
MaxCalories
Declaration
public float MaxCalories { get; }
Property Value
Type |
Description |
System.Single |
|
Nutrients
The nutrients in our belly.
Declaration
public Nutrients Nutrients { get; }
Property Value
NutrientsView
Declaration
protected float[] NutrientsView { get; }
Property Value
Type |
Description |
System.Single[] |
|
TasteBuds
Declaration
public TasteBuds TasteBuds { get; }
Property Value
TastinessMult
Declaration
public float TastinessMult { get; }
Property Value
Type |
Description |
System.Single |
|
UseWaste
Declaration
public bool UseWaste { get; }
Property Value
Type |
Description |
System.Boolean |
|
VarietyMult
Declaration
public float VarietyMult { get; }
Property Value
Type |
Description |
System.Single |
|
Waste
Declaration
public float Waste { get; set; }
Property Value
Type |
Description |
System.Single |
|
WastePercent
Declaration
public float WastePercent { get; }
Property Value
Type |
Description |
System.Single |
|
Methods
BalancedDietMultDescRPC()
Declaration
public TooltipSection BalancedDietMultDescRPC()
Returns
BurnCalories(Single, Boolean)
Burns the specified amount of calories from the stomach.
Declaration
public bool BurnCalories(float change, bool useCalorieModifier)
Parameters
Type |
Name |
Description |
System.Single |
change |
|
System.Boolean |
useCalorieModifier |
|
Returns
Type |
Description |
System.Boolean |
|
CanEat(FoodItem)
Declaration
public bool CanEat(FoodItem food)
Parameters
Returns
Type |
Description |
System.Boolean |
|
ChangedMaxCalories()
Declaration
public void ChangedMaxCalories()
CheckForBowelMovementAndExcreteFeces(User)
Declaration
public void CheckForBowelMovementAndExcreteFeces(User user)
Parameters
Type |
Name |
Description |
User |
user |
|
ClearCalories(Player)
Declaration
public void ClearCalories(Player player)
Parameters
Type |
Name |
Description |
Player |
player |
|
Eat(FoodItem, out String, Boolean)
Declaration
public bool Eat(FoodItem food, out string message, bool force = false)
Parameters
Type |
Name |
Description |
FoodItem |
food |
|
System.String |
message |
|
System.Boolean |
force |
|
Returns
Type |
Description |
System.Boolean |
|
ForceSetCalories(Single)
Declaration
public void ForceSetCalories(float cal)
Parameters
Type |
Name |
Description |
System.Single |
cal |
|
GetTaste(FoodItem)
Get food reaction for eating
Declaration
public string GetTaste(FoodItem food)
Parameters
Returns
Type |
Description |
System.String |
|
Initialize(User)
Declaration
public void Initialize(User owner)
Parameters
Type |
Name |
Description |
User |
owner |
|
IsAnyCalories()
Declaration
public bool IsAnyCalories()
Returns
Type |
Description |
System.Boolean |
|
NutrientSkillRate()
Declaration
public float NutrientSkillRate()
Returns
Type |
Description |
System.Single |
|
RecalcAverageNutrients()
Declaration
public void RecalcAverageNutrients()
TastinessMultDescRPC()
Declaration
public TooltipSection TastinessMultDescRPC()
Returns
Tick()
Declaration
VarietyMultDescRPC()
Declaration
public TooltipSection VarietyMultDescRPC()
Returns
Events
PropertyChanged
Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type |
Description |
System.ComponentModel.PropertyChangedEventHandler |
|
Implements
System.ComponentModel.INotifyPropertyChanged
Extension Methods