C# Class OpenMetaverse.AgentManager

ファイルを表示 Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Public Properties

Property Type Description
Client GridClient
GroupChatSessions List>.InternalDictionary
Movement AgentMovement
SignaledAnimations int>.InternalDictionary

Public Methods

Method Description
AgentManager ( GridClient client ) : System

Constructor, setup callbacks for packets related to our avatar

Animate ( bool>.Dictionary animations, bool reliable ) : void

Send an AgentAnimation packet that will toggle animations on or off

AnimationStart ( UUID animation, bool reliable ) : void

Send an AgentAnimation packet that toggles a single animation on

AnimationStop ( UUID animation, bool reliable ) : void

Send an AgentAnimation packet that toggles a single animation off

AutoPilot ( double globalX, double globalY, double z ) : void

Use the autopilot sim function to move the avatar to a new position. Uses double precision to get precise movements

The z value is currently not handled properly by the simulator

AutoPilot ( ulong globalX, ulong globalY, float z ) : void

Use the autopilot sim function to move the avatar to a new position

The z value is currently not handled properly by the simulator

AutoPilotCancel ( ) : bool

Macro to cancel autopilot sim function

Not certain if this is how it is really done

AutoPilotLocal ( int localX, int localY, float z ) : void

Use the autopilot sim function to move the avatar to a new position

The z value is currently not handled properly by the simulator

BeamEffect ( UUID sourceAvatar, UUID targetObject, Vector3d globalOffset, Color4 color, float duration, UUID effectID ) : void

Create a particle beam between an avatar and an primitive

Chat ( string message, int channel, ChatType type ) : void

Send a chat message

CompleteAgentMovement ( Simulator simulator ) : void

Move an agent in to a simulator. This packet is the last packet needed to complete the transition in to a new simulator

Crouch ( bool crouching ) : void

Starts or stops crouching

DeGrab ( uint objectLocalID ) : void

Releases a grabbed object

Fly ( bool start ) : void

Starts or stops flying

GiveAvatarMoney ( UUID target, int amount ) : void

Give Money to destination Avatar

GiveAvatarMoney ( UUID target, int amount, string description ) : void

Give Money to destination Avatar

GiveGroupMoney ( UUID target, int amount ) : void

Give L$ to a group

GiveGroupMoney ( UUID target, int amount, string description ) : void

Give L$ to a group

GiveMoney ( UUID target, int amount, string description, MoneyTransactionType type, TransactionFlags flags ) : void

Give Money to destionation Object or Avatar

GiveObjectMoney ( UUID target, int amount, string objectName ) : void

Give L$ to an object

GoHome ( ) : bool

Teleports agent to their stored home location

Grab ( uint objectLocalID ) : void

Grabs an object

GrabUpdate ( UUID objectID, System.Vector3 grabPosition ) : void

Drags an object

GroupInviteRespond ( UUID groupID, UUID imSessionID, bool accept ) : void

Respond to a group invitation by either accepting or denying it

InstantMessage ( UUID target, string message ) : void

Send an Instant Message

InstantMessage ( UUID target, string message, UUID imSessionID ) : void

Send an Instant Message

InstantMessage ( string fromName, UUID target, string message, UUID imSessionID, InstantMessageDialog dialog, InstantMessageOnline offline, System.Vector3 position, UUID regionID, byte binaryBucket ) : void

Send an Instant Message

InstantMessage ( string fromName, UUID target, string message, UUID imSessionID, UUID conferenceIDs ) : void

Send an Instant Message

InstantMessageGroup ( UUID groupID, string message ) : void

Send an Instant Message to a group

InstantMessageGroup ( string fromName, UUID groupID, string message ) : void

Send an Instant Message to a group

This does not appear to function with groups the agent is not in

Jump ( bool jumping ) : void

Starts a jump (begin holding the jump key)

LookAtEffect ( UUID sourceAvatar, UUID targetObject, Vector3d globalOffset, LookAtType type, UUID effectID ) : void

Start a particle stream between an agent and an object

