Browse Source

fixed update

master
jkpete 9 months ago
parent
commit
b41e6e989b
  1. 2
      Example/SystemExamples/PlayerStorage/Script/ViewStorage.cs
  2. 2
      Example/UsingTest/Script/EGSaveTest.cs

2
Example/SystemExamples/PlayerStorage/Script/ViewStorage.cs

@ -8,8 +8,6 @@ public partial class ViewStorage : Node,IEGFramework
public override void _Ready() public override void _Ready()
{ {
// this.GetModule<EGByteSave>().SaveToFile("nihao"); // this.GetModule<EGByteSave>().SaveToFile("nihao");
Variant result = this.GetModule<EGByteSave>().LoadFromFile();
GD.Print(result);
} }
// Called every frame. 'delta' is the elapsed time since the previous frame. // Called every frame. 'delta' is the elapsed time since the previous frame.

2
Example/UsingTest/Script/EGSaveTest.cs

@ -30,7 +30,7 @@ namespace EGFramework.Examples.Test{
public void TestLiteDB(){ public void TestLiteDB(){
// 打开数据库 (如果不存在自动创建) // 打开数据库 (如果不存在自动创建)
using(var db = new LiteDatabase("SaveData/MyData.db")) using(var db = new LiteDatabase("SaveData/DefaultLiteDBData.db"))
{ {
// 获取一个集合 (如果不存在创建) // 获取一个集合 (如果不存在创建)
LiteCollection<Customer> col = (LiteCollection<Customer>)db.GetCollection<Customer>("customers"); LiteCollection<Customer> col = (LiteCollection<Customer>)db.GetCollection<Customer>("customers");

Loading…
Cancel
Save