statsOf
Function of @v12-engine/engine
ts
export declare function statsOf(world: World, entity: Entity): Readonly<Stats>;The stats of an entity as they are right now: what its type starts with at this time of day, and on top of that its levels, the research of its owner, what it carries and the buffs on it.
The result is shared and must not be changed. It stays the same object for as long as the stats stay the same.