ObjectCategory - Ellpeck/TinyLifeExampleMod Wiki

Original URL: https://github.com/Ellpeck/TinyLifeExampleMod/wiki/ObjectCategory

Tiny Life

TinyLife.Objects

ObjectCategory Class

An object category is a way to tell the Action and AbstractSpot system what type an object is.
An object can have any number of categories attached to it, since MLEM.Data.DynamicEnum provides System.FlagsAttribute-like behavior.
Custom modded categories can be added and retrieved using GetModCategory(string).

public class ObjectCategory : MLEM.Data.DynamicEnum

Inheritance System.Object 🡒 MLEM.Data.DynamicEnum 🡒 ObjectCategory

Constructors

ObjectCategory.ObjectCategory(string, BigInteger) Constructor

Creates a new dynamic enum instance.
This constructor is protected as it is only invoked via reflection.

protected ObjectCategory(string name, System.Numerics.BigInteger value);

Parameters

name System.String
The name of the enum value

value System.Numerics.BigInteger
The value

Fields

ObjectCategory.Barbecue Field

An object category for outdoor cooking spots

public static readonly ObjectCategory Barbecue;

Field Value

ObjectCategory

ObjectCategory.BartendingObject Field

An object category that represents objects a bartender can use

public static readonly ObjectCategory BartendingObject;

Field Value

ObjectCategory

ObjectCategory.Bed Field

An object category that represents objects where one can sleep

public static readonly ObjectCategory Bed;

Field Value

ObjectCategory

ObjectCategory.Bookshelf Field

An object category that represents things that books are stored in

public static readonly ObjectCategory Bookshelf;

Field Value

ObjectCategory

ObjectCategory.CanBeThrownAway Field

An object category for items that can be thrown away in a TrashCan, if they also have the Holdable category

public static readonly ObjectCategory CanBeThrownAway;

Field Value

ObjectCategory

ObjectCategory.CanCoverWindow Field

An object category for things that can be attached to windows. If an object doesn't also have the WallHanging category, this category has no effect.

public static readonly ObjectCategory CanCoverWindow;

Field Value

ObjectCategory

ObjectCategory.CeilingHanging Field

An object category for things that are hanging on the ceiling. For most objects in this category, NonColliding should also be used.

public static readonly ObjectCategory CeilingHanging;

Field Value

ObjectCategory

ObjectCategory.Chair Field

An object category that represents sittable surfaces

public static readonly ObjectCategory Chair;

Field Value

ObjectCategory

ObjectCategory.Cleanable Field

An object category that represents objects that can be cleaned in a Sink

public static readonly ObjectCategory Cleanable;

Field Value

ObjectCategory

ObjectCategory.Computer Field

An object category that represents computers

public static readonly ObjectCategory Computer;

Field Value

ObjectCategory

ObjectCategory.Counter Field

An object category that represents objects where one can prepare food and place CounterObject objects

public static readonly ObjectCategory Counter;

Field Value

ObjectCategory

ObjectCategory.CounterObject Field

An object category that represents objects that can be placed on Counter objects

public static readonly ObjectCategory CounterObject;

Field Value

ObjectCategory

ObjectCategory.DeskObject Field

An object category that represents objects that can be placed on desks and standing desks

public static readonly ObjectCategory DeskObject;

Field Value

ObjectCategory

ObjectCategory.DisallowedOnGround Field

An object category that represents objects that cannot be placed on the ground, but only in object spots

public static readonly ObjectCategory DisallowedOnGround;

Field Value

ObjectCategory

ObjectCategory.Easel Field

An object category that represents places where one can paint paintings

public static readonly ObjectCategory Easel;

Field Value

ObjectCategory

ObjectCategory.ForceGridPlacement Field

An object category that represents objects which cannot be placed off the grid using the ALT key in the FurnitureTool

public static readonly ObjectCategory ForceGridPlacement;

Field Value

ObjectCategory

ObjectCategory.Fridge Field

An object category that represents objects where one can get food ingredients

public static readonly ObjectCategory Fridge;

Field Value

ObjectCategory

ObjectCategory.Gravestone Field

An object category that represents gravestones

public static readonly ObjectCategory Gravestone;

Field Value

ObjectCategory

ObjectCategory.Ground Field

An object category that represents the ground

public static readonly ObjectCategory Ground;

Field Value

ObjectCategory

ObjectCategory.Holdable Field

An object category that represents objects that can be held by a Person

public static readonly ObjectCategory Holdable;

Field Value

ObjectCategory

ObjectCategory.Lamp Field

An object category for lamps that can be turned on and off. Objects that have this category are expected to extend LightFurniture.

