void InitActors() { int numActors; if (Game.Version == 8) { numActors = 80; } else if (Game.Version == 7 || Game.GameId == GameId.SamNMax) { numActors = 30; } else if (Game.GameId == GameId.Maniac) { numActors = 25; } else { numActors = 13; } Actors = new Actor[numActors]; for (byte i = 0; i < Actors.Length; i++) { if (Game.Version == 0) { Actors[i] = new Actor0(this, i); } else if (Game.Version <= 2) { Actors[i] = new Actor2(this, i); } else if (Game.Version == 3) { Actors[i] = new Actor3(this, i); } else { Actors[i] = new Actor(this, i); } Actors[i].Init(-1); // this is from IDB if ((_game.Version <= 1) || (Game.GameId == GameId.Maniac && (Game.Features.HasFlag(GameFeatures.Demo)))) { Actors[i].SetActorCostume(i); } } if (Game.GameId == GameId.Maniac && Game.Version <= 1) { ResetV1ActorTalkColor(); } }
void InitActors() { int numActors; if (Game.Version == 8) { numActors = 80; } else if (Game.Version == 7 || Game.GameId == GameId.SamNMax) { numActors = 30; } else if (Game.GameId == GameId.Maniac) { numActors = 25; } else { numActors = 13; } Actors = new Actor[numActors]; for (byte i = 0; i < Actors.Length; i++) { if (Game.Version == 0) { Actors[i] = new Actor0(this, i); } else if (Game.Version <= 2) { Actors[i] = new Actor2(this, i); } else if (Game.Version == 3) { Actors[i] = new Actor3(this, i); } else { Actors[i] = new Actor(this, i); } Actors[i].Init(-1); // this is from IDB if ((_game.Version <= 1) || (Game.GameId == GameId.Maniac && (Game.Features.HasFlag(GameFeatures.Demo)))) Actors[i].SetActorCostume(i); } if (Game.GameId == GameId.Maniac && Game.Version <= 1) { ResetV1ActorTalkColor(); } }