Adds WorldEntitySnapshot, IGameState, IEvents abstractions; WorldEvents implements replay-on-subscribe with per-handler exception swallowing; WorldGameState tracks entities; AppPluginHost exposes all three; stubs wired in Program.cs to keep build green ahead of Task 9 live wiring. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
17 lines
388 B
C#
17 lines
388 B
C#
using AcDream.Plugin.Abstractions;
|
|
|
|
namespace AcDream.App.Plugins;
|
|
|
|
public sealed class AppPluginHost : IPluginHost
|
|
{
|
|
public AppPluginHost(IPluginLogger log, IGameState state, IEvents events)
|
|
{
|
|
Log = log;
|
|
State = state;
|
|
Events = events;
|
|
}
|
|
|
|
public IPluginLogger Log { get; }
|
|
public IGameState State { get; }
|
|
public IEvents Events { get; }
|
|
}
|