Example #1
0
    void GetVersion(Net.NetworkConnection conn)
    {
        var getver = new NetMsg.CGetVersion();

        byte[] buff = Net.PacketHelper.Pack(getver);
        conn.Send((int)NetMsgID.LOGIN_MSG_GET_VERSION, buff);
    }
Example #2
0
 public override void OnServerConnect(NetworkConnection conn)
 {
     base.OnServerConnect(conn);
     instance = this;
 }
Example #3
0
 public override void OnServerDisconnect(NetworkConnection conn)
 {
     base.OnServerDisconnect(conn);
     ChangeToRoom();
 }
Example #4
0
 public override void OnServerReady(NetworkConnection conn)
 {
     base.OnServerReady(conn);
 }