Files
libremetaverse/libsecondlife-cs/examples/TestClient/Commands/QuitCommand.cs

30 lines
700 B
C#
Raw Normal View History

using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;
using libsecondlife.Packets;
namespace libsecondlife.TestClient
{
public class QuitCommand: Command
{
SecondLife Client;
public QuitCommand(TestClient testClient)
{
TestClient = testClient;
Client = (SecondLife)TestClient;
Name = "quit";
Description = "Log all avatars out and shut down";
}
public override string Execute(string[] args, LLUUID fromAgentID)
{
TestClient.ClientManager.LogoutAll();
TestClient.ClientManager.Running = false;
return "All avatars logged out";
}
}
}