First adjustments to the Entity System to make it work with different types
This commit is contained in:
@@ -7,7 +7,7 @@ using Newtonsoft.Json.Linq;
|
||||
|
||||
namespace Babushka.scripts.CSharp.Common.Inventory;
|
||||
|
||||
public partial class ItemOnGround2D : PositionalEntity
|
||||
public partial class ItemOnGround2D : Node2D
|
||||
{
|
||||
private ItemInstance _itemInstance;
|
||||
|
||||
@@ -74,6 +74,7 @@ public partial class ItemOnGround2D : PositionalEntity
|
||||
}
|
||||
}
|
||||
|
||||
/*
|
||||
protected override void LoadEntity(JObject json)
|
||||
{
|
||||
base.LoadEntity(json);
|
||||
@@ -85,6 +86,7 @@ public partial class ItemOnGround2D : PositionalEntity
|
||||
base.SaveEntity(json);
|
||||
json["item"] = _itemInstance.SaveToJson();
|
||||
}
|
||||
*/
|
||||
|
||||
// old save
|
||||
/*
|
||||
|
||||
Reference in New Issue
Block a user