public void Read(TProtocol iprot) { iprot.IncrementRecursionDepth(); try { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.List) { { SceneObjects = new List <MMIStandard.MSceneObject>(); TList _list149 = iprot.ReadListBegin(); for (int _i150 = 0; _i150 < _list149.Count; ++_i150) { MMIStandard.MSceneObject _elem151; _elem151 = new MMIStandard.MSceneObject(); _elem151.Read(iprot); SceneObjects.Add(_elem151); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Target = new MMIStandard.MSceneObject(); Target.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.I32) { Amount = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.Map) { { Properties = new Dictionary <string, string>(); TMap _map152 = iprot.ReadMapBegin(); for (int _i153 = 0; _i153 < _map152.Count; ++_i153) { string _key154; string _val155; _key154 = iprot.ReadString(); _val155 = iprot.ReadString(); Properties[_key154] = _val155; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); } finally { iprot.DecrementRecursionDepth(); } }
public void Read(TProtocol iprot) { iprot.IncrementRecursionDepth(); try { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { Start = new MMIStandard.MVector(); Start.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.Struct) { Goal = new MMIStandard.MVector(); Goal.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.List) { { SceneObjects = new List <MMIStandard.MSceneObject>(); TList _list136 = iprot.ReadListBegin(); for (int _i137 = 0; _i137 < _list136.Count; ++_i137) { MMIStandard.MSceneObject _elem138; _elem138 = new MMIStandard.MSceneObject(); _elem138.Read(iprot); SceneObjects.Add(_elem138); } iprot.ReadListEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.Map) { { Properties = new Dictionary <string, string>(); TMap _map139 = iprot.ReadMapBegin(); for (int _i140 = 0; _i140 < _map139.Count; ++_i140) { string _key141; string _val142; _key141 = iprot.ReadString(); _val142 = iprot.ReadString(); Properties[_key141] = _val142; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); } finally { iprot.DecrementRecursionDepth(); } }
public void Read(TProtocol iprot) { iprot.IncrementRecursionDepth(); try { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 1: if (field.Type == TType.Struct) { Posture = new MMIStandard.MAvatarPostureValues(); Posture.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 2: if (field.Type == TType.I32) { HandType = (MMIStandard.MJointType)iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 3: if (field.Type == TType.Struct) { SceneObject = new MMIStandard.MSceneObject(); SceneObject.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 4: if (field.Type == TType.Bool) { RepositionHand = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); } finally { iprot.DecrementRecursionDepth(); } }