From 654fe441cd06e0f576040574c4e1a84e9337d792 Mon Sep 17 00:00:00 2001 From: Madpeter Date: Wed, 29 Jul 2020 14:19:10 +0100 Subject: [PATCH] new command resetAnimations, moves AddToAllowAnimations to Animation namespace. --- Core/Commands/{Self => Animation}/addToAnimations.cs | 2 +- Core/Commands/Animation/resetAnimations.cs | 12 ++++++++++++ 2 files changed, 13 insertions(+), 1 deletion(-) rename Core/Commands/{Self => Animation}/addToAnimations.cs (95%) create mode 100644 Core/Commands/Animation/resetAnimations.cs diff --git a/Core/Commands/Self/addToAnimations.cs b/Core/Commands/Animation/addToAnimations.cs similarity index 95% rename from Core/Commands/Self/addToAnimations.cs rename to Core/Commands/Animation/addToAnimations.cs index 6b865a7..316198c 100644 --- a/Core/Commands/Self/addToAnimations.cs +++ b/Core/Commands/Animation/addToAnimations.cs @@ -1,4 +1,4 @@ -namespace BSB.Commands.Self +namespace BSB.Commands.Animation { public class AddToAllowAnimations : CoreCommand_1arg { diff --git a/Core/Commands/Animation/resetAnimations.cs b/Core/Commands/Animation/resetAnimations.cs new file mode 100644 index 0000000..ee17a70 --- /dev/null +++ b/Core/Commands/Animation/resetAnimations.cs @@ -0,0 +1,12 @@ +namespace BSB.Commands.Animation +{ + public class ResetAnimations : CoreCommand + { + public override string Helpfile { get { return "Resets the animation stack for the bot"; } } + public override bool CallFunction(string[] args) + { + bot.ResetAnimations(); + return true; + } + } +}