Class ObjectCategory
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
-
DynamicEnumObjectCategory
- 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
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
BabyBathtub
An object category that represents objects where a baby can be bathed.
public static readonly ObjectCategory BabyBathtub
Field Value
BabySittable
An object category that represents objects that babies can sit on.
public static readonly ObjectCategory BabySittable
Field Value
Barbecue
An object category for outdoor cooking spots
public static readonly ObjectCategory Barbecue
Field Value
BartendingObject
An object category that represents objects a bartender can use
public static readonly ObjectCategory BartendingObject
Field Value
Bookshelf
An object category that represents things that books are stored in
public static readonly ObjectCategory Bookshelf
Field Value
CafeDisplayCase
An object category for cafe display cases that barista employees can collect food from.
public static readonly ObjectCategory CafeDisplayCase
Field Value
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
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
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
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
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
Chair
An object category that represents sittable surfaces for non-babies.
public static readonly ObjectCategory Chair
Field Value
ChangingStation
An object category that represents objects where a baby's diaper can be changed
public static readonly ObjectCategory ChangingStation
Field Value
ChildStove
An object category that represents objects where children can cook
public static readonly ObjectCategory ChildStove
Field Value
Cleanable
An object category that represents objects that can be cleaned in a Sink
public static readonly ObjectCategory Cleanable
Field Value
CoffeeMachine
An object category for coffee machines.
public static readonly ObjectCategory CoffeeMachine
Field Value
Computer
An object category that represents computers
public static readonly ObjectCategory Computer
Field Value
Counter
An object category that represents objects where one can prepare food and place CounterObject objects
public static readonly ObjectCategory Counter
Field Value
CounterObject
An object category that represents objects that can be placed on Counter objects
public static readonly ObjectCategory CounterObject
Field Value
Crib
An object category that represents objects where a baby can sleep.
public static readonly ObjectCategory Crib
Field Value
DeskObject
An object category that represents objects that can be placed on desks and standing desks
public static readonly ObjectCategory DeskObject
Field Value
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
DoubleBed
An object category that represents a double bed
public static readonly ObjectCategory DoubleBed
Field Value
DumbbellHolder
An object category that represents objects where people can use dumbbells
public static readonly ObjectCategory DumbbellHolder
Field Value
Easel
An object category that represents places where one can paint paintings
public static readonly ObjectCategory Easel
Field Value
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
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
Fridge
An object category that represents objects where one can get food ingredients
public static readonly ObjectCategory Fridge
Field Value
Gravestone
An object category that represents gravestones
public static readonly ObjectCategory Gravestone
Field Value
Ground
An object category that represents the ground
public static readonly ObjectCategory Ground
Field Value
GroundItem
An object category for objects that are flat on the ground, like rugs and grass patches.
public static readonly ObjectCategory GroundItem
Field Value
Holdable
An object category that represents objects that can be held by a PersonLike
public static readonly ObjectCategory Holdable
Field Value
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
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
LandlinePhone
An object category that represents landline phones, usually used with PhoneBehavior.
public static readonly ObjectCategory LandlinePhone
Field Value
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
Mailbox
An object category that represents mailboxes
public static readonly ObjectCategory Mailbox
Field Value
Mirror
An object category that represents mirrors
public static readonly ObjectCategory Mirror
Field Value
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
Newspaper
An object category for newspapers.
public static readonly ObjectCategory Newspaper
Field Value
NonBuyable
An object category that represents objects that cannot be bought in the FurnitureTool
public static readonly ObjectCategory NonBuyable
Field Value
NonColliding
An object category that represents things that a PersonLike does not collide with
public static readonly ObjectCategory NonColliding
Field Value
NonMovable
An object category that represents things that cannot be moved using MoveTool
public static readonly ObjectCategory NonMovable
Field Value
NonSellable
An object category that represents things that cannot be solved or removed using RemoveTool
public static readonly ObjectCategory NonSellable
Field Value
Nothing
An object category that reprsents an object without any properties
public static readonly ObjectCategory Nothing
Field Value
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
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
Oven
An object category that represents objects where one can bake food
public static readonly ObjectCategory Oven
Field Value
People
An object category that all PersonLike instances hae
public static readonly ObjectCategory People
Field Value
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
Potty
An object category that represents toilets for babies
public static readonly ObjectCategory Potty
Field Value
ProteinShakeMaker
An object category that represents objects where protein shakes can be made.
public static readonly ObjectCategory ProteinShakeMaker
Field Value
Rocks
An object category for big and small rocks.
public static readonly ObjectCategory Rocks
Field Value
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
Sandbox
An object category that represents objects where children can play in the sand
public static readonly ObjectCategory Sandbox
Field Value
Self
An object category that represents the object that contains it
public static readonly ObjectCategory Self
Field Value
Shower
An object category that represents objects where one can shower
public static readonly ObjectCategory Shower
Field Value
SingleBed
An object category that represents a single bed
public static readonly ObjectCategory SingleBed
Field Value
Sink
An object category that represents objects where one can clean dishes and wash hands
public static readonly ObjectCategory Sink
Field Value
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
Sofa
An object category that represents living room-style sittable surfaces.
public static readonly ObjectCategory Sofa
Field Value
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
Stove
An object category that represents objects where one can cook food
public static readonly ObjectCategory Stove
Field Value
Table
An object category that represents objects where one can place SmallObject objects
public static readonly ObjectCategory Table
Field Value
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
TeaKit
An object category that represents objects where tea can be made
public static readonly ObjectCategory TeaKit
Field Value
Television
An object category that represents televisions
public static readonly ObjectCategory Television
Field Value
Toilet
An object category that represents objects where one can use the toilet
public static readonly ObjectCategory Toilet
Field Value
ToyBox
An object category that represents objects where kids can get toys
public static readonly ObjectCategory ToyBox
Field Value
TrashCan
An object category for places where items with the CanBeThrownAway category can be thrown away
public static readonly ObjectCategory TrashCan
Field Value
Treadmill
An object category that represents objects where people can run on a treadmill
public static readonly ObjectCategory Treadmill
Field Value
Tree
An object category that represents trees
public static readonly ObjectCategory Tree
Field Value
TreeDecor
An object category for objects that can be added to Tree objects as decoration.
public static readonly ObjectCategory TreeDecor
Field Value
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
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
Wardrobe
An object category that represents objects where a PersonLike can change
public static readonly ObjectCategory Wardrobe
Field Value
WaterRequired
An object category that represents objects that can only be placed on water.
public static readonly ObjectCategory WaterRequired
Field Value
WoodworkingItem
An object category that represents objects where woodworking can be done
public static readonly ObjectCategory WoodworkingItem
Field Value
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
ObjectCategoryThe left value
right
ObjectCategoryThe 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
ObjectCategoryThe left value
right
ObjectCategoryThe 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
ObjectCategoryThe left value
right
ObjectCategoryThe 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
BigIntegerThe 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
ObjectCategoryThe value
Returns
- ObjectCategory
The bitwise NEG (~) value