Class PickupRules

Namespace
SurvivorsMaker.Simulation
Assembly
SurvivorsMaker.Simulation.dll

Reusable pickup storage plus death rewards, progression and collection.

public class PickupRules
Inheritance
PickupRules
Inherited Members

Constructors

PickupRules()

public PickupRules()

Methods

CollectDeaths(SimWorld)

public virtual void CollectDeaths(SimWorld world)

Parameters

world SimWorld

Settle(SimWorld)

public virtual void Settle(SimWorld world)

Parameters

world SimWorld

Spawn(SimWorld, string, Vec2, int)

Creates a pickup dispatched by its behaviour id and adds it to the world at the requested position.

public virtual Pickup Spawn(SimWorld world, string behaviourId, Vec2 position, int value)

Parameters

world SimWorld
behaviourId string
position Vec2
value int

Returns

Pickup

Tick(SimWorld)

public virtual void Tick(SimWorld world)

Parameters

world SimWorld