Show / Hide Table of Contents

Class Stomach

Inheritance
System.Object
Stomach
Implements
IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged
Namespace: Eco.Gameplay.Players
Assembly: Eco.Gameplay.dll
Syntax
public class Stomach : Object, IController, IViewController, IHasUniversalID, INotifyPropertyChanged

Constructors

Stomach()

Declaration
public Stomach()

Fields

CalorieMult

Declaration
public float CalorieMult
Field Value
Type Description
System.Single

CaloriesChangedEvent

Declaration
public static ThreadSafeAction<Stomach> CaloriesChangedEvent
Field Value
Type Description
ThreadSafeAction<Stomach>

ChangedEvent

Declaration
public ThreadSafeAction ChangedEvent
Field Value
Type Description
ThreadSafeAction

Contents

Declaration
public ThreadSafeList<StomachEntry> Contents
Field Value
Type Description
ThreadSafeList<StomachEntry>

CravingSatisfiedEvent

Declaration
public static ThreadSafeAction<User, FoodItem> CravingSatisfiedEvent
Field Value
Type Description
ThreadSafeAction<User, FoodItem>

FoodContentUpdatedEvent

Declaration
public static ThreadSafeAction<User, Type> FoodContentUpdatedEvent
Field Value
Type Description
ThreadSafeAction<User, System.Type>

FoodEatenEvent

Declaration
public ThreadSafeAction<FoodItem> FoodEatenEvent
Field Value
Type Description
ThreadSafeAction<FoodItem>

MaxCaloriesChangedEvent

Declaration
public static ThreadSafeAction<Stomach> MaxCaloriesChangedEvent
Field Value
Type Description
ThreadSafeAction<Stomach>

NoCaloriesEvent

Declaration
public ThreadSafeAction NoCaloriesEvent
Field Value
Type Description
ThreadSafeAction

NutritionMultiplierDisplayName

Declaration
public static readonly string NutritionMultiplierDisplayName
Field Value
Type Description
System.String

Owner

Declaration
public User Owner
Field Value
Type Description
User

PlayerCravingSatifiedEvent

Declaration
public static ThreadSafeAction<User, FoodItem> PlayerCravingSatifiedEvent
Field Value
Type Description
ThreadSafeAction<User, FoodItem>

WasteChangedEvent

Declaration
public static ThreadSafeAction<Stomach> WasteChangedEvent
Field Value
Type Description
ThreadSafeAction<Stomach>

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
Type Description
Cravings

FullStomachMsg

Declaration
public LocString FullStomachMsg { get; }
Property Value
Type Description
LocString

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
Type Description
Nutrients

NutrientsView

Declaration
protected float[] NutrientsView { get; }
Property Value
Type Description
System.Single[]

TasteBuds

Declaration
public TasteBuds TasteBuds { get; }
Property Value
Type Description
TasteBuds

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
Type Description
TooltipSection

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
Remarks

Some waste management happens internally if waste is enabled in the config.

CanEat(FoodItem)

Declaration
public bool CanEat(FoodItem food)
Parameters
Type Name Description
FoodItem food
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
Type Name Description
FoodItem food
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
Type Description
TooltipSection

Tick()

Declaration
public void Tick()

VarietyMultDescRPC()

Declaration
public TooltipSection VarietyMultDescRPC()
Returns
Type Description
TooltipSection

Events

PropertyChanged

Declaration
public event PropertyChangedEventHandler PropertyChanged
Event Type
Type Description
System.ComponentModel.PropertyChangedEventHandler

Implements

IController
IViewController
IHasUniversalID
System.ComponentModel.INotifyPropertyChanged

Extension Methods

TagUtils.TagNames(Object, Boolean)
TagUtils.TagDisplayNames(Object, Boolean)
ClientSetViewExtensions.SetClassOfProperty(Object, Player, String, String, Int32)
TypeTooltipExtensions.UILinkGeneric(Object)
StomachTooltipLibrary.FoodStatus(Stomach)
StomachTooltipLibrary.StomachNutritionTooltip(Stomach)
StomachTooltipLibrary.StomachContentsToltip(Stomach)
☀
☾
In This Article
Back to top
Copyright (c) Strange Loop Games 2021
☀
☾