ModerateChatSessions ( UUID sessionID, UUID memberID, bool moderateText ) : void

Moderate a chat session

PayUploadFee ( ) : void

Pay texture/animation upload fee

PayUploadFee ( string description ) : void

Pay texture/animation upload fee

PickDelete ( UUID pickID ) : void

Delete profile pick

PickInfoUpdate ( UUID pickID, bool topPick, UUID parcelID, string name, Vector3d globalPosition, UUID textureID, string description ) : void

Create or update profile pick

PointAtEffect ( UUID sourceAvatar, UUID targetObject, Vector3d globalOffset, PointAtType type, UUID effectID ) : void

Start a particle stream between an agent and an object

ReplyToScriptDialog ( int channel, int buttonIndex, string buttonlabel, UUID objectID ) : void

Reply to script dialog questions.

RequestBalance ( ) : void

Request the current L$ balance

RequestJoinGroupChat ( UUID groupID ) : void

Send a request to join a group chat session

RequestLeaveGroupChat ( UUID groupID ) : void

Request self terminates group chat. This will stop Group IM's from showing up until session is rejoined or expires.

RequestMuteList ( ) : void

Request the list of muted objects and avatars for this agent

RequestScriptSensor ( string name, UUID searchID, ScriptSensorTypeFlags type, float range, float arc, UUID requestID, Simulator sim ) : void

Requests script detection of objects and avatars

RequestSit ( UUID targetID, System.Vector3 offset ) : void

Sends a request to sit on the specified object

RequestTeleport ( UUID landmark ) : void

Teleport agent to a landmark

RequestTeleport ( ulong regionHandle, System.Vector3 position ) : void

Request teleport to a another simulator

RequestTeleport ( ulong regionHandle, System.Vector3 position, System.Vector3 lookAt ) : void

Request teleport to a another simulator

RetrieveInstantMessages ( ) : void

Requests missed/offline messages

ScriptQuestionReply ( Simulator simulator, UUID itemID, UUID taskID, ScriptPermission permissions ) : void

Reply to script permissions request

SendTeleportLure ( UUID targetID ) : void

Send a teleport lure to another avatar with default "Join me in ..." invitation message

SendTeleportLure ( UUID targetID, string message ) : void

Send a teleport lure to another avatar with custom invitation message

SetHeightWidth ( ushort height, ushort width ) : void

Set the height and the width of the client window. This is used by the server to build a virtual camera frustum for our avatar

SetHome ( ) : void

Sets home location to agents current position

will fire an AlertMessage (E:OpenMetaverse.AgentManager.OnAlertMessage) with success or failure message

Sit ( ) : void

Follows a call to RequestSit to actually sit on the object

SitOnGround ( ) : void

Does a "ground sit" at the avatar's current position

Stand ( ) : bool

Stands up from sitting on a prim or the ground

Teleport ( UUID landmark ) : bool

Teleport agent to a landmark

Teleport ( string simName, System.Vector3 position ) : bool

Attempt to look up a simulator name and teleport to the discovered destination

Teleport ( string simName, System.Vector3 position, System.Vector3 lookAt ) : bool

Attempt to look up a simulator name and teleport to the discovered destination

Teleport ( ulong regionHandle, System.Vector3 position ) : bool

Teleport agent to another region

This call is blocking

Teleport ( ulong regionHandle, System.Vector3 position, System.Vector3 lookAt ) : bool

Teleport agent to another region

This call is blocking

TeleportLureRespond ( UUID requesterID, bool accept ) : void

Respond to a teleport lure by either accepting it and initiating the teleport, or denying it

Touch ( uint objectLocalID ) : void

Touches an object

UpdateInterests ( Avatar interests ) : void

Update agents profile interests

UpdateProfile ( Avatar profile ) : void

Update agent profile

VoiceEffect ( float volumeLevel ) : void

Private Methods

Method Description
AgentDataUpdateHandler ( Packet packet, Simulator simulator ) : void
AlertMessageHandler ( Packet packet, Simulator simulator ) : void

