C# 클래스 OpenMetaverse.ObjectManager

Handles all network traffic related to prims and avatar positions and movement.
파일 보기 프로젝트 열기: openmetaversefoundation/libopenmetaverse 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
Client GridClient

공개 메소드들

메소드 설명
AddGrass ( Simulator simulator, System.Vector3 scale, Quaternion rotation, System.Vector3 position, Grass grassType, UUID groupOwner ) : void

Rez grass and ground cover

AddPrim ( Simulator simulator, Primitive prim, UUID groupID, System.Vector3 position, System.Vector3 scale, Quaternion rotation ) : void

Create (rez) a new prim object in a simulator

Due to the way client prim rezzing is done on the server, the requested position for an object is only close to where the prim actually ends up. If you desire exact placement you'll need to follow up by moving the object after it has been created. This function will not set textures, light and flexible data, or other extended primitive properties

AddPrim ( Simulator simulator, Primitive prim, UUID groupID, System.Vector3 position, System.Vector3 scale, Quaternion rotation, PrimFlags createFlags ) : void

Create (rez) a new prim object in a simulator

Due to the way client prim rezzing is done on the server, the requested position for an object is only close to where the prim actually ends up. If you desire exact placement you'll need to follow up by moving the object after it has been created. This function will not set textures, light and flexible data, or other extended primitive properties

AddTree ( Simulator simulator, System.Vector3 scale, Quaternion rotation, System.Vector3 position, Tree treeType, UUID groupOwner, bool newTree ) : void

Rez a Linden tree

AttachObject ( Simulator simulator, uint localID, AttachmentPoint attachPoint, Quaternion rotation ) : void

Attach an object to this avatar

BuildBasicShape ( PrimType type ) : Primitive.ConstructionData

Setup construction data for a basic primitive shape

BuyObject ( Simulator simulator, uint localID, SaleType saleType, int price, UUID groupID, UUID categoryID ) : void

Attempt to purchase an original object, a copy, or the contents of an object

ClickObject ( Simulator simulator, uint localID ) : void

Perform a click action on an object

ClickObject ( Simulator simulator, uint localID, System.Vector3 uvCoord, System.Vector3 stCoord, int faceIndex, System.Vector3 position, System.Vector3 normal, System.Vector3 binormal ) : void

Perform a click action (Grab) on a single object

DeedObject ( Simulator simulator, uint localID, UUID groupOwner ) : void

Deed an object (prim) to a group, Object must be shared with group which can be accomplished with SetPermissions()

DeedObjects ( Simulator simulator, List localIDs, UUID groupOwner ) : void

Deed multiple objects (prims) to a group, Objects must be shared with group which can be accomplished with SetPermissions()

DelinkPrims ( Simulator simulator, List localIDs ) : void

Delink/Unlink multiple prims from a linkset

DeselectObject ( Simulator simulator, uint localID ) : void

Deselect a single object

DeselectObjects ( Simulator simulator, uint localIDs ) : void

Deselect multiple objects.

DetachObjects ( Simulator simulator, List localIDs ) : void

Detach an object from yourself

DropObject ( Simulator simulator, uint localID ) : void

Drop an attached object from this avatar

GetPrimitive ( Simulator simulator, uint localID, UUID fullID, bool createIfMissing ) : Primitive

LinkPrims ( Simulator simulator, List localIDs ) : void

Link multiple prims into a linkset

The last object in the array will be the root object of the linkset TODO: Is this true?

NavigateObjectMedia ( UUID primID, int face, string newURL, Simulator sim ) : void

Update current URL of the previously set prim media

ObjectManager ( GridClient client ) : System

Construct a new instance of the ObjectManager class

RequestObject ( Simulator simulator, uint localID ) : void

Request information for a single object from a Simulator you are currently connected to

RequestObjectMedia ( UUID primID, Simulator sim, ObjectMediaCallback callback ) : void

Retrieve information about object media

RequestObjectPropertiesFamily ( Simulator simulator, UUID objectID ) : void

Request additional properties for an object

RequestObjectPropertiesFamily ( Simulator simulator, UUID objectID, bool reliable ) : void

Request additional properties for an object

RequestObjects ( Simulator simulator, List localIDs ) : void

Request information for multiple objects contained in the same simulator

RequestPayPrice ( Simulator simulator, UUID objectID ) : void

Request prices that should be displayed in pay dialog. This will triggger the simulator to send us back a PayPriceReply which can be handled by OnPayPriceReply event

