I think this would be helpful for data being structured properly in the game directory.
NPC data? save_data($data, "npc/<npc_name>");
Player data? save_data($data, "player/" + player.name);
Object data? save_data($data, "object/barrel");
Map data? save_data($data, "map/" + map.name);
Instead we're limited to just the root directory, and the only function that creates a subdirectory is save_game()
, which is saves
.