public override int GetHashCode() { int hash = 1; if (UserId != 0) { hash ^= UserId.GetHashCode(); } if (ModuleId != global::Lspb.ModuleId.UnknownModel) { hash ^= ModuleId.GetHashCode(); } if (MethodId != global::Lspb.ClientMsgType.ErrorClientType) { hash ^= MethodId.GetHashCode(); } if (cliEnterRoom_ != null) { hash ^= CliEnterRoom.GetHashCode(); } if (cliInitOver_ != null) { hash ^= CliInitOver.GetHashCode(); } if (cliOperate_ != null) { hash ^= CliOperate.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
public static void CliInitOver(int userId = 1, ModuleId moduleId = ModuleId.Game) { CliInitOver cliInitOver = new CliInitOver(); CliReq req = CreateCliReq(ClientMsgType.CliInitOver, userId, moduleId); req.CliInitOver = cliInitOver; UdpSocket.Send(Serialize(req)); }
public void MergeFrom(CliReq other) { if (other == null) { return; } if (other.UserId != 0) { UserId = other.UserId; } if (other.ModuleId != global::Lspb.ModuleId.UnknownModel) { ModuleId = other.ModuleId; } if (other.MethodId != global::Lspb.ClientMsgType.ErrorClientType) { MethodId = other.MethodId; } if (other.cliEnterRoom_ != null) { if (cliEnterRoom_ == null) { CliEnterRoom = new global::Lspb.CliEnterRoom(); } CliEnterRoom.MergeFrom(other.CliEnterRoom); } if (other.cliInitOver_ != null) { if (cliInitOver_ == null) { CliInitOver = new global::Lspb.CliInitOver(); } CliInitOver.MergeFrom(other.CliInitOver); } if (other.cliOperate_ != null) { if (cliOperate_ == null) { CliOperate = new global::Lspb.CliOperate(); } CliOperate.MergeFrom(other.CliOperate); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
protected virtual void CliInitOver(CliInitOver msg) { Console.WriteLine("-----------------------no implements CliInitOver-----------------------"); }
protected override void CliInitOver(CliInitOver msg) { Console.WriteLine("CliInitOver"); }