The result is raised in the PayPriceReply event

SelectObject ( Simulator simulator, uint localID ) : void

Select a single object. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event

SelectObject ( Simulator simulator, uint localID, bool automaticDeselect ) : void

Select a single object. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event

SelectObjects ( Simulator simulator, uint localIDs ) : void

Select multiple objects. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event

SelectObjects ( Simulator simulator, uint localIDs, bool automaticDeselect ) : void

Select multiple objects. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event

SetDescription ( Simulator simulator, uint localID, string description ) : void

Set the description of an object

SetDescriptions ( Simulator simulator, uint localIDs, string descriptions ) : void

Set the descriptions of multiple objects

SetExtraParamOff ( Simulator simulator, uint localID, ExtraParamType type ) : void

Unset additional primitive parameters on an object

SetFlags ( Simulator simulator, uint localID, bool physical, bool temporary, bool phantom, bool castsShadow ) : void

Update the properties of an object

SetFlags ( Simulator simulator, uint localID, bool physical, bool temporary, bool phantom, bool castsShadow, PhysicsShapeType physicsType, float density, float friction, float restitution, float gravityMultiplier ) : void

Update the properties of an object

SetFlexible ( Simulator simulator, uint localID, Primitive flexible ) : void

Set the flexible data on an object

SetLight ( Simulator simulator, uint localID, Primitive light ) : void

Set the Light data on an object

SetMaterial ( Simulator simulator, uint localID, Material material ) : void

Set the Material data of an object

SetName ( Simulator simulator, uint localID, string name ) : void

Set the name of an object

SetNames ( Simulator simulator, uint localIDs, string names ) : void

Set the name of multiple objects

SetObjectsGroup ( Simulator simulator, List localIds, UUID groupID ) : void

Set the ownership of a list of objects to the specified group

SetPermissions ( Simulator simulator, List localIDs, PermissionWho who, PermissionMask permissions, bool set ) : void

Set the permissions on multiple objects

SetPosition ( Simulator simulator, uint localID, System.Vector3 position ) : void

Change the position of an object, Will change position of entire linkset

SetPosition ( Simulator simulator, uint localID, System.Vector3 position, bool childOnly ) : void

Change the position of an object

SetRotation ( Simulator simulator, uint localID, Quaternion rotation ) : void

Change the rotation of an object

SetRotation ( Simulator simulator, uint localID, Quaternion quat, bool childOnly ) : void

Change the Rotation of an object that is either a child or a whole linkset

SetSaleInfo ( Simulator simulator, List localIDs, SaleType saleType, int price ) : void

Sets the sale properties of multiple objects

SetSaleInfo ( Simulator simulator, uint localID, SaleType saleType, int price ) : void

Sets the sale properties of a single object

SetScale ( Simulator simulator, uint localID, System.Vector3 scale, bool childOnly, bool uniform ) : void

Change the Scale (size) of an object

SetSculpt ( Simulator simulator, uint localID, Primitive sculpt ) : void

Set the sculptie texture and data on an object

SetShape ( Simulator simulator, uint localID, Primitive prim ) : void

Set the Shape data of an object

SetTextures ( Simulator simulator, uint localID, Primitive textures ) : void

Set the textures to apply to the faces of an object

SetTextures ( Simulator simulator, uint localID, Primitive textures, string mediaUrl ) : void

Set the textures to apply to the faces of an object

UpdateObject ( Simulator simulator, uint localID, System.Vector3 data, UpdateType type ) : void

Send a Multiple Object Update packet to change the size, scale or rotation of a primitive

UpdateObjectMedia ( UUID primID, OpenMetaverse.MediaEntry faceMedia, Simulator sim ) : void

Set object media

보호된 메소드들

메소드 설명
DecodeParticleUpdate ( ObjectUpdatePacket block ) : void
GetAvatar ( Simulator simulator, uint localID, UUID fullID ) : Avatar

GetPrimitive ( Simulator simulator, uint localID, UUID fullID ) : Primitive

ImprovedTerseObjectUpdateHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

A terse object update, used when a transformation matrix or velocity/acceleration for an object changes but nothing else (scale/position/rotation/acceleration/velocity)

InterpolationTimer_Elapsed ( object obj ) : void
KillObjectHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

ObjectPhysicsPropertiesHandler ( string capsKey, IMessage message, Simulator simulator ) : void

ObjectPropertiesFamilyHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

ObjectPropertiesHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

ObjectUpdateCachedHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

ObjectUpdateCompressedHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

ObjectUpdateHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

OnAvatarSitChanged ( AvatarSitChangedEventArgs e ) : void

Raises the AvatarSitChanged Event

OnAvatarUpdate ( AvatarUpdateEventArgs e ) : void

Raises the AvatarUpdate Event

OnKillObject ( KillObjectEventArgs e ) : void

Raises the KillObject Event

OnKillObjects ( KillObjectsEventArgs e ) : void

Raises the KillObjects Event

OnObjectDataBlockUpdate ( ObjectDataBlockUpdateEventArgs e ) : void

Raises the ObjectDataBlockUpdate Event

OnObjectProperties ( ObjectPropertiesEventArgs e ) : void

Raises the ObjectProperties Event

OnObjectPropertiesFamily ( ObjectPropertiesFamilyEventArgs e ) : void

Raises the ObjectPropertiesFamily Event

OnObjectPropertiesUpdated ( ObjectPropertiesUpdatedEventArgs e ) : void

Raises the ObjectPropertiesUpdated Event

OnParticleUpdate ( ParticleUpdateEventArgs e ) : void

Raises the ParticleUpdate Event

OnPayPriceReply ( PayPriceReplyEventArgs e ) : void

Raises the PayPriceReply Event

OnPhysicsProperties ( PhysicsPropertiesEventArgs e ) : void

Raises the PhysicsProperties Event

PayPriceReplyHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void

Process an incoming packet and raise the appropriate events

SetAvatarSittingOn ( Simulator sim, Avatar av, uint localid, uint oldSeatID ) : void

UpdateDilation ( Simulator s, uint dilation ) : void

비공개 메소드들

메소드 설명
Network_OnConnected ( object sender ) : void
Network_OnDisconnected ( NetworkManager reason, string message ) : void

메소드 상세

AddGrass() 공개 메소드

Rez grass and ground cover
public AddGrass ( Simulator simulator, System.Vector3 scale, Quaternion rotation, System.Vector3 position, Grass grassType, UUID groupOwner ) : void
simulator Simulator A reference to the object where the object resides
scale System.Vector3 The size of the grass
rotation Quaternion The rotation of the grass
position System.Vector3 The position of the grass
grassType Grass The type of grass from the enum
groupOwner UUID The of the group to set the tree to, /// or UUID.Zero if no group is to be set
리턴 void

AddPrim() 공개 메소드

Create (rez) a new prim object in a simulator
Due to the way client prim rezzing is done on the server, the requested position for an object is only close to where the prim actually ends up. If you desire exact placement you'll need to follow up by moving the object after it has been created. This function will not set textures, light and flexible data, or other extended primitive properties
public AddPrim ( Simulator simulator, Primitive prim, UUID groupID, System.Vector3 position, System.Vector3 scale, Quaternion rotation ) : void
simulator Simulator A reference to the object to place the object in
prim Primitive Data describing the prim object to rez
groupID UUID Group ID that this prim will be set to, or UUID.Zero if you /// do not want the object to be associated with a specific group
position System.Vector3 An approximation of the position at which to rez the prim
scale System.Vector3 Scale vector to size this prim
rotation Quaternion Rotation quaternion to rotate this prim
리턴 void

AddPrim() 공개 메소드

Create (rez) a new prim object in a simulator
Due to the way client prim rezzing is done on the server, the requested position for an object is only close to where the prim actually ends up. If you desire exact placement you'll need to follow up by moving the object after it has been created. This function will not set textures, light and flexible data, or other extended primitive properties
public AddPrim ( Simulator simulator, Primitive prim, UUID groupID, System.Vector3 position, System.Vector3 scale, Quaternion rotation, PrimFlags createFlags ) : void
simulator Simulator A reference to the object to place the object in
prim Primitive Data describing the prim object to rez
groupID UUID Group ID that this prim will be set to, or UUID.Zero if you /// do not want the object to be associated with a specific group
position System.Vector3 An approximation of the position at which to rez the prim
scale System.Vector3 Scale vector to size this prim
rotation Quaternion Rotation quaternion to rotate this prim
createFlags PrimFlags Specify the
리턴 void

AddTree() 공개 메소드

