|
ClassicCityBuilderKit 1.9.4
|
Public Member Functions | |
| 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 | |
Protected Member Functions | |
| virtual void | add () |
| virtual void | remove () |
Protected Attributes | |
| UndoRedoRoadData | _data |
Additional Inherited Members | |
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 | |
|
virtual |
determines and returns the map points affected by this action
used, for example, to spawn particles at these points
Reimplemented from CityBuilderCore.UndoRedoActionBase.
|
inline |
deserializes the serialized json data and loads the data as its new state
| json |
Implements CityBuilderCore.ISaveData.
|
inline |
serializes the objects state(usually to json) and returns it
Implements CityBuilderCore.ISaveData.