Class Mob
Defines mobs that are spawned in a PointOfInterest
Inheritance
System.Object
Mob
Namespace: Mannequin.Bindings
Assembly: Collapse.dll
Syntax
public class Mob : object
Constructors
Mob(String, Faction, Int32, Int32)
Create a Mob.
Declaration
public Mob(string ID, Faction faction, int minCount, int maxCount)
Parameters
Type | Name | Description |
---|---|---|
System.String | ID | The ID of the mob |
Faction | faction | The Mob's faction |
System.Int32 | minCount | The minimum number of agents to spawn as part of this Mob |
System.Int32 | maxCount | The maximum number of agents to spawn as part of this Mob |
Methods
Spawn(Scene, List<Tile>)
Spawn a mob group
Declaration
public List<Agent> Spawn(Scene scene, List<Tile> where)
Parameters
Type | Name | Description |
---|---|---|
Scene | scene | Scene to spawn in |
List<Tile> | where | Tile(s) to spawn at |
Returns
Type | Description |
---|---|
List<Agent> | A list of the mobs spawned |
Spawn(Scene, Rectangle)
Spawn a mob group
Declaration
public List<Agent> Spawn(Scene scene, Rectangle where)
Parameters
Type | Name | Description |
---|---|---|
Scene | scene | Scene to spawn in |
Rectangle | where | Area to spawn at |
Returns
Type | Description |
---|---|
List<Agent> | A list of the mobs spawned |