Alert Message packet handler

AvatarAnimationHandler ( Packet packet, Simulator sim ) : void

AvatarSitResponseHandler ( Packet packet, Simulator simulator ) : void

Packet handler for AvatarSitResponse packet

BalanceHandler ( Packet packet, Simulator simulator ) : void

Update Client Avatar's L$ balance from incoming packet

CameraConstraintHandler ( Packet packet, Simulator simulator ) : void

detects camera constraint collisions

ChatHandler ( Packet packet, Simulator simulator ) : void

Take an incoming Chat packet, auto-parse, and if OnChat is defined call that with the appropriate arguments.

ChatterBoxInvitationHandler ( string capsKey, OSD osd, Simulator simulator ) : void

Group Chat Request

ChatterBoxSessionAgentListReplyHandler ( string capsKey, OSD osd, Simulator simulator ) : void

Someone joined or left group chat

ChatterBoxSessionEventHandler ( string capsKey, OSD osd, Simulator simulator ) : void

Group Chat event handler

ChatterBoxSessionStartReplyHandler ( string capsKey, OSD osd, Simulator simulator ) : void

Response from request to join a group chat

CrossedRegionHandler ( Packet packet, Simulator sim ) : void

Allows agent to cross over (walk, fly, vehicle) in to neighboring simulators

EstablishAgentCommunicationEventHandler ( string message, OSD osd, Simulator simulator ) : void
HealthHandler ( Packet packet, Simulator simulator ) : void

Update Client Avatar's health via incoming packet

InstantMessageHandler ( Packet packet, Simulator simulator ) : void

Take an incoming ImprovedInstantMessage packet, auto-parse, and if OnInstantMessage is defined call that with the appropriate arguments

LoadURLHandler ( Packet packet, Simulator simulator ) : void

Used for parsing llLoadURL Dialogs

MeanCollisionAlertHandler ( Packet packet, Simulator sim ) : void
MovementCompleteHandler ( Packet packet, Simulator simulator ) : void

Update client's Position, LookAt and region handle from incoming packet

This occurs when after an avatar moves into a new sim

Network_OnDisconnected ( NetworkManager reason, string message ) : void
Network_OnLoginResponse ( bool loginSuccess, bool redirect, string message, string reason, LoginResponseData reply ) : void
ScriptControlChangeHandler ( Packet packet, Simulator simulator ) : void

Handles Script Control changes when Script with permissions releases or takes a control

ScriptDialogHandler ( Packet packet, Simulator simulator ) : void

Used for parsing llDialogs

ScriptQuestionHandler ( Packet packet, Simulator simulator ) : void

Used for parsing llRequestPermissions dialogs

ScriptSensorReplyHandler ( Packet packet, Simulator simulator ) : void

Packet handler for ScriptSensorReply packet

TeleportFinishEventHandler ( string message, OSD osd, Simulator simulator ) : void

Process TeleportFinish from Event Queue and pass it onto our TeleportHandler

TeleportHandler ( Packet packet, Simulator simulator ) : void

Handler for teleport Requests

Method Details

AgentManager() public method

Constructor, setup callbacks for packets related to our avatar
public AgentManager ( GridClient client ) : System
client GridClient A reference to the Class
return System

Animate() public method

Send an AgentAnimation packet that will toggle animations on or off
public Animate ( bool>.Dictionary animations, bool reliable ) : void
animations bool>.Dictionary A list of animation s, and whether to /// turn that animation on or off
reliable bool Whether to ensure delivery of this packet or not
return void

AnimationStart() public method

Send an AgentAnimation packet that toggles a single animation on
public AnimationStart ( UUID animation, bool reliable ) : void
animation UUID The of the animation to start playing
reliable bool Whether to ensure delivery of this packet or not
return void

AnimationStop() public method

Send an AgentAnimation packet that toggles a single animation off
public AnimationStop ( UUID animation, bool reliable ) : void
animation UUID The of a /// currently playing animation to stop playing
reliable bool Whether to ensure delivery of this packet or not
return void

