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(); }
public EntityRepointer(Game game, EntityLoader entityL, SpaceCalculator spaceCalc) { LAGame = game; entityLoader = entityL; spaceCalculator = spaceCalc; }