|
ElectroServer 5 Client: C#
|
This the response to the GetRoomsInZoneRequest. More...
Public Member Functions | |
| GetRoomsInZoneResponse () | |
| GetRoomsInZoneResponse (TBase t) | |
| override TBase | ToThrift () |
| override TBase | NewThrift () |
| override void | FromThrift (TBase t_) |
Public Member Functions inherited from Electrotank.Electroserver5.Api.EsResponse | |
| EsResponse () | |
Properties | |
| int | ZoneId [get, set] |
| Id of the zone that contains these rooms. More... | |
| string | ZoneName [get, set] |
| Name of the zone that contains these rooms. More... | |
| List< RoomListEntry > | Entries [get, set] |
| List of RoomListEntry objects that describe the rooms in the zone. More... | |
This the response to the GetRoomsInZoneRequest.
This response contains a list of RoomListEntry object, each describing a room in that zone.
This example shows how to request the rooms in a zone, listen for the response to that request, and print out the results.
private var _es:ElectroServer;
private function initialize():void {
_es.engine.addEventListener(MessageType.GetRoomsInZoneResponse.name, onGetRoomsInZoneResponse);var griz:GetRoomsInZoneRequest = new GetRoomsInZoneRequest(); griz.zoneName = "GameZone"; _es.engine.send(griz); }
private function onGetRoomsInZoneResponse(e:GetRoomsInZoneResponse):void {
trace("Zone: "+e.zoneName + ", " + e.zoneName.toString());
for each (var rle:RoomListEntry in e.entries) {
trace("Room: "+rle.roomName + ", " + rle.roomId.toString());
}
}
| Electrotank.Electroserver5.Api.GetRoomsInZoneResponse.GetRoomsInZoneResponse | ( | ) |
| Electrotank.Electroserver5.Api.GetRoomsInZoneResponse.GetRoomsInZoneResponse | ( | TBase | t | ) |
|
virtual |
Implements Electrotank.Electroserver5.Api.EsMessage.
|
virtual |
Implements Electrotank.Electroserver5.Api.EsMessage.
|
virtual |
Implements Electrotank.Electroserver5.Api.EsMessage.
|
getset |
List of RoomListEntry objects that describe the rooms in the zone.
|
getset |
Id of the zone that contains these rooms.
|
getset |
Name of the zone that contains these rooms.