AutoPilot() public method

Use the autopilot sim function to move the avatar to a new position. Uses double precision to get precise movements
The z value is currently not handled properly by the simulator
public AutoPilot ( double globalX, double globalY, double z ) : void
globalX double Global X coordinate to move to
globalY double Global Y coordinate to move to
z double Z coordinate to move to
return void

AutoPilot() public method

Use the autopilot sim function to move the avatar to a new position
The z value is currently not handled properly by the simulator
public AutoPilot ( ulong globalX, ulong globalY, float z ) : void
globalX ulong Integer value for the global X coordinate to move to
globalY ulong Integer value for the global Y coordinate to move to
z float Floating-point value for the Z coordinate to move to
return void

AutoPilotCancel() public method

Macro to cancel autopilot sim function
Not certain if this is how it is really done
public AutoPilotCancel ( ) : bool
return bool

AutoPilotLocal() public method

Use the autopilot sim function to move the avatar to a new position
The z value is currently not handled properly by the simulator
public AutoPilotLocal ( int localX, int localY, float z ) : void
localX int Integer value for the local X coordinate to move to
localY int Integer value for the local Y coordinate to move to
z float Floating-point value for the Z coordinate to move to
return void

BeamEffect() public method

Create a particle beam between an avatar and an primitive
public BeamEffect ( UUID sourceAvatar, UUID targetObject, Vector3d globalOffset, Color4 color, float duration, UUID effectID ) : void
sourceAvatar UUID of sources avatar
targetObject UUID of the target
globalOffset Vector3d global offset
color Color4 Color values of beam
duration float a float representing the duration the beam will last
effectID UUID of the Effect
return void

Chat() public method

