C# Класс OpenMetaverse.Simulator

Наследование: UDPBase, IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
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

Открытые методы

Метод Описание
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

Защищенные методы

Метод Описание
PacketReceived ( UDPPacketBuffer buffer ) : void
PacketSent ( UDPPacketBuffer buffer, int bytesSent ) : void

Приватные методы

Метод Описание
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

Описание методов

Connect() публичный метод

Attempt to connect to this simulator
public Connect ( bool moveToSim ) : bool
moveToSim bool Whether to move our agent in to this sim or not
Результат bool

Disconnect() публичный метод

Disconnect from this simulator
public Disconnect ( bool sendCloseCircuit ) : void
sendCloseCircuit bool
Результат void

Dispose() публичный метод

Called when this Simulator object is being destroyed
public Dispose ( ) : void
Результат void

Equals() публичный метод

public Equals ( object obj ) : bool
obj object
Результат bool

GetHashCode() публичный метод

public GetHashCode ( ) : int
Результат int

IsParcelMapFull() публичный метод

Checks simulator parcel map to make sure it has downloaded all data successfully
public IsParcelMapFull ( ) : bool
Результат bool

PacketReceived() защищенный метод

protected PacketReceived ( UDPPacketBuffer buffer ) : void
buffer UDPPacketBuffer
Результат void

PacketSent() защищенный метод

protected PacketSent ( UDPPacketBuffer buffer, int bytesSent ) : void
buffer UDPPacketBuffer
bytesSent int
Результат void

Pause() публичный метод

Instructs the simulator to stop sending update (and possibly other) packets
public Pause ( ) : void
Результат void

Resume() публичный метод

Instructs the simulator to resume sending update packets (unpause)
public Resume ( ) : void
Результат void

SendPacket() публичный метод

Sends a packet
public SendPacket ( NetworkManager outgoingPacket ) : void
outgoingPacket NetworkManager Packet to be sent
Результат void

SendPacket() публичный метод

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
Результат void

SendPacketUnqueued() публичный метод

Sends a packet directly to the simulator without queuing
public SendPacketUnqueued ( NetworkManager outgoingPacket ) : void
outgoingPacket NetworkManager Packet to be sent
Результат void

SendPacketUnqueued() публичный метод

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
Результат void

SendPing() публичный метод

public SendPing ( ) : void
Результат void

SetSeedCaps() публичный метод

public SetSeedCaps ( string seedcaps ) : void
seedcaps string
Результат void

Simulator() публичный метод

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
Результат System

ToString() публичный метод

Returns Simulator Name as a String
public ToString ( ) : string
Результат string

operator() публичный статический метод

public static operator ( ) : bool
Результат bool

Описание свойств

Access публичное свойство

public SimAccess Access
Результат SimAccess

BillableFactor публичное свойство

public float BillableFactor
Результат float

Caps публичное свойство

The capabilities for this simulator
public Caps,OpenMetaverse Caps
Результат Caps

Client публичное свойство

A public reference to the client that this Simulator object is attached to
public GridClient,OpenMetaverse Client
Результат GridClient

Estate публичное свойство

public EstateTools Estate
Результат EstateTools

Flags публичное свойство

public RegionFlags Flags
Результат RegionFlags

Handle публичное свойство

public ulong Handle
Результат ulong

ID публичное свойство

public UUID ID
Результат UUID

IsEstateManager публичное свойство

public bool IsEstateManager
Результат bool

Name публичное свойство

public string Name
Результат string

ObjectsAvatars публичное свойство

Provides access to two thread-safe dictionaries containing avatars and primitives found in this simulator
public InternalDictionary ObjectsAvatars
Результат Avatar>.InternalDictionary

ObjectsPrimitives публичное свойство

public InternalDictionary ObjectsPrimitives
Результат Primitive>.InternalDictionary

ParcelOverlay публичное свойство

A 64x64 grid of parcel coloring values. The values stored in this array are of the ParcelArrayType type
public byte[] ParcelOverlay
Результат byte[]

ParcelOverlaysReceived публичное свойство

public int ParcelOverlaysReceived
Результат int

Parcels публичное свойство

Provides access to an internal thread-safe dictionary containing parcel information found in this simulator
public InternalDictionary Parcels
Результат Parcel>.InternalDictionary

Sequence публичное свойство

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
Результат SequenceNumberCounter

SimOwner публичное свойство

public UUID SimOwner
Результат UUID

SimVersion публичное свойство

The current version of software this simulator is running
public string SimVersion
Результат string

Stats публичное свойство

Statistics information for this simulator and the connection to the simulator, calculated by the simulator itself and the library
public SimStats Stats
Результат SimStats

TerrainBase0 публичное свойство

public UUID TerrainBase0
Результат UUID

TerrainBase1 публичное свойство

public UUID TerrainBase1
Результат UUID

TerrainBase2 публичное свойство

public UUID TerrainBase2
Результат UUID

TerrainBase3 публичное свойство

public UUID TerrainBase3
Результат UUID

TerrainDetail0 публичное свойство

public UUID TerrainDetail0
Результат UUID

TerrainDetail1 публичное свойство

public UUID TerrainDetail1
Результат UUID

TerrainDetail2 публичное свойство

public UUID TerrainDetail2
Результат UUID

TerrainDetail3 публичное свойство

public UUID TerrainDetail3
Результат UUID

TerrainHeightRange00 публичное свойство

public float TerrainHeightRange00
Результат float

TerrainHeightRange01 публичное свойство

public float TerrainHeightRange01
Результат float

TerrainHeightRange10 публичное свойство

public float TerrainHeightRange10
Результат float

TerrainHeightRange11 публичное свойство

public float TerrainHeightRange11
Результат float

TerrainStartHeight00 публичное свойство

public float TerrainStartHeight00
Результат float

TerrainStartHeight01 публичное свойство

public float TerrainStartHeight01
Результат float

TerrainStartHeight10 публичное свойство

public float TerrainStartHeight10
Результат float

TerrainStartHeight11 публичное свойство

public float TerrainStartHeight11
Результат float

WaterHeight публичное свойство

public float WaterHeight
Результат float