This repository was archived by the owner on Jun 9, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 6
Editing an already existing level
AlFas edited this page Sep 24, 2019
·
1 revision
Aside from directly editing a level's properties, to further edit a level, you might need to use the Editor class:
Level level = database.UserLevels[0];
Editor editor = new Editor(level);The database also contains some functions for that case:
// This will open the level at index 0 for editing and create an Editor instance out of the returned level
Editor editor = new Editor(database.OpenLevelForEditing(0));
// This will open the first level named "Unnamed 0" for editing and create an Editor instance out of the returned level
Editor editor0 = new Editor(database.OpenLevelForEditing("Unnamed 0"));