Send a chat message
public Chat ( string message, int channel, ChatType type ) : void
message string The Message you're sending out.
channel int Channel number (0 would be default 'Say' message, other numbers /// denote the equivalent of /# in normal client).
type ChatType Chat Type, see above.
return void

CompleteAgentMovement() public method

Move an agent in to a simulator. This packet is the last packet needed to complete the transition in to a new simulator
public CompleteAgentMovement ( Simulator simulator ) : void
simulator Simulator Object
return void

Crouch() public method

Starts or stops crouching
public Crouch ( bool crouching ) : void
crouching bool True to start crouching, false to stop crouching
return void

DeGrab() public method

Releases a grabbed object
public DeGrab ( uint objectLocalID ) : void
objectLocalID uint The Objects Simulator Local ID
return void

Fly() public method

Starts or stops flying
public Fly ( bool start ) : void
start bool True to start flying, false to stop flying
return void

GiveAvatarMoney() public method

Give Money to destination Avatar
public GiveAvatarMoney ( UUID target, int amount ) : void
target UUID UUID of the Target Avatar
amount int Amount in L$
return void

GiveAvatarMoney() public method

Give Money to destination Avatar
public GiveAvatarMoney ( UUID target, int amount, string description ) : void
target UUID UUID of the Target Avatar
amount int Amount in L$
description string Description that will show up in the /// recipients transaction history
return void

GiveGroupMoney() public method

Give L$ to a group
public GiveGroupMoney ( UUID target, int amount ) : void
target UUID group to give money to
amount int amount of L$ to give
return void

GiveGroupMoney() public method

Give L$ to a group
public GiveGroupMoney ( UUID target, int amount, string description ) : void
target UUID group to give money to
amount int amount of L$ to give
description string description of transaction
return void

GiveMoney() public method

Give Money to destionation Object or Avatar
public GiveMoney ( UUID target, int amount, string description, MoneyTransactionType type, TransactionFlags flags ) : void
target UUID UUID of the Target Object/Avatar
amount int Amount in L$
description string Reason (Optional normally)
type MoneyTransactionType The type of transaction
flags TransactionFlags Transaction flags, mostly for identifying group /// transactions
return void

GiveObjectMoney() public method

Give L$ to an object
public GiveObjectMoney ( UUID target, int amount, string objectName ) : void
target UUID object to give money to
amount int amount of L$ to give
objectName string name of object
return void

GoHome() public method

Teleports agent to their stored home location
public GoHome ( ) : bool
return bool

Grab() public method

Grabs an object
public Grab ( uint objectLocalID ) : void
objectLocalID uint an unsigned integer of the objects ID within the simulator
return void

GrabUpdate() public method

Drags an object
public GrabUpdate ( UUID objectID, System.Vector3 grabPosition ) : void
objectID UUID of the object to drag
grabPosition System.Vector3 Drag target in region coordinates
return void

GroupInviteRespond() public method

Respond to a group invitation by either accepting or denying it
public GroupInviteRespond ( UUID groupID, UUID imSessionID, bool accept ) : void
groupID UUID UUID of the group (sent in the AgentID field of the invite message)
imSessionID UUID IM Session ID from the group invitation message
accept bool Accept the group invitation or deny it
return void

InstantMessage() public method

Send an Instant Message
public InstantMessage ( UUID target, string message ) : void
target UUID Target of the Instant Message
message string Text message being sent
return void

InstantMessage() public method

Send an Instant Message
public InstantMessage ( UUID target, string message, UUID imSessionID ) : void
target UUID Target of the Instant Message
message string Text message being sent
imSessionID UUID IM session ID (to differentiate between IM windows)
return void

InstantMessage() public method

Send an Instant Message
public InstantMessage ( string fromName, UUID target, string message, UUID imSessionID, InstantMessageDialog dialog, InstantMessageOnline offline, System.Vector3 position, UUID regionID, byte binaryBucket ) : void
fromName string The name this IM will show up as being from
target UUID Key of Avatar
message string Text message being sent
imSessionID UUID IM session ID (to differentiate between IM windows)
dialog InstantMessageDialog Type of instant message to send
offline InstantMessageOnline Whether to IM offline avatars as well
position System.Vector3 Senders Position
regionID UUID RegionID Sender is In
binaryBucket byte Packed binary data that is specific to /// the dialog type
return void

InstantMessage() public method

Send an Instant Message
public InstantMessage ( string fromName, UUID target, string message, UUID imSessionID, UUID conferenceIDs ) : void
fromName string The name this IM will show up as being from
target UUID Key of Avatar
message string Text message being sent
imSessionID UUID IM session ID (to differentiate between IM windows)
conferenceIDs UUID IDs of sessions for a conference
return void

InstantMessageGroup() public method

Send an Instant Message to a group
public InstantMessageGroup ( UUID groupID, string message ) : void
groupID UUID of the group to send message to
message string Text Message being sent.
return void

InstantMessageGroup() public method

Send an Instant Message to a group
This does not appear to function with groups the agent is not in
public InstantMessageGroup ( string fromName, UUID groupID, string message ) : void
fromName string The name this IM will show up as being from
groupID UUID of the group to send message to
message string Text message being sent
return void

Jump() public method

Starts a jump (begin holding the jump key)
public Jump ( bool jumping ) : void
jumping bool
return void

LookAtEffect() public method

Start a particle stream between an agent and an object
public LookAtEffect ( UUID sourceAvatar, UUID targetObject, Vector3d globalOffset, LookAtType type, UUID effectID ) : void
sourceAvatar UUID Key of the source agent
targetObject UUID Key of the target object
globalOffset Vector3d A representing the beams offset from the source
type LookAtType A which sets the avatars lookat animation
effectID UUID of the Effect
return void

ModerateChatSessions() public method

Moderate a chat session
public ModerateChatSessions ( UUID sessionID, UUID memberID, bool moderateText ) : void
sessionID UUID the of the session to moderate, for group chats this will be the groups UUID
memberID UUID the of the avatar to moderate
moderateText bool true to moderate (silence user), false to allow avatar to speak
return void

PayUploadFee() public method

Pay texture/animation upload fee
public PayUploadFee ( ) : void
return void

PayUploadFee() public method

Pay texture/animation upload fee
public PayUploadFee ( string description ) : void
description string description of the transaction
return void

PickDelete() public method

Delete profile pick
public PickDelete ( UUID pickID ) : void
pickID UUID UUID of the pick to delete
return void

PickInfoUpdate() public method

Create or update profile pick
public PickInfoUpdate ( UUID pickID, bool topPick, UUID parcelID, string name, Vector3d globalPosition, UUID textureID, string description ) : void
pickID UUID UUID of the pick to update, or random UUID to create a new pick
topPick bool Is this a top pick? (typically false)
parcelID UUID UUID of the parcel (UUID.Zero for the current parcel)
name string Name of the pick
globalPosition Vector3d Global position of the pick landmark
textureID UUID UUID of the image displayed with the pick
description string Long description of the pick
return void

PointAtEffect() public method

Start a particle stream between an agent and an object
public PointAtEffect ( UUID sourceAvatar, UUID targetObject, Vector3d globalOffset, PointAtType type, UUID effectID ) : void
sourceAvatar UUID Key of the source agent
targetObject UUID Key of the target object
globalOffset Vector3d
type PointAtType The type from the enum
effectID UUID A unique for this effect
return void

ReplyToScriptDialog() public method

Reply to script dialog questions.
public ReplyToScriptDialog ( int channel, int buttonIndex, string buttonlabel, UUID objectID ) : void
channel int Channel initial request came on
buttonIndex int Index of button you're "clicking"
buttonlabel string Label of button you're "clicking"
objectID UUID of Object that sent the dialog request
return void

RequestBalance() public method

Request the current L$ balance
public RequestBalance ( ) : void
return void

RequestJoinGroupChat() public method

Send a request to join a group chat session
public RequestJoinGroupChat ( UUID groupID ) : void
groupID UUID of Group to leave
return void

RequestLeaveGroupChat() public method

Request self terminates group chat. This will stop Group IM's from showing up until session is rejoined or expires.
public RequestLeaveGroupChat ( UUID groupID ) : void
groupID UUID of Group to leave
return void

RequestMuteList() public method

Request the list of muted objects and avatars for this agent
public RequestMuteList ( ) : void
return void

RequestScriptSensor() public method

Requests script detection of objects and avatars
public RequestScriptSensor ( string name, UUID searchID, ScriptSensorTypeFlags type, float range, float arc, UUID requestID, Simulator sim ) : void
name string name of the object/avatar to search for
searchID UUID UUID of the object or avatar to search for
type ScriptSensorTypeFlags Type of search from ScriptSensorTypeFlags
range float range of scan (96 max?)
arc float the arc in radians to search within
requestID UUID an user generated ID to correlate replies with
sim Simulator Simulator to perform search in
return void

RequestSit() public method

Sends a request to sit on the specified object
public RequestSit ( UUID targetID, System.Vector3 offset ) : void
targetID UUID of the object to sit on
offset System.Vector3 Sit at offset
return void

RequestTeleport() public method

Teleport agent to a landmark
public RequestTeleport ( UUID landmark ) : void
landmark UUID of the landmark to teleport agent to
return void

RequestTeleport() public method

Request teleport to a another simulator
public RequestTeleport ( ulong regionHandle, System.Vector3 position ) : void
regionHandle ulong handle of region to teleport agent to
position System.Vector3 position in destination sim to teleport to
return void

RequestTeleport() public method

Request teleport to a another simulator
public RequestTeleport ( ulong regionHandle, System.Vector3 position, System.Vector3 lookAt ) : void
regionHandle ulong handle of region to teleport agent to
position System.Vector3 position in destination sim to teleport to
lookAt System.Vector3 direction in destination sim agent will look at
return void

RetrieveInstantMessages() public method

Requests missed/offline messages
public RetrieveInstantMessages ( ) : void
return void

ScriptQuestionReply() public method

Reply to script permissions request
public ScriptQuestionReply ( Simulator simulator, UUID itemID, UUID taskID, ScriptPermission permissions ) : void
simulator Simulator Object
itemID UUID of the itemID requesting permissions
taskID UUID of the taskID requesting permissions
permissions ScriptPermission list of permissions to allow
return void

SendTeleportLure() public method

Send a teleport lure to another avatar with default "Join me in ..." invitation message
public SendTeleportLure ( UUID targetID ) : void
targetID UUID target avatars to lure
return void

SendTeleportLure() public method

Send a teleport lure to another avatar with custom invitation message
public SendTeleportLure ( UUID targetID, string message ) : void
targetID UUID target avatars to lure
message string custom message to send with invitation
return void

SetHeightWidth() public method

Set the height and the width of the client window. This is used by the server to build a virtual camera frustum for our avatar
public SetHeightWidth ( ushort height, ushort width ) : void
height ushort New height of the viewer window
width ushort New width of the viewer window
return void

SetHome() public method

Sets home location to agents current position
will fire an AlertMessage (E:OpenMetaverse.AgentManager.OnAlertMessage) with success or failure message
public SetHome ( ) : void
return void

Sit() public method

Follows a call to RequestSit to actually sit on the object
public Sit ( ) : void
return void

SitOnGround() public method

Does a "ground sit" at the avatar's current position
public SitOnGround ( ) : void
return void

Stand() public method

Stands up from sitting on a prim or the ground
public Stand ( ) : bool
return bool

Teleport() public method

Teleport agent to a landmark
public Teleport ( UUID landmark ) : bool
landmark UUID of the landmark to teleport agent to
return bool

Teleport() public method

Attempt to look up a simulator name and teleport to the discovered destination
public Teleport ( string simName, System.Vector3 position ) : bool
simName string Region name to look up
position System.Vector3 Position to teleport to
return bool

Teleport() public method

Attempt to look up a simulator name and teleport to the discovered destination
public Teleport ( string simName, System.Vector3 position, System.Vector3 lookAt ) : bool
simName string Region name to look up
position System.Vector3 Position to teleport to
lookAt System.Vector3 Target to look at
return bool

Teleport() public method

Teleport agent to another region
This call is blocking
public Teleport ( ulong regionHandle, System.Vector3 position ) : bool
regionHandle ulong handle of region to teleport agent to
position System.Vector3 position in destination sim to teleport to
return bool

Teleport() public method

Teleport agent to another region
This call is blocking
public Teleport ( ulong regionHandle, System.Vector3 position, System.Vector3 lookAt ) : bool
regionHandle ulong handle of region to teleport agent to
position System.Vector3 position in destination sim to teleport to
lookAt System.Vector3 direction in destination sim agent will look at
return bool

TeleportLureRespond() public method

Respond to a teleport lure by either accepting it and initiating the teleport, or denying it
public TeleportLureRespond ( UUID requesterID, bool accept ) : void
requesterID UUID of the avatar sending the lure
accept bool true to accept the lure, false to decline it
return void

Touch() public method

Touches an object
public Touch ( uint objectLocalID ) : void
objectLocalID uint an unsigned integer of the objects ID within the simulator
return void

UpdateInterests() public method

Update agents profile interests
public UpdateInterests ( Avatar interests ) : void
interests Avatar selection of interests from struct
return void

UpdateProfile() public method

Update agent profile
public UpdateProfile ( Avatar profile ) : void
profile Avatar struct containing updated /// profile information
return void

VoiceEffect() public method

public VoiceEffect ( float volumeLevel ) : void
volumeLevel float
return void

Property Details

Client public_oe property

Reference to the GridClient object
public GridClient,OpenMetaverse Client
return GridClient

GroupChatSessions public_oe property

Dictionary containing current Group Chat sessions and members
public InternalDictionary> GroupChatSessions
return List>.InternalDictionary

Movement public_oe property

Used for movement and camera tracking
public AgentMovement Movement
return AgentMovement

SignaledAnimations public_oe property

Currently playing animations for the agent. Can be used to check the current movement status such as walking, hovering, aiming, etc. by checking for system animations in the Animations class
public InternalDictionary SignaledAnimations
return int>.InternalDictionary