コード例 #1
0
 //Adds an Entity to the MultiSpatialMap
 public void Add(Entity entity)
 {
     //add Entity to the SpatialMap
     Entities.Add(entity, entity.Position);
     // link the entity moved event to a new handler
     entity.Moved += OnEntityMoved;
 }
コード例 #2
0
ファイル: Map.cs プロジェクト: Melonator/Tower-of-Doom
 public void Add(Entity entity)
 {
     Entities.Add(entity, entity.Position);
     entity.Moved += OnEntityMoved;
 }