working on inventory
This commit is contained in:
@@ -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() {
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user