Rez a Linden tree
public AddTree ( Simulator simulator, System.Vector3 scale, Quaternion rotation, System.Vector3 position, Tree treeType, UUID groupOwner, bool newTree ) : void
simulator Simulator A reference to the object where the object resides
scale System.Vector3 The size of the tree
rotation Quaternion The rotation of the tree
position System.Vector3 The position of the tree
treeType Tree The Type of tree
groupOwner UUID The of the group to set the tree to, /// or UUID.Zero if no group is to be set
newTree bool true to use the "new" Linden trees, false to use the old
리턴 void

AttachObject() 공개 메소드

Attach an object to this avatar
public AttachObject ( Simulator simulator, uint localID, AttachmentPoint attachPoint, Quaternion rotation ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
attachPoint AttachmentPoint The point on the avatar the object will be attached
rotation Quaternion The rotation of the attached object
리턴 void

BuildBasicShape() 공개 정적인 메소드

Setup construction data for a basic primitive shape
public static BuildBasicShape ( PrimType type ) : Primitive.ConstructionData
type PrimType Primitive shape to construct
리턴 Primitive.ConstructionData

BuyObject() 공개 메소드

Attempt to purchase an original object, a copy, or the contents of an object
public BuyObject ( Simulator simulator, uint localID, SaleType saleType, int price, UUID groupID, UUID categoryID ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
saleType SaleType Whether the original, a copy, or the object /// contents are on sale. This is used for verification, if the this /// sale type is not valid for the object the purchase will fail
price int Price of the object. This is used for /// verification, if it does not match the actual price the purchase /// will fail
groupID UUID Group ID that will be associated with the new /// purchase
categoryID UUID Inventory folder UUID where the object or objects /// purchased should be placed
리턴 void

ClickObject() 공개 메소드

Perform a click action on an object
public ClickObject ( Simulator simulator, uint localID ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
리턴 void

ClickObject() 공개 메소드

Perform a click action (Grab) on a single object
public ClickObject ( Simulator simulator, uint localID, System.Vector3 uvCoord, System.Vector3 stCoord, int faceIndex, System.Vector3 position, System.Vector3 normal, System.Vector3 binormal ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
uvCoord System.Vector3 The texture coordinates to touch
stCoord System.Vector3 The surface coordinates to touch
faceIndex int The face of the position to touch
position System.Vector3 The region coordinates of the position to touch
normal System.Vector3 The surface normal of the position to touch (A normal is a vector perpindicular to the surface)
binormal System.Vector3 The surface binormal of the position to touch (A binormal is a vector tangen to the surface /// pointing along the U direction of the tangent space
리턴 void

DecodeParticleUpdate() 보호된 메소드

protected DecodeParticleUpdate ( ObjectUpdatePacket block ) : void
block ObjectUpdatePacket
리턴 void

DeedObject() 공개 메소드

Deed an object (prim) to a group, Object must be shared with group which can be accomplished with SetPermissions()
public DeedObject ( Simulator simulator, uint localID, UUID groupOwner ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
groupOwner UUID The of the group to deed the object to
리턴 void

DeedObjects() 공개 메소드

Deed multiple objects (prims) to a group, Objects must be shared with group which can be accomplished with SetPermissions()
public DeedObjects ( Simulator simulator, List localIDs, UUID groupOwner ) : void
simulator Simulator A reference to the object where the object resides
localIDs List An array which contains the IDs of the objects to deed
groupOwner UUID The of the group to deed the object to
리턴 void

DelinkPrims() 공개 메소드

Delink/Unlink multiple prims from a linkset
public DelinkPrims ( Simulator simulator, List localIDs ) : void
simulator Simulator A reference to the object where the objects reside
localIDs List An array which contains the IDs of the objects to delink
리턴 void

DeselectObject() 공개 메소드

Deselect a single object
public DeselectObject ( Simulator simulator, uint localID ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
리턴 void

DeselectObjects() 공개 메소드

Deselect multiple objects.
public DeselectObjects ( Simulator simulator, uint localIDs ) : void
simulator Simulator The the objects are located
localIDs uint An array containing the Local IDs of the objects
리턴 void

DetachObjects() 공개 메소드

Detach an object from yourself
public DetachObjects ( Simulator simulator, List localIDs ) : void
simulator Simulator A reference to the /// object where the objects reside /// /// This will always be the simulator the avatar is currently in ///
localIDs List An array which contains the IDs of the objects to detach
리턴 void

DropObject() 공개 메소드

Drop an attached object from this avatar
public DropObject ( Simulator simulator, uint localID ) : void
simulator Simulator A reference to the /// object where the objects reside. This will always be the simulator the avatar is currently in ///
localID uint The object's ID which is local to the simulator the object is in
리턴 void

GetAvatar() 보호된 메소드

protected GetAvatar ( Simulator simulator, uint localID, UUID fullID ) : Avatar
simulator Simulator
localID uint
fullID UUID
리턴 Avatar

GetPrimitive() 보호된 메소드

protected GetPrimitive ( Simulator simulator, uint localID, UUID fullID ) : Primitive
simulator Simulator
localID uint
fullID UUID
리턴 Primitive

GetPrimitive() 공개 메소드

public GetPrimitive ( Simulator simulator, uint localID, UUID fullID, bool createIfMissing ) : Primitive
simulator Simulator
localID uint
fullID UUID
createIfMissing bool
리턴 Primitive

ImprovedTerseObjectUpdateHandler() 보호된 메소드

A terse object update, used when a transformation matrix or velocity/acceleration for an object changes but nothing else (scale/position/rotation/acceleration/velocity)
protected ImprovedTerseObjectUpdateHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
리턴 void

InterpolationTimer_Elapsed() 보호된 메소드

protected InterpolationTimer_Elapsed ( object obj ) : void
obj object
리턴 void

KillObjectHandler() 보호된 메소드

Process an incoming packet and raise the appropriate events
protected KillObjectHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
리턴 void

LinkPrims() 공개 메소드

Link multiple prims into a linkset
The last object in the array will be the root object of the linkset TODO: Is this true?
public LinkPrims ( Simulator simulator, List localIDs ) : void
simulator Simulator A reference to the object where the objects reside
localIDs List An array which contains the IDs of the objects to link
리턴 void

NavigateObjectMedia() 공개 메소드

Update current URL of the previously set prim media
public NavigateObjectMedia ( UUID primID, int face, string newURL, Simulator sim ) : void
primID UUID UUID of the prim
face int Prim face number
newURL string Set current URL to this
sim Simulator Simulator in which prim is located
리턴 void

ObjectManager() 공개 메소드

Construct a new instance of the ObjectManager class
public ObjectManager ( GridClient client ) : System
client GridClient A reference to the instance
리턴 System

ObjectPhysicsPropertiesHandler() 보호된 메소드

protected ObjectPhysicsPropertiesHandler ( string capsKey, IMessage message, Simulator simulator ) : void
capsKey string
message IMessage
simulator Simulator
리턴 void

ObjectPropertiesFamilyHandler() 보호된 메소드

Process an incoming packet and raise the appropriate events
protected ObjectPropertiesFamilyHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
리턴 void

ObjectPropertiesHandler() 보호된 메소드

Process an incoming packet and raise the appropriate events
protected ObjectPropertiesHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
리턴 void

ObjectUpdateCachedHandler() 보호된 메소드

Process an incoming packet and raise the appropriate events
protected ObjectUpdateCachedHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
리턴 void

ObjectUpdateCompressedHandler() 보호된 메소드

Process an incoming packet and raise the appropriate events
protected ObjectUpdateCompressedHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
리턴 void

ObjectUpdateHandler() 보호된 메소드

Process an incoming packet and raise the appropriate events
protected ObjectUpdateHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
리턴 void

OnAvatarSitChanged() 보호된 메소드

Raises the AvatarSitChanged Event
protected OnAvatarSitChanged ( AvatarSitChangedEventArgs e ) : void
e AvatarSitChangedEventArgs A AvatarSitChangedEventArgs object containing /// the data sent from the simulator
리턴 void

OnAvatarUpdate() 보호된 메소드

Raises the AvatarUpdate Event
protected OnAvatarUpdate ( AvatarUpdateEventArgs e ) : void
e AvatarUpdateEventArgs A AvatarUpdateEventArgs object containing /// the data sent from the simulator
리턴 void

OnKillObject() 보호된 메소드

Raises the KillObject Event
protected OnKillObject ( KillObjectEventArgs e ) : void
e KillObjectEventArgs A KillObjectEventArgs object containing /// the data sent from the simulator
리턴 void

OnKillObjects() 보호된 메소드

Raises the KillObjects Event
protected OnKillObjects ( KillObjectsEventArgs e ) : void
e KillObjectsEventArgs A KillObjectsEventArgs object containing /// the data sent from the simulator
리턴 void

OnObjectDataBlockUpdate() 보호된 메소드

Raises the ObjectDataBlockUpdate Event
protected OnObjectDataBlockUpdate ( ObjectDataBlockUpdateEventArgs e ) : void
e ObjectDataBlockUpdateEventArgs A ObjectDataBlockUpdateEventArgs object containing /// the data sent from the simulator
리턴 void

OnObjectProperties() 보호된 메소드

Raises the ObjectProperties Event
protected OnObjectProperties ( ObjectPropertiesEventArgs e ) : void
e ObjectPropertiesEventArgs A ObjectPropertiesEventArgs object containing /// the data sent from the simulator
리턴 void

OnObjectPropertiesFamily() 보호된 메소드

Raises the ObjectPropertiesFamily Event
protected OnObjectPropertiesFamily ( ObjectPropertiesFamilyEventArgs e ) : void
e ObjectPropertiesFamilyEventArgs A ObjectPropertiesFamilyEventArgs object containing /// the data sent from the simulator
리턴 void

OnObjectPropertiesUpdated() 보호된 메소드

Raises the ObjectPropertiesUpdated Event
protected OnObjectPropertiesUpdated ( ObjectPropertiesUpdatedEventArgs e ) : void
e ObjectPropertiesUpdatedEventArgs A ObjectPropertiesUpdatedEventArgs object containing /// the data sent from the simulator
리턴 void

OnParticleUpdate() 보호된 메소드

Raises the ParticleUpdate Event
protected OnParticleUpdate ( ParticleUpdateEventArgs e ) : void
e ParticleUpdateEventArgs A ParticleUpdateEventArgs object containing /// the data sent from the simulator
리턴 void

OnPayPriceReply() 보호된 메소드

Raises the PayPriceReply Event
protected OnPayPriceReply ( PayPriceReplyEventArgs e ) : void
e PayPriceReplyEventArgs A PayPriceReplyEventArgs object containing /// the data sent from the simulator
리턴 void

OnPhysicsProperties() 보호된 메소드

Raises the PhysicsProperties Event
protected OnPhysicsProperties ( PhysicsPropertiesEventArgs e ) : void
e PhysicsPropertiesEventArgs A PhysicsPropertiesEventArgs object containing /// the data sent from the simulator
리턴 void

PayPriceReplyHandler() 보호된 메소드

Process an incoming packet and raise the appropriate events
protected PayPriceReplyHandler ( object sender, OpenMetaverse.PacketReceivedEventArgs e ) : void
sender object The sender
e OpenMetaverse.PacketReceivedEventArgs The EventArgs object containing the packet data
리턴 void

RequestObject() 공개 메소드

Request information for a single object from a Simulator you are currently connected to
public RequestObject ( Simulator simulator, uint localID ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
리턴 void

RequestObjectMedia() 공개 메소드

Retrieve information about object media
public RequestObjectMedia ( UUID primID, Simulator sim, ObjectMediaCallback callback ) : void
primID UUID UUID of the primitive
sim Simulator Simulator where prim is located
callback ObjectMediaCallback Call this callback when done
리턴 void

RequestObjectPropertiesFamily() 공개 메소드

Request additional properties for an object
public RequestObjectPropertiesFamily ( Simulator simulator, UUID objectID ) : void
simulator Simulator A reference to the object where the object resides
objectID UUID
리턴 void

RequestObjectPropertiesFamily() 공개 메소드

Request additional properties for an object
public RequestObjectPropertiesFamily ( Simulator simulator, UUID objectID, bool reliable ) : void
simulator Simulator A reference to the object where the object resides
objectID UUID Absolute UUID of the object
reliable bool Whether to require server acknowledgement of this request
리턴 void

RequestObjects() 공개 메소드

Request information for multiple objects contained in the same simulator
public RequestObjects ( Simulator simulator, List localIDs ) : void
simulator Simulator The the objects are located
localIDs List An array containing the Local IDs of the objects
리턴 void

RequestPayPrice() 공개 메소드

Request prices that should be displayed in pay dialog. This will triggger the simulator to send us back a PayPriceReply which can be handled by OnPayPriceReply event
The result is raised in the PayPriceReply event
public RequestPayPrice ( Simulator simulator, UUID objectID ) : void
simulator Simulator The the object is located
objectID UUID The ID of the object
리턴 void

SelectObject() 공개 메소드

Select a single object. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event
public SelectObject ( Simulator simulator, uint localID ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
리턴 void

SelectObject() 공개 메소드

Select a single object. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event
public SelectObject ( Simulator simulator, uint localID, bool automaticDeselect ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
automaticDeselect bool if true, a call to is /// made immediately following the request
리턴 void

SelectObjects() 공개 메소드

Select multiple objects. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event
public SelectObjects ( Simulator simulator, uint localIDs ) : void
simulator Simulator The the objects are located
localIDs uint An array containing the Local IDs of the objects
리턴 void

SelectObjects() 공개 메소드

Select multiple objects. This will cause the Simulator to send us an ObjectPropertiesPacket which will raise the ObjectProperties event
public SelectObjects ( Simulator simulator, uint localIDs, bool automaticDeselect ) : void
simulator Simulator The the objects are located
localIDs uint An array containing the Local IDs of the objects
automaticDeselect bool Should objects be deselected immediately after selection
리턴 void

SetAvatarSittingOn() 보호된 메소드

protected SetAvatarSittingOn ( Simulator sim, Avatar av, uint localid, uint oldSeatID ) : void
sim Simulator
av Avatar
localid uint
oldSeatID uint
리턴 void

SetDescription() 공개 메소드

Set the description of an object
public SetDescription ( Simulator simulator, uint localID, string description ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
description string A string containing the new description of the object
리턴 void

SetDescriptions() 공개 메소드

Set the descriptions of multiple objects
public SetDescriptions ( Simulator simulator, uint localIDs, string descriptions ) : void
simulator Simulator A reference to the object where the objects reside
localIDs uint An array which contains the IDs of the objects to change the description of
descriptions string An array which contains the new descriptions of the objects
리턴 void

SetExtraParamOff() 공개 메소드

Unset additional primitive parameters on an object
public SetExtraParamOff ( Simulator simulator, uint localID, ExtraParamType type ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
type ExtraParamType The extra parameters to set
리턴 void

SetFlags() 공개 메소드

Update the properties of an object
public SetFlags ( Simulator simulator, uint localID, bool physical, bool temporary, bool phantom, bool castsShadow ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
physical bool true to turn the objects physical property on
temporary bool true to turn the objects temporary property on
phantom bool true to turn the objects phantom property on
castsShadow bool true to turn the objects cast shadows property on
리턴 void

SetFlags() 공개 메소드

Update the properties of an object
public SetFlags ( Simulator simulator, uint localID, bool physical, bool temporary, bool phantom, bool castsShadow, PhysicsShapeType physicsType, float density, float friction, float restitution, float gravityMultiplier ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
physical bool true to turn the objects physical property on
temporary bool true to turn the objects temporary property on
phantom bool true to turn the objects phantom property on
castsShadow bool true to turn the objects cast shadows property on
physicsType PhysicsShapeType Type of the represetnation prim will have in the physics engine
density float Density - normal value 1000
friction float Friction - normal value 0.6
restitution float Restitution - standard value 0.5
gravityMultiplier float Gravity multiplier - standar value 1.0
리턴 void

SetFlexible() 공개 메소드

Set the flexible data on an object
public SetFlexible ( Simulator simulator, uint localID, Primitive flexible ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
flexible Primitive A object containing the data to set
리턴 void

SetLight() 공개 메소드

Set the Light data on an object
public SetLight ( Simulator simulator, uint localID, Primitive light ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
light Primitive A object containing the data to set
리턴 void

SetMaterial() 공개 메소드

Set the Material data of an object
public SetMaterial ( Simulator simulator, uint localID, Material material ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
material Material The new material of the object
리턴 void

SetName() 공개 메소드

Set the name of an object
public SetName ( Simulator simulator, uint localID, string name ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
name string A string containing the new name of the object
리턴 void

SetNames() 공개 메소드

Set the name of multiple objects
public SetNames ( Simulator simulator, uint localIDs, string names ) : void
simulator Simulator A reference to the object where the objects reside
localIDs uint An array which contains the IDs of the objects to change the name of
names string An array which contains the new names of the objects
리턴 void

SetObjectsGroup() 공개 메소드

Set the ownership of a list of objects to the specified group
public SetObjectsGroup ( Simulator simulator, List localIds, UUID groupID ) : void
simulator Simulator A reference to the object where the objects reside
localIds List An array which contains the IDs of the objects to set the group id on
groupID UUID The Groups ID
리턴 void

SetPermissions() 공개 메소드

Set the permissions on multiple objects
public SetPermissions ( Simulator simulator, List localIDs, PermissionWho who, PermissionMask permissions, bool set ) : void
simulator Simulator A reference to the object where the objects reside
localIDs List An array which contains the IDs of the objects to set the permissions on
who PermissionWho The new Who mask to set
permissions PermissionMask Which permission to modify
set bool The new state of permission
리턴 void

SetPosition() 공개 메소드

Change the position of an object, Will change position of entire linkset
public SetPosition ( Simulator simulator, uint localID, System.Vector3 position ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
position System.Vector3 The new position of the object
리턴 void

SetPosition() 공개 메소드

Change the position of an object
public SetPosition ( Simulator simulator, uint localID, System.Vector3 position, bool childOnly ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
position System.Vector3 The new position of the object
childOnly bool if true, will change position of (this) child prim only, not entire linkset
리턴 void

SetRotation() 공개 메소드

Change the rotation of an object
public SetRotation ( Simulator simulator, uint localID, Quaternion rotation ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
rotation Quaternion The new rotation of the object
리턴 void

SetRotation() 공개 메소드

Change the Rotation of an object that is either a child or a whole linkset
public SetRotation ( Simulator simulator, uint localID, Quaternion quat, bool childOnly ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
quat Quaternion The new scale of the object
childOnly bool If true, will change rotation of this prim only, not entire linkset
리턴 void

SetSaleInfo() 공개 메소드

Sets the sale properties of multiple objects
public SetSaleInfo ( Simulator simulator, List localIDs, SaleType saleType, int price ) : void
simulator Simulator The the objects are located
localIDs List An array containing the Local IDs of the objects
saleType SaleType One of the options from the enum
price int The price of the object
리턴 void

SetSaleInfo() 공개 메소드

Sets the sale properties of a single object
public SetSaleInfo ( Simulator simulator, uint localID, SaleType saleType, int price ) : void
simulator Simulator The the object is located
localID uint The Local ID of the object
saleType SaleType One of the options from the enum
price int The price of the object
리턴 void

SetScale() 공개 메소드

Change the Scale (size) of an object
public SetScale ( Simulator simulator, uint localID, System.Vector3 scale, bool childOnly, bool uniform ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
scale System.Vector3 The new scale of the object
childOnly bool If true, will change scale of this prim only, not entire linkset
uniform bool True to resize prims uniformly
리턴 void

SetSculpt() 공개 메소드

Set the sculptie texture and data on an object
public SetSculpt ( Simulator simulator, uint localID, Primitive sculpt ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
sculpt Primitive A object containing the data to set
리턴 void

SetShape() 공개 메소드

Set the Shape data of an object
public SetShape ( Simulator simulator, uint localID, Primitive prim ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
prim Primitive Data describing the prim shape
리턴 void

SetTextures() 공개 메소드

Set the textures to apply to the faces of an object
public SetTextures ( Simulator simulator, uint localID, Primitive textures ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
textures Primitive The texture data to apply
리턴 void

SetTextures() 공개 메소드

Set the textures to apply to the faces of an object
public SetTextures ( Simulator simulator, uint localID, Primitive textures, string mediaUrl ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
textures Primitive The texture data to apply
mediaUrl string A media URL (not used)
리턴 void

UpdateDilation() 보호된 메소드

protected UpdateDilation ( Simulator s, uint dilation ) : void
s Simulator
dilation uint
리턴 void

UpdateObject() 공개 메소드

Send a Multiple Object Update packet to change the size, scale or rotation of a primitive
public UpdateObject ( Simulator simulator, uint localID, System.Vector3 data, UpdateType type ) : void
simulator Simulator A reference to the object where the object resides
localID uint The objects ID which is local to the simulator the object is in
data System.Vector3 The new rotation, size, or position of the target object
type UpdateType The flags from the Enum
리턴 void

UpdateObjectMedia() 공개 메소드

Set object media
public UpdateObjectMedia ( UUID primID, OpenMetaverse.MediaEntry faceMedia, Simulator sim ) : void
primID UUID UUID of the prim
faceMedia OpenMetaverse.MediaEntry Array the length of prims number of faces. Null on face indexes where there is /// no media, on faces which contain the media
sim Simulator Simulatior in which prim is located
리턴 void

프로퍼티 상세

Client 보호되어 있는 프로퍼티

Reference to the GridClient object
protected GridClient,OpenMetaverse Client
리턴 GridClient