IUpdatingObject - Ellpeck/TinyLifeExampleMod Wiki

Tiny Life

TinyLife.Objects

IUpdatingObject Interface

This is an interface that can be added to MapObject classes to make them automatically update each update frame.
This is used by things like Person, which needs to update for movement etc.

public interface IUpdatingObject

Derived
BreakableFurniture
Car
FoodTypedItem
LightFurniture
Person
Puddle

Methods

IUpdatingObject.Update(GameTime, TimeSpan, GameSpeed) Method

The update method, which is called every update frame by the underlying Map

void Update(Microsoft.Xna.Framework.GameTime time, System.TimeSpan passedInGame, TinyLife.GameSpeed speed);

Parameters

time Microsoft.Xna.Framework.GameTime
The game's time

passedInGame System.TimeSpan
The amount of time that has passed since the last call

speed GameSpeed
The game's speed