C# Class OpenMetaverse.Simulator

Inheritance: UDPBase, IDisposable
Afficher le fichier Open project: 3di/3di-viewer-rei-libs Class Usage Examples

Méthodes publiques

Свойство Type Description
Access SimAccess
BillableFactor float
Caps Caps
Client GridClient
Estate EstateTools
Flags RegionFlags
Handle ulong
ID UUID
IsEstateManager bool
Name string
ObjectsAvatars Avatar>.InternalDictionary
ObjectsPrimitives Primitive>.InternalDictionary
ParcelOverlay byte[]
ParcelOverlaysReceived int
Parcels Parcel>.InternalDictionary
Sequence SequenceNumberCounter
SimOwner UUID
SimVersion string
Stats SimStats
TerrainBase0 UUID
TerrainBase1 UUID
TerrainBase2 UUID
TerrainBase3 UUID
TerrainDetail0 UUID
TerrainDetail1 UUID
TerrainDetail2 UUID
TerrainDetail3 UUID
TerrainHeightRange00 float
TerrainHeightRange01 float
TerrainHeightRange10 float
TerrainHeightRange11 float
TerrainStartHeight00 float
TerrainStartHeight01 float
TerrainStartHeight10 float
TerrainStartHeight11 float
WaterHeight float

Méthodes publiques

Méthode Description
Connect ( bool moveToSim ) : bool

Attempt to connect to this simulator

Disconnect ( bool sendCloseCircuit ) : void

Disconnect from this simulator

Dispose ( ) : void

Called when this Simulator object is being destroyed

Equals ( object obj ) : bool

GetHashCode ( ) : int

IsParcelMapFull ( ) : bool

Checks simulator parcel map to make sure it has downloaded all data successfully

Pause ( ) : void

Instructs the simulator to stop sending update (and possibly other) packets

Resume ( ) : void

Instructs the simulator to resume sending update packets (unpause)

SendPacket ( NetworkManager outgoingPacket ) : void

Sends a packet

SendPacket ( Packet packet, bool setSequence ) : void

Sends a packet

SendPacketUnqueued ( NetworkManager outgoingPacket ) : void

Sends a packet directly to the simulator without queuing

SendPacketUnqueued ( byte payload, bool setSequence ) : void

Send a raw byte array payload as a packet

SendPing ( ) : void

SetSeedCaps ( string seedcaps ) : void
Simulator ( GridClient client, IPEndPoint address, ulong handle ) : System

ToString ( ) : string

Returns Simulator Name as a String

operator ( ) : bool

Méthodes protégées

Méthode Description
PacketReceived ( UDPPacketBuffer buffer ) : void
PacketSent ( UDPPacketBuffer buffer, int bytesSent ) : void

Private Methods

Méthode Description
AckTimer_Elapsed ( object obj ) : void
PingTimer_Elapsed ( object obj ) : void
ResendUnacked ( ) : void

Resend unacknowledged packets

SendAcks ( ) : void

Sends out pending acknowledgements

StatsTimer_Elapsed ( object obj ) : void

Method Details

Connect() public méthode

Attempt to connect to this simulator
public Connect ( bool moveToSim ) : bool
moveToSim bool Whether to move our agent in to this sim or not
Résultat bool

Disconnect() public méthode

Disconnect from this simulator
public Disconnect ( bool sendCloseCircuit ) : void
sendCloseCircuit bool
Résultat void

Dispose() public méthode

Called when this Simulator object is being destroyed
public Dispose ( ) : void
Résultat void

Equals() public méthode

public Equals ( object obj ) : bool
obj object
Résultat bool

GetHashCode() public méthode

public GetHashCode ( ) : int
Résultat int

IsParcelMapFull() public méthode

Checks simulator parcel map to make sure it has downloaded all data successfully
public IsParcelMapFull ( ) : bool
Résultat bool

PacketReceived() protected méthode

protected PacketReceived ( UDPPacketBuffer buffer ) : void
buffer UDPPacketBuffer
Résultat void

PacketSent() protected méthode

protected PacketSent ( UDPPacketBuffer buffer, int bytesSent ) : void
buffer UDPPacketBuffer
bytesSent int
Résultat void

Pause() public méthode

Instructs the simulator to stop sending update (and possibly other) packets
public Pause ( ) : void
Résultat void

Resume() public méthode

Instructs the simulator to resume sending update packets (unpause)
public Resume ( ) : void
Résultat void

SendPacket() public méthode

Sends a packet
public SendPacket ( NetworkManager outgoingPacket ) : void
outgoingPacket NetworkManager Packet to be sent
Résultat void

SendPacket() public méthode

Sends a packet
public SendPacket ( Packet packet, bool setSequence ) : void
packet Packet Packet to be sent
setSequence bool True to set the sequence number, false to /// leave it as is
Résultat void

