public void Execute(NetworkBase network) { switch (internCode) { case InternalCode.HostListResponse: network._MasterRPCHostListResponse(stream.ReadHostDatas()); break; case InternalCode.RegisterResponse: network._MasterRPCRegisterResponse(stream.ReadEndPoint()); break; case InternalCode.ProxyResponse: network._MasterRPCProxyResponse(stream.ReadUInt16(), stream.ReadPassword()); break; case InternalCode.ProxyClient: network._MasterRPCProxyClient(stream.ReadEndPoint(), stream.ReadPassword(), stream.ReadUInt16(), stream.ReadPassword()); break; case InternalCode.ProxyFailed: network._MasterRPCProxyFailed(stream.ReadInt32()); break; case InternalCode.RegisterFailed: network._MasterRPCRegisterFailed(stream.ReadInt32()); break; default: Log.Error(NetworkLogFlags.RPC, "Unknown internal Master RPC: ", internCode); break; } }