public void MergeFrom(SrvRes other) { if (other == null) { return; } if (other.MethodId != global::Lspb.SrvMsgType.ErrorClientType) { MethodId = other.MethodId; } if (other.Result != global::Lspb.Result.Success) { Result = other.Result; } if (other.ErrStr.Length != 0) { ErrStr = other.ErrStr; } if (other.srvEnterRoom_ != null) { if (srvEnterRoom_ == null) { SrvEnterRoom = new global::Lspb.SrvEnterRoom(); } SrvEnterRoom.MergeFrom(other.SrvEnterRoom); } if (other.srvInitOver_ != null) { if (srvInitOver_ == null) { SrvInitOver = new global::Lspb.SrvInitOver(); } SrvInitOver.MergeFrom(other.SrvInitOver); } if (other.bGameInit_ != null) { if (bGameInit_ == null) { BGameInit = new global::Lspb.BGameInit(); } BGameInit.MergeFrom(other.BGameInit); } if (other.bGameStart_ != null) { if (bGameStart_ == null) { BGameStart = new global::Lspb.BGameStart(); } BGameStart.MergeFrom(other.BGameStart); } if (other.bGameFrame_ != null) { if (bGameFrame_ == null) { BGameFrame = new global::Lspb.BGameFrame(); } BGameFrame.MergeFrom(other.BGameFrame); } _unknownFields = pb::UnknownFieldSet.MergeFrom(_unknownFields, other._unknownFields); }
public static void BGameStart(Result result = Result.Success, string errStr = "") { BGameStart bGameStart = new BGameStart(); SrvRes res = CreateSrvRes(SrvMsgType.BGameStart, result, errStr); res.BGameStart = bGameStart; UdpSocket.Send(Serialize(res)); }
public override int GetHashCode() { int hash = 1; if (MethodId != global::Lspb.SrvMsgType.ErrorClientType) { hash ^= MethodId.GetHashCode(); } if (Result != global::Lspb.Result.Success) { hash ^= Result.GetHashCode(); } if (ErrStr.Length != 0) { hash ^= ErrStr.GetHashCode(); } if (srvEnterRoom_ != null) { hash ^= SrvEnterRoom.GetHashCode(); } if (srvInitOver_ != null) { hash ^= SrvInitOver.GetHashCode(); } if (bGameInit_ != null) { hash ^= BGameInit.GetHashCode(); } if (bGameStart_ != null) { hash ^= BGameStart.GetHashCode(); } if (bGameFrame_ != null) { hash ^= BGameFrame.GetHashCode(); } if (_unknownFields != null) { hash ^= _unknownFields.GetHashCode(); } return(hash); }
protected override void BGameStart(BGameStart msg, Result result, string errStr) { Console.WriteLine("BGameStart"); }
protected virtual void BGameStart(BGameStart msg, Result result, string errStr) { Console.WriteLine("-----------------------no implements BGameStart-----------------------"); }