/
NLObP
/
AAEmu
Обзор
Документация
Войти
/
NLObP
/
AAEmu
Код
Запросы
0
Задачи
Вики
Пакеты
0
Релизы
0
Аналитика
Безопасность
develop
AAEmu.Game/Scripts/Commands/DoodadCmd.cs
55 строк
2 KB
NLObP
[Scripts] changed the command to write Doodad to a file: (#1201)
24 фев 2025, 21:15
Не верифицирован
24 фев 2025, 21:15
cececa7
Код
Авторство
О чём код?
using System; using System.Collections.Generic; using AAEmu.Game.Core.Managers; using AAEmu.Game.Models.Game; using AAEmu.Game.Models.Game.Char; using AAEmu.Game.Scripts.SubCommands.Doodads; using AAEmu.Game.Utils.Scripts; using AAEmu.Game.Utils.Scripts.SubCommands; namespace AAEmu.Game.Scripts.Commands; public class DoodadCmd : SubCommandBase, ICommand { public string[] CommandNames { get; set; } = ["doodad"]; public DoodadCmd() { Title = "[Doodad]"; Description = "Root command to manage Doodads"; CallPrefix = $"{CommandManager.CommandPrefix}{CommandNames[0]}"; Register(new DoodadChainSubCommand(), "chain"); Register(new DoodadPhaseSubCommand(), "phase", "setphase"); Register(new DoodadSaveSubCommand(), "save"); Register(new DoodadPositionSubCommand(), "position", "pos"); Register(new DoodadSpawnSubCommand(), "spawn"); Register(new DoodadRemoveSubCommand(), "remove"); Register(new DoodadRemovesSubCommand(), "removes"); } public void OnLoad() { CommandManager.Instance.Register("doodad", this); } public DoodadCmd(Dictionary<ICommandV2, string[]> subcommands) : base(subcommands) { } public string GetCommandLineHelp() { return $"<{string.Join("||", SupportedCommands)}>"; } public string GetCommandHelpText() { return CallPrefix; } public void Execute(Character character, string[] args, IMessageOutput messageOutput) { throw new InvalidOperationException($"A {nameof(ICommandV2)} implementation should not be used as ICommand interface"); } }