ParticipantExtended

From Virtual World Web Wiki
Revision as of 17:56, 20 February 2017 by Spark5 (Talk | contribs) (Documentation for the ParticipantExtended class)

Jump to: navigation, search
  • This is a JavaScript visible object

Remarks [edit]

Properties

AbilitySetExtended Abilities {get;}
Gets the ability set for this participant which can be used to create ability groups and abilities and modify their state
string AccountID {get;}
Gets the account ID of the participant as a GUID in string format
DOMControllerExtended Controller {get;}
Gets the root DOMController object that represents the participant’s avatar in the room. This will almost always be the only direct DOMController child of the participant document.
string Name {get;}
Gets the participant’s persona’s name.
string PersonaID {get;}
Gets the persona ID of the participant as a GUID in string format
string SessionID {get;}
Gets the session ID of the participant as a GUID in string format

Events

OnAreaPermissionsChanged(EventHandler<FlexibleEventArgs>)
Fires when the permission set for this user changes due to changes in permission on the current instance, or any of it’s parent world or area group hierarchy, or due to entity set changes.
OnEntitiesChanged(EventHandler<FlexibleEventArgs>)
Fires when a the participant’s connection’s entity list changes (i.e. the user joins or leaves a dynamic or entity group).
OnSceneReady(EventHandler<FlexibleEventArgs>)
Fires when the connected client informs the server that it has loaded all reasources, lowered it’s loading screen, and is ready to show the scene.
OnTargetChanged(EventHandler<FlexibleEventArgs>)
Fires when the connected client changed it’s targeted DOMObject.
OnTypingStarted(EventHandler<FlexibleEventArgs>)
Fires when the connected client informs the server that the user has begun typing.
OnTypingStopped(EventHandler<FlexibleEventArgs>)
Fires when the connected client informs the server that the user has stopped typing.
OnVirtualRealityStarted(EventHandler<FlexibleEventArgs>)
Fires when the connected client informs the server that the user has turned on their VR headset.
OnVirtualRealityStopped(EventHandler<FlexibleEventArgs>)
Fires when the connected client informs the server that the user has turned on their VR headset.

Methods

bool HasAreaPermission(string strPermissionID)
Checks if this participant’s connection identity has the requested permission in the current area
bool InEntity(string strEntityID)
Checks if this participant’s connection identity is in the requested entity (account, persona, entitygroup, dynamicgroup, etc)
bool NavigateTo(string targetVWW, bool designmode = false)
Attempts to navigate the participant to another destination scene by vwwUrl and optionally in design mode
void ResetPosition()
Resets the user’s world position to their specified DOMStartPoint or the default DOMStartPoint or origin
void SendChatMessage(string message, int messageStyle = 253)
Sends a chat message to this participant
void SendUIScript(ResourceValue packageResource, string metadata)
Pushes the requested UI package to the connected client

Methods (From Game Cloud)

bool AccountDataExists(string key)
Checks if an account scoped data item exists (is set).
bool CheckGroup(string identifier)
Tests whether the participant is in the EntityGroup which has been registered to your application via the admin GameCloud configuration tool
bool ClearOverlay()
Clears all GameCloud clothing slot overlays on this participant.
bool ClearOverlayItem(string path)
Clears any GameCloud clothing slot overlay in the slot specified by path on this participant.
ConfirmationHandleExtended Confirm(string title, string description, JSFlexibleFunction yesCallback, JSFlexibleFunction noCallback = NULL, string[] buttons = NULL, int timeout = -1, JSFlexibleFunction cancelCallback = NULL)
Initiates a new Confirmation Request meant to confirm something with the user. The participant’s connection will be sent a packet asking them to confirm the activity described by title and description, by pressing one of the described buttons. The confirmation will be automatically cancelled if the user disconnects or navigates. You can provide functions that will be called back when the user presses yes no or cancel.
ConfirmationHandleExtended ConfirmationRequest(string title, string description, string buttons, int defaultButton, int timeout)
Initiates a new Confirmation Request meant to confirm something with the user. The participant’s connection will be sent a packet asking them to confirm the activity described by title and description, by pressing one of the described buttons. The confirmation will be automatically cancelled if the user disconnects or navigates. Buttons are specified as a comma separated list.
bool DataExists(string key)
Checks if a persona scoped data item exists (is set).
void DeleteAccountData(string key)
Deletes the specified account scoped data item.
void DeleteData(string key)
Deletes the specified persona scoped data item.
string GetAccountData(string key)
Gets the value of an account scoped data item.
string GetData(string key)
Gets the value of a persona scoped data item.
bool GiveObject(string id)
Creates an ObjectTemplate of the ObjectType specified by the Guid in the id parameter and puts it in the participant’s persona’s inventory. Essentially, gives a person a thing, like clothing, or an object for scene editing.
bool GiveUniqueObject(string id)
Creates an ObjectTemplate of the ObjectType specified by the Guid in the id parameter and puts it in the participant’s persona’s inventory if one doesn't exist already. Essentially, gives a person a thing, like clothing, or an object for scene editing.
ConfirmationHandleExtended Inform(string title, string description, string buttonText = "core.confirmbutton.ok", int timeout = -1)
Initiates a new Confirmation Request meant to inform the user of something.
bool JoinGroup(string identifier, bool accountLevel = false)
Joins the participant to an EntityGroup which has been registered to your application via the admin GameCloud configuration tool
bool LeaveGroup(string identifier, bool accountLevel = false)
Removes the participant from an EntityGroup which has been registered to your application via the admin GameCloud configuration tool
IInteractionMappingExtended RegisterInteraction(string selector, string abilityIdentifier)
Registers an ability (created earlier in a call to
) as an interaction that only this participant will see.
void SetAccountData(string key, string value)
Sets the value of an account scoped data item.
void SetData(string key, string value)
Sets the value of a persona scoped data item.
bool SetOverlayBlank(string path)
Sets a 'blank' or clothing remove request as a GameCloud clothing slot overlay in the slot specified by path on this participant.
bool SetOverlayItem(string path, string id)
Sets the specified object type as a GameCloud clothing slot overlay in the slot specified by path on this participant.

Methods (From Human Avatars)

ReturnType DisableAbilityGroup(string identifier)
Disables a group of a bilities for an connected participant given an ability identifier
ReturnType EnableAbilityGroup(string identifier)
Enables a group of a bilities for an connected participant given an ability identifier

Methods (From Creature Manager)

ReturnType CreatureType()
Enables a group of abilities for the player. (eg, turning on dance moves when you enter the dance floor)
ReturnType IsMale()
Disables a group of abilities for the player. (eg, turning off dance moves when you leave the dance floor)