예제 #1
0
        private void bAccept_Click(object sender, EventArgs e)
        {
            if (entities)
            {
                SpaceCalculator spaceCalculator = new SpaceCalculator(LAGame, mapTileData);
                EntityRepointer entityRepointer = new EntityRepointer(LAGame, entityLoader, spaceCalculator);
                entityRepointer.repointMapEntities((int)nAddress.Value);
            }
            else
            {
                CollisionRepointer collisionRepointer = new CollisionRepointer(LAGame, mapTileData);
                collisionRepointer.repointMapCollisions((int)nAddress.Value);
            }

            this.DialogResult = DialogResult.OK;
            this.Close();
        }
예제 #2
0
 public EntityRepointer(Game game, EntityLoader entityL, SpaceCalculator spaceCalc)
 {
     LAGame          = game;
     entityLoader    = entityL;
     spaceCalculator = spaceCalc;
 }