Table of Contents

Class ObjectCategory

Namespace
TinyLife.Objects
Assembly
Tiny Life.dll

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 DynamicEnums.DynamicEnum provides FlagsAttribute-like behavior. Custom modded categories can be added and retrieved using GetModCategory(string).

public class ObjectCategory : DynamicEnum
Inheritance
DynamicEnum
ObjectCategory
Inherited Members
DynamicEnum.HasAllFlags(DynamicEnum)
DynamicEnum.HasAnyFlags(DynamicEnum)
DynamicEnum.ToString()
DynamicEnum.GetValues<T>()
DynamicEnum.GetUniqueValues<T>()
DynamicEnum.GetUniqueFlags<T>(T)
DynamicEnum.Or<T>(T, T)
DynamicEnum.And<T>(T, T)
DynamicEnum.Xor<T>(T, T)
DynamicEnum.Neg<T>(T)
DynamicEnum.GetValue(DynamicEnum)
DynamicEnum.IsDefined(DynamicEnum)
Extension Methods

Fields

AllowedOnWater

An object category that represents objects that are allowed on water, but for which water is not required.

public static readonly ObjectCategory AllowedOnWater

Field Value

ObjectCategory

ArtPiece

An object category for art pieces that count towards a museum's requirements, and that can be viewed.

public static readonly ObjectCategory ArtPiece

Field Value

ObjectCategory

BabyBathtub

An object category that represents objects where a baby can be bathed.

public static readonly ObjectCategory BabyBathtub

Field Value

ObjectCategory

BabySittable

An object category that represents objects that babies can sit on.

public static readonly ObjectCategory BabySittable

Field Value

ObjectCategory

Barbecue

An object category for outdoor cooking spots

public static readonly ObjectCategory Barbecue

Field Value

ObjectCategory

BartendingObject

An object category that represents objects a bartender can use

public static readonly ObjectCategory BartendingObject

Field Value

ObjectCategory

Bookshelf

An object category that represents things that books are stored in

public static readonly ObjectCategory Bookshelf

Field Value

ObjectCategory

CafeDisplayCase

An object category for cafe display cases that barista employees can collect food from.

public static readonly ObjectCategory CafeDisplayCase

Field Value

ObjectCategory

CanBeScrapped

An object category for items that can be scrapped using Scrap (provided they are on a lot that can be "edited" by the person executing the action)

public static readonly ObjectCategory CanBeScrapped

Field Value

ObjectCategory

CanBeThrownAway

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

CanCoverDoor

An object category for things that can be attached to doors (specifically, openings of the WalkableOpening type). If an object doesn't also have the WallHanging category, this category has no effect.

public static readonly ObjectCategory CanCoverDoor

Field Value

ObjectCategory

CanCoverWindow

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

CeilingHanging

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

Chair

An object category that represents sittable surfaces for non-babies.

public static readonly ObjectCategory Chair

Field Value

ObjectCategory

ChangingStation

An object category that represents objects where a baby's diaper can be changed

public static readonly ObjectCategory ChangingStation

Field Value

ObjectCategory

ChildStove

An object category that represents objects where children can cook

public static readonly ObjectCategory ChildStove

Field Value

ObjectCategory

Cleanable

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

public static readonly ObjectCategory Cleanable

Field Value

ObjectCategory

CoffeeMachine

An object category for coffee machines.

public static readonly ObjectCategory CoffeeMachine

Field Value

ObjectCategory

Computer

An object category that represents computers

public static readonly ObjectCategory Computer

Field Value

ObjectCategory

Counter

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

public static readonly ObjectCategory Counter

Field Value

ObjectCategory

CounterObject

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

public static readonly ObjectCategory CounterObject

Field Value

ObjectCategory

Crib

An object category that represents objects where a baby can sleep.

public static readonly ObjectCategory Crib

Field Value

ObjectCategory

DeskObject

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

public static readonly ObjectCategory DeskObject

Field Value

ObjectCategory

DisallowedOnGround

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

DoubleBed

An object category that represents a double bed

public static readonly ObjectCategory DoubleBed

Field Value

ObjectCategory

DumbbellHolder

An object category that represents objects where people can use dumbbells

public static readonly ObjectCategory DumbbellHolder

Field Value

ObjectCategory

Easel

An object category that represents places where one can paint paintings

