add: Patchable items and frames
This commit is contained in:
@@ -1,18 +1,18 @@
|
||||
using Godot;
|
||||
using Polonium.Interfaces;
|
||||
using Polonium.MessageManager;
|
||||
using Polonium.Resources;
|
||||
using Polonium.Resources.FramePatches;
|
||||
|
||||
namespace Polonium.Agents;
|
||||
|
||||
public abstract partial class Knowledge : Node, IMessageClient
|
||||
{
|
||||
public abstract void UpdateKnowledge(KnowledgePatch update);
|
||||
public abstract void UpdateKnowledge(FramePatch update);
|
||||
|
||||
public string PostCode { get; set; }
|
||||
public virtual void ReceiveMessage(PoloniumMessage msg)
|
||||
{
|
||||
if(msg is KnowledgePatch update)
|
||||
if(msg is FramePatch update)
|
||||
UpdateKnowledge(update);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user