private AddTask ( TaskCategory cat, PhysicsTask task, int Delay ) : void | ||
cat | TaskCategory | |
task | PhysicsTask | |
Delay | int | |
return | void |
public void Resume() //the map with this life was just loaded from the file { lock ( _life2d ) { if (Stopped) { return; } } World w = _map.World; if (null == w) { Logger.Log(LogType.Error, "Life: cant resume life in a map without a world"); return; } w.AddTask(TaskCategory.Life, new Task(w, this), 0); }
public void Start() { lock ( _life2d ) { if (!Stopped) { return; } _state = State.Starting; } World w = _map.World; if (null == w) { Logger.Log(LogType.Error, "Life: cant start life in a map without a world"); return; } w.AddTask(TaskCategory.Life, new Task(w, this), 0); }