public static readonly ObjectCategory Easel

Field Value

ObjectCategory

FireLight

An object category for fireplaces and candles that can be lit and put out. Objects that have this category are expected to extend LightFurniture.

public static readonly ObjectCategory FireLight

Field Value

ObjectCategory

ForceGridPlacement

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

Fridge

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

public static readonly ObjectCategory Fridge

Field Value

ObjectCategory

Gravestone

An object category that represents gravestones

public static readonly ObjectCategory Gravestone

Field Value

ObjectCategory

Ground

An object category that represents the ground

public static readonly ObjectCategory Ground

Field Value

ObjectCategory

GroundItem

An object category for objects that are flat on the ground, like rugs and grass patches.

public static readonly ObjectCategory GroundItem

Field Value

ObjectCategory

Holdable

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

public static readonly ObjectCategory Holdable

Field Value

ObjectCategory

JungleGym

An object category that represents objects where children can play on a climbing frame or jungle gym.

public static readonly ObjectCategory JungleGym

Field Value

ObjectCategory

Lamp

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

LandlinePhone

An object category that represents landline phones, usually used with PhoneBehavior.

public static readonly ObjectCategory LandlinePhone

Field Value

ObjectCategory

LargeSurfaceObject

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

Mailbox

An object category that represents mailboxes

public static readonly ObjectCategory Mailbox

Field Value

ObjectCategory

Mirror

An object category that represents mirrors

public static readonly ObjectCategory Mirror

Field Value

ObjectCategory

NaturalGroundRequired

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

Newspaper

An object category for newspapers.

public static readonly ObjectCategory Newspaper

Field Value

ObjectCategory

NonBuyable

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

public static readonly ObjectCategory NonBuyable

Field Value

ObjectCategory

NonColliding

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

public static readonly ObjectCategory NonColliding

Field Value

ObjectCategory

NonMovable

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

public static readonly ObjectCategory NonMovable

Field Value

ObjectCategory

NonSellable

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

public static readonly ObjectCategory NonSellable

Field Value

ObjectCategory

Nothing

An object category that reprsents an object without any properties

public static readonly ObjectCategory Nothing

Field Value

ObjectCategory

ObstructedByRoofs

An object category for objects that get obstructed by roofs and tiles on floors above (and should be removed if a roof or tile is placed above them)

public static readonly ObjectCategory ObstructedByRoofs

Field Value

ObjectCategory

OpeningHoursSign

An object category that represents objects that can be hovered over to see a lot employment's opening hours

public static readonly ObjectCategory OpeningHoursSign

Field Value

ObjectCategory

Oven

An object category that represents objects where one can bake food

public static readonly ObjectCategory Oven

Field Value

ObjectCategory

People

An object category that all PersonLike instances hae

public static readonly ObjectCategory People

Field Value

ObjectCategory

PlantLike

An object category that causes objects to make the natural place sound and default to the outdoors tab, but without any placement rules attached

public static readonly ObjectCategory PlantLike

Field Value

ObjectCategory

Potty

An object category that represents toilets for babies

public static readonly ObjectCategory Potty

Field Value

ObjectCategory

ProteinShakeMaker

An object category that represents objects where protein shakes can be made.

public static readonly ObjectCategory ProteinShakeMaker

Field Value

ObjectCategory

Rocks

An object category for big and small rocks.

public static readonly ObjectCategory Rocks

Field Value

ObjectCategory

RoofAttached

An object category for objects that have to be attached to roofs (which is useful for chimneys and other rooftop items)

public static readonly ObjectCategory RoofAttached

Field Value

ObjectCategory

Sandbox

An object category that represents objects where children can play in the sand

public static readonly ObjectCategory Sandbox

Field Value

ObjectCategory

Self

An object category that represents the object that contains it

public static readonly ObjectCategory Self

Field Value

ObjectCategory

Shower

An object category that represents objects where one can shower

public static readonly ObjectCategory Shower

Field Value

ObjectCategory

SingleBed

An object category that represents a single bed

public static readonly ObjectCategory SingleBed

Field Value

ObjectCategory

Sink

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

public static readonly ObjectCategory Sink

Field Value

ObjectCategory

SmallObject

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

Sofa

An object category that represents living room-style sittable surfaces.

public static readonly ObjectCategory Sofa

