| 
    ClassicCityBuilderKit 1.9.4
    
   | 
 
IUndoRedoAction that represents a building being created on the map
  
Public Member Functions | |
| BuildingAddition (IBuilding building) | |
| override void | Undo () | 
| undoes the action   | |
| override void | Redo () | 
| redoes the action after it has been undone   | |
  Public Member Functions inherited from CityBuilderCore.UndoRedoActionBuildingBase | |
| UndoRedoActionBuildingBase (IBuilding building) | |
| override IEnumerable< Vector2Int > | GetPoints () | 
| determines and returns the map points affected by this action used, for example, to spawn particles at these points  | |
| override string | SaveData () | 
| serializes the objects state(usually to json) and returns it   | |
| override void | LoadData (string json) | 
| deserializes the serialized json data and loads the data as its new state   | |
  Public Member Functions inherited from CityBuilderCore.UndoRedoActionBase | |
| void | Undo () | 
| undoes the action   | |
| void | Redo () | 
| redoes the action after it has been undone   | |
| string | SaveData () | 
| serializes the objects state(usually to json) and returns it   | |
| void | LoadData (string json) | 
| deserializes the serialized json data and loads the data as its new state   | |
Properties | |
| override bool | CanUndo [get] | 
| whether the action is currently valid to be undone for example building a hut cannot be undone if that hut has since been destroyed  | |
| override string | Name [get] | 
| name of the action to be displayed in the ui(tooltip)   | |
  Properties inherited from CityBuilderCore.UndoRedoActionBuildingBase | |
| IBuilding | Building [get] | 
  Properties inherited from CityBuilderCore.UndoRedoActionBase | |
| string | Name [get] | 
| name of the action to be displayed in the ui(tooltip)   | |
| virtual bool | CanUndo [get] | 
| whether the action is currently valid to be undone for example building a hut cannot be undone if that hut has since been destroyed  | |
| virtual bool | CanRedo [get] | 
| whether the action is currently valid to be redone   | |
  Properties inherited from CityBuilderCore.IUndoRedoAction | |
Additional Inherited Members | |
  Protected Member Functions inherited from CityBuilderCore.UndoRedoActionBuildingBase | |
| void | add () | 
| void | remove () | 
| override void CityBuilderCore.BuildingAddition.Redo | ( | ) | 
redoes the action after it has been undone
Implements CityBuilderCore.IUndoRedoAction.
| override void CityBuilderCore.BuildingAddition.Undo | ( | ) | 
undoes the action
Implements CityBuilderCore.IUndoRedoAction.
      
  | 
  get | 
whether the action is currently valid to be undone
 for example building a hut cannot be undone if that hut has since been destroyed 
Implements CityBuilderCore.IUndoRedoAction.
      
  | 
  get | 
name of the action to be displayed in the ui(tooltip)
Implements CityBuilderCore.IUndoRedoAction.