public void Parse(ProtoBuf.ProtoReader source) { int fieldNumber = 0; while ((fieldNumber = source.ReadFieldHeader()) > 0) { switch (fieldNumber) { default: source.SkipField(); break; case 1: //ID LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); ID = source.ReadInt32(); break; case 2: //Lv LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); Lv = source.ReadInt32(); break; case 3: //Count LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); Count = source.ReadInt32(); break; case 4: //BuffId LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); BuffId = source.ReadInt32(); break; } } }
public void Parse(ProtoBuf.ProtoReader source) { int fieldNumber = 0; while ((fieldNumber = source.ReadFieldHeader()) > 0) { switch (fieldNumber) { default: source.SkipField(); break; case 1: //ID LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); ID = source.ReadInt32(); break; case 2: //Version LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); Version = source.ReadInt32(); break; case 3: //NeedUpdateAll LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); NeedUpdateAll = source.ReadInt32(); break; case 4: //Desc LABEL_REQUIRED TYPE_STRING TwosComplement Desc = source.ReadString(); break; case 5: //BaseAssetBundles LABEL_REPEATED TYPE_STRING TwosComplement int BaseAssetBundlesfield = source.FieldNumber; do { BaseAssetBundles.Add(source.ReadString()); } while(source.TryReadFieldHeader(BaseAssetBundlesfield)); break; case 6: //IosUrl LABEL_REQUIRED TYPE_STRING TwosComplement IosUrl = source.ReadString(); break; case 7: //AndroidUrl LABEL_REQUIRED TYPE_STRING TwosComplement AndroidUrl = source.ReadString(); break; } } }
public void Parse(ProtoBuf.ProtoReader source) { int fieldNumber = 0; while ((fieldNumber = source.ReadFieldHeader()) > 0) { switch (fieldNumber) { default: source.SkipField(); break; case 1: //ID LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); ID = source.ReadInt32(); break; case 2: //Name LABEL_REQUIRED TYPE_STRING TwosComplement Name = source.ReadString(); break; case 3: //AssetBundles LABEL_REPEATED TYPE_STRING TwosComplement int AssetBundlesfield = source.FieldNumber; do { AssetBundles.Add(source.ReadString()); } while(source.TryReadFieldHeader(AssetBundlesfield)); break; } } }
public void Parse(ProtoBuf.ProtoReader source) { int fieldNumber = 0; while ((fieldNumber = source.ReadFieldHeader()) > 0) { switch (fieldNumber) { default: source.SkipField(); break; case 1: //ID LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); ID = source.ReadInt32(); break; case 2: //Desc LABEL_REQUIRED TYPE_STRING TwosComplement Desc = source.ReadString(); break; case 3: //Layer LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); Layer = source.ReadInt32(); break; case 4: //SpecialLayer LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); SpecialLayer = source.ReadInt32(); break; case 5: //ClassName LABEL_REQUIRED TYPE_STRING TwosComplement ClassName = source.ReadString(); break; case 6: //Prefab LABEL_REQUIRED TYPE_STRING TwosComplement Prefab = source.ReadString(); break; case 7: //ModuleId LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); ModuleId = source.ReadInt32(); break; } } }
public void Parse(ProtoBuf.ProtoReader source) { int fieldNumber = 0; while ((fieldNumber = source.ReadFieldHeader()) > 0) { switch (fieldNumber) { default: source.SkipField(); break; case 1: //ID LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); ID = source.ReadInt32(); break; case 2: //Descrip LABEL_REQUIRED TYPE_STRING TwosComplement Descrip = source.ReadString(); break; case 3: //Path LABEL_REPEATED TYPE_STRING TwosComplement int Pathfield = source.FieldNumber; do { Path.Add(source.ReadString()); } while(source.TryReadFieldHeader(Pathfield)); break; case 4: //Loop LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); Loop = source.ReadInt32(); break; case 5: //IsRandom LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); IsRandom = source.ReadInt32(); break; case 6: //Type LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); Type = source.ReadInt32(); break; } } }
public void Parse(ProtoBuf.ProtoReader source) { int fieldNumber = 0; while ((fieldNumber = source.ReadFieldHeader()) > 0) { switch (fieldNumber) { default: source.SkipField(); break; case 1: //ID LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); ID = source.ReadInt32(); break; case 2: //Type LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); Type = source.ReadInt32(); break; case 3: //Part LABEL_REQUIRED TYPE_STRING TwosComplement Part = source.ReadString(); break; case 4: //BaseAtk LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); BaseAtk = source.ReadInt32(); break; case 5: //CappedAtk LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); CappedAtk = source.ReadInt32(); break; case 6: //DamageRate LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); DamageRate = source.ReadInt32(); break; } } }
public void Parse(ProtoBuf.ProtoReader source) { int fieldNumber = 0; while ((fieldNumber = source.ReadFieldHeader()) > 0) { switch (fieldNumber) { default: source.SkipField(); break; case 1: //ID LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); ID = source.ReadInt32(); break; case 2: //LoadType LABEL_REQUIRED TYPE_ENUM .ProtoTable.ResourceInfoTable.eLoadType TwosComplement LoadType = (ProtoTable.ResourceInfoTable.eLoadType)source.ReadInt32(); break; case 3: //Path LABEL_REPEATED TYPE_STRING TwosComplement int Pathfield = source.FieldNumber; do { Path.Add(source.ReadString()); } while(source.TryReadFieldHeader(Pathfield)); break; case 4: //PathHashKey LABEL_REQUIRED TYPE_STRING TwosComplement PathHashKey = source.ReadString(); break; case 5: //TypeId LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); TypeId = source.ReadInt32(); break; } } }
public void Parse(ProtoBuf.ProtoReader source) { int fieldNumber = 0; while ((fieldNumber = source.ReadFieldHeader()) > 0) { switch (fieldNumber) { default: source.SkipField(); break; case 1: //ID LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); ID = source.ReadInt32(); break; case 2: //ReduceMaterial LABEL_REPEATED TYPE_STRING TwosComplement int ReduceMaterialfield = source.FieldNumber; do { ReduceMaterial.Add(source.ReadString()); } while(source.TryReadFieldHeader(ReduceMaterialfield)); break; case 3: //ReduceTime LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); ReduceTime = source.ReadInt32(); break; case 4: //QualityUp LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); QualityUp = source.ReadInt32(); break; } } }
public void Parse(ProtoBuf.ProtoReader source) { int fieldNumber = 0; while ((fieldNumber = source.ReadFieldHeader()) > 0) { switch (fieldNumber) { default: source.SkipField(); break; case 1: //valueType LABEL_REQUIRED TYPE_ENUM .ProtoTable.UnionCellType TwosComplement valueType = (ProtoTable.UnionCellType)source.ReadInt32(); break; case 2: //eValues LABEL_OPTIONAL TYPE_MESSAGE .ProtoTable.EveryValue TwosComplement eValues = new ProtoTable.EveryValue(); ProtoBuf.SubItemToken eValuestoken = ProtoBuf.ProtoReader.StartSubItem(source); eValues.Parse(source); ProtoBuf.ProtoReader.EndSubItem(eValuestoken, source); break; case 3: //fixValue LABEL_OPTIONAL TYPE_INT32 TwosComplement fixValue = source.ReadInt32(); break; case 4: //fixInitValue LABEL_OPTIONAL TYPE_INT32 TwosComplement fixInitValue = source.ReadInt32(); break; case 5: //fixLevelGrow LABEL_OPTIONAL TYPE_INT32 TwosComplement fixLevelGrow = source.ReadInt32(); break; } } }
public void Parse(ProtoBuf.ProtoReader source) { int fieldNumber = 0; while ((fieldNumber = source.ReadFieldHeader()) > 0) { switch (fieldNumber) { default: source.SkipField(); break; case 1: //ID LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); ID = source.ReadInt32(); break; case 2: //assetPackageIndex LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); assetPackageIndex = source.ReadInt32(); break; case 3: //AssetBundlePath LABEL_REQUIRED TYPE_STRING TwosComplement AssetBundlePath = source.ReadString(); break; case 4: //assetName LABEL_REQUIRED TYPE_STRING TwosComplement assetName = source.ReadString(); break; case 5: //fileMd5 LABEL_REQUIRED TYPE_STRING TwosComplement fileMd5 = source.ReadString(); break; } } }
public void Parse(ProtoBuf.ProtoReader source) { int fieldNumber = 0; while ((fieldNumber = source.ReadFieldHeader()) > 0) { switch (fieldNumber) { default: source.SkipField(); break; case 1: //everyValues LABEL_REPEATED TYPE_INT32 TwosComplement int everyValuesfield = source.FieldNumber; do { everyValues.Add(source.ReadInt32()); } while(source.TryReadFieldHeader(everyValuesfield)); break; } } }
public void Parse(ProtoBuf.ProtoReader source) { int fieldNumber = 0; while ((fieldNumber = source.ReadFieldHeader()) > 0) { switch (fieldNumber) { default: source.SkipField(); break; case 1: //ID LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); ID = source.ReadInt32(); break; case 2: //Type LABEL_REQUIRED TYPE_ENUM .ProtoTable.ItemTable.eType TwosComplement Type = (ProtoTable.ItemTable.eType)source.ReadInt32(); break; case 3: //Name LABEL_REQUIRED TYPE_STRING TwosComplement Name = source.ReadString(); break; case 4: //Detail LABEL_REQUIRED TYPE_STRING TwosComplement Detail = source.ReadString(); break; case 5: //DrawSource LABEL_REQUIRED TYPE_STRING TwosComplement DrawSource = source.ReadString(); break; case 6: //GetExp LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); GetExp = source.ReadInt32(); break; case 7: //SaleExp LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); SaleExp = source.ReadInt32(); break; case 8: //SalePrice LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); SalePrice = source.ReadInt32(); break; case 9: //Lv LABEL_REQUIRED TYPE_SINT32 ZigZag source.Hint(ProtoBuf.WireType.SignedVariant); Lv = source.ReadInt32(); break; case 10: //Material LABEL_REPEATED TYPE_STRING TwosComplement int Materialfield = source.FieldNumber; do { Material.Add(source.ReadString()); } while(source.TryReadFieldHeader(Materialfield)); break; case 11: //ProficiencyId LABEL_REPEATED TYPE_SINT32 ZigZag int ProficiencyIdfield = source.FieldNumber; do { source.Hint(ProtoBuf.WireType.SignedVariant); ProficiencyId.Add(source.ReadInt32()); } while(source.TryReadFieldHeader(ProficiencyIdfield)); break; } } }