* Added FindSimCommand to TestClient that searches for a simulator name and returns the region handle and X/Y coords * Added CloneProfileCommand to TestClient that demos the avatar profile commands in libsl git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@766 52acb1d6-8a22-11de-b505-999d5b087335
27 lines
602 B
C#
27 lines
602 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using libsecondlife;
|
|
using libsecondlife.Packets;
|
|
|
|
namespace libsecondlife.TestClient
|
|
{
|
|
public class BalanceCommand: Command
|
|
{
|
|
SecondLife Client;
|
|
|
|
public BalanceCommand(TestClient testClient)
|
|
{
|
|
TestClient = testClient;
|
|
Client = (SecondLife)TestClient;
|
|
|
|
Name = "balance";
|
|
Description = "Shows the amount of L$.";
|
|
}
|
|
|
|
public override string Execute(string[] args, LLUUID fromAgentID)
|
|
{
|
|
return Client.ToString() + " has L$: " + Client.Self.Balance;
|
|
}
|
|
}
|
|
}
|