From 5b6afeafbc249ba88dcc20d1fbc98ce12418b21b Mon Sep 17 00:00:00 2001 From: gareth Date: Tue, 8 May 2007 00:10:04 +0000 Subject: Brought in TestClient code for teh fork --- ExportBot/Commands/AppearanceCommand.cs | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 ExportBot/Commands/AppearanceCommand.cs (limited to 'ExportBot/Commands/AppearanceCommand.cs') diff --git a/ExportBot/Commands/AppearanceCommand.cs b/ExportBot/Commands/AppearanceCommand.cs new file mode 100644 index 0000000..6f003a7 --- /dev/null +++ b/ExportBot/Commands/AppearanceCommand.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Text; +using libsecondlife; +using libsecondlife.Packets; + +namespace libsecondlife.TestClient +{ + public class AppearanceCommand : Command + { + Utilities.Assets.AssetManager Assets; + Utilities.Appearance.AppearanceManager Appearance; + + public AppearanceCommand(TestClient testClient) + { + Name = "appearance"; + Description = "Set your current appearance to your last saved appearance"; + + Assets = new libsecondlife.Utilities.Assets.AssetManager(testClient); + Appearance = new libsecondlife.Utilities.Appearance.AppearanceManager(testClient, Assets); + } + + public override string Execute(string[] args, LLUUID fromAgentID) + { + Appearance.SetPreviousAppearance(); + return "Done."; + } + } +} -- cgit v1.1