C# Class OpenMetaverse.Utilities.Realism

显示文件 Open project: Virtual-Universe/Virtual-LibOMV

Public Methods

Method Description
Chat ( GridClient client, string message ) : void

A psuedo-realistic chat function that uses the typing sound and animation, types at three characters per second, and randomly pauses. This function will block until the message has been sent

Chat ( GridClient client, string message, ChatType type, int cps ) : void

A psuedo-realistic chat function that uses the typing sound and animation, types at a given rate, and randomly pauses. This function will block until the message has been sent

Shoot ( GridClient client ) : bool

Enters mouselook, presses and releases the left mouse button, and leaves mouselook

Shoot ( GridClient client, System.Vector3 target ) : bool

Aims at the specified position, enters mouselook, presses and releases the left mouse button, and leaves mouselook

Method Details

Chat() public static method

A psuedo-realistic chat function that uses the typing sound and animation, types at three characters per second, and randomly pauses. This function will block until the message has been sent
public static Chat ( GridClient client, string message ) : void
client OpenMetaverse.GridClient A reference to the client that will chat
message string The chat message to send
return void

Chat() public static method

A psuedo-realistic chat function that uses the typing sound and animation, types at a given rate, and randomly pauses. This function will block until the message has been sent
public static Chat ( GridClient client, string message, ChatType type, int cps ) : void
client OpenMetaverse.GridClient A reference to the client that will chat
message string The chat message to send
type ChatType The chat type (usually Normal, Whisper or Shout)
cps int Characters per second rate for chatting
return void

Shoot() public static method

Enters mouselook, presses and releases the left mouse button, and leaves mouselook
public static Shoot ( GridClient client ) : bool
client OpenMetaverse.GridClient
return bool

Shoot() public static method

Aims at the specified position, enters mouselook, presses and releases the left mouse button, and leaves mouselook
public static Shoot ( GridClient client, System.Vector3 target ) : bool
client OpenMetaverse.GridClient
target System.Vector3 Target to shoot at
return bool