Beispiel #1
0
 public RPGWorld()
     : base()
 {
     this.m_DynamicLoader = new TilesetDynamicLoader(null, this.m_Uniques);
     Log.WriteLine("Starting generation...");
     if (this.Tileset == null)
         this.Tileset = new ChunkTileset(this.m_DynamicLoader);
     //this.m_DynamicLoader.LoadInto(this.Tileset, 0, 0);
     Log.WriteLine("Generation complete.");
     this.m_Player = new Player(this);
     this.m_Player.WorldZ = 0;
     this.Entities.Add(this.m_Player);
     this.m_FieldOfView = new FieldOfView(this);
     this.m_FieldOfViewRenderer = new FieldOfViewRenderer(this.m_FieldOfView);
 }
 public FieldOfViewRenderer(FieldOfView fov)
 {
     this.m_FieldOfView = fov;
 }