You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
30 lines
861 B
30 lines
861 B
using Godot; |
|
using System; |
|
|
|
namespace EGFramework.Examples.Test{ |
|
public partial class EGSaveTest : Node,IEGFramework |
|
{ |
|
public override void _Ready() |
|
{ |
|
base._Ready(); |
|
TestSqlite(); |
|
} |
|
|
|
public void TestSqlite(){ |
|
// string result = this.EGSqlite().CreateTable<SqliteBackpackItem>(); |
|
this.EGSqlite().SaveData(new SqliteBackpackItem{ |
|
ItemID = 10, |
|
ItemCount = 1, |
|
BackpackID = 1, |
|
}); |
|
GD.Print(this.EGSqlite().ExceptionMsg); |
|
// var properties = typeof(SqliteBackpackItem).GetFields(); |
|
// Godot.GD.Print(properties.Count() + " Readed "); |
|
} |
|
} |
|
public struct SqliteBackpackItem{ |
|
public int ItemID; |
|
public int ItemCount; |
|
public int BackpackID; |
|
} |
|
} |