C# Class AssemblyCSharp.LO_GameServer

游戏服务器
Inheritance: UnityEngine.MonoBehaviour
显示文件 Open project: applexiaohao/RXCardGame

Private Properties

Property Type Description
ArrangeSeat void
LO_GameServer System
RemoteReceiveMessage void

Public Methods

Method Description
CreateRoom ( string roomname ) : bool

创建游戏房间函数

InitServer ( string ip, int port ) : bool

初始化设置游戏远程服务器

JoinHostRoom ( HostData room, JoinHostRoomDelegate block ) : void
OnConnectedToServer ( ) : void
OnMasterServerEvent ( MasterServerEvent ev ) : void
OnPlayerConnected ( NetworkPlayer player ) : void
PopCardSet ( RX_CardSet sender, PopCardSetDelegate block ) : void
SendGameMessage ( string message ) : void
StartGame ( ) : void
StartRequestRoom ( RequestRoomComplete block ) : void

Private Methods

Method Description
ArrangeSeat ( ) : void
LO_GameServer ( ) : System
RemoteReceiveMessage ( string message ) : void

Method Details

CreateRoom() public method

创建游戏房间函数
public CreateRoom ( string roomname ) : bool
roomname string
return bool

InitServer() public method

初始化设置游戏远程服务器
public InitServer ( string ip, int port ) : bool
ip string
port int
return bool

JoinHostRoom() public method

public JoinHostRoom ( HostData room, JoinHostRoomDelegate block ) : void
room UnityEngine.HostData
block JoinHostRoomDelegate
return void

OnConnectedToServer() public method

public OnConnectedToServer ( ) : void
return void

OnMasterServerEvent() public method

public OnMasterServerEvent ( MasterServerEvent ev ) : void
ev MasterServerEvent
return void

OnPlayerConnected() public method

public OnPlayerConnected ( NetworkPlayer player ) : void
player UnityEngine.NetworkPlayer
return void

PopCardSet() public method

public PopCardSet ( RX_CardSet sender, PopCardSetDelegate block ) : void
sender RX_CardSet
block PopCardSetDelegate
return void

SendGameMessage() public method

public SendGameMessage ( string message ) : void
message string
return void

StartGame() public method

public StartGame ( ) : void
return void

StartRequestRoom() public method

public StartRequestRoom ( RequestRoomComplete block ) : void
block RequestRoomComplete
return void