ddon-server/Arrowgene.Ddon.GameServer/Scripting/Interfaces/IChatCommand.cs
Paul Campbell bc2f21ea36 feat: Scripted Chat Commands
- Created a new scripting module to handle chat commands.
- Migrated all existing chat commands to scripted chat commands.
- Updated the help command to only list commands which fall within the
  AccountState limitations.
- Updated many chat commands to have an account state of type Admin.
- Added a new settings file ChatCommands.csx.
- Support hotloading of modifying or adding new chat commands.
2025-01-02 17:23:05 -05:00

14 lines
534 B
C#

using Arrowgene.Ddon.Database.Model;
using Arrowgene.Ddon.GameServer.Chat;
using System.Collections.Generic;
namespace Arrowgene.Ddon.GameServer.Scripting.Interfaces
{
public abstract class IChatCommand
{
public virtual AccountStateType AccountState { get; }
public abstract string CommandName { get; }
public abstract string HelpText { get; }
public abstract void Execute(DdonGameServer server, string[] command, GameClient client, ChatMessage message, List<ChatResponse> responses);
}
}