Свойство | Type | Description | |
---|---|---|---|
BAKED_TEXTURE_HASH | UUID[] | ||
BakeIndexToTextureIndex | byte[] | ||
DEFAULT_AVATAR_TEXTURE | UUID | ||
WEARABLE_BAKE_MAP | WearableType[][] |
Méthode | Description | |
---|---|---|
AddAttachments ( List |
Adds a list of attachments to our agent
|
|
AddToOutfit ( |
Add a wearable to the current outfit and set appearance
|
|
AddToOutfit ( List |
Add a list of wearables to the current outfit and set appearance
|
|
AppearanceManager ( |
Default constructor
|
|
Attach ( |
Attach an item to our agent at a specific attach point
|
|
Attach ( UUID itemID, UUID ownerID, string name, string description, |
Attach an item to our agent specifying attachment details
|
|
BakeTypeToAgentTextureIndex ( BakeType index ) : AvatarTextureIndex |
Converts a BakeType to the corresponding baked texture slot in AvatarTextureIndex
|
|
BakeTypeToTextures ( BakeType bakeType ) : List |
Converts a BakeType to a list of the texture slots that make up that bake
|
|
Detach ( |
Detach an item from our agent using an OpenMetaverse.InventoryItem object
|
|
Detach ( UUID itemID ) : void |
Detach an item from our agent
|
|
GetWearableAsset ( WearableType type ) : UUID |
Returns the AssetID of the asset that is currently being worn in a given WearableType slot
|
|
GetWearables ( ) : WearableData>.Dictionary |
Returns a copy of the agents currently worn wearables Avoid calling this function multiple times as it will make a copy of all of the wearable data each time |
|
IsItemWorn ( |
Checks if an inventory item is currently being worn
|
|
MorphLayerForBakeType ( BakeType bakeType ) : AvatarTextureIndex |
Gives the layer number that is used for morph mask
|
|
RemoveFromOutfit ( |
Remove a wearable from the current outfit and set appearance
|
|
RemoveFromOutfit ( List |
Removes a list of wearables from the current outfit and set appearance
|
|
ReplaceOutfit ( List |
Replace the current outfit with a list of wearables and set appearance
|
|
RequestAgentWearables ( ) : void |
Ask the server what textures our agent is currently wearing
|
|
RequestCachedBakes ( ) : void |
Build hashes out of the texture assetIDs for each baking layer to ask the simulator whether it has cached copies of each baked texture
|
|
RequestSetAppearance ( ) : void |
Starts the appearance setting thread
|
|
RequestSetAppearance ( bool forceRebake ) : void |
Starts the appearance setting thread
|
|
WearOutfit ( List |
Calls either ReplaceOutfit or AddToOutfit depending on the value of replaceItems
|
|
WearableTypeToAssetType ( WearableType type ) : AssetType |
Converts a WearableType to a bodypart or clothing WearableType
|
Méthode | Description | |
---|---|---|
AgentCachedTextureResponseHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
AgentWearablesUpdateHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
OnAgentCachedBakes ( |
Raises the CachedBakesReply event
|
|
OnAgentWearables ( |
Raises the AgentWearablesReply event
|
|
OnAppearanceSet ( |
Raises the AppearanceSet event
|
|
OnRebakeAvatar ( |
Raises the RebakeAvatarRequested event
|
|
RebakeAvatarTexturesHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void |
Méthode | Description | |
---|---|---|
AddTextureDownload ( AvatarTextureIndex index, List |
Helper method to lookup the TextureID for a single layer and add it to a list if it is not already present
|
|
CreateBake ( BakeType bakeType ) : bool |
Blocking method to create and upload a baked texture for a single bake layer
|
|
CreateBakes ( ) : bool |
Blocking method to create and upload baked textures for all of the missing bakes
|
|
DecodeWearableParams ( WearableData wearable ) : void |
Populates textures and visual params from a decoded asset
|
|
DelayedRequestSetAppearance ( ) : void | ||
DownloadTextures ( List |
Blocking method to download all of the textures needed for baking the given bake layers No return value is given because the baking will happen whether or not all textures are successfully downloaded |
|
DownloadWearables ( ) : bool |
Blocking method to download and parse currently worn wearable assets
|
|
GetAgentWearables ( ) : bool |
Blocking method to populate the Wearables dictionary
|
|
GetCachedBakes ( ) : bool |
Blocking method to populate the Textures array with cached bakes
|
|
GetColorFromParams ( List |
Calculates base color/tint for a specific wearable based on its params
|
|
GetFolderWearables ( UUID folder, List |
||
GetFolderWearables ( string folderPath, List |
||
GetTextureDownloadList ( BakeType bakeType ) : List |
Get a list of all of the textures that need to be downloaded for a single bake layer
|
|
MakeParamValues ( ) : float>.Dictionary |
Creates a dictionary of visual param values from the downloaded wearables
|
|
Network_OnDisconnected ( object sender, OpenMetaverse.DisconnectedEventArgs e ) : void | ||
Network_OnEventQueueRunning ( object sender, OpenMetaverse.EventQueueRunningEventArgs e ) : void | ||
RebakeScheduleTimerTick ( Object state ) : void | ||
ReplaceOutfit ( List |
Replaces the Wearables collection with a list of new wearable items
|
|
RequestAgentSetAppearance ( ) : void |
Create an AgentSetAppearance packet from Wearables data and the Textures array and send it
|
|
SendAgentIsNowWearing ( ) : void |
Inform the sim which wearables are part of our current outfit
|
|
SetPreviousAppearance ( ) : void | ||
SetPreviousAppearance ( bool allowBake ) : void | ||
UploadBake ( byte textureData ) : UUID |
Blocking method to upload a baked texture
|
public AddAttachments ( List |
||
attachments | List |
A List containing the attachments to add |
removeExistingFirst | bool | If true, tells simulator to remove existing attachment /// first |
Résultat | void |
public AddToOutfit ( |
||
wearableItem | Wearable to be added to the outfit | |
Résultat | void |
public AddToOutfit ( List |
||
wearableItems | List |
List of wearable inventory items to /// be added to the outfit |
Résultat | void |
protected AgentCachedTextureResponseHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
sender | object | |
e | OpenMetaverse.PacketReceivedEventArgs | |
Résultat | void |
protected AgentWearablesUpdateHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
sender | object | |
e | OpenMetaverse.PacketReceivedEventArgs | |
Résultat | void |
public AppearanceManager ( |
||
client | A reference to our agent | |
Résultat | System |
public Attach ( |
||
item | A |
|
attachPoint | AttachmentPoint | the |
Résultat | void |
public Attach ( UUID itemID, UUID ownerID, string name, string description, |
||
itemID | UUID | The |
ownerID | UUID | The |
name | string | The name of the attachment |
description | string | The description of the attahment |
perms | The |
|
itemFlags | uint | The |
attachPoint | AttachmentPoint | The |
Résultat | void |
public static BakeTypeToAgentTextureIndex ( BakeType index ) : AvatarTextureIndex | ||
index | BakeType | A BakeType |
Résultat | AvatarTextureIndex |
public static BakeTypeToTextures ( BakeType bakeType ) : List |
||
bakeType | BakeType | A BakeType |
Résultat | List |
public Detach ( |
||
item | An |
|
Résultat | void |
public Detach ( UUID itemID ) : void | ||
itemID | UUID | The inventory itemID of the item to detach |
Résultat | void |
public GetWearableAsset ( WearableType type ) : UUID | ||
type | WearableType | WearableType slot to get the AssetID for |
Résultat | UUID |
public GetWearables ( ) : WearableData>.Dictionary |
||
Résultat | WearableData>.Dictionary |
public IsItemWorn ( |
||
item | The inventory item to check against the agent /// wearables | |
Résultat | WearableType |
public static MorphLayerForBakeType ( BakeType bakeType ) : AvatarTextureIndex | ||
bakeType | BakeType | >A BakeType |
Résultat | AvatarTextureIndex |
protected OnAgentCachedBakes ( |
||
e | An AgentCachedBakesReplyEventArgs object containing the /// data returned from the data server AgentCachedTextureResponse | |
Résultat | void |
protected OnAgentWearables ( |
||
e | An AgentWearablesReplyEventArgs object containing the /// data returned from the data server | |
Résultat | void |
protected OnAppearanceSet ( |
||
e | An AppearanceSetEventArgs object indicating if the operatin was successfull | |
Résultat | void |
protected OnRebakeAvatar ( |
||
e | An RebakeAvatarTexturesEventArgs object containing the /// data returned from the data server | |
Résultat | void |
protected RebakeAvatarTexturesHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void | ||
sender | object | |
e | OpenMetaverse.PacketReceivedEventArgs | |
Résultat | void |
public RemoveFromOutfit ( |
||
wearableItem | Wearable to be removed from the outfit | |
Résultat | void |
public RemoveFromOutfit ( List |
||
wearableItems | List |
List of wearable inventory items to /// be removed from the outfit |
Résultat | void |
public ReplaceOutfit ( List |
||
wearableItems | List |
List of wearable inventory items that /// define a new outfit |
Résultat | void |
public RequestSetAppearance ( bool forceRebake ) : void | ||
forceRebake | bool | True to force rebaking, otherwise false |
Résultat | void |
public WearOutfit ( List |
||
wearables | List |
List of wearable inventory items to add /// to the outfit or become a new outfit |
replaceItems | bool | True to replace existing items with the /// new list of items, false to add these items to the existing outfit |
Résultat | void |
public static WearableTypeToAssetType ( WearableType type ) : AssetType | ||
type | WearableType | A WearableType |
Résultat | AssetType |
public static UUID[] BAKED_TEXTURE_HASH | ||
Résultat | UUID[] |
public static byte[] BakeIndexToTextureIndex | ||
Résultat | byte[] |
public static UUID DEFAULT_AVATAR_TEXTURE | ||
Résultat | UUID |