WriteByte() public abstract method

public abstract WriteByte ( byte b ) : void
b byte
return void
示例#1
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCChatResultMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   field.Name = "result";
   field.Type = TType.Byte;
   field.ID = 10;
   oprot.WriteFieldBegin(field);
   oprot.WriteByte(Result);
   oprot.WriteFieldEnd();
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#2
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("ArmyMemberInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.charId) {
     field.Name = "charId";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(CharId);
     oprot.WriteFieldEnd();
   }
   if (Name != null && __isset.name) {
     field.Name = "name";
     field.Type = TType.String;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Name);
     oprot.WriteFieldEnd();
   }
   if (__isset.professionId) {
     field.Name = "professionId";
     field.Type = TType.I32;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(ProfessionId);
     oprot.WriteFieldEnd();
   }
   if (__isset.level) {
     field.Name = "level";
     field.Type = TType.I16;
     field.ID = 40;
     oprot.WriteFieldBegin(field);
     oprot.WriteI16(Level);
     oprot.WriteFieldEnd();
   }
   if (__isset.role) {
     field.Name = "role";
     field.Type = TType.Byte;
     field.ID = 50;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(Role);
     oprot.WriteFieldEnd();
   }
   if (__isset.joinTime) {
     field.Name = "joinTime";
     field.Type = TType.I32;
     field.ID = 60;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(JoinTime);
     oprot.WriteFieldEnd();
   }
   if (__isset.lastOfflineTime) {
     field.Name = "lastOfflineTime";
     field.Type = TType.I32;
     field.ID = 70;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(LastOfflineTime);
     oprot.WriteFieldEnd();
   }
   if (__isset.online) {
     field.Name = "online";
     field.Type = TType.Bool;
     field.ID = 100;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Online);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("MissionStructInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.missionId) {
     field.Name = "missionId";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(MissionId);
     oprot.WriteFieldEnd();
   }
   if (__isset.missionStateEnumType) {
     field.Name = "missionStateEnumType";
     field.Type = TType.I32;
     field.ID = 11;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)MissionStateEnumType);
     oprot.WriteFieldEnd();
   }
   if (__isset.stepIndex) {
     field.Name = "stepIndex";
     field.Type = TType.Byte;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(StepIndex);
     oprot.WriteFieldEnd();
   }
   if (MissionStepStructInfo != null && __isset.missionStepStructInfo) {
     field.Name = "missionStepStructInfo";
     field.Type = TType.Struct;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     MissionStepStructInfo.Write(oprot);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("GetAssociationsReturnStruct");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.retval) {
     field.Name = "retval";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Retval);
     oprot.WriteFieldEnd();
   }
   if (O_associations != null && __isset.o_associations) {
     field.Name = "o_associations";
     field.Type = TType.List;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Byte, O_associations.Count));
       foreach (sbyte _iter23 in O_associations)
       {
         oprot.WriteByte(_iter23);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCCharEquipmentBringUpMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (FailSystemInfo != null && __isset.failSystemInfo) {
     field.Name = "failSystemInfo";
     field.Type = TType.Struct;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     FailSystemInfo.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (__isset.equipmentUniqueId) {
     field.Name = "equipmentUniqueId";
     field.Type = TType.I64;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(EquipmentUniqueId);
     oprot.WriteFieldEnd();
   }
   if (__isset.bringUpIndex) {
     field.Name = "bringUpIndex";
     field.Type = TType.Byte;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(BringUpIndex);
     oprot.WriteFieldEnd();
   }
   if (__isset.beginBringUpTime) {
     field.Name = "beginBringUpTime";
     field.Type = TType.I64;
     field.ID = 40;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(BeginBringUpTime);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CSPreUseSkillMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.skillId) {
     field.Name = "skillId";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(SkillId);
     oprot.WriteFieldEnd();
   }
   if (__isset.targetUniqueId) {
     field.Name = "targetUniqueId";
     field.Type = TType.I64;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(TargetUniqueId);
     oprot.WriteFieldEnd();
   }
   if (Pos != null && __isset.pos) {
     field.Name = "pos";
     field.Type = TType.Struct;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     Pos.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (__isset.hitPointCount) {
     field.Name = "hitPointCount";
     field.Type = TType.Byte;
     field.ID = 40;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(HitPointCount);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#7
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CSFriendExtend");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.extendTimes) {
     field.Name = "extendTimes";
     field.Type = TType.Byte;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(ExtendTimes);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#8
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCInlayGemMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (FailSystemInfo != null && __isset.failSystemInfo) {
     field.Name = "failSystemInfo";
     field.Type = TType.Struct;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     FailSystemInfo.Write(oprot);
     oprot.WriteFieldEnd();
   }
   if (__isset.gemUniqueId) {
     field.Name = "gemUniqueId";
     field.Type = TType.I64;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(GemUniqueId);
     oprot.WriteFieldEnd();
   }
   if (__isset.equipmentUniqueId) {
     field.Name = "equipmentUniqueId";
     field.Type = TType.I64;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(EquipmentUniqueId);
     oprot.WriteFieldEnd();
   }
   if (__isset.holeIndex) {
     field.Name = "holeIndex";
     field.Type = TType.Byte;
     field.ID = 40;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(HoleIndex);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#9
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCItemDetail");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.bagType) {
     field.Name = "bagType";
     field.Type = TType.Byte;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(BagType);
     oprot.WriteFieldEnd();
   }
   if (__isset.bagIndex) {
     field.Name = "bagIndex";
     field.Type = TType.I16;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteI16(BagIndex);
     oprot.WriteFieldEnd();
   }
   if (__isset.initSkillId) {
     field.Name = "initSkillId";
     field.Type = TType.I32;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(InitSkillId);
     oprot.WriteFieldEnd();
   }
   if (__isset.randSkillId) {
     field.Name = "randSkillId";
     field.Type = TType.I32;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(RandSkillId);
     oprot.WriteFieldEnd();
   }
   if (__isset.equipHeroImgId) {
     field.Name = "equipHeroImgId";
     field.Type = TType.I32;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(EquipHeroImgId);
     oprot.WriteFieldEnd();
   }
   if (MatchInfo != null && __isset.matchInfo) {
     field.Name = "matchInfo";
     field.Type = TType.String;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(MatchInfo);
     oprot.WriteFieldEnd();
   }
   if (__isset.matchStatus) {
     field.Name = "matchStatus";
     field.Type = TType.Byte;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(MatchStatus);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#10
0
文件: BaseMsg.cs 项目: wsycarlos/ARIA
 public void Write(TProtocol oprot) {
   oprot.IncrementRecursionDepth();
   try
   {
     TStruct struc = new TStruct("BaseMsg");
     oprot.WriteStructBegin(struc);
     TField field = new TField();
     field.Name = "msgType";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)MsgType);
     oprot.WriteFieldEnd();
     if (__isset.boolVal) {
       field.Name = "boolVal";
       field.Type = TType.Bool;
       field.ID = 2;
       oprot.WriteFieldBegin(field);
       oprot.WriteBool(BoolVal);
       oprot.WriteFieldEnd();
     }
     if (__isset.byteVal) {
       field.Name = "byteVal";
       field.Type = TType.Byte;
       field.ID = 3;
       oprot.WriteFieldBegin(field);
       oprot.WriteByte(ByteVal);
       oprot.WriteFieldEnd();
     }
     if (__isset.intVal) {
       field.Name = "intVal";
       field.Type = TType.I32;
       field.ID = 4;
       oprot.WriteFieldBegin(field);
       oprot.WriteI32(IntVal);
       oprot.WriteFieldEnd();
     }
     if (__isset.doubleVal) {
       field.Name = "doubleVal";
       field.Type = TType.Double;
       field.ID = 5;
       oprot.WriteFieldBegin(field);
       oprot.WriteDouble(DoubleVal);
       oprot.WriteFieldEnd();
     }
     if (StrVal != null && __isset.strVal) {
       field.Name = "strVal";
       field.Type = TType.String;
       field.ID = 6;
       oprot.WriteFieldBegin(field);
       oprot.WriteString(StrVal);
       oprot.WriteFieldEnd();
     }
     if (ByteArrVal != null && __isset.byteArrVal) {
       field.Name = "byteArrVal";
       field.Type = TType.String;
       field.ID = 7;
       oprot.WriteFieldBegin(field);
       oprot.WriteBinary(ByteArrVal);
       oprot.WriteFieldEnd();
     }
     if (MapVal != null && __isset.mapVal) {
       field.Name = "mapVal";
       field.Type = TType.Map;
       field.ID = 8;
       oprot.WriteFieldBegin(field);
       {
         oprot.WriteMapBegin(new TMap(TType.Struct, TType.Struct, MapVal.Count));
         foreach (BaseMsg _iter10 in MapVal.Keys)
         {
           _iter10.Write(oprot);
           MapVal[_iter10].Write(oprot);
         }
         oprot.WriteMapEnd();
       }
       oprot.WriteFieldEnd();
     }
     if (ListVal != null && __isset.listVal) {
       field.Name = "listVal";
       field.Type = TType.List;
       field.ID = 9;
       oprot.WriteFieldBegin(field);
       {
         oprot.WriteListBegin(new TList(TType.Struct, ListVal.Count));
         foreach (BaseMsg _iter11 in ListVal)
         {
           _iter11.Write(oprot);
         }
         oprot.WriteListEnd();
       }
       oprot.WriteFieldEnd();
     }
     if (SetVal != null && __isset.setVal) {
       field.Name = "setVal";
       field.Type = TType.Set;
       field.ID = 10;
       oprot.WriteFieldBegin(field);
       {
         oprot.WriteSetBegin(new TSet(TType.Struct, SetVal.Count));
         foreach (BaseMsg _iter12 in SetVal)
         {
           _iter12.Write(oprot);
         }
         oprot.WriteSetEnd();
       }
       oprot.WriteFieldEnd();
     }
     oprot.WriteFieldStop();
     oprot.WriteStructEnd();
   }
   finally
   {
     oprot.DecrementRecursionDepth();
   }
 }
示例#11
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("TipLevel");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.level) {
     field.Name = "level";
     field.Type = TType.Byte;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(Level);
     oprot.WriteFieldEnd();
   }
   if (__isset.second) {
     field.Name = "second";
     field.Type = TType.Byte;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(Second);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCArmyMemberInfoChangeMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.charId) {
     field.Name = "charId";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(CharId);
     oprot.WriteFieldEnd();
   }
   if (__isset.online) {
     field.Name = "online";
     field.Type = TType.Bool;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(Online);
     oprot.WriteFieldEnd();
   }
   if (__isset.level) {
     field.Name = "level";
     field.Type = TType.I16;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     oprot.WriteI16(Level);
     oprot.WriteFieldEnd();
   }
   if (__isset.role) {
     field.Name = "role";
     field.Type = TType.Byte;
     field.ID = 40;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(Role);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#13
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("GetNodeStatistics_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset._homeId) {
     field.Name = "_homeId";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(_homeId);
     oprot.WriteFieldEnd();
   }
   if (__isset._nodeId) {
     field.Name = "_nodeId";
     field.Type = TType.Byte;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(_nodeId);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#14
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("ActivateScene_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset._sceneId) {
     field.Name = "_sceneId";
     field.Type = TType.Byte;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(_sceneId);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#15
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SetSceneLabel_args");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset._sceneId) {
     field.Name = "_sceneId";
     field.Type = TType.Byte;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(_sceneId);
     oprot.WriteFieldEnd();
   }
   if (_value != null && __isset._value) {
     field.Name = "_value";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(_value);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CSPutOnHeroEquipmentMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.heroUniqueId) {
     field.Name = "heroUniqueId";
     field.Type = TType.I64;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(HeroUniqueId);
     oprot.WriteFieldEnd();
   }
   if (__isset.equipmentUniqueId) {
     field.Name = "equipmentUniqueId";
     field.Type = TType.I64;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(EquipmentUniqueId);
     oprot.WriteFieldEnd();
   }
   if (__isset.pos) {
     field.Name = "pos";
     field.Type = TType.Byte;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(Pos);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCFriendRecieveEnergyList");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.recieveEnergyTimes) {
     field.Name = "recieveEnergyTimes";
     field.Type = TType.Byte;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(RecieveEnergyTimes);
     oprot.WriteFieldEnd();
   }
   if (__isset.recieveEnergyTimesLimit) {
     field.Name = "recieveEnergyTimesLimit";
     field.Type = TType.Byte;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(RecieveEnergyTimesLimit);
     oprot.WriteFieldEnd();
   }
   if (RecieveEnergyList != null && __isset.recieveEnergyList) {
     field.Name = "recieveEnergyList";
     field.Type = TType.List;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, RecieveEnergyList.Count));
       foreach (KXSGCodec.RecieveEnergyInfo _iter11 in RecieveEnergyList)
       {
         _iter11.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#18
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CSHeroChangeEquip");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.heroUuid) {
     field.Name = "heroUuid";
     field.Type = TType.I64;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(HeroUuid);
     oprot.WriteFieldEnd();
   }
   if (__isset.index) {
     field.Name = "index";
     field.Type = TType.Byte;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(Index);
     oprot.WriteFieldEnd();
   }
   if (EquipUuid != null && __isset.equipUuid) {
     field.Name = "equipUuid";
     field.Type = TType.String;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(EquipUuid);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#19
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("Header");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.key) {
     field.Name = "key";
     field.Type = TType.I32;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)Key);
     oprot.WriteFieldEnd();
   }
   if (__isset.ok) {
     field.Name = "ok";
     field.Type = TType.Byte;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(Ok);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#20
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("ChatSettingInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.chatSetting) {
     field.Name = "chatSetting";
     field.Type = TType.Byte;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(ChatSetting);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#21
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("RewardItem");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.rewardType) {
     field.Name = "rewardType";
     field.Type = TType.Byte;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(RewardType);
     oprot.WriteFieldEnd();
   }
   if (Uuid != null && __isset.uuid) {
     field.Name = "uuid";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(Uuid);
     oprot.WriteFieldEnd();
   }
   if (__isset.isNew) {
     field.Name = "isNew";
     field.Type = TType.Bool;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteBool(IsNew);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#22
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("HeroInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.templateId) {
     field.Name = "templateId";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(TemplateId);
     oprot.WriteFieldEnd();
   }
   if (__isset.uniqueId) {
     field.Name = "uniqueId";
     field.Type = TType.I64;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(UniqueId);
     oprot.WriteFieldEnd();
   }
   if (__isset.level) {
     field.Name = "level";
     field.Type = TType.I16;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     oprot.WriteI16(Level);
     oprot.WriteFieldEnd();
   }
   if (__isset.exp) {
     field.Name = "exp";
     field.Type = TType.I32;
     field.ID = 40;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Exp);
     oprot.WriteFieldEnd();
   }
   if (__isset.star) {
     field.Name = "star";
     field.Type = TType.Byte;
     field.ID = 50;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(Star);
     oprot.WriteFieldEnd();
   }
   if (__isset.quality) {
     field.Name = "quality";
     field.Type = TType.Byte;
     field.ID = 60;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(Quality);
     oprot.WriteFieldEnd();
   }
   if (SkillInfoList != null && __isset.skillInfoList) {
     field.Name = "skillInfoList";
     field.Type = TType.List;
     field.ID = 70;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Struct, SkillInfoList.Count));
       foreach (SkillInfo _iter3 in SkillInfoList)
       {
         _iter3.Write(oprot);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   if (__isset.loyalty) {
     field.Name = "loyalty";
     field.Type = TType.I32;
     field.ID = 100;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Loyalty);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#23
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("TRegionInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (StartKey != null && __isset.startKey) {
     field.Name = "startKey";
     field.Type = TType.String;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(StartKey);
     oprot.WriteFieldEnd();
   }
   if (EndKey != null && __isset.endKey) {
     field.Name = "endKey";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(EndKey);
     oprot.WriteFieldEnd();
   }
   if (__isset.id) {
     field.Name = "id";
     field.Type = TType.I64;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Id);
     oprot.WriteFieldEnd();
   }
   if (Name != null && __isset.name) {
     field.Name = "name";
     field.Type = TType.String;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(Name);
     oprot.WriteFieldEnd();
   }
   if (__isset.version) {
     field.Name = "version";
     field.Type = TType.Byte;
     field.ID = 5;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte((sbyte)Version);
     oprot.WriteFieldEnd();
   }
   if (ServerName != null && __isset.serverName) {
     field.Name = "serverName";
     field.Type = TType.String;
     field.ID = 6;
     oprot.WriteFieldBegin(field);
     oprot.WriteBinary(ServerName);
     oprot.WriteFieldEnd();
   }
   if (__isset.port) {
     field.Name = "port";
     field.Type = TType.I32;
     field.ID = 7;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Port);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#24
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCMissionStepInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.state) {
     field.Name = "state";
     field.Type = TType.Byte;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(State);
     oprot.WriteFieldEnd();
   }
   if (__isset.counter1) {
     field.Name = "counter1";
     field.Type = TType.I32;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Counter1);
     oprot.WriteFieldEnd();
   }
   if (__isset.counter2) {
     field.Name = "counter2";
     field.Type = TType.I32;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Counter2);
     oprot.WriteFieldEnd();
   }
   if (__isset.counter3) {
     field.Name = "counter3";
     field.Type = TType.I32;
     field.ID = 40;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(Counter3);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#25
0
 public override void WriteByte(sbyte b)
 {
     WrappedProtocol.WriteByte(b);
 }
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("GetAllScenesReturnStruct");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.retval) {
     field.Name = "retval";
     field.Type = TType.Byte;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(Retval);
     oprot.WriteFieldEnd();
   }
   if (_sceneIds != null && __isset._sceneIds) {
     field.Name = "_sceneIds";
     field.Type = TType.List;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.Byte, _sceneIds.Count));
       foreach (byte _iter23 in _sceneIds)
       {
         oprot.WriteByte(_iter23);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#27
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CSHeroModifyTeam");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.teamIndex) {
     field.Name = "teamIndex";
     field.Type = TType.Byte;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(TeamIndex);
     oprot.WriteFieldEnd();
   }
   if (NewTeamList != null && __isset.newTeamList) {
     field.Name = "newTeamList";
     field.Type = TType.List;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     {
       oprot.WriteListBegin(new TList(TType.I64, NewTeamList.Count));
       foreach (long _iter3 in NewTeamList)
       {
         oprot.WriteI64(_iter3);
       }
       oprot.WriteListEnd();
     }
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#28
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CSQuickLoginMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.deviceType) {
     field.Name = "deviceType";
     field.Type = TType.Byte;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(DeviceType);
     oprot.WriteFieldEnd();
   }
   if (DeviceId != null && __isset.deviceId) {
     field.Name = "deviceId";
     field.Type = TType.String;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(DeviceId);
     oprot.WriteFieldEnd();
   }
   if (DeviceModel != null && __isset.deviceModel) {
     field.Name = "deviceModel";
     field.Type = TType.String;
     field.ID = 3;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(DeviceModel);
     oprot.WriteFieldEnd();
   }
   if (__isset.serverId) {
     field.Name = "serverId";
     field.Type = TType.I16;
     field.ID = 4;
     oprot.WriteFieldBegin(field);
     oprot.WriteI16(ServerId);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#29
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SCBattleReusltMsg");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.battleResultType) {
     field.Name = "battleResultType";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32((int)BattleResultType);
     oprot.WriteFieldEnd();
   }
   if (__isset.awardGold) {
     field.Name = "awardGold";
     field.Type = TType.I32;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(AwardGold);
     oprot.WriteFieldEnd();
   }
   if (__isset.star) {
     field.Name = "star";
     field.Type = TType.Byte;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(Star);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#30
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("SendChatCharInfo");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.sendCharId) {
     field.Name = "sendCharId";
     field.Type = TType.I32;
     field.ID = 10;
     oprot.WriteFieldBegin(field);
     oprot.WriteI32(SendCharId);
     oprot.WriteFieldEnd();
   }
   if (CharName != null && __isset.charName) {
     field.Name = "charName";
     field.Type = TType.String;
     field.ID = 20;
     oprot.WriteFieldBegin(field);
     oprot.WriteString(CharName);
     oprot.WriteFieldEnd();
   }
   if (__isset.vipLevel) {
     field.Name = "vipLevel";
     field.Type = TType.Byte;
     field.ID = 30;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(VipLevel);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }
示例#31
0
 public void Write(TProtocol oprot) {
   TStruct struc = new TStruct("CSFriendApplyOper");
   oprot.WriteStructBegin(struc);
   TField field = new TField();
   if (__isset.uuid) {
     field.Name = "uuid";
     field.Type = TType.I64;
     field.ID = 1;
     oprot.WriteFieldBegin(field);
     oprot.WriteI64(Uuid);
     oprot.WriteFieldEnd();
   }
   if (__isset.operType) {
     field.Name = "operType";
     field.Type = TType.Byte;
     field.ID = 2;
     oprot.WriteFieldBegin(field);
     oprot.WriteByte(OperType);
     oprot.WriteFieldEnd();
   }
   oprot.WriteFieldStop();
   oprot.WriteStructEnd();
 }