public static readonly ObjectCategory Lamp;

Field Value

ObjectCategory

ObjectCategory.LargeSurfaceObject Field

An object category that represents an object which is large and can sit on a surface. This is a non-small version of SmallObject.

public static readonly ObjectCategory LargeSurfaceObject;

Field Value

ObjectCategory

ObjectCategory.Mailbox Field

An object category that represents mailboxes

public static readonly ObjectCategory Mailbox;

Field Value

ObjectCategory

ObjectCategory.Mirror Field

An object category that represents mirrors

public static readonly ObjectCategory Mirror;

Field Value

ObjectCategory

ObjectCategory.NaturalGroundRequired Field

An object category that represents objects that can only be placed on natural ground, namely grass tiles

public static readonly ObjectCategory NaturalGroundRequired;

Field Value

ObjectCategory

ObjectCategory.NonBuyable Field

An object category that represents objects that cannot be bought in the FurnitureTool

public static readonly ObjectCategory NonBuyable;

Field Value

ObjectCategory

ObjectCategory.NonColliding Field

An object category that represents things that a Person does not collide with

public static readonly ObjectCategory NonColliding;

Field Value

ObjectCategory

ObjectCategory.NonMovable Field

An object category that represents things that cannot be moved using MoveTool

public static readonly ObjectCategory NonMovable;

Field Value

ObjectCategory

ObjectCategory.NonSellable Field

An object category that represents things that cannot be solved or removed using RemoveTool

public static readonly ObjectCategory NonSellable;

Field Value

ObjectCategory

ObjectCategory.Nothing Field

An object category that reprsents an object without any properties

public static readonly ObjectCategory Nothing;

Field Value

ObjectCategory

ObjectCategory.People Field

An object category that all Person instances hae

public static readonly ObjectCategory People;

Field Value

ObjectCategory

ObjectCategory.Self Field

An object category that represents the object that contains it

public static readonly ObjectCategory Self;

Field Value

ObjectCategory

ObjectCategory.Shower Field

An object category that represents objects where one can shower

public static readonly ObjectCategory Shower;

Field Value

ObjectCategory

ObjectCategory.Sink Field

An object category that represents objects where one can clean dishes and wash hands

public static readonly ObjectCategory Sink;

Field Value

ObjectCategory

ObjectCategory.SmallObject Field

An object category that represents objects that can sit on Counter and Table objects. For objects that sit on these surfaces, but are not small, LargeSurfaceObject should be used.

public static readonly ObjectCategory SmallObject;

Field Value

ObjectCategory

ObjectCategory.StandingDesk Field

An object category that represents desks that a person stands at, rather than sitting. Usually, objects with this category should also have the Table category.

public static readonly ObjectCategory StandingDesk;

Field Value

ObjectCategory

ObjectCategory.Stove Field

An object category that represents objects where one can cook food

public static readonly ObjectCategory Stove;

Field Value

ObjectCategory

ObjectCategory.Table Field

An object category that represents objects where one can place SmallObject objects

public static readonly ObjectCategory Table;

Field Value

ObjectCategory

ObjectCategory.Television Field

An object category that represents televisions

public static readonly ObjectCategory Television;

Field Value

ObjectCategory

ObjectCategory.Toilet Field

An object category that represents objects where one can use the toilet

public static readonly ObjectCategory Toilet;

Field Value

ObjectCategory

ObjectCategory.TrashCan Field

An object category for places where items with the CanBeThrownAway category can be thrown away

public static readonly ObjectCategory TrashCan;

Field Value

ObjectCategory

ObjectCategory.Tree Field

An object category that represents trees

public static readonly ObjectCategory Tree;

Field Value

ObjectCategory

ObjectCategory.WallHanging Field

An object category that represents objects which need to be hung on Wall objects. If an object should be able to hang on a window, it should additionally have the CanCoverWindow category.

public static readonly ObjectCategory WallHanging;

Field Value

ObjectCategory

ObjectCategory.Walls Field

An object category that represents Wall objects. If this category is used, FindAllFreeWalls(Person, Nullable<Vector2>, Nullable<float>, bool) is used for AI-based invocation.

public static readonly ObjectCategory Walls;

Field Value

ObjectCategory

ObjectCategory.Wardrobe Field

An object category that represents objects where a Person can change

public static readonly ObjectCategory Wardrobe;

Field Value

ObjectCategory

ObjectCategory.WorkoutEquipment Field

An object category that represents any workout equipment, which is used by the Workout set

public static readonly ObjectCategory WorkoutEquipment;

Field Value

ObjectCategory