Exemple #1
0
 internal Map(List <Texture2D> textures, Texture2D background, int[,] map, List <GameObject> objects, string ambientAudio, DoorCollection <Door> doors, ActorCollection <Actor> actors, SecretCollection <Secret> secrets, Vector2 spawnPoint)
 {
     Textures            = textures;
     Background          = background;
     this.ObjectDatabase = objects;
     WorldMap            = map;
     AmbientAudio        = ambientAudio;
     Doors      = doors;
     SpawnPoint = spawnPoint;
     Actors     = actors;
     Secrets    = secrets;
     CreatePathFinder(map);
     Bullets = new BulletCollection <Bullet>();
 }
Exemple #2
0
 protected IDoor FindModel()
 {
     return(DoorCollection.ToList().Find(d => d.Model == _modelName));
 }