2006-11-22 00:09:31 +00:00
|
|
|
using System;
|
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using libsecondlife;
|
|
|
|
|
using libsecondlife.Packets;
|
|
|
|
|
|
2006-11-24 22:27:15 +00:00
|
|
|
namespace libsecondlife.TestClient
|
2006-11-22 00:09:31 +00:00
|
|
|
{
|
|
|
|
|
public abstract class Command
|
|
|
|
|
{
|
|
|
|
|
public string Name;
|
|
|
|
|
public string Description;
|
2006-11-24 22:27:15 +00:00
|
|
|
public TestClient TestClient;
|
2006-11-22 00:09:31 +00:00
|
|
|
|
2006-11-29 09:18:34 +00:00
|
|
|
public abstract string Execute(SecondLife client, string[] args, LLUUID fromAgentID);
|
2006-11-24 22:15:13 +00:00
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// When set to true, think will be called.
|
|
|
|
|
/// </summary>
|
|
|
|
|
public bool Active;
|
|
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
/// Called twice per second, when Command.Active is set to true.
|
|
|
|
|
/// </summary>
|
2006-11-28 07:48:43 +00:00
|
|
|
public virtual void Think(SecondLife Client)
|
2006-11-24 22:15:13 +00:00
|
|
|
{
|
|
|
|
|
}
|
2006-11-22 00:09:31 +00:00
|
|
|
}
|
|
|
|
|
}
|