Basics
This commit is contained in:
parent
c8956dc38b
commit
0e9e17cfdc
20 changed files with 267 additions and 1 deletions
18
addons/pvzadventure/scripts/AdventureEditor.cs
Normal file
18
addons/pvzadventure/scripts/AdventureEditor.cs
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
using Godot;
|
||||
|
||||
[Tool]
|
||||
public partial class AdventureEditor : MarginContainer
|
||||
{
|
||||
public AdventureLevelResource editedResource;
|
||||
public string editedPath;
|
||||
|
||||
public void Reload()
|
||||
{
|
||||
editedResource = ResourceLoader.Load<AdventureLevelResource>(editedPath);
|
||||
}
|
||||
|
||||
public void Save()
|
||||
{
|
||||
ResourceSaver.Save(editedResource, editedPath);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue