示例#1
0
 public override void execute()
 {
     if (spawnedEntity == null || spawnedEntity.Destroyed)
     {
         spawnedEntity = world.EntityManager.createEntity(id);
         spawnedEntity.setLocation(new Location(world, x * GFX.Tile.STANDARD_GTILE_WIDTH, y * GFX.Tile.STANDARD_GTILE_HEIGHT));
     }
 }
示例#2
0
 public override void execute(Entity.Entity executer, int x, int y)
 {
     if (executer is Entity.Player)
     {
         executer.setLocation(new Location(executer.World, this.x * GFX.Tile.STANDARD_GTILE_WIDTH, this.y * GFX.Tile.STANDARD_GTILE_HEIGHT));
         executer.World.WorldCamera.Update(new Microsoft.Xna.Framework.GameTime());
     }
 }