Files
libremetaverse/libsecondlife-cs/examples/TestTool/Command.cs
lonecoder 84ff554cbb TestTool:
Fixed Follow Command
Added Who Command
Added Think method that gets called once per second on active commands so that Follow could be properly implemented.


git-svn-id: http://libopenmetaverse.googlecode.com/svn/trunk@624 52acb1d6-8a22-11de-b505-999d5b087335
2006-11-24 22:15:13 +00:00

36 lines
698 B
C#

using System;
using System.Collections.Generic;
using System.Text;
using libsecondlife;
using libsecondlife.Packets;
namespace libsecondlife.TestTool
{
public abstract class Command
{
public string Name;
public string Description;
public TestTool TestTool;
public SecondLife Client
{
get { return TestTool.Client; }
}
public abstract string Execute(string[] args, LLUUID fromAgentID);
/// <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>
public virtual void Think()
{
}
}
}