OpenMetaverse Protocol Library Developers API Documentation
PreloadSoundEventArgs Class
NamespacesOpenMetaversePreloadSoundEventArgs
Provides data for the AvatarAppearanceevent
Declaration Syntax
C#
public 
class 
PreloadSoundEventArgs : 
EventArgs
Members
All Members Constructors Properties



Icon Member Description
PreloadSoundEventArgs(Simulator, UUID, UUID, UUID)
Construct a new instance of the PreloadSoundEventArgs class

ObjectID
Get the ID of the Object

OwnerID
Get the ID of the owner

Simulator
Simulator where the event originated

SoundID
Get the sound asset id

Remarks
The AvatarAppearanceevent occurs when the simulator sends the appearance data for an avatar
Examples
The following code example uses the AvatarIDand VisualParamsproperties to display the selected shape of an avatar on the Consolewindow.
  Copy imageCopy
// subscribe to the event
Client.Avatars.AvatarAppearance += Avatars_AvatarAppearance;

// handle the data when the event
is raised
void
Avatars_AvatarAppearance(
object sender,
AvatarAppearanceEventArgs e)
{
    Console.WriteLine(
"The Agent {0} is using a {1}
shape.", e.AvatarID, (e.VisualParams[
31] > 
0) : 
"male" ? 
"female")
}
Inheritance Hierarchy
Object
EventArgs
  PreloadSoundEventArgs

Assembly: OpenMetaverse(Module: OpenMetaverse.dll) Version: 0.9.3.3318 (0.9.3.3318)