Rename Demolish to Deconstruct
This commit is contained in:
@@ -27,7 +27,7 @@ class GameConfig;
|
||||
enum class CommandKind
|
||||
{
|
||||
PlaceBuilding,
|
||||
Demolish,
|
||||
Deconstruct,
|
||||
CancelDeconstruction,
|
||||
RotateInPlace,
|
||||
SetRecipe,
|
||||
@@ -74,15 +74,15 @@ struct PlaceBuildingCommand : Command
|
||||
};
|
||||
|
||||
// Marks a building for demolition: a construction site is removed instantly, a
|
||||
// built building is queued for deconstruction (REQ-BLD-DEMOLISH, REQ-BLD-DECON-QUEUE).
|
||||
struct DemolishCommand : Command
|
||||
// built building is queued for deconstruction (REQ-BLD-DECONSTRUCT, REQ-BLD-DECON-QUEUE).
|
||||
struct DeconstructCommand : Command
|
||||
{
|
||||
DemolishCommand() : Command(CommandKind::Demolish) {}
|
||||
DeconstructCommand() : Command(CommandKind::Deconstruct) {}
|
||||
std::optional<BuildingId> id;
|
||||
};
|
||||
|
||||
// Takes a building back out of the deconstruction queue (REQ-BLD-DEMOLISH-CLICK,
|
||||
// REQ-BLD-DEMOLISH-BOX). No-op if the id is not currently queued.
|
||||
// Takes a building back out of the deconstruction queue (REQ-BLD-DECONSTRUCT-CLICK,
|
||||
// REQ-BLD-DECONSTRUCT-BOX). No-op if the id is not currently queued.
|
||||
struct CancelDeconstructionCommand : Command
|
||||
{
|
||||
CancelDeconstructionCommand() : Command(CommandKind::CancelDeconstruction) {}
|
||||
|
||||
Reference in New Issue
Block a user