Save and Load script data from files

This commit is contained in:
Simon Lübeß
2024-01-07 18:35:33 +01:00
parent a302a26f80
commit bfc9d4a0a5
12 changed files with 994 additions and 224 deletions
+11
View File
@@ -51,6 +51,17 @@ public class Entity : EngineObject
Create(name, components);
}
protected void PrintDecimal(decimal value)
{
ScriptGlue.Print_Decimal(value);
}
protected decimal GetDecimal(string value)
{
ScriptGlue.Get_Decimal(value, out var dec);
return dec;
}
private void Create(string name, Type[] components)
{
ScriptGlue.Entity_Create(this, name, components, out _uuid);