public void WriteReturn(RpcMethod method, BinaryWriter bw, object value) {}
 public void Dispatch(IRpcImplInstnce impl, RpcMethod method, ServiceImplementStub.SendResult cont)
 {
     switch (method.MethodId)
     {
     case 1:
         ((ICli2LogicImpl)impl).AskChangeName((UInt64)(method.Args[0]), (String)(method.Args[1])).ContinueWith(t => DoContinue(t, cont));
         break;
     case 2:
         ((ICli2LogicImpl)impl).AskAddMoney((UInt64)(method.Args[0]), (UInt32)(method.Args[1])).ContinueWith(t => DoContinue(t, cont));
         break;
     case 3:
         ((ICli2LogicImpl)impl).AskLearnSkill((UInt64)(method.Args[0]), (UInt32)(method.Args[1])).ContinueWith(t => DoContinue(t, cont));
         break;
     case 4:
         ((ICli2LogicImpl)impl).TestEnum((UInt64)(method.Args[0]), (TowerState)(method.Args[1])).ContinueWith(t => DoContinue(t, cont));
         break;
     case 5:
         ((ICli2LogicImpl)impl).TestArray((UInt64[])(method.Args[0]), (TowerState)(method.Args[1])).ContinueWith(t => DoContinue(t, cont));
         break;
     case 6:
         ((ICli2LogicImpl)impl).TestList((List<Boolean>)(method.Args[0]), (TowerState)(method.Args[1])).ContinueWith(t => DoContinue(t, cont));
         break;
     case 7:
         ((ICli2LogicImpl)impl).TestDict((Dictionary<Boolean, PlayerInfo>)(method.Args[0]), (TowerState)(method.Args[1])).ContinueWith(t => DoContinue(t, cont));
         break;
     case 8:
         ((ICli2LogicImpl)impl).RequestPlayerInfo((UInt64)(method.Args[0])).ContinueWith(t => DoContinue(t, cont));
         break;
     case 9:
         ((ICli2LogicImpl)impl).TestHierarchy((TestBaseClass)(method.Args[0]), (TestDerived1Class)(method.Args[1]), (TestDerived11Class)(method.Args[2])).ContinueWith(t => DoContinue(t, cont));
         break;
     case 10:
         ((ICli2LogicImpl)impl).TestHierarch2y((TestBaseClass)(method.Args[0]), (TestDerived1Class)(method.Args[1]), (TestDerived11Class)(method.Args[2])).ContinueWith(t => DoContinue(t, cont));
         break;
     }
 }
 public void Dispatch(IRpcImplInstnce impl, RpcMethod method, ServiceImplementStub.SendResult cont)
 {
     switch (method.MethodId)
     {
     case 1:
         ((IWatcherServiceNotifyImpl)impl).NotifyWatchingMaster((Byte[])(method.Args[0]), (String)(method.Args[1]));
         break;
     case 2:
         ((IWatcherServiceNotifyImpl)impl).NotifyInstanceSubjectiveDown((Byte[])(method.Args[0]), (String)(method.Args[1]));
         break;
     }
 }
 public RpcMethod Read(BinaryReader br)
 {
     RpcMethod method = new RpcMethod();
     method.MethodId = br.ReadUInt32();
     switch (method.MethodId)
     {
     case 1:
         method.Args = new object[2];
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             method.Args[0] = br.ReadBytes(br.ReadInt32());
         }
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             method.Args[1] = br.ReadString();
         }
         break;
     case 2:
         method.Args = new object[2];
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             method.Args[0] = br.ReadBytes(br.ReadInt32());
         }
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             method.Args[1] = br.ReadString();
         }
         break;
     }
     return method;
 }
 public void Dispatch(IRpcImplInstnce impl, RpcMethod method, ServiceImplementStub.SendResult cont)
 {
     switch (method.MethodId)
     {
     case 1:
         ((ILoginNotifyImpl)impl).NotifyLogicServerWorking((String)(method.Args[0]));
         break;
     }
 }
 public void Dispatch(IRpcImplInstnce impl, RpcMethod method, ServiceImplementStub.SendResult cont)
 {
     switch (method.MethodId)
     {
     case 1:
         ((IDbClientNotifyImpl)impl).NotifyConnectionInfo((String)(method.Args[0]), (Int32)(method.Args[1]));
         break;
     }
 }
 public RpcMethod Read(BinaryReader br)
 {
     RpcMethod method = new RpcMethod();
     method.MethodId = br.ReadUInt32();
     switch (method.MethodId)
     {
     case 1:
         method.Args = new object[1];
         method.Args[0] = br.ReadInt32();
         break;
     }
     return method;
 }
 public void Dispatch(IRpcImplInstnce impl, RpcMethod method, ServiceImplementStub.SendResult cont)
 {
     switch (method.MethodId)
     {
     case 1:
         ((ILogic2CliImpl)impl).ServerMessageOk();
         break;
     }
 }
 public RpcMethod Read(BinaryReader br)
 {
     RpcMethod method = new RpcMethod();
     method.MethodId = br.ReadUInt32();
     switch (method.MethodId)
     {
     case 1:
         break;
     }
     return method;
 }
 public void Dispatch(IRpcImplInstnce impl, RpcMethod method, ServiceImplementStub.SendResult cont)
 {
     switch (method.MethodId)
     {
     case 1:
         ((ILogic2SchedulerImpl)impl).RequestScheduleJob((Int32)(method.Args[0])).ContinueWith(t => DoContinue(t, cont));
         break;
     }
 }
 public void WriteReturn(RpcMethod method, BinaryWriter bw, object value)
 {
     switch (method.MethodId)
     {
     case 1:
         if (value == null)
         {
             bw.Write((byte)SerializeObjectMark.IsNull);
         }
         else
         {
             bw.Write((byte)SerializeObjectMark.Common);
             ((ServerList)value).Write(bw);
         }
         break;
     }
 }
 public void Dispatch(IRpcImplInstnce impl, RpcMethod method, ServiceImplementStub.SendResult cont)
 {
     switch (method.MethodId)
     {
     case 1:
         ((ICli2LoginImpl)impl).AskLogin((String)(method.Args[0]), (String)(method.Args[1]), (Byte[])(method.Args[2])).ContinueWith(t => DoContinue(t, cont));
         break;
     }
 }
 public void Dispatch(IRpcImplInstnce impl, RpcMethod method, ServiceImplementStub.SendResult cont)
 {
     switch (method.MethodId)
     {
     case 1:
         ((ICli2SceneImpl)impl).AskMoveTo((Int32)(method.Args[0]), (Int32)(method.Args[1])).ContinueWith(t => DoContinue(t, cont));
         break;
     }
 }
 public RpcMethod Read(BinaryReader br)
 {
     RpcMethod method = new RpcMethod();
     method.MethodId = br.ReadUInt32();
     switch (method.MethodId)
     {
     case 1:
         method.Args = new object[2];
         method.Args[0] = br.ReadUInt64();
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             method.Args[1] = br.ReadString();
         }
         break;
     case 2:
         method.Args = new object[2];
         method.Args[0] = br.ReadUInt64();
         method.Args[1] = br.ReadUInt32();
         break;
     case 3:
         method.Args = new object[2];
         method.Args[0] = br.ReadUInt64();
         method.Args[1] = br.ReadUInt32();
         break;
     case 4:
         method.Args = new object[2];
         method.Args[0] = br.ReadUInt64();
         method.Args[1] = (TowerState)br.ReadInt32();
         break;
     case 5:
         method.Args = new object[2];
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             {
                 var count0 = br.ReadInt32();
                 var arrayVal0 = new UInt64[count0];
                 if (count0 > 0)
                 {
                     for (int i0 = 0; i0 < count0; i0++)
                     {
                         arrayVal0[i0] = br.ReadUInt64();
                     }
                 }
                 method.Args[0] = arrayVal0;
             }
         }
         method.Args[1] = (TowerState)br.ReadInt32();
         break;
     case 6:
         method.Args = new object[2];
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             {
                 var count0 = br.ReadInt32();
                 var listVal0 = new List<Boolean>(count0);
                 if (count0 > 0)
                 {
                     for (int i0 = 0; i0 < count0; i0++)
                     {
                         var item0 = default(Boolean);
                         item0 = br.ReadBoolean();
                         listVal0.Add(item0);
                     }
                 }
                 method.Args[0] = listVal0;
             }
         }
         method.Args[1] = (TowerState)br.ReadInt32();
         break;
     case 7:
         method.Args = new object[2];
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             {
                 var count0 = br.ReadInt32();
                 var dictVal0 = new Dictionary<Boolean, PlayerInfo>(count0);
                 if (count0 > 0)
                 {
                     for (int i0 = 0; i0 < count0; i0++)
                     {
                         var key0 = default(Boolean);
                         var value0 = default(PlayerInfo);
                         key0 = br.ReadBoolean();
                         value0 = (new PlayerInfo()).Read(br);
                         dictVal0.Add(key0, value0);
                     }
                 }
                 method.Args[0] = dictVal0;
             }
         }
         method.Args[1] = (TowerState)br.ReadInt32();
         break;
     case 8:
         method.Args = new object[1];
         method.Args[0] = br.ReadUInt64();
         break;
     case 9:
         method.Args = new object[3];
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             method.Args[0] = (new TestBaseClass()).Read(br);
         }
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             method.Args[1] = (new TestDerived1Class()).Read(br);
         }
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             method.Args[2] = (new TestDerived11Class()).Read(br);
         }
         break;
     case 10:
         method.Args = new object[3];
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             method.Args[0] = (new TestBaseClass()).Read(br);
         }
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             method.Args[1] = (new TestDerived1Class()).Read(br);
         }
         if (br.ReadByte() == (byte)SerializeObjectMark.Common)
         {
             method.Args[2] = (new TestDerived11Class()).Read(br);
         }
         break;
     }
     return method;
 }
 public void WriteReturn(RpcMethod method, BinaryWriter bw, object value)
 {
     switch (method.MethodId)
     {
     case 1:
         bw.Write((UInt64)value);
         break;
     }
 }
 public void WriteReturn(RpcMethod method, BinaryWriter bw, object value)
 {
     switch (method.MethodId)
     {
     case 1:
         bw.Write((Boolean)value);
         break;
     case 2:
         bw.Write((Boolean)value);
         break;
     case 3:
         bw.Write((Boolean)value);
         break;
     case 4:
         bw.Write((Boolean)value);
         break;
     case 5:
         if (value == null)
         {
             bw.Write((byte)SerializeObjectMark.IsNull);
         }
         else
         {
             bw.Write((byte)SerializeObjectMark.Common);
             bw.Write(((Boolean[])value).Length);
             foreach (var item0 in (Boolean[])value)
             {
                 bw.Write((Boolean)item0);
             }
         }
         break;
     case 6:
         if (value == null)
         {
             bw.Write((byte)SerializeObjectMark.IsNull);
         }
         else
         {
             bw.Write((byte)SerializeObjectMark.Common);
             bw.Write(((List<Boolean>)value).Count);
             foreach (var item0 in (List<Boolean>)value)
             {
                 bw.Write((Boolean)item0);
             }
         }
         break;
     case 7:
         if (value == null)
         {
             bw.Write((byte)SerializeObjectMark.IsNull);
         }
         else
         {
             bw.Write((byte)SerializeObjectMark.Common);
             bw.Write(((Dictionary<Boolean, Byte[]>)value).Count);
             foreach (var item0 in (Dictionary<Boolean, Byte[]>)value)
             {
                 bw.Write((Boolean)(item0.Key));
                 bw.Write(((byte[])(item0.Value)).Length);
                 bw.Write((byte[])(item0.Value));
             }
         }
         break;
     case 8:
         if (value == null)
         {
             bw.Write((byte)SerializeObjectMark.IsNull);
         }
         else
         {
             bw.Write((byte)SerializeObjectMark.Common);
             ((PlayerInfo)value).Write(bw);
         }
         break;
     case 9:
         if (value == null)
         {
             bw.Write((byte)SerializeObjectMark.IsNull);
         }
         else
         {
             bw.Write((byte)SerializeObjectMark.Common);
             ((TestBaseClass)value).Write(bw);
         }
         break;
     case 10:
         if (value == null)
         {
             bw.Write((byte)SerializeObjectMark.IsNull);
         }
         else
         {
             bw.Write((byte)SerializeObjectMark.Common);
             ((TestBaseClass)value).Write(bw);
         }
         break;
     }
 }
 public void Dispatch(IRpcImplInstnce impl, RpcMethod method, ServiceImplementStub.SendResult cont)
 {
     switch (method.MethodId)
     {
     case 1:
         ((IScene2CliImpl)impl).SyncPosition((Int32)(method.Args[0]), (Int32)(method.Args[1]));
         break;
     }
 }