C# 클래스 RoomInfo, storyspace

A simplified room with just the info required to list and join, used for the room listing in the lobby. The properties are not settable (open, maxPlayers, etc).
This class resembles info about available rooms, as sent by the Master server's lobby. Consider all values as readonly. None are synced (only updated by events by server).
파일 보기 프로젝트 열기: personal-robots/storyspace 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
autoCleanUpField bool
maxPlayersField byte
nameField string
openField bool
visibleField bool

공개 메소드들

메소드 설명
Equals ( object p ) : bool

Makes RoomInfo comparable (by name).

GetHashCode ( ) : int

Accompanies Equals, using the name's HashCode as return.

ToString ( ) : string

Simple printingin method.

보호된 메소드들

메소드 설명
CacheProperties ( Hashtable propertiesToCache ) : void

Copies "well known" properties to fields (isVisible, etc) and caches the custom properties (string-keys only) in a local hashtable.

RoomInfo ( string roomName, Hashtable properties ) : System

Constructs a RoomInfo to be used in room listings in lobby.

메소드 상세

CacheProperties() 보호된 메소드

Copies "well known" properties to fields (isVisible, etc) and caches the custom properties (string-keys only) in a local hashtable.
protected CacheProperties ( Hashtable propertiesToCache ) : void
propertiesToCache Hashtable New or updated properties to store in this RoomInfo.
리턴 void

Equals() 공개 메소드

Makes RoomInfo comparable (by name).
public Equals ( object p ) : bool
p object
리턴 bool

GetHashCode() 공개 메소드

Accompanies Equals, using the name's HashCode as return.
public GetHashCode ( ) : int
리턴 int

RoomInfo() 보호된 메소드

Constructs a RoomInfo to be used in room listings in lobby.
protected RoomInfo ( string roomName, Hashtable properties ) : System
roomName string
properties Hashtable
리턴 System

ToString() 공개 메소드

Simple printingin method.
public ToString ( ) : string
리턴 string

프로퍼티 상세

autoCleanUpField 보호되어 있는 프로퍼티

Backing field for property. False unless the GameProperty is set to true (else it's not sent).
protected bool autoCleanUpField
리턴 bool

maxPlayersField 보호되어 있는 프로퍼티

Backing field for property.
protected byte maxPlayersField
리턴 byte

nameField 보호되어 있는 프로퍼티

Backing field for property.
protected string nameField
리턴 string

openField 보호되어 있는 프로퍼티

Backing field for property.
protected bool openField
리턴 bool

visibleField 보호되어 있는 프로퍼티

Backing field for property.
protected bool visibleField
리턴 bool