mirror of
https://github.com/sebastian-heinz/Arrowgene.DragonsDogmaOnline
synced 2026-08-03 11:12:41 -04:00
- 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.
14 lines
534 B
C#
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);
|
|
}
|
|
}
|