namespace NewMoon.Samples.NPC;
///
/// An example gamemode that registers one custom NPC entity, npc_bot_newmoon, which fronts base_boss.
///
[GameMode("Custom NPC Sample", "custom-npc-sample", Description = "Registers a custom NPC entity as an example.")]
public sealed partial class CustomNpcSample : FGamePlugin
{
///
protected override void OnPluginStart()
{
// The logger is set first: adoption inside the registration can raise OnSpawn for NPCs that already exist.
NPCBotNewMoon.Log = PLogger;
PLogger.LogRegistered(RegisterCustomEntities(NewMoon.Generated.CustomEntityTable.All));
}
///
protected override void OnPluginEnd() => PLogger.LogEnded();
}