aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/ExportBot/Commands/AppearanceCommand.cs
blob: 6f003a74a4754489417eb5d403298c20017a0ca3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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.";
        }
    }
}