working on inventory

This commit is contained in:
2025-07-11 14:40:23 +02:00
parent 0d69e37385
commit dc998d907c
81 changed files with 3468 additions and 231 deletions

View File

@@ -1,19 +1,30 @@
using RebootKit.Engine.Simulation;
using Unity.Netcode;
using UnityEngine;
using Logger = RebootKit.Engine.Foundation.Logger;
namespace RebootReality.jelycho.Items {
public class ItemActor : Actor {
public class ItemActor : Actor, IInteractable {
static readonly Logger s_Logger = new Logger(nameof(ItemActor));
class ItemActorData : IActorData {
public string ItemID;
public ItemConfig Config;
public void Serialize(FastBufferWriter writer) {
}
public void Deserialize(FastBufferReader reader) {
}
}
[field: SerializeField] public ItemConfig Config { get; private set; }
protected override IActorData CreateActorData() {
return new ItemActorData();
return new ItemActorData {
Config = Config
};
}
public void Interact() {
}
}
}