add: Patchable items and frames

This commit is contained in:
h z
2025-03-04 11:58:14 +00:00
parent 684763f0cc
commit 93fbe0869b
18 changed files with 163 additions and 26 deletions

View File

@@ -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);
}