add undelete for entities
BACKSPACE in combination with editmeta (LCTRL) now undeletes the last deleted entity. BACKSPACE in combination with editmeta2 (LSHIFT) brings up the menu "deleted entities". The edit menu now has a submenu "deleted entities" which lists all deleted entities and undeletes the selected one. undelent [<index>] If no index is specified, the last deleted entity is restored. If an index is given, the specified entity from the list of deleted entities is restored. getdeletedentities Returns a list of deleted entities. Each line contains the entity type, the position and all seven attributes. unlistdeletedentity [<which>] If <which> is a number, the specified entry from the list of deleted entities gets removed. If <which> is "all", the whole list of deleted entities gets deleted. If <which> is "last" the last deleted entity is removed from the list of deleted entities. Returns the number of entities on the list of deleted entities (even if the parameter <which> was unknown or not specified). DOCREF undelent getdeletedentities unlistdeletedentity
This commit is contained in:
+3
-2
@@ -486,11 +486,12 @@ extern void remip(const block &b, int level = 0);
|
||||
extern void remipmore(const block &b, int level = 0);
|
||||
extern int closestent();
|
||||
extern void deletesoundentity(entity &e);
|
||||
extern int findtype(char *what);
|
||||
extern int findtype(const char *what);
|
||||
extern int findentity(int type, int index = 0);
|
||||
extern int findentity(int type, int index, uchar attr2);
|
||||
extern void newentity(int index, int x, int y, int z, char *what, float v1, float v2, float v3, float v4);
|
||||
extern void newentity(int index, int x, int y, int z, const char *what, float v1, float v2, float v3, float v4);
|
||||
extern void mapmrproper(bool manual);
|
||||
extern vector<persistent_entity> deleted_ents;
|
||||
|
||||
// worldlight
|
||||
extern int lastcalclight;
|
||||
|
||||
Reference in New Issue
Block a user