A Furniture item that additionally emits smoke particles automatically if there are any Fireplace objects in the room below it that are currently enabled (IsDisabled).
public class Chimney : Furniture, IGenericDataHolder, IUpdatingObject
- Inherited Members
Furniture.Draw(GameTime, object, Vector2, Vector2, Color?, Direction2, int, float, bool, ParentInfo, float, bool, List<StaticSpriteBatch.Item>)MapObject.DrawColumns(Map, Vector2, object, Vector2, TextureRegion, Color, float, Point, List<StaticSpriteBatch.Item>, bool, ParentInfo, float, SpriteEffects, bool, bool, bool)JsonTypeSafeGenericDataHolder.GetDataKeys()
- Extension Methods
Chimney(Guid, FurnitureType, int, Map, Vector2)
Creates a new furniture instance. By default, this is done using Construct<T>(int, Map, Vector2, Guid?).
public Chimney(Guid id, FurnitureType type, int colors, Map map, Vector2 pos)
The id to apply to the created furniture instance
The type to create an instance of
The colors to apply to the furniture
The map to create the furniture on
The position that the furniture should have
Update(GameTime, TimeSpan, float)
The update method, which is called every update frame by the underlying Map, as well as additional places like the FurnitureStorage. Because of this, some actions might only want to be invoked if an object IsInWorld. To call this method while invoking all required events, use DoUpdate(GameTime, TimeSpan, float).
public void Update(GameTime time, TimeSpan passedInGame, float speedMultiplier)