2006-12-05 03:52:59 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using libsecondlife;
|
|
|
|
|
using libsecondlife.Packets;
|
|
|
|
|
using libsecondlife.AssetSystem;
|
|
|
|
|
|
|
|
|
|
namespace libsecondlife.TestClient
|
|
|
|
|
{
|
|
|
|
|
public class SetAppearanceCommand : Command
|
|
|
|
|
{
|
2006-12-21 08:53:08 +00:00
|
|
|
SecondLife Client;
|
2006-12-05 03:52:59 +00:00
|
|
|
AppearanceManager aManager;
|
|
|
|
|
|
2006-12-21 08:53:08 +00:00
|
|
|
public SetAppearanceCommand(TestClient testClient)
|
2006-12-05 03:52:59 +00:00
|
|
|
{
|
2006-12-21 08:53:08 +00:00
|
|
|
TestClient = testClient;
|
|
|
|
|
Client = (SecondLife)TestClient;
|
|
|
|
|
|
2006-12-05 03:52:59 +00:00
|
|
|
Name = "setapp";
|
|
|
|
|
Description = "Set appearance to what's stored in the DB.";
|
|
|
|
|
}
|
|
|
|
|
|
2006-12-21 08:53:08 +00:00
|
|
|
public override string Execute(string[] args, LLUUID fromAgentID)
|
2006-12-05 03:52:59 +00:00
|
|
|
{
|
|
|
|
|
if (aManager == null)
|
|
|
|
|
aManager = new AppearanceManager(Client);
|
|
|
|
|
|
|
|
|
|
aManager.SendAgentSetAppearance();
|
|
|
|
|
return "Done.";
|
|
|
|
|
}
|
|
|
|
|
}
|
2006-12-19 04:16:34 +00:00
|
|
|
}
|