@WorldUndo.h 1.0 KB

12345678910111213141516171819202122232425
  1. /******************************************************************************/
  2. /******************************************************************************/
  3. class WorldUndo : Edit::Undo<WorldChange>
  4. {
  5. static cchar8 * TerrainType ,
  6. * ObjType ,
  7. * NewObjType ,
  8. *WaypointType;
  9. SyncLock lock;
  10. WorldUndo();
  11. void del();
  12. WorldChange* set(cptr type, bool force_create=false); // !! this may get called on multiple threads when processing different areas !!
  13. void setTerrain(C Area &area); // !! this may get called on multiple threads when processing different areas !!
  14. void set(C ObjData &obj, cptr type, bool as_new);
  15. void set(C EditWaypoint &waypoint, cptr type=WaypointType);
  16. void set(C Lake &lake);
  17. void set(C River &river);
  18. };
  19. /******************************************************************************/
  20. /******************************************************************************/
  21. /******************************************************************************/