SendPacketUnqueued() public méthode

Sends a packet directly to the simulator without queuing
public SendPacketUnqueued ( NetworkManager outgoingPacket ) : void
outgoingPacket NetworkManager Packet to be sent
Résultat void

SendPacketUnqueued() public méthode

Send a raw byte array payload as a packet
public SendPacketUnqueued ( byte payload, bool setSequence ) : void
payload byte The packet payload
setSequence bool Whether the second, third, and fourth bytes /// should be modified to the current stream sequence number
Résultat void

SendPing() public méthode

public SendPing ( ) : void
Résultat void

SetSeedCaps() public méthode

public SetSeedCaps ( string seedcaps ) : void
seedcaps string
Résultat void

Simulator() public méthode

public Simulator ( GridClient client, IPEndPoint address, ulong handle ) : System
client GridClient Reference to the GridClient object
address IPEndPoint IPEndPoint of the simulator
handle ulong handle of the simulator
Résultat System

ToString() public méthode

Returns Simulator Name as a String
public ToString ( ) : string
Résultat string

operator() public static méthode

public static operator ( ) : bool
Résultat bool

Property Details

Access public_oe property

public SimAccess Access
Résultat SimAccess

BillableFactor public_oe property

public float BillableFactor
Résultat float

Caps public_oe property

The capabilities for this simulator
public Caps,OpenMetaverse Caps
Résultat Caps

Client public_oe property

A public reference to the client that this Simulator object is attached to
public GridClient,OpenMetaverse Client
Résultat GridClient

Estate public_oe property

public EstateTools Estate
Résultat EstateTools

Flags public_oe property

public RegionFlags Flags
Résultat RegionFlags

Handle public_oe property

public ulong Handle
Résultat ulong

ID public_oe property

public UUID ID
Résultat UUID

IsEstateManager public_oe property

public bool IsEstateManager
Résultat bool

Name public_oe property

public string Name
Résultat string

ObjectsAvatars public_oe property

Provides access to two thread-safe dictionaries containing avatars and primitives found in this simulator
public InternalDictionary ObjectsAvatars
Résultat Avatar>.InternalDictionary

ObjectsPrimitives public_oe property

public InternalDictionary ObjectsPrimitives
Résultat Primitive>.InternalDictionary

ParcelOverlay public_oe property

A 64x64 grid of parcel coloring values. The values stored in this array are of the ParcelArrayType type
public byte[] ParcelOverlay
Résultat byte[]

ParcelOverlaysReceived public_oe property

public int ParcelOverlaysReceived
Résultat int

Parcels public_oe property

Provides access to an internal thread-safe dictionary containing parcel information found in this simulator
public InternalDictionary Parcels
Résultat Parcel>.InternalDictionary

Sequence public_oe property

The current sequence number for packets sent to this simulator. Must be Interlocked before modifying. Only useful for applications manipulating sequence numbers
public SequenceNumberCounter Sequence
Résultat SequenceNumberCounter

SimOwner public_oe property

public UUID SimOwner
Résultat UUID

SimVersion public_oe property

The current version of software this simulator is running
public string SimVersion
Résultat string

Stats public_oe property

Statistics information for this simulator and the connection to the simulator, calculated by the simulator itself and the library
public SimStats Stats
Résultat SimStats

TerrainBase0 public_oe property

public UUID TerrainBase0
Résultat UUID

TerrainBase1 public_oe property

public UUID TerrainBase1
Résultat UUID

TerrainBase2 public_oe property

public UUID TerrainBase2
Résultat UUID

TerrainBase3 public_oe property

public UUID TerrainBase3
Résultat UUID

TerrainDetail0 public_oe property

public UUID TerrainDetail0
Résultat UUID

TerrainDetail1 public_oe property

public UUID TerrainDetail1
Résultat UUID

TerrainDetail2 public_oe property

public UUID TerrainDetail2
Résultat UUID

TerrainDetail3 public_oe property

public UUID TerrainDetail3
Résultat UUID

TerrainHeightRange00 public_oe property

public float TerrainHeightRange00
Résultat float

TerrainHeightRange01 public_oe property

public float TerrainHeightRange01
Résultat float

TerrainHeightRange10 public_oe property

public float TerrainHeightRange10
Résultat float

TerrainHeightRange11 public_oe property

public float TerrainHeightRange11
Résultat float

TerrainStartHeight00 public_oe property

public float TerrainStartHeight00
Résultat float

TerrainStartHeight01 public_oe property

public float TerrainStartHeight01
Résultat float

TerrainStartHeight10 public_oe property

public float TerrainStartHeight10
Résultat float

TerrainStartHeight11 public_oe property

public float TerrainStartHeight11
Résultat float

WaterHeight public_oe property

public float WaterHeight
Résultat float