Field Value

ObjectCategory

StandingDesk

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

Stove

An object category that represents objects where one can cook food

public static readonly ObjectCategory Stove

Field Value

ObjectCategory

Table

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

public static readonly ObjectCategory Table

Field Value

ObjectCategory

TallObject

An object category for objects that are tall enough that their upper half should be rendered on a higher floor, which is handled in DrawColumns(Map, Vector2, float, object, Vector2, Direction2, TextureRegion, Color, float, List<Item>, bool, ParentInfo, float, SpriteEffects).

public static readonly ObjectCategory TallObject

Field Value

ObjectCategory

TeaKit

An object category that represents objects where tea can be made

public static readonly ObjectCategory TeaKit

Field Value

ObjectCategory

Television

An object category that represents televisions

public static readonly ObjectCategory Television

Field Value

ObjectCategory

Toilet

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

public static readonly ObjectCategory Toilet

Field Value

ObjectCategory

ToyBox

An object category that represents objects where kids can get toys

public static readonly ObjectCategory ToyBox

Field Value

ObjectCategory

TrashCan

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

public static readonly ObjectCategory TrashCan

Field Value

ObjectCategory

Treadmill

An object category that represents objects where people can run on a treadmill

public static readonly ObjectCategory Treadmill

Field Value

ObjectCategory

Tree

An object category that represents trees

public static readonly ObjectCategory Tree

Field Value

ObjectCategory

TreeDecor

An object category for objects that can be added to Tree objects as decoration.

public static readonly ObjectCategory TreeDecor

Field Value

ObjectCategory

WallHanging

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 or door, it should additionally have the CanCoverWindow or CanCoverDoor category.

public static readonly ObjectCategory WallHanging

Field Value

ObjectCategory

Walls

An object category that represents WallLike objects. If this category is used, FindAllFreeWalls<T>(PersonLike, Map, Vector2?, float?, float?, bool) is used for AI-based invocation.

public static readonly ObjectCategory Walls

Field Value

ObjectCategory

Wardrobe

An object category that represents objects where a PersonLike can change

public static readonly ObjectCategory Wardrobe

Field Value

ObjectCategory

WaterRequired

An object category that represents objects that can only be placed on water.

public static readonly ObjectCategory WaterRequired

Field Value

ObjectCategory

WoodworkingItem

An object category that represents objects where woodworking can be done

public static readonly ObjectCategory WoodworkingItem

Field Value

ObjectCategory

Operators

operator &(ObjectCategory, ObjectCategory)

Returns the bitwise AND (&) combination of the two dynamic enum values

public static ObjectCategory operator &(ObjectCategory left, ObjectCategory right)

Parameters

left ObjectCategory

The left value

right ObjectCategory

The right value

Returns

ObjectCategory

The bitwise AND (&) combination

operator |(ObjectCategory, ObjectCategory)

Returns the bitwise OR (|) combination of the two dynamic enum values

public static ObjectCategory operator |(ObjectCategory left, ObjectCategory right)

Parameters

left ObjectCategory

The left value

right ObjectCategory

The right value

Returns

ObjectCategory

The bitwise OR (|) combination

operator ^(ObjectCategory, ObjectCategory)

Returns the bitwise XOR (^) combination of the two dynamic enum values

public static ObjectCategory operator ^(ObjectCategory left, ObjectCategory right)

Parameters

left ObjectCategory

The left value

right ObjectCategory

The right value

Returns

ObjectCategory

The bitwise XOR (^) combination

implicit operator ObjectCategory(BigInteger)

Returns the defined or combined dynamic enum value for the given BigInteger representation

public static implicit operator ObjectCategory(BigInteger value)

Parameters

value BigInteger

The value whose dynamic enum value to get

Returns

ObjectCategory

The defined or combined dynamic enum value

implicit operator BigInteger(ObjectCategory)

Returns the BigInteger representation of the given dynamic enum value

public static implicit operator BigInteger(ObjectCategory category)

Parameters

category ObjectCategory

Returns

BigInteger

The value's number representation

operator ~(ObjectCategory)

Returns the bitwise NEG (~) combination of the dynamic enum value

public static ObjectCategory operator ~(ObjectCategory value)

Parameters

value ObjectCategory

The value

Returns

ObjectCategory

The bitwise NEG (~) value