Entity deletion
This commit is contained in:
@@ -338,11 +338,19 @@ DONE
|
||||
|
||||
DELETE_ENTITY :: #string DONE
|
||||
delete_entity :: (e: *Entity) {
|
||||
// Delete the file too
|
||||
path := tprint("../assets/scenes/%%/%%.ent", e.scene.name, e.id);
|
||||
File.file_delete(path);
|
||||
|
||||
destroy_entity(e);
|
||||
|
||||
if e.type == {
|
||||
%1
|
||||
}
|
||||
}
|
||||
|
||||
//#import "File";
|
||||
|
||||
DONE
|
||||
|
||||
SERIALIZE_ENTITY :: #string DONE
|
||||
|
||||
Reference in New Issue
Block a user