本文整理汇总了C#中libsecondlife.TestClient.TestClient类的典型用法代码示例。如果您正苦于以下问题:C# TestClient类的具体用法?C# TestClient怎么用?C# TestClient使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
TestClient类属于libsecondlife.TestClient命名空间,在下文中一共展示了TestClient类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ImCommand
public ImCommand(TestClient testClient)
{
testClient.Avatars.OnAvatarNameSearch += new AvatarManager.AvatarNameSearchCallback(Avatars_OnAvatarNameSearch);
Name = "im";
Description = "Instant message someone. Usage: im [firstname] [lastname] [message]";
}
示例2: DetectBotCommand
public DetectBotCommand(TestClient testClient)
{
Name = "detectbot";
Description = "Runs in the background, reporting any potential bots";
testClient.Avatars.OnAvatarAppearance += new AvatarManager.AvatarAppearanceCallback(Avatars_OnAvatarAppearance);
}
示例3: ParcelVoiceInfoCommand
public ParcelVoiceInfoCommand(TestClient testClient)
{
Name = "voiceparcel";
Description = "obtain parcel voice info. Usage: voiceparcel";
Client = testClient;
}
示例4: FriendsCommand
/// <summary>
/// Constructor for FriendsCommand class
/// </summary>
/// <param name="testClient">A reference to the TestClient object</param>
public FriendsCommand(TestClient testClient)
{
// The name of the command
Name = "friends";
// A short description of the command with usage instructions
Description = "List avatar friends. Usage: friends";
}
示例5: DetectBotCommand
public DetectBotCommand(TestClient testClient)
{
Name = "detectbot";
Description = "Runs in the background, reporting any potential bots";
testClient.Network.RegisterCallback(PacketType.AvatarAppearance, new NetworkManager.PacketCallback(AvatarAppearanceHandler));
}
示例6: ImportCommand
public ImportCommand(TestClient testClient)
{
Name = "import";
Description = "Import prims from an exported xml file. Usage: import inputfile.xml";
primDone = new AutoResetEvent(false);
registeredCreateEvent = false;
}
示例7: VoiceAccountCommand
public VoiceAccountCommand(TestClient testClient)
{
Name = "voiceaccount";
Description = "obtain voice account info. Usage: voiceaccount";
Client = testClient;
}
示例8: GridLayerCommand
public GridLayerCommand(TestClient testClient)
{
Name = "gridlayer";
Description = "Downloads all of the layer chunks for the grid object map";
testClient.Grid.OnGridLayer += new GridManager.GridLayerCallback(Grid_OnGridLayer);
}
示例9: ParcelInfoCommand
public ParcelInfoCommand(TestClient testClient)
{
Name = "parcelinfo";
Description = "Prints out info about all the parcels in this simulator";
testClient.Network.OnDisconnected += new NetworkManager.DisconnectedCallback(Network_OnDisconnected);
}
示例10: FollowCommand
public FollowCommand(TestClient testClient)
{
Name = "follow";
Description = "Follow another avatar. (usage: follow [FirstName LastName]) If no target is set then will follow master.";
testClient.Network.RegisterCallback(PacketType.AlertMessage, new NetworkManager.PacketCallback(AlertMessageHandler));
}
示例11: GroupsCommand
public GroupsCommand(TestClient testClient)
{
testClient.Groups.OnCurrentGroups += new GroupManager.CurrentGroupsCallback(Groups_OnCurrentGroups);
Name = "groups";
Description = "List avatar groups. Usage: groups";
}
示例12: ChangePermsCommand
public ChangePermsCommand(TestClient testClient)
{
testClient.Objects.OnObjectProperties += new ObjectManager.ObjectPropertiesCallback(Objects_OnObjectProperties);
Name = "changeperms";
Description = "Recursively changes all of the permissions for child and task inventory objects. Usage prim-uuid [copy] [mod] [xfer]";
}
示例13: ImportCommand
public ImportCommand(TestClient testClient)
{
Name = "import";
Description = "Import prims from an exported xml file. Usage: import inputfile.xml [usegroup]";
testClient.Objects.OnNewPrim += new ObjectManager.NewPrimCallback(Objects_OnNewPrim);
}
示例14: PacketLogCommand
public PacketLogCommand(TestClient testClient)
{
TestClient = testClient;
Client = (SecondLife)TestClient;
Name = "packetlog";
Description = "Logs a given number of packets to an xml file. Usage: packetlog 10 tenpackets.xml";
}
示例15: SitCommand
public SitCommand(TestClient testClient)
{
TestClient = testClient;
Client = (SecondLife)TestClient;
Name = "sit";
Description = "Attempt to sit on the closest prim";
}