Holds room data that is available without connecting to the room, including data required to connect to the room. More...
Public Types | |
enum class | RoomState { STARTING = 0 , RUNNING = 1 , STOPPING = 2 } |
Room load state. More... | |
Public Member Functions | |
ksRoomInfo () | |
Constructor. More... | |
ksRoomInfo (ksRoomInfo copy) | |
Copy Constructor. More... | |
ksRoomInfo (string host, ushort port) | |
Constructor. More... | |
ksAddress | GetAddress (ksConnectionProtocols protocol) |
Gets the address for a protocol. More... | |
void | SetAddress (ksConnectionProtocols protocol, ksAddress address) |
Sets the address for a protocol. More... | |
ksJSON | ToJSON () |
Creates a ksJSON object of this room info. More... | |
byte[] | GetBytes () |
Serializes the room info to a byte array. More... | |
void | FromBytes (byte[] data) |
Deserializes the room info from a byte array. More... | |
override string | ToString () |
Returns a brief summary of the ksRoomInfo object including id, scene and room type. More... | |
Static Public Member Functions | |
static ksRoomInfo | FromJSON (ksJSON json) |
Initialize the room info using a json. More... | |
static implicit | operator ksMultiType (ksRoomInfo info) |
Implicit conversion from ksRoomInfo to ksMultiType. More... | |
static implicit | operator ksRoomInfo (ksMultiType multiType) |
Implicit conversion from ksMultiType to ksRoomInfo. More... | |
Properties | |
uint | Image [get, set] |
Image. More... | |
uint | Id [get, set] |
Room id. More... | |
string | Scene [get, set] |
Scene name. More... | |
string | Type [get, set] |
Room type. More... | |
string | Host [get, set] |
Host to connect to. More... | |
ushort | Port [get, set] |
Port to connect to. More... | |
string | Name [get, set] |
Room name. More... | |
bool | IsPublic [get, set] |
Is public? More... | |
RoomState | State [get, set] |
Server state. More... | |
ksHashSet< string > | PublicTags [get, set] |
Public tags. More... | |
ksJSON | PublicData [get, set] |
Public data. More... | |
Holds room data that is available without connecting to the room, including data required to connect to the room.
|
strong |
Room load state.
KS.Reactor.ksRoomInfo.ksRoomInfo | ( | ) |
Constructor.
KS.Reactor.ksRoomInfo.ksRoomInfo | ( | ksRoomInfo | copy | ) |
Copy Constructor.
copy | Room info to copy from. |
KS.Reactor.ksRoomInfo.ksRoomInfo | ( | string | host, |
ushort | port | ||
) |
Constructor.
host | Host to connect to. |
port | Port to connect to. |
void KS.Reactor.ksRoomInfo.FromBytes | ( | byte[] | data | ) |
Deserializes the room info from a byte array.
data | Data to deserialize. |
Implements KS.Reactor.ksIBufferable.
|
static |
Initialize the room info using a json.
json |
ksAddress KS.Reactor.ksRoomInfo.GetAddress | ( | ksConnectionProtocols | protocol | ) |
Gets the address for a protocol.
protocol | Protocol to get address for. |
byte [] KS.Reactor.ksRoomInfo.GetBytes | ( | ) |
Serializes the room info to a byte array.
Implements KS.Reactor.ksIBufferable.
|
static |
Implicit conversion from ksRoomInfo to ksMultiType.
info |
|
static |
Implicit conversion from ksMultiType to ksRoomInfo.
multiType |
void KS.Reactor.ksRoomInfo.SetAddress | ( | ksConnectionProtocols | protocol, |
ksAddress | address | ||
) |
Sets the address for a protocol.
If the address is invalid, clears the address for the protocol.
protocol | The protocol to set the address for. |
address | Address to set. If invalid, clears the address for the protocol. |
override string KS.Reactor.ksRoomInfo.ToString | ( | ) |
Returns a brief summary of the ksRoomInfo object including id, scene and room type.
|
getset |
Host to connect to.
|
getset |
Room id.
|
getset |
Image.
|
getset |
Is public?
|
getset |
Room name.
|
getset |
Port to connect to.
|
getset |
Public data.
|
getset |
Public tags.
|
getset |
Scene name.
|
getset |
Room type.