public void Read (TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 10: if (field.Type == TType.I32) { StageType = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.I32) { TerrainDataType = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 20: if (field.Type == TType.Struct) { PlayerTransformInfo = new ThriftTransformData(); PlayerTransformInfo.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 30: if (field.Type == TType.Bool) { IsResumeScene = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 40: if (field.Type == TType.I32) { ActionId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 50: if (field.Type == TType.I32) { ExitSceneFuncId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 51: if (field.Type == TType.I32) { ExitSceneStep2FuncId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 60: if (field.Type == TType.Map) { { NpcTransformInfoList = new Dictionary<int, ThriftTransformData>(); TMap _map12 = iprot.ReadMapBegin(); for( int _i13 = 0; _i13 < _map12.Count; ++_i13) { int _key14; ThriftTransformData _val15; _key14 = iprot.ReadI32(); _val15 = new ThriftTransformData(); _val15.Read(iprot); NpcTransformInfoList[_key14] = _val15; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }
public void Read(TProtocol iprot) { TField field; iprot.ReadStructBegin(); while (true) { field = iprot.ReadFieldBegin(); if (field.Type == TType.Stop) { break; } switch (field.ID) { case 10: if (field.Type == TType.I32) { StageType = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 11: if (field.Type == TType.I32) { TerrainDataType = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 20: if (field.Type == TType.Struct) { PlayerTransformInfo = new ThriftTransformData(); PlayerTransformInfo.Read(iprot); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 30: if (field.Type == TType.Bool) { IsResumeScene = iprot.ReadBool(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 40: if (field.Type == TType.I32) { ActionId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 50: if (field.Type == TType.I32) { ExitSceneFuncId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 51: if (field.Type == TType.I32) { ExitSceneStep2FuncId = iprot.ReadI32(); } else { TProtocolUtil.Skip(iprot, field.Type); } break; case 60: if (field.Type == TType.Map) { { NpcTransformInfoList = new Dictionary <int, ThriftTransformData>(); TMap _map12 = iprot.ReadMapBegin(); for (int _i13 = 0; _i13 < _map12.Count; ++_i13) { int _key14; ThriftTransformData _val15; _key14 = iprot.ReadI32(); _val15 = new ThriftTransformData(); _val15.Read(iprot); NpcTransformInfoList[_key14] = _val15; } iprot.ReadMapEnd(); } } else { TProtocolUtil.Skip(iprot, field.Type); } break; default: TProtocolUtil.Skip(iprot, field.Type); break; } iprot.ReadFieldEnd(); } iprot.ReadStructEnd(); }