diff --git a/ConfigData.meta b/ConfigData.meta new file mode 100644 index 0000000..5454b3a --- /dev/null +++ b/ConfigData.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 5006eb7517fec2542999e39ad38f5853 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/ConfigData/AllConfigs.bytes b/ConfigData/AllConfigs.bytes new file mode 100644 index 0000000..6ea3ed5 Binary files /dev/null and b/ConfigData/AllConfigs.bytes differ diff --git a/ConfigData/AllConfigs.bytes.meta b/ConfigData/AllConfigs.bytes.meta new file mode 100644 index 0000000..ab5f6f9 --- /dev/null +++ b/ConfigData/AllConfigs.bytes.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: 865180ff6f8024d40a40fff8f2679c6a +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/README.md.meta b/README.md.meta new file mode 100644 index 0000000..859d9ed --- /dev/null +++ b/README.md.meta @@ -0,0 +1,7 @@ +fileFormatVersion: 2 +guid: f6be362d2d856334d95a3fcd2fc3b96a +TextScriptImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts.meta b/Scripts.meta new file mode 100644 index 0000000..33b3df3 --- /dev/null +++ b/Scripts.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: ec87753a2f1675840be3c8871484d672 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated.meta b/Scripts/DR_Generated.meta new file mode 100644 index 0000000..7a923f4 --- /dev/null +++ b/Scripts/DR_Generated.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 939a969213fceda41bf0ce252e1f54de +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRAdGiftData.cs b/Scripts/DR_Generated/DRAdGiftData.cs new file mode 100644 index 0000000..9c267a9 --- /dev/null +++ b/Scripts/DR_Generated/DRAdGiftData.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: AdGiftData +// 数据类: AdGiftDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// AdGiftData 数据行 + /// + public class DRAdGiftData : DataRowBase + { + private AdGiftDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// SortId + /// + public int SortId + { + get + { + return _configData?.SortId ?? 0; + } + } + + /// + /// NeedScore + /// + public int NeedScore + { + get + { + return _configData?.NeedScore ?? 0; + } + } + + /// + /// ItemReward + /// + public string ItemReward + { + get + { + return _configData?.ItemReward ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Adgiftdatas != null) + { + config.Adgiftdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRAdGiftData.cs.meta b/Scripts/DR_Generated/DRAdGiftData.cs.meta new file mode 100644 index 0000000..b4afb4f --- /dev/null +++ b/Scripts/DR_Generated/DRAdGiftData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5cf3d35cb7b3fcc42aafcf4fbb7e8216 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRBagItemConfig.cs b/Scripts/DR_Generated/DRBagItemConfig.cs new file mode 100644 index 0000000..da049f1 --- /dev/null +++ b/Scripts/DR_Generated/DRBagItemConfig.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: BagItemConfig +// 数据类: BagItemConfigItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// BagItemConfig 数据行 + /// + public class DRBagItemConfig : DataRowBase + { + private BagItemConfigItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// ItemId + /// + public int ItemId + { + get + { + return _configData?.ItemId ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// TrueId + /// + public int TrueId + { + get + { + return _configData?.TrueId ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Bagitemconfigs != null) + { + config.Bagitemconfigs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRBagItemConfig.cs.meta b/Scripts/DR_Generated/DRBagItemConfig.cs.meta new file mode 100644 index 0000000..c069ccc --- /dev/null +++ b/Scripts/DR_Generated/DRBagItemConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cb5eceb44876f84458eb93d57a5e990f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRBonusValue.cs b/Scripts/DR_Generated/DRBonusValue.cs new file mode 100644 index 0000000..c035390 --- /dev/null +++ b/Scripts/DR_Generated/DRBonusValue.cs @@ -0,0 +1,111 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: BonusValue +// 数据类: BonusValueItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// BonusValue 数据行 + /// + public class DRBonusValue : DataRowBase + { + private BonusValueItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Type + /// + public string Type + { + get + { + return _configData?.Type ?? ""; + } + } + + /// + /// SortId + /// + public int SortId + { + get + { + return _configData?.SortId ?? 0; + } + } + + /// + /// Price + /// + public float Price + { + get + { + return System.Convert.ToSingle(_configData?.Price ?? 0.0); + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// OldPrice + /// + public float OldPrice + { + get + { + return System.Convert.ToSingle(_configData?.OldPrice ?? 0.0); + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Bonusvalues != null) + { + config.Bonusvalues.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRBonusValue.cs.meta b/Scripts/DR_Generated/DRBonusValue.cs.meta new file mode 100644 index 0000000..c105473 --- /dev/null +++ b/Scripts/DR_Generated/DRBonusValue.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9900a483e62afed4e86f43b9bc4a64dc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRCardDetailCfg.cs b/Scripts/DR_Generated/DRCardDetailCfg.cs new file mode 100644 index 0000000..6d3f65a --- /dev/null +++ b/Scripts/DR_Generated/DRCardDetailCfg.cs @@ -0,0 +1,144 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: CardDetailCfg +// 数据类: CardDetailCfgItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// CardDetailCfg 数据行 + /// + public class DRCardDetailCfg : DataRowBase + { + private CardDetailCfgItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// PictureAlbum + /// + public int PictureAlbum + { + get + { + return _configData?.PictureAlbum ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Color + /// + public int Color + { + get + { + return _configData?.Color ?? 0; + } + } + + /// + /// Star + /// + public int Star + { + get + { + return _configData?.Star ?? 0; + } + } + + /// + /// ImageRes + /// + public string ImageRes + { + get + { + return _configData?.ImageRes ?? ""; + } + } + + /// + /// IsGold + /// + public int IsGold + { + get + { + return _configData?.IsGold ?? 0; + } + } + + /// + /// Name + /// + public string Name + { + get + { + return _configData?.Name ?? ""; + } + } + + /// + /// Round + /// + public int Round + { + get + { + return _configData?.Round ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Carddetailcfgs != null) + { + config.Carddetailcfgs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRCardDetailCfg.cs.meta b/Scripts/DR_Generated/DRCardDetailCfg.cs.meta new file mode 100644 index 0000000..f28fbfc --- /dev/null +++ b/Scripts/DR_Generated/DRCardDetailCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7f9458c09b1fa2c4d86dc32a7345cefa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRCardPackCfg.cs b/Scripts/DR_Generated/DRCardPackCfg.cs new file mode 100644 index 0000000..f6d3ddc --- /dev/null +++ b/Scripts/DR_Generated/DRCardPackCfg.cs @@ -0,0 +1,111 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: CardPackCfg +// 数据类: CardPackCfgItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// CardPackCfg 数据行 + /// + public class DRCardPackCfg : DataRowBase + { + private CardPackCfgItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Color + /// + public int Color + { + get + { + return _configData?.Color ?? 0; + } + } + + /// + /// Name + /// + public string Name + { + get + { + return _configData?.Name ?? ""; + } + } + + /// + /// RewardCnt + /// + public int RewardCnt + { + get + { + return _configData?.RewardCnt ?? 0; + } + } + + /// + /// GoldRate + /// + public int GoldRate + { + get + { + return _configData?.GoldRate ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Cardpackcfgs != null) + { + config.Cardpackcfgs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRCardPackCfg.cs.meta b/Scripts/DR_Generated/DRCardPackCfg.cs.meta new file mode 100644 index 0000000..e6bc612 --- /dev/null +++ b/Scripts/DR_Generated/DRCardPackCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e617e4528b5f9014fa1c4f825db36f2e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRCardStickerExchangeCfg.cs b/Scripts/DR_Generated/DRCardStickerExchangeCfg.cs new file mode 100644 index 0000000..cbdc9a6 --- /dev/null +++ b/Scripts/DR_Generated/DRCardStickerExchangeCfg.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: CardStickerExchangeCfg +// 数据类: CardStickerExchangeCfgItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// CardStickerExchangeCfg 数据行 + /// + public class DRCardStickerExchangeCfg : DataRowBase + { + private CardStickerExchangeCfgItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Cost + /// + public int Cost + { + get + { + return _configData?.Cost ?? 0; + } + } + + /// + /// RewardId + /// + public string RewardId + { + get + { + return _configData?.RewardId ?? ""; + } + } + + /// + /// RewardCnt + /// + public string RewardCnt + { + get + { + return _configData?.RewardCnt ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Cardstickerexchangecfgs != null) + { + config.Cardstickerexchangecfgs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRCardStickerExchangeCfg.cs.meta b/Scripts/DR_Generated/DRCardStickerExchangeCfg.cs.meta new file mode 100644 index 0000000..f9eb1c4 --- /dev/null +++ b/Scripts/DR_Generated/DRCardStickerExchangeCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6b3fefa48d619984a9cdc8d792df0764 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRCatTrickData.cs b/Scripts/DR_Generated/DRCatTrickData.cs new file mode 100644 index 0000000..f6284b5 --- /dev/null +++ b/Scripts/DR_Generated/DRCatTrickData.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: CatTrickData +// 数据类: CatTrickDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// CatTrickData 数据行 + /// + public class DRCatTrickData : DataRowBase + { + private CatTrickDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Type + /// + public int Type + { + get + { + return _configData?.Type ?? 0; + } + } + + /// + /// Duration + /// + public int Duration + { + get + { + return _configData?.Duration ?? 0; + } + } + + /// + /// Diamond + /// + public int Diamond + { + get + { + return _configData?.Diamond ?? 0; + } + } + + /// + /// Energy + /// + public int Energy + { + get + { + return _configData?.Energy ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Cattrickdatas != null) + { + config.Cattrickdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRCatTrickData.cs.meta b/Scripts/DR_Generated/DRCatTrickData.cs.meta new file mode 100644 index 0000000..78396b0 --- /dev/null +++ b/Scripts/DR_Generated/DRCatTrickData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6d6fb3b9bc1ff3a49a61333a99873edb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRCatsGardenMultiplyData.cs b/Scripts/DR_Generated/DRCatsGardenMultiplyData.cs new file mode 100644 index 0000000..8f4352a --- /dev/null +++ b/Scripts/DR_Generated/DRCatsGardenMultiplyData.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: CatsGardenMultiplyData +// 数据类: CatsGardenMultiplyDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// CatsGardenMultiplyData 数据行 + /// + public class DRCatsGardenMultiplyData : DataRowBase + { + private CatsGardenMultiplyDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Low + /// + public int Low + { + get + { + return _configData?.Low ?? 0; + } + } + + /// + /// Mid + /// + public int Mid + { + get + { + return _configData?.Mid ?? 0; + } + } + + /// + /// High + /// + public int High + { + get + { + return _configData?.High ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Catsgardenmultiplydatas != null) + { + config.Catsgardenmultiplydatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRCatsGardenMultiplyData.cs.meta b/Scripts/DR_Generated/DRCatsGardenMultiplyData.cs.meta new file mode 100644 index 0000000..cdb926a --- /dev/null +++ b/Scripts/DR_Generated/DRCatsGardenMultiplyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e6ff328696a4ea94c8b7cb9e6ac7c87f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRCatsGardenProgressData.cs b/Scripts/DR_Generated/DRCatsGardenProgressData.cs new file mode 100644 index 0000000..615aef6 --- /dev/null +++ b/Scripts/DR_Generated/DRCatsGardenProgressData.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: CatsGardenProgressData +// 数据类: CatsGardenProgressDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// CatsGardenProgressData 数据行 + /// + public class DRCatsGardenProgressData : DataRowBase + { + private CatsGardenProgressDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Template + /// + public int Template + { + get + { + return _configData?.Template ?? 0; + } + } + + /// + /// Need + /// + public int Need + { + get + { + return _configData?.Need ?? 0; + } + } + + /// + /// Items + /// + public string Items + { + get + { + return _configData?.Items ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Catsgardenprogressdatas != null) + { + config.Catsgardenprogressdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRCatsGardenProgressData.cs.meta b/Scripts/DR_Generated/DRCatsGardenProgressData.cs.meta new file mode 100644 index 0000000..d007194 --- /dev/null +++ b/Scripts/DR_Generated/DRCatsGardenProgressData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f96414b48fe95014bbeaf3574e2911f1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRCatsGardenSlotData.cs b/Scripts/DR_Generated/DRCatsGardenSlotData.cs new file mode 100644 index 0000000..009e72c --- /dev/null +++ b/Scripts/DR_Generated/DRCatsGardenSlotData.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: CatsGardenSlotData +// 数据类: CatsGardenSlotDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// CatsGardenSlotData 数据行 + /// + public class DRCatsGardenSlotData : DataRowBase + { + private CatsGardenSlotDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Items + /// + public string Items + { + get + { + return _configData?.Items ?? ""; + } + } + + /// + /// FriendItems + /// + public string FriendItems + { + get + { + return _configData?.FriendItems ?? ""; + } + } + + /// + /// Type + /// + public int Type + { + get + { + return _configData?.Type ?? 0; + } + } + + /// + /// Growth + /// + public int Growth + { + get + { + return _configData?.Growth ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Catsgardenslotdatas != null) + { + config.Catsgardenslotdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRCatsGardenSlotData.cs.meta b/Scripts/DR_Generated/DRCatsGardenSlotData.cs.meta new file mode 100644 index 0000000..4fa1c93 --- /dev/null +++ b/Scripts/DR_Generated/DRCatsGardenSlotData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3140937dbe1484e4bbd2892e6ec0ce84 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRCatsGardenTempleteData.cs b/Scripts/DR_Generated/DRCatsGardenTempleteData.cs new file mode 100644 index 0000000..2a8a260 --- /dev/null +++ b/Scripts/DR_Generated/DRCatsGardenTempleteData.cs @@ -0,0 +1,111 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: CatsGardenTempleteData +// 数据类: CatsGardenTempleteDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// CatsGardenTempleteData 数据行 + /// + public class DRCatsGardenTempleteData : DataRowBase + { + private CatsGardenTempleteDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Template + /// + public int Template + { + get + { + return _configData?.Template ?? 0; + } + } + + /// + /// PassNum + /// + public int PassNum + { + get + { + return _configData?.PassNum ?? 0; + } + } + + /// + /// ItemCost + /// + public string ItemCost + { + get + { + return _configData?.ItemCost ?? ""; + } + } + + /// + /// ItemId + /// + public int ItemId + { + get + { + return _configData?.ItemId ?? 0; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Catsgardentempletedatas != null) + { + config.Catsgardentempletedatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRCatsGardenTempleteData.cs.meta b/Scripts/DR_Generated/DRCatsGardenTempleteData.cs.meta new file mode 100644 index 0000000..db6e230 --- /dev/null +++ b/Scripts/DR_Generated/DRCatsGardenTempleteData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 93a124d47d9fc374fba6c632cdd5a404 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRChampshipCfg.cs b/Scripts/DR_Generated/DRChampshipCfg.cs new file mode 100644 index 0000000..893f512 --- /dev/null +++ b/Scripts/DR_Generated/DRChampshipCfg.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: ChampshipCfg +// 数据类: ChampshipCfgItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// ChampshipCfg 数据行 + /// + public class DRChampshipCfg : DataRowBase + { + private ChampshipCfgItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Bg + /// + public string Bg + { + get + { + return _configData?.Bg ?? ""; + } + } + + /// + /// NameKey + /// + public string NameKey + { + get + { + return _configData?.NameKey ?? ""; + } + } + + /// + /// Button + /// + public string Button + { + get + { + return _configData?.Button ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Champshipcfgs != null) + { + config.Champshipcfgs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRChampshipCfg.cs.meta b/Scripts/DR_Generated/DRChampshipCfg.cs.meta new file mode 100644 index 0000000..dec0d47 --- /dev/null +++ b/Scripts/DR_Generated/DRChampshipCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7395347d68e388344a76795716fb34e2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRChampshipRankReward.cs b/Scripts/DR_Generated/DRChampshipRankReward.cs new file mode 100644 index 0000000..ddd03af --- /dev/null +++ b/Scripts/DR_Generated/DRChampshipRankReward.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: ChampshipRankReward +// 数据类: ChampshipRankRewardItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// ChampshipRankReward 数据行 + /// + public class DRChampshipRankReward : DataRowBase + { + private ChampshipRankRewardItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Rank + /// + public int Rank + { + get + { + return _configData?.Rank ?? 0; + } + } + + /// + /// ItemReward + /// + public string ItemReward + { + get + { + return _configData?.ItemReward ?? ""; + } + } + + /// + /// People30 + /// + public float People30 + { + get + { + return System.Convert.ToSingle(_configData?.People30 ?? 0.0); + } + } + + /// + /// People50 + /// + public float People50 + { + get + { + return System.Convert.ToSingle(_configData?.People50 ?? 0.0); + } + } + + /// + /// People80 + /// + public float People80 + { + get + { + return System.Convert.ToSingle(_configData?.People80 ?? 0.0); + } + } + + /// + /// People100 + /// + public float People100 + { + get + { + return System.Convert.ToSingle(_configData?.People100 ?? 0.0); + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Champshiprankrewards != null) + { + config.Champshiprankrewards.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRChampshipRankReward.cs.meta b/Scripts/DR_Generated/DRChampshipRankReward.cs.meta new file mode 100644 index 0000000..8d4976d --- /dev/null +++ b/Scripts/DR_Generated/DRChampshipRankReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a4d2f789eeb70f3408ab2012a8ea13e5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRChampshipScoreReward.cs b/Scripts/DR_Generated/DRChampshipScoreReward.cs new file mode 100644 index 0000000..63023a7 --- /dev/null +++ b/Scripts/DR_Generated/DRChampshipScoreReward.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: ChampshipScoreReward +// 数据类: ChampshipScoreRewardItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// ChampshipScoreReward 数据行 + /// + public class DRChampshipScoreReward : DataRowBase + { + private ChampshipScoreRewardItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// ScoreNeed + /// + public int ScoreNeed + { + get + { + return _configData?.ScoreNeed ?? 0; + } + } + + /// + /// ItemReward + /// + public string ItemReward + { + get + { + return _configData?.ItemReward ?? ""; + } + } + + /// + /// SortId + /// + public int SortId + { + get + { + return _configData?.SortId ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Champshipscorerewards != null) + { + config.Champshipscorerewards.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRChampshipScoreReward.cs.meta b/Scripts/DR_Generated/DRChampshipScoreReward.cs.meta new file mode 100644 index 0000000..557efd8 --- /dev/null +++ b/Scripts/DR_Generated/DRChampshipScoreReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: af87087cef5c4b545a1c41e550363c67 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRChineseResMap.cs b/Scripts/DR_Generated/DRChineseResMap.cs new file mode 100644 index 0000000..69ef520 --- /dev/null +++ b/Scripts/DR_Generated/DRChineseResMap.cs @@ -0,0 +1,78 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: ChineseResMap +// 数据类: ChineseResMapItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// ChineseResMap 数据行 + /// + public class DRChineseResMap : DataRowBase + { + private ChineseResMapItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// TargetStr + /// + public string TargetStr + { + get + { + return _configData?.TargetStr ?? ""; + } + } + + /// + /// Chinese + /// + public string Chinese + { + get + { + return _configData?.Chinese ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Chineseresmaps != null) + { + config.Chineseresmaps.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRChineseResMap.cs.meta b/Scripts/DR_Generated/DRChineseResMap.cs.meta new file mode 100644 index 0000000..6549a88 --- /dev/null +++ b/Scripts/DR_Generated/DRChineseResMap.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f09c6bae19dfc1a43802f3975ea67ea6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRCollectionRoomReward.cs b/Scripts/DR_Generated/DRCollectionRoomReward.cs new file mode 100644 index 0000000..d7a01e7 --- /dev/null +++ b/Scripts/DR_Generated/DRCollectionRoomReward.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: CollectionRoomReward +// 数据类: CollectionRoomRewardItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// CollectionRoomReward 数据行 + /// + public class DRCollectionRoomReward : DataRowBase + { + private CollectionRoomRewardItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Rank + /// + public int Rank + { + get + { + return _configData?.Rank ?? 0; + } + } + + /// + /// ItemReward1 + /// + public string ItemReward1 + { + get + { + return _configData?.ItemReward1 ?? ""; + } + } + + /// + /// ItemReward2 + /// + public string ItemReward2 + { + get + { + return _configData?.ItemReward2 ?? ""; + } + } + + /// + /// ItemReward3 + /// + public string ItemReward3 + { + get + { + return _configData?.ItemReward3 ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Collectionroomrewards != null) + { + config.Collectionroomrewards.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRCollectionRoomReward.cs.meta b/Scripts/DR_Generated/DRCollectionRoomReward.cs.meta new file mode 100644 index 0000000..f7a48fe --- /dev/null +++ b/Scripts/DR_Generated/DRCollectionRoomReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f31378d3579d6a347ad311791dfc2fd0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRCollectionsRewardsData.cs b/Scripts/DR_Generated/DRCollectionsRewardsData.cs new file mode 100644 index 0000000..0174006 --- /dev/null +++ b/Scripts/DR_Generated/DRCollectionsRewardsData.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: CollectionsRewardsData +// 数据类: CollectionsRewardsDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// CollectionsRewardsData 数据行 + /// + public class DRCollectionsRewardsData : DataRowBase + { + private CollectionsRewardsDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Index + /// + public int Index + { + get + { + return _configData?.Index ?? 0; + } + } + + /// + /// Type + /// + public int Type + { + get + { + return _configData?.Type ?? 0; + } + } + + /// + /// Need + /// + public int Need + { + get + { + return _configData?.Need ?? 0; + } + } + + /// + /// ClientNeed + /// + public int ClientNeed + { + get + { + return _configData?.ClientNeed ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Collectionsrewardsdatas != null) + { + config.Collectionsrewardsdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRCollectionsRewardsData.cs.meta b/Scripts/DR_Generated/DRCollectionsRewardsData.cs.meta new file mode 100644 index 0000000..b30cda9 --- /dev/null +++ b/Scripts/DR_Generated/DRCollectionsRewardsData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 685c07b9dce14324d97ac9da135b9571 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRComboGift.cs b/Scripts/DR_Generated/DRComboGift.cs new file mode 100644 index 0000000..4fa209f --- /dev/null +++ b/Scripts/DR_Generated/DRComboGift.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: ComboGift +// 数据类: ComboGiftItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// ComboGift 数据行 + /// + public class DRComboGift : DataRowBase + { + private ComboGiftItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Ratio + /// + public string Ratio + { + get + { + return _configData?.Ratio ?? ""; + } + } + + /// + /// Price + /// + public float Price + { + get + { + return System.Convert.ToSingle(_configData?.Price ?? 0.0); + } + } + + /// + /// ItemReward + /// + public string ItemReward + { + get + { + return _configData?.ItemReward ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Combogifts != null) + { + config.Combogifts.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRComboGift.cs.meta b/Scripts/DR_Generated/DRComboGift.cs.meta new file mode 100644 index 0000000..0c3f0f3 --- /dev/null +++ b/Scripts/DR_Generated/DRComboGift.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9f4b427ff284d4243866128548decc11 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRComboGiftTwo.cs b/Scripts/DR_Generated/DRComboGiftTwo.cs new file mode 100644 index 0000000..62ff5da --- /dev/null +++ b/Scripts/DR_Generated/DRComboGiftTwo.cs @@ -0,0 +1,78 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: ComboGiftTwo +// 数据类: ComboGiftTwoItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// ComboGiftTwo 数据行 + /// + public class DRComboGiftTwo : DataRowBase + { + private ComboGiftTwoItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Price + /// + public float Price + { + get + { + return System.Convert.ToSingle(_configData?.Price ?? 0.0); + } + } + + /// + /// ItemReward + /// + public string ItemReward + { + get + { + return _configData?.ItemReward ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Combogifttwos != null) + { + config.Combogifttwos.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRComboGiftTwo.cs.meta b/Scripts/DR_Generated/DRComboGiftTwo.cs.meta new file mode 100644 index 0000000..aaa980c --- /dev/null +++ b/Scripts/DR_Generated/DRComboGiftTwo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8130af2efa42aff4f872c9a5d7daac7c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRDailyTaskActiveCfg.cs b/Scripts/DR_Generated/DRDailyTaskActiveCfg.cs new file mode 100644 index 0000000..433e7c4 --- /dev/null +++ b/Scripts/DR_Generated/DRDailyTaskActiveCfg.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: DailyTaskActiveCfg +// 数据类: DailyTaskActiveCfgItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// DailyTaskActiveCfg 数据行 + /// + public class DRDailyTaskActiveCfg : DataRowBase + { + private DailyTaskActiveCfgItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// RewardID + /// + public string RewardID + { + get + { + return _configData?.RewardID ?? ""; + } + } + + /// + /// RewardCnt + /// + public string RewardCnt + { + get + { + return _configData?.RewardCnt ?? ""; + } + } + + /// + /// Active + /// + public int Active + { + get + { + return _configData?.Active ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Dailytaskactivecfgs != null) + { + config.Dailytaskactivecfgs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRDailyTaskActiveCfg.cs.meta b/Scripts/DR_Generated/DRDailyTaskActiveCfg.cs.meta new file mode 100644 index 0000000..ca3841b --- /dev/null +++ b/Scripts/DR_Generated/DRDailyTaskActiveCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b5d397c4a4de3e341a0a8c0e28161e2c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRDailyTaskConfig.cs b/Scripts/DR_Generated/DRDailyTaskConfig.cs new file mode 100644 index 0000000..90fc476 --- /dev/null +++ b/Scripts/DR_Generated/DRDailyTaskConfig.cs @@ -0,0 +1,144 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: DailyTaskConfig +// 数据类: DailyTaskConfigItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// DailyTaskConfig 数据行 + /// + public class DRDailyTaskConfig : DataRowBase + { + private DailyTaskConfigItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// TaskPoolId + /// + public int TaskPoolId + { + get + { + return _configData?.TaskPoolId ?? 0; + } + } + + /// + /// OpenCondition + /// + public string OpenCondition + { + get + { + return _configData?.OpenCondition ?? ""; + } + } + + /// + /// TaskType + /// + public int TaskType + { + get + { + return _configData?.TaskType ?? 0; + } + } + + /// + /// Describe + /// + public string Describe + { + get + { + return _configData?.Describe ?? ""; + } + } + + /// + /// TaskNum + /// + public int TaskNum + { + get + { + return _configData?.TaskNum ?? 0; + } + } + + /// + /// RewardID + /// + public string RewardID + { + get + { + return _configData?.RewardID ?? ""; + } + } + + /// + /// RewardCnt + /// + public string RewardCnt + { + get + { + return _configData?.RewardCnt ?? ""; + } + } + + /// + /// Active + /// + public int Active + { + get + { + return _configData?.Active ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Dailytaskconfigs != null) + { + config.Dailytaskconfigs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRDailyTaskConfig.cs.meta b/Scripts/DR_Generated/DRDailyTaskConfig.cs.meta new file mode 100644 index 0000000..a06ba98 --- /dev/null +++ b/Scripts/DR_Generated/DRDailyTaskConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 14006aac83ebf9043b377b52ae06947c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRDailyTaskDetail.cs b/Scripts/DR_Generated/DRDailyTaskDetail.cs new file mode 100644 index 0000000..47e1c52 --- /dev/null +++ b/Scripts/DR_Generated/DRDailyTaskDetail.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: DailyTaskDetail +// 数据类: DailyTaskDetailItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// DailyTaskDetail 数据行 + /// + public class DRDailyTaskDetail : DataRowBase + { + private DailyTaskDetailItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// SortId + /// + public int SortId + { + get + { + return _configData?.SortId ?? 0; + } + } + + /// + /// Task + /// + public string Task + { + get + { + return _configData?.Task ?? ""; + } + } + + /// + /// Type + /// + public string Type + { + get + { + return _configData?.Type ?? ""; + } + } + + /// + /// Title + /// + public string Title + { + get + { + return _configData?.Title ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Dailytaskdetails != null) + { + config.Dailytaskdetails.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRDailyTaskDetail.cs.meta b/Scripts/DR_Generated/DRDailyTaskDetail.cs.meta new file mode 100644 index 0000000..8519d5a --- /dev/null +++ b/Scripts/DR_Generated/DRDailyTaskDetail.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 86027635cad98f043bd10e86c8697615 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRDailyTaskReward.cs b/Scripts/DR_Generated/DRDailyTaskReward.cs new file mode 100644 index 0000000..865e440 --- /dev/null +++ b/Scripts/DR_Generated/DRDailyTaskReward.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: DailyTaskReward +// 数据类: DailyTaskRewardItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// DailyTaskReward 数据行 + /// + public class DRDailyTaskReward : DataRowBase + { + private DailyTaskRewardItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// SortId + /// + public int SortId + { + get + { + return _configData?.SortId ?? 0; + } + } + + /// + /// ItemReward + /// + public string ItemReward + { + get + { + return _configData?.ItemReward ?? ""; + } + } + + /// + /// ScoreReward + /// + public int ScoreReward + { + get + { + return _configData?.ScoreReward ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Dailytaskrewards != null) + { + config.Dailytaskrewards.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRDailyTaskReward.cs.meta b/Scripts/DR_Generated/DRDailyTaskReward.cs.meta new file mode 100644 index 0000000..83c06af --- /dev/null +++ b/Scripts/DR_Generated/DRDailyTaskReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 69ada7bebe7f4d443951011e7f6b2354 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRDecorateCost.cs b/Scripts/DR_Generated/DRDecorateCost.cs new file mode 100644 index 0000000..af7c918 --- /dev/null +++ b/Scripts/DR_Generated/DRDecorateCost.cs @@ -0,0 +1,232 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: DecorateCost +// 数据类: DecorateCostItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// DecorateCost 数据行 + /// + public class DRDecorateCost : DataRowBase + { + private DecorateCostItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// AreaId + /// + public int AreaId + { + get + { + return _configData?.AreaId ?? 0; + } + } + + /// + /// SortId + /// + public int SortId + { + get + { + return _configData?.SortId ?? 0; + } + } + + /// + /// CostCount + /// + public int CostCount + { + get + { + return _configData?.CostCount ?? 0; + } + } + + /// + /// Title + /// + public string Title + { + get + { + return _configData?.Title ?? ""; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Pos + /// + public string Pos + { + get + { + return _configData?.Pos ?? ""; + } + } + + /// + /// Action + /// + public string Action + { + get + { + return _configData?.Action ?? ""; + } + } + + /// + /// Spine + /// + public string Spine + { + get + { + return _configData?.Spine ?? ""; + } + } + + /// + /// Button + /// + public string Button + { + get + { + return _configData?.Button ?? ""; + } + } + + /// + /// Build + /// + public string Build + { + get + { + return _configData?.Build ?? ""; + } + } + + /// + /// Shine + /// + public string Shine + { + get + { + return _configData?.Shine ?? ""; + } + } + + /// + /// Origin + /// + public string Origin + { + get + { + return _configData?.Origin ?? ""; + } + } + + /// + /// DecoratePos + /// + public string DecoratePos + { + get + { + return _configData?.DecoratePos ?? ""; + } + } + + /// + /// Skip + /// + public string Skip + { + get + { + return _configData?.Skip ?? ""; + } + } + + /// + /// MapPethomeId + /// + public string MapPethomeId + { + get + { + return _configData?.MapPethomeId ?? ""; + } + } + + /// + /// PetExp + /// + public string PetExp + { + get + { + return _configData?.PetExp ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Decoratecosts != null) + { + config.Decoratecosts.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRDecorateCost.cs.meta b/Scripts/DR_Generated/DRDecorateCost.cs.meta new file mode 100644 index 0000000..7bfa577 --- /dev/null +++ b/Scripts/DR_Generated/DRDecorateCost.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 355054e459fa69b4ab82571380edd781 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRDialogData.cs b/Scripts/DR_Generated/DRDialogData.cs new file mode 100644 index 0000000..96302eb --- /dev/null +++ b/Scripts/DR_Generated/DRDialogData.cs @@ -0,0 +1,177 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: DialogData +// 数据类: DialogDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// DialogData 数据行 + /// + public class DRDialogData : DataRowBase + { + private DialogDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// PlotNode + /// + public string PlotNode + { + get + { + return _configData?.PlotNode ?? ""; + } + } + + /// + /// SceneId + /// + public int SceneId + { + get + { + return _configData?.SceneId ?? 0; + } + } + + /// + /// Group + /// + public string Group + { + get + { + return _configData?.Group ?? ""; + } + } + + /// + /// SortId + /// + public int SortId + { + get + { + return _configData?.SortId ?? 0; + } + } + + /// + /// Direct + /// + public string Direct + { + get + { + return _configData?.Direct ?? ""; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Title + /// + public string Title + { + get + { + return _configData?.Title ?? ""; + } + } + + /// + /// Content + /// + public string Content + { + get + { + return _configData?.Content ?? ""; + } + } + + /// + /// BubbleType + /// + public string BubbleType + { + get + { + return _configData?.BubbleType ?? ""; + } + } + + /// + /// Phone + /// + public string Phone + { + get + { + return _configData?.Phone ?? ""; + } + } + + /// + /// Status + /// + public string Status + { + get + { + return _configData?.Status ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Dialogdatas != null) + { + config.Dialogdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRDialogData.cs.meta b/Scripts/DR_Generated/DRDialogData.cs.meta new file mode 100644 index 0000000..462cfb9 --- /dev/null +++ b/Scripts/DR_Generated/DRDialogData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a5966620bc49f2f4694797df2fc2b3b2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DREmiterRetreatData.cs b/Scripts/DR_Generated/DREmiterRetreatData.cs new file mode 100644 index 0000000..603eda5 --- /dev/null +++ b/Scripts/DR_Generated/DREmiterRetreatData.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: EmiterRetreatData +// 数据类: EmiterRetreatDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// EmiterRetreatData 数据行 + /// + public class DREmiterRetreatData : DataRowBase + { + private EmiterRetreatDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// SortId + /// + public int SortId + { + get + { + return _configData?.SortId ?? 0; + } + } + + /// + /// Emit_ID + /// + public string Emit_ID + { + get + { + return _configData?.Emit_ID ?? ""; + } + } + + /// + /// Color + /// + public string Color + { + get + { + return _configData?.Color ?? ""; + } + } + + /// + /// Retreat_Emit_ID + /// + public string Retreat_Emit_ID + { + get + { + return _configData?.Retreat_Emit_ID ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Emiterretreatdatas != null) + { + config.Emiterretreatdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DREmiterRetreatData.cs.meta b/Scripts/DR_Generated/DREmiterRetreatData.cs.meta new file mode 100644 index 0000000..f04ddf8 --- /dev/null +++ b/Scripts/DR_Generated/DREmiterRetreatData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fe51c41f0f684dd43b711286546e0fb7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DREmojiData.cs b/Scripts/DR_Generated/DREmojiData.cs new file mode 100644 index 0000000..98eb66b --- /dev/null +++ b/Scripts/DR_Generated/DREmojiData.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: EmojiData +// 数据类: EmojiDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// EmojiData 数据行 + /// + public class DREmojiData : DataRowBase + { + private EmojiDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// NameKey + /// + public string NameKey + { + get + { + return _configData?.NameKey ?? ""; + } + } + + /// + /// Init + /// + public int Init + { + get + { + return _configData?.Init ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Spine + /// + public string Spine + { + get + { + return _configData?.Spine ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Emojidatas != null) + { + config.Emojidatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DREmojiData.cs.meta b/Scripts/DR_Generated/DREmojiData.cs.meta new file mode 100644 index 0000000..14ed8f9 --- /dev/null +++ b/Scripts/DR_Generated/DREmojiData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4aa577e32e8e8424a9d2102c96374fa0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DREndlessGift.cs b/Scripts/DR_Generated/DREndlessGift.cs new file mode 100644 index 0000000..187b23b --- /dev/null +++ b/Scripts/DR_Generated/DREndlessGift.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: EndlessGift +// 数据类: EndlessGiftItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// EndlessGift 数据行 + /// + public class DREndlessGift : DataRowBase + { + private EndlessGiftItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Content + /// + public string Content + { + get + { + return _configData?.Content ?? ""; + } + } + + /// + /// SellType + /// + public string SellType + { + get + { + return _configData?.SellType ?? ""; + } + } + + /// + /// SellPrice + /// + public float SellPrice + { + get + { + return System.Convert.ToSingle(_configData?.SellPrice ?? 0.0); + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Endlessgifts != null) + { + config.Endlessgifts.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DREndlessGift.cs.meta b/Scripts/DR_Generated/DREndlessGift.cs.meta new file mode 100644 index 0000000..356166e --- /dev/null +++ b/Scripts/DR_Generated/DREndlessGift.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 630def0a224036d40bf549221336749d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DREnergyLimitGift.cs b/Scripts/DR_Generated/DREnergyLimitGift.cs new file mode 100644 index 0000000..5402dcc --- /dev/null +++ b/Scripts/DR_Generated/DREnergyLimitGift.cs @@ -0,0 +1,78 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: EnergyLimitGift +// 数据类: EnergyLimitGiftItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// EnergyLimitGift 数据行 + /// + public class DREnergyLimitGift : DataRowBase + { + private EnergyLimitGiftItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// ItemReward + /// + public string ItemReward + { + get + { + return _configData?.ItemReward ?? ""; + } + } + + /// + /// PayPrice + /// + public float PayPrice + { + get + { + return System.Convert.ToSingle(_configData?.PayPrice ?? 0.0); + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Energylimitgifts != null) + { + config.Energylimitgifts.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DREnergyLimitGift.cs.meta b/Scripts/DR_Generated/DREnergyLimitGift.cs.meta new file mode 100644 index 0000000..b228df5 --- /dev/null +++ b/Scripts/DR_Generated/DREnergyLimitGift.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 08368b0fa4ce2a941943c98b8ca6c264 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRFrameData.cs b/Scripts/DR_Generated/DRFrameData.cs new file mode 100644 index 0000000..bd37722 --- /dev/null +++ b/Scripts/DR_Generated/DRFrameData.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: FrameData +// 数据类: FrameDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// FrameData 数据行 + /// + public class DRFrameData : DataRowBase + { + private FrameDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// NameKey + /// + public string NameKey + { + get + { + return _configData?.NameKey ?? ""; + } + } + + /// + /// Init + /// + public int Init + { + get + { + return _configData?.Init ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// SpineFile + /// + public string SpineFile + { + get + { + return _configData?.SpineFile ?? ""; + } + } + + /// + /// AnimName + /// + public string AnimName + { + get + { + return _configData?.AnimName ?? ""; + } + } + + /// + /// FrameImageScale + /// + public string FrameImageScale + { + get + { + return _configData?.FrameImageScale ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Framedatas != null) + { + config.Framedatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRFrameData.cs.meta b/Scripts/DR_Generated/DRFrameData.cs.meta new file mode 100644 index 0000000..469febf --- /dev/null +++ b/Scripts/DR_Generated/DRFrameData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7bab1e3bed7dff84faf909c428886e9b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRGrowthFund.cs b/Scripts/DR_Generated/DRGrowthFund.cs new file mode 100644 index 0000000..7d1efa1 --- /dev/null +++ b/Scripts/DR_Generated/DRGrowthFund.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: GrowthFund +// 数据类: GrowthFundItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// GrowthFund 数据行 + /// + public class DRGrowthFund : DataRowBase + { + private GrowthFundItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Level + /// + public int Level + { + get + { + return _configData?.Level ?? 0; + } + } + + /// + /// RewardIds + /// + public string RewardIds + { + get + { + return _configData?.RewardIds ?? ""; + } + } + + /// + /// RewardCnt + /// + public string RewardCnt + { + get + { + return _configData?.RewardCnt ?? ""; + } + } + + /// + /// Price + /// + public float Price + { + get + { + return System.Convert.ToSingle(_configData?.Price ?? 0.0); + } + } + + /// + /// OriginPrice + /// + public float OriginPrice + { + get + { + return System.Convert.ToSingle(_configData?.OriginPrice ?? 0.0); + } + } + + /// + /// Describe + /// + public string Describe + { + get + { + return _configData?.Describe ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Growthfunds != null) + { + config.Growthfunds.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRGrowthFund.cs.meta b/Scripts/DR_Generated/DRGrowthFund.cs.meta new file mode 100644 index 0000000..6125524 --- /dev/null +++ b/Scripts/DR_Generated/DRGrowthFund.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4dcdf0f26eefbd94fb65fb65804db9f1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRGuessReward.cs b/Scripts/DR_Generated/DRGuessReward.cs new file mode 100644 index 0000000..fb7afc4 --- /dev/null +++ b/Scripts/DR_Generated/DRGuessReward.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: GuessReward +// 数据类: GuessRewardItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// GuessReward 数据行 + /// + public class DRGuessReward : DataRowBase + { + private GuessRewardItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Level + /// + public int Level + { + get + { + return _configData?.Level ?? 0; + } + } + + /// + /// Reward_1 + /// + public string Reward_1 + { + get + { + return _configData?.Reward_1 ?? ""; + } + } + + /// + /// Reward_2 + /// + public string Reward_2 + { + get + { + return _configData?.Reward_2 ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Guessrewards != null) + { + config.Guessrewards.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRGuessReward.cs.meta b/Scripts/DR_Generated/DRGuessReward.cs.meta new file mode 100644 index 0000000..02dd2ba --- /dev/null +++ b/Scripts/DR_Generated/DRGuessReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e0ee43498c819e44ca839694fd9f74cb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRGuideData.cs b/Scripts/DR_Generated/DRGuideData.cs new file mode 100644 index 0000000..3e31fd4 --- /dev/null +++ b/Scripts/DR_Generated/DRGuideData.cs @@ -0,0 +1,144 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: GuideData +// 数据类: GuideDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// GuideData 数据行 + /// + public class DRGuideData : DataRowBase + { + private GuideDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// TargetStr + /// + public string TargetStr + { + get + { + return _configData?.TargetStr ?? ""; + } + } + + /// + /// FingerType + /// + public int FingerType + { + get + { + return _configData?.FingerType ?? 0; + } + } + + /// + /// Title + /// + public string Title + { + get + { + return _configData?.Title ?? ""; + } + } + + /// + /// TitlePos + /// + public string TitlePos + { + get + { + return _configData?.TitlePos ?? ""; + } + } + + /// + /// Expression + /// + public string Expression + { + get + { + return _configData?.Expression ?? ""; + } + } + + /// + /// Other + /// + public string Other + { + get + { + return _configData?.Other ?? ""; + } + } + + /// + /// Disappear + /// + public string Disappear + { + get + { + return _configData?.Disappear ?? ""; + } + } + + /// + /// Remark + /// + public string Remark + { + get + { + return _configData?.Remark ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Guidedatas != null) + { + config.Guidedatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRGuideData.cs.meta b/Scripts/DR_Generated/DRGuideData.cs.meta new file mode 100644 index 0000000..64ba47b --- /dev/null +++ b/Scripts/DR_Generated/DRGuideData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b9f8c6f7f0236054587a49811557e191 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRHandbookReward.cs b/Scripts/DR_Generated/DRHandbookReward.cs new file mode 100644 index 0000000..bd1d1da --- /dev/null +++ b/Scripts/DR_Generated/DRHandbookReward.cs @@ -0,0 +1,78 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: HandbookReward +// 数据类: HandbookRewardItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// HandbookReward 数据行 + /// + public class DRHandbookReward : DataRowBase + { + private HandbookRewardItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Type + /// + public string Type + { + get + { + return _configData?.Type ?? ""; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Handbookrewards != null) + { + config.Handbookrewards.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRHandbookReward.cs.meta b/Scripts/DR_Generated/DRHandbookReward.cs.meta new file mode 100644 index 0000000..640bb9d --- /dev/null +++ b/Scripts/DR_Generated/DRHandbookReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5253eb338883a0b4487483a759bfdf8a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRHeadData.cs b/Scripts/DR_Generated/DRHeadData.cs new file mode 100644 index 0000000..41a6ffd --- /dev/null +++ b/Scripts/DR_Generated/DRHeadData.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: HeadData +// 数据类: HeadDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// HeadData 数据行 + /// + public class DRHeadData : DataRowBase + { + private HeadDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// NameKey + /// + public string NameKey + { + get + { + return _configData?.NameKey ?? ""; + } + } + + /// + /// Init + /// + public int Init + { + get + { + return _configData?.Init ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Headdatas != null) + { + config.Headdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRHeadData.cs.meta b/Scripts/DR_Generated/DRHeadData.cs.meta new file mode 100644 index 0000000..5fc7021 --- /dev/null +++ b/Scripts/DR_Generated/DRHeadData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 83370d30b9acf194a98f6153e88404c5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRHowToPlay.cs b/Scripts/DR_Generated/DRHowToPlay.cs new file mode 100644 index 0000000..b1b63c6 --- /dev/null +++ b/Scripts/DR_Generated/DRHowToPlay.cs @@ -0,0 +1,78 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: HowToPlay +// 数据类: HowToPlayItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// HowToPlay 数据行 + /// + public class DRHowToPlay : DataRowBase + { + private HowToPlayItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Tip + /// + public string Tip + { + get + { + return _configData?.Tip ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Howtoplays != null) + { + config.Howtoplays.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRHowToPlay.cs.meta b/Scripts/DR_Generated/DRHowToPlay.cs.meta new file mode 100644 index 0000000..5ff5cb9 --- /dev/null +++ b/Scripts/DR_Generated/DRHowToPlay.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b0931226b8065cf4faa0ffa1e26e3e2b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRIndoorProgress.cs b/Scripts/DR_Generated/DRIndoorProgress.cs new file mode 100644 index 0000000..f365c33 --- /dev/null +++ b/Scripts/DR_Generated/DRIndoorProgress.cs @@ -0,0 +1,144 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: IndoorProgress +// 数据类: IndoorProgressItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// IndoorProgress 数据行 + /// + public class DRIndoorProgress : DataRowBase + { + private IndoorProgressItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Scene + /// + public int Scene + { + get + { + return _configData?.Scene ?? 0; + } + } + + /// + /// Lv + /// + public int Lv + { + get + { + return _configData?.Lv ?? 0; + } + } + + /// + /// Item + /// + public string Item + { + get + { + return _configData?.Item ?? ""; + } + } + + /// + /// Emit + /// + public string Emit + { + get + { + return _configData?.Emit ?? ""; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// BigReward + /// + public string BigReward + { + get + { + return _configData?.BigReward ?? ""; + } + } + + /// + /// AreaReward + /// + public string AreaReward + { + get + { + return _configData?.AreaReward ?? ""; + } + } + + /// + /// Part + /// + public int Part + { + get + { + return _configData?.Part ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Indoorprogresss != null) + { + config.Indoorprogresss.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRIndoorProgress.cs.meta b/Scripts/DR_Generated/DRIndoorProgress.cs.meta new file mode 100644 index 0000000..b09ede6 --- /dev/null +++ b/Scripts/DR_Generated/DRIndoorProgress.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1c7c67e5ca641474b99de36ce7775519 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRLanguageData.cs b/Scripts/DR_Generated/DRLanguageData.cs new file mode 100644 index 0000000..c5b1b7b --- /dev/null +++ b/Scripts/DR_Generated/DRLanguageData.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: LanguageData +// 数据类: LanguageDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// LanguageData 数据行 + /// + public class DRLanguageData : DataRowBase + { + private LanguageDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Key + /// + public string Key + { + get + { + return _configData?.Key ?? ""; + } + } + + /// + /// En_US + /// + public string En_US + { + get + { + return _configData?.En_US ?? ""; + } + } + + /// + /// Zh_CN + /// + public string Zh_CN + { + get + { + return _configData?.Zh_CN ?? ""; + } + } + + /// + /// Pt_BR + /// + public string Pt_BR + { + get + { + return _configData?.Pt_BR ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Languagedatas != null) + { + config.Languagedatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRLanguageData.cs.meta b/Scripts/DR_Generated/DRLanguageData.cs.meta new file mode 100644 index 0000000..73d24d7 --- /dev/null +++ b/Scripts/DR_Generated/DRLanguageData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 02f399a5ea2d43f4baed26f59a9ad959 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRLevelData.cs b/Scripts/DR_Generated/DRLevelData.cs new file mode 100644 index 0000000..8240679 --- /dev/null +++ b/Scripts/DR_Generated/DRLevelData.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: LevelData +// 数据类: LevelDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// LevelData 数据行 + /// + public class DRLevelData : DataRowBase + { + private LevelDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Lv + /// + public int Lv + { + get + { + return _configData?.Lv ?? 0; + } + } + + /// + /// StoryExp + /// + public int StoryExp + { + get + { + return _configData?.StoryExp ?? 0; + } + } + + /// + /// PetExp + /// + public int PetExp + { + get + { + return _configData?.PetExp ?? 0; + } + } + + /// + /// StoryReward + /// + public string StoryReward + { + get + { + return _configData?.StoryReward ?? ""; + } + } + + /// + /// PetReward + /// + public string PetReward + { + get + { + return _configData?.PetReward ?? ""; + } + } + + /// + /// RetireEmit + /// + public string RetireEmit + { + get + { + return _configData?.RetireEmit ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Leveldatas != null) + { + config.Leveldatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRLevelData.cs.meta b/Scripts/DR_Generated/DRLevelData.cs.meta new file mode 100644 index 0000000..886c430 --- /dev/null +++ b/Scripts/DR_Generated/DRLevelData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 434d491936f38534882ad2b36ba80d3e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRLevelLauncherData.cs b/Scripts/DR_Generated/DRLevelLauncherData.cs new file mode 100644 index 0000000..0f6c5e3 --- /dev/null +++ b/Scripts/DR_Generated/DRLevelLauncherData.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: LevelLauncherData +// 数据类: LevelLauncherDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// LevelLauncherData 数据行 + /// + public class DRLevelLauncherData : DataRowBase + { + private LevelLauncherDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Lv + /// + public int Lv + { + get + { + return _configData?.Lv ?? 0; + } + } + + /// + /// LanguageKey + /// + public string LanguageKey + { + get + { + return _configData?.LanguageKey ?? ""; + } + } + + /// + /// Picture + /// + public string Picture + { + get + { + return _configData?.Picture ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Levellauncherdatas != null) + { + config.Levellauncherdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRLevelLauncherData.cs.meta b/Scripts/DR_Generated/DRLevelLauncherData.cs.meta new file mode 100644 index 0000000..c5c4763 --- /dev/null +++ b/Scripts/DR_Generated/DRLevelLauncherData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c38c6d13ca9699042a4c61075f618dc4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRLuckyCatData.cs b/Scripts/DR_Generated/DRLuckyCatData.cs new file mode 100644 index 0000000..cf4ffe2 --- /dev/null +++ b/Scripts/DR_Generated/DRLuckyCatData.cs @@ -0,0 +1,78 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: LuckyCatData +// 数据类: LuckyCatDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// LuckyCatData 数据行 + /// + public class DRLuckyCatData : DataRowBase + { + private LuckyCatDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Time + /// + public int Time + { + get + { + return _configData?.Time ?? 0; + } + } + + /// + /// Earn + /// + public int Earn + { + get + { + return _configData?.Earn ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Luckycatdatas != null) + { + config.Luckycatdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRLuckyCatData.cs.meta b/Scripts/DR_Generated/DRLuckyCatData.cs.meta new file mode 100644 index 0000000..2f5a4f7 --- /dev/null +++ b/Scripts/DR_Generated/DRLuckyCatData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8de0527818f1de141981111cc7c0e96d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRLuckyCatProbability.cs b/Scripts/DR_Generated/DRLuckyCatProbability.cs new file mode 100644 index 0000000..124fca5 --- /dev/null +++ b/Scripts/DR_Generated/DRLuckyCatProbability.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: LuckyCatProbability +// 数据类: LuckyCatProbabilityItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// LuckyCatProbability 数据行 + /// + public class DRLuckyCatProbability : DataRowBase + { + private LuckyCatProbabilityItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// BaseProbability + /// + public int BaseProbability + { + get + { + return _configData?.BaseProbability ?? 0; + } + } + + /// + /// ProbabilityBonus + /// + public int ProbabilityBonus + { + get + { + return _configData?.ProbabilityBonus ?? 0; + } + } + + /// + /// ProbabilityCap + /// + public int ProbabilityCap + { + get + { + return _configData?.ProbabilityCap ?? 0; + } + } + + /// + /// EnergyEfficiencyValue + /// + public int EnergyEfficiencyValue + { + get + { + return _configData?.EnergyEfficiencyValue ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Luckycatprobabilitys != null) + { + config.Luckycatprobabilitys.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRLuckyCatProbability.cs.meta b/Scripts/DR_Generated/DRLuckyCatProbability.cs.meta new file mode 100644 index 0000000..9cbb4dc --- /dev/null +++ b/Scripts/DR_Generated/DRLuckyCatProbability.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 730c766711ef23445b9d0c93d5bc40bc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRMainCardCollect.cs b/Scripts/DR_Generated/DRMainCardCollect.cs new file mode 100644 index 0000000..18c05f6 --- /dev/null +++ b/Scripts/DR_Generated/DRMainCardCollect.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: MainCardCollect +// 数据类: MainCardCollectItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// MainCardCollect 数据行 + /// + public class DRMainCardCollect : DataRowBase + { + private MainCardCollectItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Color + /// + public int Color + { + get + { + return _configData?.Color ?? 0; + } + } + + /// + /// Name + /// + public string Name + { + get + { + return _configData?.Name ?? ""; + } + } + + /// + /// RewardId + /// + public string RewardId + { + get + { + return _configData?.RewardId ?? ""; + } + } + + /// + /// RewardCnt + /// + public string RewardCnt + { + get + { + return _configData?.RewardCnt ?? ""; + } + } + + /// + /// Round + /// + public int Round + { + get + { + return _configData?.Round ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Maincardcollects != null) + { + config.Maincardcollects.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRMainCardCollect.cs.meta b/Scripts/DR_Generated/DRMainCardCollect.cs.meta new file mode 100644 index 0000000..b3d360d --- /dev/null +++ b/Scripts/DR_Generated/DRMainCardCollect.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: eea465361d0fb604cab1ca1eee3232e4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRMergeData.cs b/Scripts/DR_Generated/DRMergeData.cs new file mode 100644 index 0000000..173315a --- /dev/null +++ b/Scripts/DR_Generated/DRMergeData.cs @@ -0,0 +1,342 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: MergeData +// 数据类: MergeDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// MergeData 数据行 + /// + public class DRMergeData : DataRowBase + { + private MergeDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Lv + /// + public int Lv + { + get + { + return _configData?.Lv ?? 0; + } + } + + /// + /// MaxLv + /// + public int MaxLv + { + get + { + return _configData?.MaxLv ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Color + /// + public string Color + { + get + { + return _configData?.Color ?? ""; + } + } + + /// + /// Title + /// + public string Title + { + get + { + return _configData?.Title ?? ""; + } + } + + /// + /// Content + /// + public string Content + { + get + { + return _configData?.Content ?? ""; + } + } + + /// + /// SellType + /// + public string SellType + { + get + { + return _configData?.SellType ?? ""; + } + } + + /// + /// SellNum + /// + public int SellNum + { + get + { + return _configData?.SellNum ?? 0; + } + } + + /// + /// Star + /// + public int Star + { + get + { + return _configData?.Star ?? 0; + } + } + + /// + /// Origin + /// + public string Origin + { + get + { + return _configData?.Origin ?? ""; + } + } + + /// + /// Capacity + /// + public int Capacity + { + get + { + return _configData?.Capacity ?? 0; + } + } + + /// + /// CoolTime + /// + public int CoolTime + { + get + { + return _configData?.CoolTime ?? 0; + } + } + + /// + /// CoolNum + /// + public int CoolNum + { + get + { + return _configData?.CoolNum ?? 0; + } + } + + /// + /// Emit_List + /// + public string Emit_List + { + get + { + return _configData?.Emit_List ?? ""; + } + } + + /// + /// SellDiamond + /// + public int SellDiamond + { + get + { + return _configData?.SellDiamond ?? 0; + } + } + + /// + /// Relative + /// + public string Relative + { + get + { + return _configData?.Relative ?? ""; + } + } + + /// + /// Type + /// + public string Type + { + get + { + return _configData?.Type ?? ""; + } + } + + /// + /// Emit_ID + /// + public string Emit_ID + { + get + { + return _configData?.Emit_ID ?? ""; + } + } + + /// + /// Emit_Type + /// + public string Emit_Type + { + get + { + return _configData?.Emit_Type ?? ""; + } + } + + /// + /// Product_Type + /// + public string Product_Type + { + get + { + return _configData?.Product_Type ?? ""; + } + } + + /// + /// Order_Score + /// + public int Order_Score + { + get + { + return _configData?.Order_Score ?? 0; + } + } + + /// + /// Emit_Product + /// + public string Emit_Product + { + get + { + return _configData?.Emit_Product ?? ""; + } + } + + /// + /// Dynamic + /// + public string Dynamic + { + get + { + return _configData?.Dynamic ?? ""; + } + } + + /// + /// Dynamic1 + /// + public string Dynamic1 + { + get + { + return _configData?.Dynamic1 ?? ""; + } + } + + /// + /// Dynamic2 + /// + public string Dynamic2 + { + get + { + return _configData?.Dynamic2 ?? ""; + } + } + + /// + /// Dynamic3 + /// + public string Dynamic3 + { + get + { + return _configData?.Dynamic3 ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Mergedatas != null) + { + config.Mergedatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRMergeData.cs.meta b/Scripts/DR_Generated/DRMergeData.cs.meta new file mode 100644 index 0000000..3f88d67 --- /dev/null +++ b/Scripts/DR_Generated/DRMergeData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6fe7d9e2339bd4c43aff27748f2c358a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRMileStoneDetail.cs b/Scripts/DR_Generated/DRMileStoneDetail.cs new file mode 100644 index 0000000..d1ed65f --- /dev/null +++ b/Scripts/DR_Generated/DRMileStoneDetail.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: MileStoneDetail +// 数据类: MileStoneDetailItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// MileStoneDetail 数据行 + /// + public class DRMileStoneDetail : DataRowBase + { + private MileStoneDetailItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// SortId + /// + public int SortId + { + get + { + return _configData?.SortId ?? 0; + } + } + + /// + /// Action + /// + public string Action + { + get + { + return _configData?.Action ?? ""; + } + } + + /// + /// Score + /// + public int Score + { + get + { + return _configData?.Score ?? 0; + } + } + + /// + /// ScoreExtra + /// + public string ScoreExtra + { + get + { + return _configData?.ScoreExtra ?? ""; + } + } + + /// + /// Title + /// + public string Title + { + get + { + return _configData?.Title ?? ""; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Milestonedetails != null) + { + config.Milestonedetails.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRMileStoneDetail.cs.meta b/Scripts/DR_Generated/DRMileStoneDetail.cs.meta new file mode 100644 index 0000000..c55bbba --- /dev/null +++ b/Scripts/DR_Generated/DRMileStoneDetail.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d7de65db0efd3ea4b9e2e3df3aac319c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRMileStoneReward.cs b/Scripts/DR_Generated/DRMileStoneReward.cs new file mode 100644 index 0000000..0238081 --- /dev/null +++ b/Scripts/DR_Generated/DRMileStoneReward.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: MileStoneReward +// 数据类: MileStoneRewardItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// MileStoneReward 数据行 + /// + public class DRMileStoneReward : DataRowBase + { + private MileStoneRewardItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// ScoreNeed + /// + public int ScoreNeed + { + get + { + return _configData?.ScoreNeed ?? 0; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// ScoreTotal + /// + public int ScoreTotal + { + get + { + return _configData?.ScoreTotal ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Milestonerewards != null) + { + config.Milestonerewards.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRMileStoneReward.cs.meta b/Scripts/DR_Generated/DRMileStoneReward.cs.meta new file mode 100644 index 0000000..dfbdc1f --- /dev/null +++ b/Scripts/DR_Generated/DRMileStoneReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 45f9f5e045250d549b0300c3afd2f81b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRMiningReward.cs b/Scripts/DR_Generated/DRMiningReward.cs new file mode 100644 index 0000000..562b69d --- /dev/null +++ b/Scripts/DR_Generated/DRMiningReward.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: MiningReward +// 数据类: MiningRewardItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// MiningReward 数据行 + /// + public class DRMiningReward : DataRowBase + { + private MiningRewardItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Level + /// + public int Level + { + get + { + return _configData?.Level ?? 0; + } + } + + /// + /// Gem + /// + public string Gem + { + get + { + return _configData?.Gem ?? ""; + } + } + + /// + /// Size + /// + public string Size + { + get + { + return _configData?.Size ?? ""; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Miningrewards != null) + { + config.Miningrewards.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRMiningReward.cs.meta b/Scripts/DR_Generated/DRMiningReward.cs.meta new file mode 100644 index 0000000..d509190 --- /dev/null +++ b/Scripts/DR_Generated/DRMiningReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d97d0d9be838c1647aaf543891d642ba +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRMultiLanguageResource.cs b/Scripts/DR_Generated/DRMultiLanguageResource.cs new file mode 100644 index 0000000..d26eb69 --- /dev/null +++ b/Scripts/DR_Generated/DRMultiLanguageResource.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: MultiLanguageResource +// 数据类: MultiLanguageResourceItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// MultiLanguageResource 数据行 + /// + public class DRMultiLanguageResource : DataRowBase + { + private MultiLanguageResourceItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Key + /// + public string Key + { + get + { + return _configData?.Key ?? ""; + } + } + + /// + /// English + /// + public string English + { + get + { + return _configData?.English ?? ""; + } + } + + /// + /// ChineseSimplified + /// + public string ChineseSimplified + { + get + { + return _configData?.ChineseSimplified ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Multilanguageresources != null) + { + config.Multilanguageresources.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRMultiLanguageResource.cs.meta b/Scripts/DR_Generated/DRMultiLanguageResource.cs.meta new file mode 100644 index 0000000..d431a7a --- /dev/null +++ b/Scripts/DR_Generated/DRMultiLanguageResource.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7a7174960ee415a478453ea5ecef85f0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRMusic.cs b/Scripts/DR_Generated/DRMusic.cs new file mode 100644 index 0000000..ea2320d --- /dev/null +++ b/Scripts/DR_Generated/DRMusic.cs @@ -0,0 +1,67 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: Music +// 数据类: MusicItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// Music 数据行 + /// + public class DRMusic : DataRowBase + { + private MusicItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// AssetName + /// + public string AssetName + { + get + { + return _configData?.AssetName ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Musics != null) + { + config.Musics.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRMusic.cs.meta b/Scripts/DR_Generated/DRMusic.cs.meta new file mode 100644 index 0000000..52836e0 --- /dev/null +++ b/Scripts/DR_Generated/DRMusic.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 950eb5970b5792444885eed4de0fd9d3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRNPCFriendsData.cs b/Scripts/DR_Generated/DRNPCFriendsData.cs new file mode 100644 index 0000000..f056ff9 --- /dev/null +++ b/Scripts/DR_Generated/DRNPCFriendsData.cs @@ -0,0 +1,155 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: NPCFriendsData +// 数据类: NPCFriendsDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// NPCFriendsData 数据行 + /// + public class DRNPCFriendsData : DataRowBase + { + private NPCFriendsDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Name + /// + public string Name + { + get + { + return _configData?.Name ?? ""; + } + } + + /// + /// NameCN + /// + public string NameCN + { + get + { + return _configData?.NameCN ?? ""; + } + } + + /// + /// NamePr + /// + public string NamePr + { + get + { + return _configData?.NamePr ?? ""; + } + } + + /// + /// Level + /// + public int Level + { + get + { + return _configData?.Level ?? 0; + } + } + + /// + /// Head + /// + public int Head + { + get + { + return _configData?.Head ?? 0; + } + } + + /// + /// Greeting + /// + public int Greeting + { + get + { + return _configData?.Greeting ?? 0; + } + } + + /// + /// Happy + /// + public int Happy + { + get + { + return _configData?.Happy ?? 0; + } + } + + /// + /// Taunt + /// + public int Taunt + { + get + { + return _configData?.Taunt ?? 0; + } + } + + /// + /// Fail + /// + public int Fail + { + get + { + return _configData?.Fail ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Npcfriendsdatas != null) + { + config.Npcfriendsdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRNPCFriendsData.cs.meta b/Scripts/DR_Generated/DRNPCFriendsData.cs.meta new file mode 100644 index 0000000..a6a06f4 --- /dev/null +++ b/Scripts/DR_Generated/DRNPCFriendsData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 83a3d37374d8465429597458ffad39a3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRNetAssetData.cs b/Scripts/DR_Generated/DRNetAssetData.cs new file mode 100644 index 0000000..b74f6ff --- /dev/null +++ b/Scripts/DR_Generated/DRNetAssetData.cs @@ -0,0 +1,155 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: NetAssetData +// 数据类: NetAssetDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// NetAssetData 数据行 + /// + public class DRNetAssetData : DataRowBase + { + private NetAssetDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Lv + /// + public int Lv + { + get + { + return _configData?.Lv ?? 0; + } + } + + /// + /// Exp + /// + public int Exp + { + get + { + return _configData?.Exp ?? 0; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// Unlock_1 + /// + public string Unlock_1 + { + get + { + return _configData?.Unlock_1 ?? ""; + } + } + + /// + /// Next_1 + /// + public string Next_1 + { + get + { + return _configData?.Next_1 ?? ""; + } + } + + /// + /// Remark_1 + /// + public string Remark_1 + { + get + { + return _configData?.Remark_1 ?? ""; + } + } + + /// + /// Unlock_2 + /// + public string Unlock_2 + { + get + { + return _configData?.Unlock_2 ?? ""; + } + } + + /// + /// Next_2 + /// + public string Next_2 + { + get + { + return _configData?.Next_2 ?? ""; + } + } + + /// + /// Remark_2 + /// + public string Remark_2 + { + get + { + return _configData?.Remark_2 ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Netassetdatas != null) + { + config.Netassetdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRNetAssetData.cs.meta b/Scripts/DR_Generated/DRNetAssetData.cs.meta new file mode 100644 index 0000000..ae62d04 --- /dev/null +++ b/Scripts/DR_Generated/DRNetAssetData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 625f7e6e3554a4c428bc9ddb6b1ad278 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRNetworkItemData.cs b/Scripts/DR_Generated/DRNetworkItemData.cs new file mode 100644 index 0000000..a63d218 --- /dev/null +++ b/Scripts/DR_Generated/DRNetworkItemData.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: NetworkItemData +// 数据类: NetworkItemDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// NetworkItemData 数据行 + /// + public class DRNetworkItemData : DataRowBase + { + private NetworkItemDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Name + /// + public string Name + { + get + { + return _configData?.Name ?? ""; + } + } + + /// + /// IType + /// + public int IType + { + get + { + return _configData?.IType ?? 0; + } + } + + /// + /// Effect + /// + public string Effect + { + get + { + return _configData?.Effect ?? ""; + } + } + + /// + /// Res + /// + public string Res + { + get + { + return _configData?.Res ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Networkitemdatas != null) + { + config.Networkitemdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRNetworkItemData.cs.meta b/Scripts/DR_Generated/DRNetworkItemData.cs.meta new file mode 100644 index 0000000..fa4e626 --- /dev/null +++ b/Scripts/DR_Generated/DRNetworkItemData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ff0552adcff81f24c89577182c8bbbbe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRNewbieDailyTaskCfg.cs b/Scripts/DR_Generated/DRNewbieDailyTaskCfg.cs new file mode 100644 index 0000000..192df26 --- /dev/null +++ b/Scripts/DR_Generated/DRNewbieDailyTaskCfg.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: NewbieDailyTaskCfg +// 数据类: NewbieDailyTaskCfgItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// NewbieDailyTaskCfg 数据行 + /// + public class DRNewbieDailyTaskCfg : DataRowBase + { + private NewbieDailyTaskCfgItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Type + /// + public int Type + { + get + { + return _configData?.Type ?? 0; + } + } + + /// + /// AllCnt + /// + public int AllCnt + { + get + { + return _configData?.AllCnt ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Score + /// + public int Score + { + get + { + return _configData?.Score ?? 0; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// LangID + /// + public string LangID + { + get + { + return _configData?.LangID ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Newbiedailytaskcfgs != null) + { + config.Newbiedailytaskcfgs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRNewbieDailyTaskCfg.cs.meta b/Scripts/DR_Generated/DRNewbieDailyTaskCfg.cs.meta new file mode 100644 index 0000000..1d0000e --- /dev/null +++ b/Scripts/DR_Generated/DRNewbieDailyTaskCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9a1cf5e9897030541891f7906baad2fb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRNewbieScoreCfg.cs b/Scripts/DR_Generated/DRNewbieScoreCfg.cs new file mode 100644 index 0000000..52ba834 --- /dev/null +++ b/Scripts/DR_Generated/DRNewbieScoreCfg.cs @@ -0,0 +1,78 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: NewbieScoreCfg +// 数据类: NewbieScoreCfgItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// NewbieScoreCfg 数据行 + /// + public class DRNewbieScoreCfg : DataRowBase + { + private NewbieScoreCfgItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Score + /// + public int Score + { + get + { + return _configData?.Score ?? 0; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Newbiescorecfgs != null) + { + config.Newbiescorecfgs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRNewbieScoreCfg.cs.meta b/Scripts/DR_Generated/DRNewbieScoreCfg.cs.meta new file mode 100644 index 0000000..54f1e95 --- /dev/null +++ b/Scripts/DR_Generated/DRNewbieScoreCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 93b48f663852d734d9c5971654212d13 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRNickNameRandomData.cs b/Scripts/DR_Generated/DRNickNameRandomData.cs new file mode 100644 index 0000000..d9e0ba3 --- /dev/null +++ b/Scripts/DR_Generated/DRNickNameRandomData.cs @@ -0,0 +1,133 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: NickNameRandomData +// 数据类: NickNameRandomDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// NickNameRandomData 数据行 + /// + public class DRNickNameRandomData : DataRowBase + { + private NickNameRandomDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// EnglishAdjective + /// + public string EnglishAdjective + { + get + { + return _configData?.EnglishAdjective ?? ""; + } + } + + /// + /// EnglishNoun + /// + public string EnglishNoun + { + get + { + return _configData?.EnglishNoun ?? ""; + } + } + + /// + /// ChineseAdjective + /// + public string ChineseAdjective + { + get + { + return _configData?.ChineseAdjective ?? ""; + } + } + + /// + /// ChineseNoun + /// + public string ChineseNoun + { + get + { + return _configData?.ChineseNoun ?? ""; + } + } + + /// + /// ChineseAdjective2 + /// + public string ChineseAdjective2 + { + get + { + return _configData?.ChineseAdjective2 ?? ""; + } + } + + /// + /// PortugueseAdjective + /// + public string PortugueseAdjective + { + get + { + return _configData?.PortugueseAdjective ?? ""; + } + } + + /// + /// PortugueseNoun + /// + public string PortugueseNoun + { + get + { + return _configData?.PortugueseNoun ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Nicknamerandomdatas != null) + { + config.Nicknamerandomdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRNickNameRandomData.cs.meta b/Scripts/DR_Generated/DRNickNameRandomData.cs.meta new file mode 100644 index 0000000..d493040 --- /dev/null +++ b/Scripts/DR_Generated/DRNickNameRandomData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 08184b4fb2f8893498df7052ff163ec3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPassOne.cs b/Scripts/DR_Generated/DRPassOne.cs new file mode 100644 index 0000000..b425fe9 --- /dev/null +++ b/Scripts/DR_Generated/DRPassOne.cs @@ -0,0 +1,133 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PassOne +// 数据类: PassOneItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PassOne 数据行 + /// + public class DRPassOne : DataRowBase + { + private PassOneItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Lv + /// + public int Lv + { + get + { + return _configData?.Lv ?? 0; + } + } + + /// + /// FreeReward + /// + public string FreeReward + { + get + { + return _configData?.FreeReward ?? ""; + } + } + + /// + /// PayReward + /// + public string PayReward + { + get + { + return _configData?.PayReward ?? ""; + } + } + + /// + /// UpgradeGap + /// + public int UpgradeGap + { + get + { + return _configData?.UpgradeGap ?? 0; + } + } + + /// + /// Price_Old + /// + public float Price_Old + { + get + { + return System.Convert.ToSingle(_configData?.Price_Old ?? 0.0); + } + } + + /// + /// Price_New + /// + public float Price_New + { + get + { + return System.Convert.ToSingle(_configData?.Price_New ?? 0.0); + } + } + + /// + /// Hour + /// + public int Hour + { + get + { + return _configData?.Hour ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Passones != null) + { + config.Passones.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPassOne.cs.meta b/Scripts/DR_Generated/DRPassOne.cs.meta new file mode 100644 index 0000000..cc26191 --- /dev/null +++ b/Scripts/DR_Generated/DRPassOne.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: efca8110e8731f347b96d98a040c381c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPetAdWorkGift.cs b/Scripts/DR_Generated/DRPetAdWorkGift.cs new file mode 100644 index 0000000..483924b --- /dev/null +++ b/Scripts/DR_Generated/DRPetAdWorkGift.cs @@ -0,0 +1,133 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PetAdWorkGift +// 数据类: PetAdWorkGiftItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PetAdWorkGift 数据行 + /// + public class DRPetAdWorkGift : DataRowBase + { + private PetAdWorkGiftItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// Price_New + /// + public float Price_New + { + get + { + return System.Convert.ToSingle(_configData?.Price_New ?? 0.0); + } + } + + /// + /// Price_Old + /// + public float Price_Old + { + get + { + return System.Convert.ToSingle(_configData?.Price_Old ?? 0.0); + } + } + + /// + /// Duration + /// + public int Duration + { + get + { + return _configData?.Duration ?? 0; + } + } + + /// + /// Limit + /// + public int Limit + { + get + { + return _configData?.Limit ?? 0; + } + } + + /// + /// Discount + /// + public float Discount + { + get + { + return System.Convert.ToSingle(_configData?.Discount ?? 0.0); + } + } + + /// + /// ChargeId + /// + public int ChargeId + { + get + { + return _configData?.ChargeId ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Petadworkgifts != null) + { + config.Petadworkgifts.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPetAdWorkGift.cs.meta b/Scripts/DR_Generated/DRPetAdWorkGift.cs.meta new file mode 100644 index 0000000..869ebad --- /dev/null +++ b/Scripts/DR_Generated/DRPetAdWorkGift.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 360a4370d19bc584f927c4fe9cf804c8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPetAirItem.cs b/Scripts/DR_Generated/DRPetAirItem.cs new file mode 100644 index 0000000..a354817 --- /dev/null +++ b/Scripts/DR_Generated/DRPetAirItem.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PetAirItem +// 数据类: PetAirItemItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PetAirItem 数据行 + /// + public class DRPetAirItem : DataRowBase + { + private PetAirItemItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// GroupId + /// + public int GroupId + { + get + { + return _configData?.GroupId ?? 0; + } + } + + /// + /// ItemId + /// + public int ItemId + { + get + { + return _configData?.ItemId ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Model + /// + public string Model + { + get + { + return _configData?.Model ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Petairitems != null) + { + config.Petairitems.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPetAirItem.cs.meta b/Scripts/DR_Generated/DRPetAirItem.cs.meta new file mode 100644 index 0000000..0e7b244 --- /dev/null +++ b/Scripts/DR_Generated/DRPetAirItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 540205c3dcffca34fb600f6da6af1f67 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPetCareItem.cs b/Scripts/DR_Generated/DRPetCareItem.cs new file mode 100644 index 0000000..336eee4 --- /dev/null +++ b/Scripts/DR_Generated/DRPetCareItem.cs @@ -0,0 +1,210 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PetCareItem +// 数据类: PetCareItemItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PetCareItem 数据行 + /// + public class DRPetCareItem : DataRowBase + { + private PetCareItemItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// GroupId + /// + public int GroupId + { + get + { + return _configData?.GroupId ?? 0; + } + } + + /// + /// ItemId + /// + public int ItemId + { + get + { + return _configData?.ItemId ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Model + /// + public string Model + { + get + { + return _configData?.Model ?? ""; + } + } + + /// + /// Scale + /// + public float Scale + { + get + { + return System.Convert.ToSingle(_configData?.Scale ?? 0.0); + } + } + + /// + /// Angle + /// + public string Angle + { + get + { + return _configData?.Angle ?? ""; + } + } + + /// + /// GetFrom + /// + public string GetFrom + { + get + { + return _configData?.GetFrom ?? ""; + } + } + + /// + /// Price + /// + public int Price + { + get + { + return _configData?.Price ?? 0; + } + } + + /// + /// Res + /// + public string Res + { + get + { + return _configData?.Res ?? ""; + } + } + + /// + /// ReqId + /// + public int ReqId + { + get + { + return _configData?.ReqId ?? 0; + } + } + + /// + /// Exp + /// + public int Exp + { + get + { + return _configData?.Exp ?? 0; + } + } + + /// + /// Sort + /// + public int Sort + { + get + { + return _configData?.Sort ?? 0; + } + } + + /// + /// Tex2D + /// + public string Tex2D + { + get + { + return _configData?.Tex2D ?? ""; + } + } + + /// + /// Name + /// + public string Name + { + get + { + return _configData?.Name ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Petcareitems != null) + { + config.Petcareitems.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPetCareItem.cs.meta b/Scripts/DR_Generated/DRPetCareItem.cs.meta new file mode 100644 index 0000000..9315fdd --- /dev/null +++ b/Scripts/DR_Generated/DRPetCareItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a62269ccc3e59ec4b85349e3b0536e35 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPetCoinGift.cs b/Scripts/DR_Generated/DRPetCoinGift.cs new file mode 100644 index 0000000..be9ebec --- /dev/null +++ b/Scripts/DR_Generated/DRPetCoinGift.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PetCoinGift +// 数据类: PetCoinGiftItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PetCoinGift 数据行 + /// + public class DRPetCoinGift : DataRowBase + { + private PetCoinGiftItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// Price_New + /// + public float Price_New + { + get + { + return System.Convert.ToSingle(_configData?.Price_New ?? 0.0); + } + } + + /// + /// Price_Old + /// + public float Price_Old + { + get + { + return System.Convert.ToSingle(_configData?.Price_Old ?? 0.0); + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Petcoingifts != null) + { + config.Petcoingifts.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPetCoinGift.cs.meta b/Scripts/DR_Generated/DRPetCoinGift.cs.meta new file mode 100644 index 0000000..02d981a --- /dev/null +++ b/Scripts/DR_Generated/DRPetCoinGift.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a8bb7f971ace7e948900257b5bb96ca1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPetDailyTaskCfg.cs b/Scripts/DR_Generated/DRPetDailyTaskCfg.cs new file mode 100644 index 0000000..5ccda7d --- /dev/null +++ b/Scripts/DR_Generated/DRPetDailyTaskCfg.cs @@ -0,0 +1,111 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PetDailyTaskCfg +// 数据类: PetDailyTaskCfgItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PetDailyTaskCfg 数据行 + /// + public class DRPetDailyTaskCfg : DataRowBase + { + private PetDailyTaskCfgItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Type + /// + public int Type + { + get + { + return _configData?.Type ?? 0; + } + } + + /// + /// Task + /// + public string Task + { + get + { + return _configData?.Task ?? ""; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// LangID + /// + public string LangID + { + get + { + return _configData?.LangID ?? ""; + } + } + + /// + /// GoTo + /// + public int GoTo + { + get + { + return _configData?.GoTo ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Petdailytaskcfgs != null) + { + config.Petdailytaskcfgs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPetDailyTaskCfg.cs.meta b/Scripts/DR_Generated/DRPetDailyTaskCfg.cs.meta new file mode 100644 index 0000000..c2ed38f --- /dev/null +++ b/Scripts/DR_Generated/DRPetDailyTaskCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c816fc592016d5c478fbf233f24db4aa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPetDressItem.cs b/Scripts/DR_Generated/DRPetDressItem.cs new file mode 100644 index 0000000..dc7d9a6 --- /dev/null +++ b/Scripts/DR_Generated/DRPetDressItem.cs @@ -0,0 +1,144 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PetDressItem +// 数据类: PetDressItemItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PetDressItem 数据行 + /// + public class DRPetDressItem : DataRowBase + { + private PetDressItemItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// GroupId + /// + public int GroupId + { + get + { + return _configData?.GroupId ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// PetModel + /// + public string PetModel + { + get + { + return _configData?.PetModel ?? ""; + } + } + + /// + /// PartModel + /// + public string PartModel + { + get + { + return _configData?.PartModel ?? ""; + } + } + + /// + /// Part + /// + public string Part + { + get + { + return _configData?.Part ?? ""; + } + } + + /// + /// Texture + /// + public string Texture + { + get + { + return _configData?.Texture ?? ""; + } + } + + /// + /// Mutex + /// + public string Mutex + { + get + { + return _configData?.Mutex ?? ""; + } + } + + /// + /// Show + /// + public int Show + { + get + { + return _configData?.Show ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Petdressitems != null) + { + config.Petdressitems.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPetDressItem.cs.meta b/Scripts/DR_Generated/DRPetDressItem.cs.meta new file mode 100644 index 0000000..3f3f43a --- /dev/null +++ b/Scripts/DR_Generated/DRPetDressItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2c779010508ec354389a43b7cb9386aa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPetHomeDecorateList.cs b/Scripts/DR_Generated/DRPetHomeDecorateList.cs new file mode 100644 index 0000000..57a672c --- /dev/null +++ b/Scripts/DR_Generated/DRPetHomeDecorateList.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PetHomeDecorateList +// 数据类: PetHomeDecorateListItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PetHomeDecorateList 数据行 + /// + public class DRPetHomeDecorateList : DataRowBase + { + private PetHomeDecorateListItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// TypeEnum + /// + public int TypeEnum + { + get + { + return _configData?.TypeEnum ?? 0; + } + } + + /// + /// Category + /// + public int Category + { + get + { + return _configData?.Category ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// ResPrefix + /// + public string ResPrefix + { + get + { + return _configData?.ResPrefix ?? ""; + } + } + + /// + /// English + /// + public string English + { + get + { + return _configData?.English ?? ""; + } + } + + /// + /// Chinese + /// + public string Chinese + { + get + { + return _configData?.Chinese ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Pethomedecoratelists != null) + { + config.Pethomedecoratelists.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPetHomeDecorateList.cs.meta b/Scripts/DR_Generated/DRPetHomeDecorateList.cs.meta new file mode 100644 index 0000000..d5b1886 --- /dev/null +++ b/Scripts/DR_Generated/DRPetHomeDecorateList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0d70b38fce06f834cbd57a838b9924f8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPetPlayJoyItem.cs b/Scripts/DR_Generated/DRPetPlayJoyItem.cs new file mode 100644 index 0000000..35fd62a --- /dev/null +++ b/Scripts/DR_Generated/DRPetPlayJoyItem.cs @@ -0,0 +1,199 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PetPlayJoyItem +// 数据类: PetPlayJoyItemItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PetPlayJoyItem 数据行 + /// + public class DRPetPlayJoyItem : DataRowBase + { + private PetPlayJoyItemItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// GroupId + /// + public int GroupId + { + get + { + return _configData?.GroupId ?? 0; + } + } + + /// + /// ItemId + /// + public int ItemId + { + get + { + return _configData?.ItemId ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Model + /// + public string Model + { + get + { + return _configData?.Model ?? ""; + } + } + + /// + /// Scale + /// + public float Scale + { + get + { + return System.Convert.ToSingle(_configData?.Scale ?? 0.0); + } + } + + /// + /// Angle + /// + public string Angle + { + get + { + return _configData?.Angle ?? ""; + } + } + + /// + /// GetFrom + /// + public string GetFrom + { + get + { + return _configData?.GetFrom ?? ""; + } + } + + /// + /// Price + /// + public int Price + { + get + { + return _configData?.Price ?? 0; + } + } + + /// + /// ReqId + /// + public int ReqId + { + get + { + return _configData?.ReqId ?? 0; + } + } + + /// + /// Exp + /// + public int Exp + { + get + { + return _configData?.Exp ?? 0; + } + } + + /// + /// Sort + /// + public int Sort + { + get + { + return _configData?.Sort ?? 0; + } + } + + /// + /// Tex2D + /// + public string Tex2D + { + get + { + return _configData?.Tex2D ?? ""; + } + } + + /// + /// Name + /// + public string Name + { + get + { + return _configData?.Name ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Petplayjoyitems != null) + { + config.Petplayjoyitems.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPetPlayJoyItem.cs.meta b/Scripts/DR_Generated/DRPetPlayJoyItem.cs.meta new file mode 100644 index 0000000..8d022d5 --- /dev/null +++ b/Scripts/DR_Generated/DRPetPlayJoyItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fdc4a15591a56e44fadef0405ddd91b1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPetRoomUnlockCfg.cs b/Scripts/DR_Generated/DRPetRoomUnlockCfg.cs new file mode 100644 index 0000000..97528e8 --- /dev/null +++ b/Scripts/DR_Generated/DRPetRoomUnlockCfg.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PetRoomUnlockCfg +// 数据类: PetRoomUnlockCfgItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PetRoomUnlockCfg 数据行 + /// + public class DRPetRoomUnlockCfg : DataRowBase + { + private PetRoomUnlockCfgItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// UnlockPoint + /// + public int UnlockPoint + { + get + { + return _configData?.UnlockPoint ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// Title + /// + public string Title + { + get + { + return _configData?.Title ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Petroomunlockcfgs != null) + { + config.Petroomunlockcfgs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPetRoomUnlockCfg.cs.meta b/Scripts/DR_Generated/DRPetRoomUnlockCfg.cs.meta new file mode 100644 index 0000000..e352a88 --- /dev/null +++ b/Scripts/DR_Generated/DRPetRoomUnlockCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9f1b94503340c4341887288e887f9bd6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPetShopItem.cs b/Scripts/DR_Generated/DRPetShopItem.cs new file mode 100644 index 0000000..e41e593 --- /dev/null +++ b/Scripts/DR_Generated/DRPetShopItem.cs @@ -0,0 +1,243 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PetShopItem +// 数据类: PetShopItemItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PetShopItem 数据行 + /// + public class DRPetShopItem : DataRowBase + { + private PetShopItemItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// GroupId + /// + public int GroupId + { + get + { + return _configData?.GroupId ?? 0; + } + } + + /// + /// Page + /// + public int Page + { + get + { + return _configData?.Page ?? 0; + } + } + + /// + /// ItemId + /// + public int ItemId + { + get + { + return _configData?.ItemId ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// ReqId + /// + public int ReqId + { + get + { + return _configData?.ReqId ?? 0; + } + } + + /// + /// Level + /// + public int Level + { + get + { + return _configData?.Level ?? 0; + } + } + + /// + /// SellType + /// + public string SellType + { + get + { + return _configData?.SellType ?? ""; + } + } + + /// + /// SellPrice + /// + public int SellPrice + { + get + { + return _configData?.SellPrice ?? 0; + } + } + + /// + /// Mood + /// + public int Mood + { + get + { + return _configData?.Mood ?? 0; + } + } + + /// + /// BagItem + /// + public string BagItem + { + get + { + return _configData?.BagItem ?? ""; + } + } + + /// + /// Animation + /// + public string Animation + { + get + { + return _configData?.Animation ?? ""; + } + } + + /// + /// MouthPos + /// + public string MouthPos + { + get + { + return _configData?.MouthPos ?? ""; + } + } + + /// + /// BubbleRes + /// + public string BubbleRes + { + get + { + return _configData?.BubbleRes ?? ""; + } + } + + /// + /// Exp + /// + public int Exp + { + get + { + return _configData?.Exp ?? 0; + } + } + + /// + /// Cooldown + /// + public int Cooldown + { + get + { + return _configData?.Cooldown ?? 0; + } + } + + /// + /// Dailystorage + /// + public int Dailystorage + { + get + { + return _configData?.Dailystorage ?? 0; + } + } + + /// + /// Name + /// + public string Name + { + get + { + return _configData?.Name ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Petshopitems != null) + { + config.Petshopitems.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPetShopItem.cs.meta b/Scripts/DR_Generated/DRPetShopItem.cs.meta new file mode 100644 index 0000000..ce8ddf1 --- /dev/null +++ b/Scripts/DR_Generated/DRPetShopItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7065c7cbe21f34e418424b3603088fc6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPlayHomeDecorateCfg.cs b/Scripts/DR_Generated/DRPlayHomeDecorateCfg.cs new file mode 100644 index 0000000..333ac35 --- /dev/null +++ b/Scripts/DR_Generated/DRPlayHomeDecorateCfg.cs @@ -0,0 +1,188 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PlayHomeDecorateCfg +// 数据类: PlayHomeDecorateCfgItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PlayHomeDecorateCfg 数据行 + /// + public class DRPlayHomeDecorateCfg : DataRowBase + { + private PlayHomeDecorateCfgItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// TypeEnum + /// + public int TypeEnum + { + get + { + return _configData?.TypeEnum ?? 0; + } + } + + /// + /// Category + /// + public int Category + { + get + { + return _configData?.Category ?? 0; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// ResPrefix + /// + public string ResPrefix + { + get + { + return _configData?.ResPrefix ?? ""; + } + } + + /// + /// English + /// + public string English + { + get + { + return _configData?.English ?? ""; + } + } + + /// + /// Chinese + /// + public string Chinese + { + get + { + return _configData?.Chinese ?? ""; + } + } + + /// + /// Extra + /// + public int Extra + { + get + { + return _configData?.Extra ?? 0; + } + } + + /// + /// SizeScale + /// + public float SizeScale + { + get + { + return System.Convert.ToSingle(_configData?.SizeScale ?? 0.0); + } + } + + /// + /// Init + /// + public int Init + { + get + { + return _configData?.Init ?? 0; + } + } + + /// + /// Tijiaoxian + /// + public string Tijiaoxian + { + get + { + return _configData?.Tijiaoxian ?? ""; + } + } + + /// + /// TPosY + /// + public float TPosY + { + get + { + return System.Convert.ToSingle(_configData?.TPosY ?? 0.0); + } + } + + /// + /// GoName + /// + public string GoName + { + get + { + return _configData?.GoName ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Playhomedecoratecfgs != null) + { + config.Playhomedecoratecfgs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPlayHomeDecorateCfg.cs.meta b/Scripts/DR_Generated/DRPlayHomeDecorateCfg.cs.meta new file mode 100644 index 0000000..2981598 --- /dev/null +++ b/Scripts/DR_Generated/DRPlayHomeDecorateCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: eb449bda1d741594a8cdb6e954b75bc9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRPromotionPack.cs b/Scripts/DR_Generated/DRPromotionPack.cs new file mode 100644 index 0000000..5e1ed9d --- /dev/null +++ b/Scripts/DR_Generated/DRPromotionPack.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: PromotionPack +// 数据类: PromotionPackItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// PromotionPack 数据行 + /// + public class DRPromotionPack : DataRowBase + { + private PromotionPackItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Bg + /// + public string Bg + { + get + { + return _configData?.Bg ?? ""; + } + } + + /// + /// Title + /// + public string Title + { + get + { + return _configData?.Title ?? ""; + } + } + + /// + /// Tip + /// + public string Tip + { + get + { + return _configData?.Tip ?? ""; + } + } + + /// + /// Content + /// + public string Content + { + get + { + return _configData?.Content ?? ""; + } + } + + /// + /// Price_New + /// + public float Price_New + { + get + { + return System.Convert.ToSingle(_configData?.Price_New ?? 0.0); + } + } + + /// + /// Price_Old + /// + public float Price_Old + { + get + { + return System.Convert.ToSingle(_configData?.Price_Old ?? 0.0); + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Promotionpacks != null) + { + config.Promotionpacks.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRPromotionPack.cs.meta b/Scripts/DR_Generated/DRPromotionPack.cs.meta new file mode 100644 index 0000000..6485459 --- /dev/null +++ b/Scripts/DR_Generated/DRPromotionPack.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 49d83e01f204a9a4397432ca4dff04d9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRRaceReward.cs b/Scripts/DR_Generated/DRRaceReward.cs new file mode 100644 index 0000000..4b484ff --- /dev/null +++ b/Scripts/DR_Generated/DRRaceReward.cs @@ -0,0 +1,111 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: RaceReward +// 数据类: RaceRewardItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// RaceReward 数据行 + /// + public class DRRaceReward : DataRowBase + { + private RaceRewardItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Level + /// + public int Level + { + get + { + return _configData?.Level ?? 0; + } + } + + /// + /// Way + /// + public int Way + { + get + { + return _configData?.Way ?? 0; + } + } + + /// + /// Score + /// + public int Score + { + get + { + return _configData?.Score ?? 0; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// LimitReward + /// + public string LimitReward + { + get + { + return _configData?.LimitReward ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Racerewards != null) + { + config.Racerewards.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRRaceReward.cs.meta b/Scripts/DR_Generated/DRRaceReward.cs.meta new file mode 100644 index 0000000..6086a92 --- /dev/null +++ b/Scripts/DR_Generated/DRRaceReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a1c83fb6433f7304a90d693dcb648a4c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRRankData.cs b/Scripts/DR_Generated/DRRankData.cs new file mode 100644 index 0000000..b7ac8ba --- /dev/null +++ b/Scripts/DR_Generated/DRRankData.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: RankData +// 数据类: RankDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// RankData 数据行 + /// + public class DRRankData : DataRowBase + { + private RankDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Lv + /// + public int Lv + { + get + { + return _configData?.Lv ?? 0; + } + } + + /// + /// Exp + /// + public int Exp + { + get + { + return _configData?.Exp ?? 0; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Rankdatas != null) + { + config.Rankdatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRRankData.cs.meta b/Scripts/DR_Generated/DRRankData.cs.meta new file mode 100644 index 0000000..b45c0f0 --- /dev/null +++ b/Scripts/DR_Generated/DRRankData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4cd9c9e0a4419f04580a5d19dcd61733 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRRegionData.cs b/Scripts/DR_Generated/DRRegionData.cs new file mode 100644 index 0000000..62928aa --- /dev/null +++ b/Scripts/DR_Generated/DRRegionData.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: RegionData +// 数据类: RegionDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// RegionData 数据行 + /// + public class DRRegionData : DataRowBase + { + private RegionDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// EnglishName + /// + public string EnglishName + { + get + { + return _configData?.EnglishName ?? ""; + } + } + + /// + /// ChineseName + /// + public string ChineseName + { + get + { + return _configData?.ChineseName ?? ""; + } + } + + /// + /// CountryCode + /// + public string CountryCode + { + get + { + return _configData?.CountryCode ?? ""; + } + } + + /// + /// PhoneCode + /// + public int PhoneCode + { + get + { + return _configData?.PhoneCode ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Regiondatas != null) + { + config.Regiondatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRRegionData.cs.meta b/Scripts/DR_Generated/DRRegionData.cs.meta new file mode 100644 index 0000000..fd78a31 --- /dev/null +++ b/Scripts/DR_Generated/DRRegionData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 61aa0832b15088844bd80a7d85c25f83 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRSceneData.cs b/Scripts/DR_Generated/DRSceneData.cs new file mode 100644 index 0000000..5c8b98a --- /dev/null +++ b/Scripts/DR_Generated/DRSceneData.cs @@ -0,0 +1,111 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: SceneData +// 数据类: SceneDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// SceneData 数据行 + /// + public class DRSceneData : DataRowBase + { + private SceneDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// SceneId + /// + public int SceneId + { + get + { + return _configData?.SceneId ?? 0; + } + } + + /// + /// AreaId + /// + public int AreaId + { + get + { + return _configData?.AreaId ?? 0; + } + } + + /// + /// Title + /// + public string Title + { + get + { + return _configData?.Title ?? ""; + } + } + + /// + /// Icon + /// + public string Icon + { + get + { + return _configData?.Icon ?? ""; + } + } + + /// + /// IconGray + /// + public string IconGray + { + get + { + return _configData?.IconGray ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Scenedatas != null) + { + config.Scenedatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRSceneData.cs.meta b/Scripts/DR_Generated/DRSceneData.cs.meta new file mode 100644 index 0000000..c8a7cf4 --- /dev/null +++ b/Scripts/DR_Generated/DRSceneData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2396fa4df3a4dd44789907ecebb6cf58 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRSevenLoginCfg.cs b/Scripts/DR_Generated/DRSevenLoginCfg.cs new file mode 100644 index 0000000..654283c --- /dev/null +++ b/Scripts/DR_Generated/DRSevenLoginCfg.cs @@ -0,0 +1,78 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: SevenLoginCfg +// 数据类: SevenLoginCfgItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// SevenLoginCfg 数据行 + /// + public class DRSevenLoginCfg : DataRowBase + { + private SevenLoginCfgItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// RewardIds + /// + public string RewardIds + { + get + { + return _configData?.RewardIds ?? ""; + } + } + + /// + /// RewardCnt + /// + public string RewardCnt + { + get + { + return _configData?.RewardCnt ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Sevenlogincfgs != null) + { + config.Sevenlogincfgs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRSevenLoginCfg.cs.meta b/Scripts/DR_Generated/DRSevenLoginCfg.cs.meta new file mode 100644 index 0000000..85981e2 --- /dev/null +++ b/Scripts/DR_Generated/DRSevenLoginCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e48105ba6efaf994daa3b2bc8466c453 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRShopItem.cs b/Scripts/DR_Generated/DRShopItem.cs new file mode 100644 index 0000000..c669c9b --- /dev/null +++ b/Scripts/DR_Generated/DRShopItem.cs @@ -0,0 +1,133 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: ShopItem +// 数据类: ShopItemItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// ShopItem 数据行 + /// + public class DRShopItem : DataRowBase + { + private ShopItemItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Group + /// + public string Group + { + get + { + return _configData?.Group ?? ""; + } + } + + /// + /// ObjId + /// + public string ObjId + { + get + { + return _configData?.ObjId ?? ""; + } + } + + /// + /// SellType + /// + public string SellType + { + get + { + return _configData?.SellType ?? ""; + } + } + + /// + /// SellPrice + /// + public float SellPrice + { + get + { + return System.Convert.ToSingle(_configData?.SellPrice ?? 0.0); + } + } + + /// + /// TotalCount + /// + public int TotalCount + { + get + { + return _configData?.TotalCount ?? 0; + } + } + + /// + /// MoreCount + /// + public int MoreCount + { + get + { + return _configData?.MoreCount ?? 0; + } + } + + /// + /// MoreTip + /// + public string MoreTip + { + get + { + return _configData?.MoreTip ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Shopitems != null) + { + config.Shopitems.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRShopItem.cs.meta b/Scripts/DR_Generated/DRShopItem.cs.meta new file mode 100644 index 0000000..63d3d3e --- /dev/null +++ b/Scripts/DR_Generated/DRShopItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c6db1b8d8fb3fb440911f013d457ec82 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRShopPack.cs b/Scripts/DR_Generated/DRShopPack.cs new file mode 100644 index 0000000..fdda21a --- /dev/null +++ b/Scripts/DR_Generated/DRShopPack.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: ShopPack +// 数据类: ShopPackItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// ShopPack 数据行 + /// + public class DRShopPack : DataRowBase + { + private ShopPackItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Title + /// + public string Title + { + get + { + return _configData?.Title ?? ""; + } + } + + /// + /// Content + /// + public string Content + { + get + { + return _configData?.Content ?? ""; + } + } + + /// + /// Price_Old + /// + public float Price_Old + { + get + { + return System.Convert.ToSingle(_configData?.Price_Old ?? 0.0); + } + } + + /// + /// Price_New + /// + public float Price_New + { + get + { + return System.Convert.ToSingle(_configData?.Price_New ?? 0.0); + } + } + + /// + /// Discount + /// + public float Discount + { + get + { + return System.Convert.ToSingle(_configData?.Discount ?? 0.0); + } + } + + /// + /// TotalCount + /// + public int TotalCount + { + get + { + return _configData?.TotalCount ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Shoppacks != null) + { + config.Shoppacks.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRShopPack.cs.meta b/Scripts/DR_Generated/DRShopPack.cs.meta new file mode 100644 index 0000000..429ada2 --- /dev/null +++ b/Scripts/DR_Generated/DRShopPack.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b47d29adbaba92348b51ceabc58eaa2e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRShopSpecial.cs b/Scripts/DR_Generated/DRShopSpecial.cs new file mode 100644 index 0000000..d725c88 --- /dev/null +++ b/Scripts/DR_Generated/DRShopSpecial.cs @@ -0,0 +1,100 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: ShopSpecial +// 数据类: ShopSpecialItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// ShopSpecial 数据行 + /// + public class DRShopSpecial : DataRowBase + { + private ShopSpecialItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Type + /// + public int Type + { + get + { + return _configData?.Type ?? 0; + } + } + + /// + /// SortId + /// + public int SortId + { + get + { + return _configData?.SortId ?? 0; + } + } + + /// + /// ItemReward + /// + public string ItemReward + { + get + { + return _configData?.ItemReward ?? ""; + } + } + + /// + /// PayPrice + /// + public float PayPrice + { + get + { + return System.Convert.ToSingle(_configData?.PayPrice ?? 0.0); + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Shopspecials != null) + { + config.Shopspecials.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRShopSpecial.cs.meta b/Scripts/DR_Generated/DRShopSpecial.cs.meta new file mode 100644 index 0000000..942cc8a --- /dev/null +++ b/Scripts/DR_Generated/DRShopSpecial.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e819db26c40018c438d649b00b17ae0a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRSignInData.cs b/Scripts/DR_Generated/DRSignInData.cs new file mode 100644 index 0000000..645db5a --- /dev/null +++ b/Scripts/DR_Generated/DRSignInData.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: SignInData +// 数据类: SignInDataItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// SignInData 数据行 + /// + public class DRSignInData : DataRowBase + { + private SignInDataItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// RewardLv + /// + public int RewardLv + { + get + { + return _configData?.RewardLv ?? 0; + } + } + + /// + /// SortId + /// + public int SortId + { + get + { + return _configData?.SortId ?? 0; + } + } + + /// + /// Reward + /// + public string Reward + { + get + { + return _configData?.Reward ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Signindatas != null) + { + config.Signindatas.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRSignInData.cs.meta b/Scripts/DR_Generated/DRSignInData.cs.meta new file mode 100644 index 0000000..44c51ae --- /dev/null +++ b/Scripts/DR_Generated/DRSignInData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 24c34a674bdd272499cd4790fc49fa2f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRSound.cs b/Scripts/DR_Generated/DRSound.cs new file mode 100644 index 0000000..1635d9d --- /dev/null +++ b/Scripts/DR_Generated/DRSound.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: Sound +// 数据类: SoundItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// Sound 数据行 + /// + public class DRSound : DataRowBase + { + private SoundItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// AssetName + /// + public string AssetName + { + get + { + return _configData?.AssetName ?? ""; + } + } + + /// + /// Priority + /// + public int Priority + { + get + { + return _configData?.Priority ?? 0; + } + } + + /// + /// Loop + /// + public bool Loop + { + get + { + return _configData?.Loop ?? false; + } + } + + /// + /// Volume + /// + public float Volume + { + get + { + return System.Convert.ToSingle(_configData?.Volume ?? 0.0); + } + } + + /// + /// SpatialBlend + /// + public float SpatialBlend + { + get + { + return System.Convert.ToSingle(_configData?.SpatialBlend ?? 0.0); + } + } + + /// + /// MaxDistance + /// + public float MaxDistance + { + get + { + return System.Convert.ToSingle(_configData?.MaxDistance ?? 0.0); + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Sounds != null) + { + config.Sounds.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRSound.cs.meta b/Scripts/DR_Generated/DRSound.cs.meta new file mode 100644 index 0000000..03822f5 --- /dev/null +++ b/Scripts/DR_Generated/DRSound.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 33c9fdb32d745024a8c8568072f48fe4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRStartMerge.cs b/Scripts/DR_Generated/DRStartMerge.cs new file mode 100644 index 0000000..691d2be --- /dev/null +++ b/Scripts/DR_Generated/DRStartMerge.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: StartMerge +// 数据类: StartMergeItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// StartMerge 数据行 + /// + public class DRStartMerge : DataRowBase + { + private StartMergeItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// MergeId + /// + public int MergeId + { + get + { + return _configData?.MergeId ?? 0; + } + } + + /// + /// Row + /// + public int Row + { + get + { + return _configData?.Row ?? 0; + } + } + + /// + /// Line + /// + public int Line + { + get + { + return _configData?.Line ?? 0; + } + } + + /// + /// Lock + /// + public int Lock + { + get + { + return _configData?.Lock ?? 0; + } + } + + /// + /// UnlockLv + /// + public int UnlockLv + { + get + { + return _configData?.UnlockLv ?? 0; + } + } + + /// + /// Remark + /// + public string Remark + { + get + { + return _configData?.Remark ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Startmerges != null) + { + config.Startmerges.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRStartMerge.cs.meta b/Scripts/DR_Generated/DRStartMerge.cs.meta new file mode 100644 index 0000000..277edcd --- /dev/null +++ b/Scripts/DR_Generated/DRStartMerge.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7f0e9a4b2abf0ac4e80fdca3f2bd33c4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRStartOrder.cs b/Scripts/DR_Generated/DRStartOrder.cs new file mode 100644 index 0000000..cb1ee8f --- /dev/null +++ b/Scripts/DR_Generated/DRStartOrder.cs @@ -0,0 +1,89 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: StartOrder +// 数据类: StartOrderItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// StartOrder 数据行 + /// + public class DRStartOrder : DataRowBase + { + private StartOrderItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// Merge_id_list + /// + public string Merge_id_list + { + get + { + return _configData?.Merge_id_list ?? ""; + } + } + + /// + /// FillCount + /// + public int FillCount + { + get + { + return _configData?.FillCount ?? 0; + } + } + + /// + /// Break + /// + public string Break + { + get + { + return _configData?.Break ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Startorders != null) + { + config.Startorders.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRStartOrder.cs.meta b/Scripts/DR_Generated/DRStartOrder.cs.meta new file mode 100644 index 0000000..5c78990 --- /dev/null +++ b/Scripts/DR_Generated/DRStartOrder.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e233ffea5615f354bb055db289a0bf5c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRTurnTableCfg.cs b/Scripts/DR_Generated/DRTurnTableCfg.cs new file mode 100644 index 0000000..2741b79 --- /dev/null +++ b/Scripts/DR_Generated/DRTurnTableCfg.cs @@ -0,0 +1,67 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: TurnTableCfg +// 数据类: TurnTableCfgItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// TurnTableCfg 数据行 + /// + public class DRTurnTableCfg : DataRowBase + { + private TurnTableCfgItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// RewardInfo + /// + public string RewardInfo + { + get + { + return _configData?.RewardInfo ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Turntablecfgs != null) + { + config.Turntablecfgs.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRTurnTableCfg.cs.meta b/Scripts/DR_Generated/DRTurnTableCfg.cs.meta new file mode 100644 index 0000000..1a41f28 --- /dev/null +++ b/Scripts/DR_Generated/DRTurnTableCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 53242a4e2831e75419503a95c7f158f2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRUIForm.cs b/Scripts/DR_Generated/DRUIForm.cs new file mode 100644 index 0000000..bc7fb54 --- /dev/null +++ b/Scripts/DR_Generated/DRUIForm.cs @@ -0,0 +1,122 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: UIForm +// 数据类: UIFormItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// UIForm 数据行 + /// + public class DRUIForm : DataRowBase + { + private UIFormItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// AssetName + /// + public string AssetName + { + get + { + return _configData?.AssetName ?? ""; + } + } + + /// + /// UIGroupName + /// + public string UIGroupName + { + get + { + return _configData?.UIGroupName ?? ""; + } + } + + /// + /// AllowMultiInstance + /// + public bool AllowMultiInstance + { + get + { + return _configData?.AllowMultiInstance ?? false; + } + } + + /// + /// PauseCoveredUIForm + /// + public bool PauseCoveredUIForm + { + get + { + return _configData?.PauseCoveredUIForm ?? false; + } + } + + /// + /// PopUpEffect + /// + public int PopUpEffect + { + get + { + return _configData?.PopUpEffect ?? 0; + } + } + + /// + /// AddBg + /// + public int AddBg + { + get + { + return _configData?.AddBg ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Uiforms != null) + { + config.Uiforms.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRUIForm.cs.meta b/Scripts/DR_Generated/DRUIForm.cs.meta new file mode 100644 index 0000000..5bc4a5d --- /dev/null +++ b/Scripts/DR_Generated/DRUIForm.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c5aada6f0c2fea74594dad04a6f659e2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRWashStartMerge.cs b/Scripts/DR_Generated/DRWashStartMerge.cs new file mode 100644 index 0000000..93f3f2b --- /dev/null +++ b/Scripts/DR_Generated/DRWashStartMerge.cs @@ -0,0 +1,111 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: WashStartMerge +// 数据类: WashStartMergeItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// WashStartMerge 数据行 + /// + public class DRWashStartMerge : DataRowBase + { + private WashStartMergeItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// MergeId + /// + public int MergeId + { + get + { + return _configData?.MergeId ?? 0; + } + } + + /// + /// Row + /// + public int Row + { + get + { + return _configData?.Row ?? 0; + } + } + + /// + /// Line + /// + public int Line + { + get + { + return _configData?.Line ?? 0; + } + } + + /// + /// Lock + /// + public int Lock + { + get + { + return _configData?.Lock ?? 0; + } + } + + /// + /// Remark + /// + public string Remark + { + get + { + return _configData?.Remark ?? ""; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Washstartmerges != null) + { + config.Washstartmerges.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRWashStartMerge.cs.meta b/Scripts/DR_Generated/DRWashStartMerge.cs.meta new file mode 100644 index 0000000..d94c5bc --- /dev/null +++ b/Scripts/DR_Generated/DRWashStartMerge.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 42170e280b5c2e141a57abd110fb561f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/DR_Generated/DRWeekTaskReward.cs b/Scripts/DR_Generated/DRWeekTaskReward.cs new file mode 100644 index 0000000..e30fb88 --- /dev/null +++ b/Scripts/DR_Generated/DRWeekTaskReward.cs @@ -0,0 +1,78 @@ +// 此文件由 ThriftIntegratedPipeline 自动生成,请勿手动修改 +// 配置类: WeekTaskReward +// 数据类: WeekTaskRewardItem + +using UnityEngine; +using Byway.Config; +using Byway.Thrift.Data; +using UnityGameFramework.Runtime; + +namespace CrazyMaple +{ + /// + /// WeekTaskReward 数据行 + /// + public class DRWeekTaskReward : DataRowBase + { + private WeekTaskRewardItem _configData; + + /// + /// 唯一标识 + /// + public override int Id + { + get + { + return _configData?.Id ?? 0; + } + } + + /// + /// ItemReward + /// + public string ItemReward + { + get + { + return _configData?.ItemReward ?? ""; + } + } + + /// + /// NeedActive + /// + public int NeedActive + { + get + { + return _configData?.NeedActive ?? 0; + } + } + + /// + /// 从配置加载数据 + /// + public void LoadFromConfig(int id) + { + var config = ConfigManager.Instance.GetConfig(); + if (config?.Weektaskrewards != null) + { + config.Weektaskrewards.TryGetValue(id, out _configData); + } + } + + /// + /// 解析数据行(兼容旧系统,实际使用 LoadFromConfig) + /// + public override bool ParseDataRow(string dataRowString, object userData) + { + int id = 0; + if (int.TryParse(dataRowString, out id)) + { + LoadFromConfig(id); + return _configData != null; + } + return false; + } + } +} diff --git a/Scripts/DR_Generated/DRWeekTaskReward.cs.meta b/Scripts/DR_Generated/DRWeekTaskReward.cs.meta new file mode 100644 index 0000000..069d807 --- /dev/null +++ b/Scripts/DR_Generated/DRWeekTaskReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dd458e3e425c4b841b0038123e99f01a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift.meta b/Scripts/thrift.meta new file mode 100644 index 0000000..8c0558a --- /dev/null +++ b/Scripts/thrift.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1f32c59680a7c1d41875df76c0f6b2a5 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd.meta b/Scripts/thrift/gen-netstd.meta new file mode 100644 index 0000000..5506802 --- /dev/null +++ b/Scripts/thrift/gen-netstd.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 4e4a1d622d33e3d47bb36e9a72cd6465 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway.meta b/Scripts/thrift/gen-netstd/Byway.meta new file mode 100644 index 0000000..278976c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 87e86ed84156045469a4206e096d068f +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift.meta b/Scripts/thrift/gen-netstd/Byway/Thrift.meta new file mode 100644 index 0000000..0928558 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: 1418a6bfcbd9e0545afe0d7828950378 +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data.meta new file mode 100644 index 0000000..0bd9edb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data.meta @@ -0,0 +1,8 @@ +fileFormatVersion: 2 +guid: f9489f2c6d13bb7499d18a7668f71aad +folderAsset: yes +DefaultImporter: + externalObjects: {} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftData.Extensions.cs new file mode 100644 index 0000000..9ddb839 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class AdGiftDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftData.Extensions.cs.meta new file mode 100644 index 0000000..c01ccc5 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 718a95fbd74338d4daa4e5e186182e16 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftData.cs new file mode 100644 index 0000000..07c036c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class AdGiftData : TBase + { + private Dictionary _adgiftdatas; + + [DataMember(Order = 0)] + public Dictionary Adgiftdatas + { + get + { + return _adgiftdatas; + } + set + { + __isset.@adgiftdatas = true; + this._adgiftdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @adgiftdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeAdgiftdatas() + { + return __isset.@adgiftdatas; + } + + #endregion XmlSerializer support + + public AdGiftData() + { + } + + public AdGiftData DeepCopy() + { + var tmp5 = new AdGiftData(); + if((Adgiftdatas != null) && __isset.@adgiftdatas) + { + tmp5.Adgiftdatas = this.Adgiftdatas.DeepCopy(); + } + tmp5.__isset.@adgiftdatas = this.__isset.@adgiftdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Adgiftdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.AdGiftDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.AdGiftDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Adgiftdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("AdGiftData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Adgiftdatas != null) && __isset.@adgiftdatas) + { + tmp11.Name = "adgiftdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Adgiftdatas.Count), cancellationToken); + foreach (int _iter12 in Adgiftdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Adgiftdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is AdGiftData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@adgiftdatas == other.__isset.@adgiftdatas) && ((!__isset.@adgiftdatas) || (TCollections.Equals(Adgiftdatas, other.Adgiftdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Adgiftdatas != null) && __isset.@adgiftdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Adgiftdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("AdGiftData("); + int tmp14 = 0; + if((Adgiftdatas != null) && __isset.@adgiftdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Adgiftdatas: "); + Adgiftdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftData.cs.meta new file mode 100644 index 0000000..e1feae5 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 02dcb446ef74728409ec31ac871f001b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftDataItem.cs new file mode 100644 index 0000000..04ec35e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftDataItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class AdGiftDataItem : TBase + { + private int _Id; + private int _SortId; + private int _NeedScore; + private string _ItemReward; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int SortId + { + get + { + return _SortId; + } + set + { + __isset.SortId = true; + this._SortId = value; + } + } + + [DataMember(Order = 0)] + public int NeedScore + { + get + { + return _NeedScore; + } + set + { + __isset.NeedScore = true; + this._NeedScore = value; + } + } + + [DataMember(Order = 0)] + public string ItemReward + { + get + { + return _ItemReward; + } + set + { + __isset.ItemReward = true; + this._ItemReward = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool SortId; + [DataMember] + public bool NeedScore; + [DataMember] + public bool ItemReward; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeSortId() + { + return __isset.SortId; + } + + public bool ShouldSerializeNeedScore() + { + return __isset.NeedScore; + } + + public bool ShouldSerializeItemReward() + { + return __isset.ItemReward; + } + + #endregion XmlSerializer support + + public AdGiftDataItem() + { + } + + public AdGiftDataItem DeepCopy() + { + var tmp0 = new AdGiftDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.SortId) + { + tmp0.SortId = this.SortId; + } + tmp0.__isset.SortId = this.__isset.SortId; + if(__isset.NeedScore) + { + tmp0.NeedScore = this.NeedScore; + } + tmp0.__isset.NeedScore = this.__isset.NeedScore; + if((ItemReward != null) && __isset.ItemReward) + { + tmp0.ItemReward = this.ItemReward; + } + tmp0.__isset.ItemReward = this.__isset.ItemReward; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + SortId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + NeedScore = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + ItemReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("AdGiftDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SortId) + { + tmp2.Name = "SortId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SortId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.NeedScore) + { + tmp2.Name = "NeedScore"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(NeedScore, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemReward != null) && __isset.ItemReward) + { + tmp2.Name = "ItemReward"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is AdGiftDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.SortId == other.__isset.SortId) && ((!__isset.SortId) || (global::System.Object.Equals(SortId, other.SortId)))) + && ((__isset.NeedScore == other.__isset.NeedScore) && ((!__isset.NeedScore) || (global::System.Object.Equals(NeedScore, other.NeedScore)))) + && ((__isset.ItemReward == other.__isset.ItemReward) && ((!__isset.ItemReward) || (global::System.Object.Equals(ItemReward, other.ItemReward)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.SortId) + { + hashcode = (hashcode * 397) + SortId.GetHashCode(); + } + if(__isset.NeedScore) + { + hashcode = (hashcode * 397) + NeedScore.GetHashCode(); + } + if((ItemReward != null) && __isset.ItemReward) + { + hashcode = (hashcode * 397) + ItemReward.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("AdGiftDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.SortId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SortId: "); + SortId.ToString(tmp3); + } + if(__isset.NeedScore) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NeedScore: "); + NeedScore.ToString(tmp3); + } + if((ItemReward != null) && __isset.ItemReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemReward: "); + ItemReward.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftDataItem.cs.meta new file mode 100644 index 0000000..f6913cb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AdGiftDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1640cd38a3459f940adc2cb13772d425 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AllConfigs.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AllConfigs.cs new file mode 100644 index 0000000..327fee1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AllConfigs.cs @@ -0,0 +1,5010 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class AllConfigs : TBase + { + private global::Byway.Thrift.Data.AdGiftData _AdGiftData; + private global::Byway.Thrift.Data.BagItemConfig _BagItemConfig; + private global::Byway.Thrift.Data.BonusValue _BonusValue; + private global::Byway.Thrift.Data.CardDetailCfg _CardDetailCfg; + private global::Byway.Thrift.Data.CardPackCfg _CardPackCfg; + private global::Byway.Thrift.Data.CardStickerExchangeCfg _CardStickerExchangeCfg; + private global::Byway.Thrift.Data.CatsGardenMultiplyData _CatsGardenMultiplyData; + private global::Byway.Thrift.Data.CatsGardenProgressData _CatsGardenProgressData; + private global::Byway.Thrift.Data.CatsGardenSlotData _CatsGardenSlotData; + private global::Byway.Thrift.Data.CatsGardenTempleteData _CatsGardenTempleteData; + private global::Byway.Thrift.Data.CatTrickData _CatTrickData; + private global::Byway.Thrift.Data.ChampshipCfg _ChampshipCfg; + private global::Byway.Thrift.Data.ChampshipRankReward _ChampshipRankReward; + private global::Byway.Thrift.Data.ChampshipScoreReward _ChampshipScoreReward; + private global::Byway.Thrift.Data.ChineseResMap _ChineseResMap; + private global::Byway.Thrift.Data.CollectionRoomReward _CollectionRoomReward; + private global::Byway.Thrift.Data.CollectionsRewardsData _CollectionsRewardsData; + private global::Byway.Thrift.Data.ComboGift _ComboGift; + private global::Byway.Thrift.Data.ComboGiftTwo _ComboGiftTwo; + private global::Byway.Thrift.Data.DailyTaskActiveCfg _DailyTaskActiveCfg; + private global::Byway.Thrift.Data.DailyTaskConfig _DailyTaskConfig; + private global::Byway.Thrift.Data.DailyTaskDetail _DailyTaskDetail; + private global::Byway.Thrift.Data.DailyTaskReward _DailyTaskReward; + private global::Byway.Thrift.Data.DecorateCost _DecorateCost; + private global::Byway.Thrift.Data.DialogData _DialogData; + private global::Byway.Thrift.Data.EmiterRetreatData _EmiterRetreatData; + private global::Byway.Thrift.Data.EmojiData _EmojiData; + private global::Byway.Thrift.Data.EndlessGift _EndlessGift; + private global::Byway.Thrift.Data.EnergyLimitGift _EnergyLimitGift; + private global::Byway.Thrift.Data.FrameData _FrameData; + private global::Byway.Thrift.Data.GrowthFund _GrowthFund; + private global::Byway.Thrift.Data.GuessReward _GuessReward; + private global::Byway.Thrift.Data.GuideData _GuideData; + private global::Byway.Thrift.Data.HandbookReward _HandbookReward; + private global::Byway.Thrift.Data.HeadData _HeadData; + private global::Byway.Thrift.Data.HowToPlay _HowToPlay; + private global::Byway.Thrift.Data.IndoorProgress _IndoorProgress; + private global::Byway.Thrift.Data.LanguageData _LanguageData; + private global::Byway.Thrift.Data.LevelData _LevelData; + private global::Byway.Thrift.Data.LuckyCatData _LuckyCatData; + private global::Byway.Thrift.Data.LuckyCatProbability _LuckyCatProbability; + private global::Byway.Thrift.Data.MainCardCollect _MainCardCollect; + private global::Byway.Thrift.Data.MergeData _MergeData; + private global::Byway.Thrift.Data.MileStoneDetail _MileStoneDetail; + private global::Byway.Thrift.Data.MileStoneReward _MileStoneReward; + private global::Byway.Thrift.Data.MiningReward _MiningReward; + private global::Byway.Thrift.Data.MultiLanguageResource _MultiLanguageResource; + private global::Byway.Thrift.Data.Music _Music; + private global::Byway.Thrift.Data.NetAssetData _NetAssetData; + private global::Byway.Thrift.Data.NetworkItemData _NetworkItemData; + private global::Byway.Thrift.Data.NewbieDailyTaskCfg _NewbieDailyTaskCfg; + private global::Byway.Thrift.Data.NewbieScoreCfg _NewbieScoreCfg; + private global::Byway.Thrift.Data.NPCFriendsData _NPCFriendsData; + private global::Byway.Thrift.Data.PassOne _PassOne; + private global::Byway.Thrift.Data.PetAdWorkGift _PetAdWorkGift; + private global::Byway.Thrift.Data.PetAirItem _PetAirItem; + private global::Byway.Thrift.Data.PetCareItem _PetCareItem; + private global::Byway.Thrift.Data.PetCoinGift _PetCoinGift; + private global::Byway.Thrift.Data.PetDailyTaskCfg _PetDailyTaskCfg; + private global::Byway.Thrift.Data.PetDressItem _PetDressItem; + private global::Byway.Thrift.Data.PetHomeDecorateList _PetHomeDecorateList; + private global::Byway.Thrift.Data.PetPlayJoyItem _PetPlayJoyItem; + private global::Byway.Thrift.Data.PetRoomUnlockCfg _PetRoomUnlockCfg; + private global::Byway.Thrift.Data.PetShopItem _PetShopItem; + private global::Byway.Thrift.Data.PlayHomeDecorateCfg _PlayHomeDecorateCfg; + private global::Byway.Thrift.Data.PromotionPack _PromotionPack; + private global::Byway.Thrift.Data.RaceReward _RaceReward; + private global::Byway.Thrift.Data.RankData _RankData; + private global::Byway.Thrift.Data.RegionData _RegionData; + private global::Byway.Thrift.Data.SceneData _SceneData; + private global::Byway.Thrift.Data.SevenLoginCfg _SevenLoginCfg; + private global::Byway.Thrift.Data.ShopItem _ShopItem; + private global::Byway.Thrift.Data.ShopPack _ShopPack; + private global::Byway.Thrift.Data.ShopSpecial _ShopSpecial; + private global::Byway.Thrift.Data.SignInData _SignInData; + private global::Byway.Thrift.Data.Sound _Sound; + private global::Byway.Thrift.Data.StartMerge _StartMerge; + private global::Byway.Thrift.Data.StartOrder _StartOrder; + private global::Byway.Thrift.Data.TurnTableCfg _TurnTableCfg; + private global::Byway.Thrift.Data.UIForm _UIForm; + private global::Byway.Thrift.Data.WashStartMerge _WashStartMerge; + private global::Byway.Thrift.Data.WeekTaskReward _WeekTaskReward; + private global::Byway.Thrift.Data.LevelLauncherData _LevelLauncherData; + private global::Byway.Thrift.Data.NickNameRandomData _NickNameRandomData; + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.AdGiftData AdGiftData + { + get + { + return _AdGiftData; + } + set + { + __isset.AdGiftData = true; + this._AdGiftData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.BagItemConfig BagItemConfig + { + get + { + return _BagItemConfig; + } + set + { + __isset.BagItemConfig = true; + this._BagItemConfig = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.BonusValue BonusValue + { + get + { + return _BonusValue; + } + set + { + __isset.BonusValue = true; + this._BonusValue = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.CardDetailCfg CardDetailCfg + { + get + { + return _CardDetailCfg; + } + set + { + __isset.CardDetailCfg = true; + this._CardDetailCfg = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.CardPackCfg CardPackCfg + { + get + { + return _CardPackCfg; + } + set + { + __isset.CardPackCfg = true; + this._CardPackCfg = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.CardStickerExchangeCfg CardStickerExchangeCfg + { + get + { + return _CardStickerExchangeCfg; + } + set + { + __isset.CardStickerExchangeCfg = true; + this._CardStickerExchangeCfg = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.CatsGardenMultiplyData CatsGardenMultiplyData + { + get + { + return _CatsGardenMultiplyData; + } + set + { + __isset.CatsGardenMultiplyData = true; + this._CatsGardenMultiplyData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.CatsGardenProgressData CatsGardenProgressData + { + get + { + return _CatsGardenProgressData; + } + set + { + __isset.CatsGardenProgressData = true; + this._CatsGardenProgressData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.CatsGardenSlotData CatsGardenSlotData + { + get + { + return _CatsGardenSlotData; + } + set + { + __isset.CatsGardenSlotData = true; + this._CatsGardenSlotData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.CatsGardenTempleteData CatsGardenTempleteData + { + get + { + return _CatsGardenTempleteData; + } + set + { + __isset.CatsGardenTempleteData = true; + this._CatsGardenTempleteData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.CatTrickData CatTrickData + { + get + { + return _CatTrickData; + } + set + { + __isset.CatTrickData = true; + this._CatTrickData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.ChampshipCfg ChampshipCfg + { + get + { + return _ChampshipCfg; + } + set + { + __isset.ChampshipCfg = true; + this._ChampshipCfg = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.ChampshipRankReward ChampshipRankReward + { + get + { + return _ChampshipRankReward; + } + set + { + __isset.ChampshipRankReward = true; + this._ChampshipRankReward = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.ChampshipScoreReward ChampshipScoreReward + { + get + { + return _ChampshipScoreReward; + } + set + { + __isset.ChampshipScoreReward = true; + this._ChampshipScoreReward = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.ChineseResMap ChineseResMap + { + get + { + return _ChineseResMap; + } + set + { + __isset.ChineseResMap = true; + this._ChineseResMap = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.CollectionRoomReward CollectionRoomReward + { + get + { + return _CollectionRoomReward; + } + set + { + __isset.CollectionRoomReward = true; + this._CollectionRoomReward = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.CollectionsRewardsData CollectionsRewardsData + { + get + { + return _CollectionsRewardsData; + } + set + { + __isset.CollectionsRewardsData = true; + this._CollectionsRewardsData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.ComboGift ComboGift + { + get + { + return _ComboGift; + } + set + { + __isset.ComboGift = true; + this._ComboGift = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.ComboGiftTwo ComboGiftTwo + { + get + { + return _ComboGiftTwo; + } + set + { + __isset.ComboGiftTwo = true; + this._ComboGiftTwo = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.DailyTaskActiveCfg DailyTaskActiveCfg + { + get + { + return _DailyTaskActiveCfg; + } + set + { + __isset.DailyTaskActiveCfg = true; + this._DailyTaskActiveCfg = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.DailyTaskConfig DailyTaskConfig + { + get + { + return _DailyTaskConfig; + } + set + { + __isset.DailyTaskConfig = true; + this._DailyTaskConfig = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.DailyTaskDetail DailyTaskDetail + { + get + { + return _DailyTaskDetail; + } + set + { + __isset.DailyTaskDetail = true; + this._DailyTaskDetail = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.DailyTaskReward DailyTaskReward + { + get + { + return _DailyTaskReward; + } + set + { + __isset.DailyTaskReward = true; + this._DailyTaskReward = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.DecorateCost DecorateCost + { + get + { + return _DecorateCost; + } + set + { + __isset.DecorateCost = true; + this._DecorateCost = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.DialogData DialogData + { + get + { + return _DialogData; + } + set + { + __isset.DialogData = true; + this._DialogData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.EmiterRetreatData EmiterRetreatData + { + get + { + return _EmiterRetreatData; + } + set + { + __isset.EmiterRetreatData = true; + this._EmiterRetreatData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.EmojiData EmojiData + { + get + { + return _EmojiData; + } + set + { + __isset.EmojiData = true; + this._EmojiData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.EndlessGift EndlessGift + { + get + { + return _EndlessGift; + } + set + { + __isset.EndlessGift = true; + this._EndlessGift = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.EnergyLimitGift EnergyLimitGift + { + get + { + return _EnergyLimitGift; + } + set + { + __isset.EnergyLimitGift = true; + this._EnergyLimitGift = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.FrameData FrameData + { + get + { + return _FrameData; + } + set + { + __isset.FrameData = true; + this._FrameData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.GrowthFund GrowthFund + { + get + { + return _GrowthFund; + } + set + { + __isset.GrowthFund = true; + this._GrowthFund = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.GuessReward GuessReward + { + get + { + return _GuessReward; + } + set + { + __isset.GuessReward = true; + this._GuessReward = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.GuideData GuideData + { + get + { + return _GuideData; + } + set + { + __isset.GuideData = true; + this._GuideData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.HandbookReward HandbookReward + { + get + { + return _HandbookReward; + } + set + { + __isset.HandbookReward = true; + this._HandbookReward = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.HeadData HeadData + { + get + { + return _HeadData; + } + set + { + __isset.HeadData = true; + this._HeadData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.HowToPlay HowToPlay + { + get + { + return _HowToPlay; + } + set + { + __isset.HowToPlay = true; + this._HowToPlay = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.IndoorProgress IndoorProgress + { + get + { + return _IndoorProgress; + } + set + { + __isset.IndoorProgress = true; + this._IndoorProgress = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.LanguageData LanguageData + { + get + { + return _LanguageData; + } + set + { + __isset.LanguageData = true; + this._LanguageData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.LevelData LevelData + { + get + { + return _LevelData; + } + set + { + __isset.LevelData = true; + this._LevelData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.LuckyCatData LuckyCatData + { + get + { + return _LuckyCatData; + } + set + { + __isset.LuckyCatData = true; + this._LuckyCatData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.LuckyCatProbability LuckyCatProbability + { + get + { + return _LuckyCatProbability; + } + set + { + __isset.LuckyCatProbability = true; + this._LuckyCatProbability = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.MainCardCollect MainCardCollect + { + get + { + return _MainCardCollect; + } + set + { + __isset.MainCardCollect = true; + this._MainCardCollect = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.MergeData MergeData + { + get + { + return _MergeData; + } + set + { + __isset.MergeData = true; + this._MergeData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.MileStoneDetail MileStoneDetail + { + get + { + return _MileStoneDetail; + } + set + { + __isset.MileStoneDetail = true; + this._MileStoneDetail = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.MileStoneReward MileStoneReward + { + get + { + return _MileStoneReward; + } + set + { + __isset.MileStoneReward = true; + this._MileStoneReward = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.MiningReward MiningReward + { + get + { + return _MiningReward; + } + set + { + __isset.MiningReward = true; + this._MiningReward = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.MultiLanguageResource MultiLanguageResource + { + get + { + return _MultiLanguageResource; + } + set + { + __isset.MultiLanguageResource = true; + this._MultiLanguageResource = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.Music Music + { + get + { + return _Music; + } + set + { + __isset.Music = true; + this._Music = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.NetAssetData NetAssetData + { + get + { + return _NetAssetData; + } + set + { + __isset.NetAssetData = true; + this._NetAssetData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.NetworkItemData NetworkItemData + { + get + { + return _NetworkItemData; + } + set + { + __isset.NetworkItemData = true; + this._NetworkItemData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.NewbieDailyTaskCfg NewbieDailyTaskCfg + { + get + { + return _NewbieDailyTaskCfg; + } + set + { + __isset.NewbieDailyTaskCfg = true; + this._NewbieDailyTaskCfg = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.NewbieScoreCfg NewbieScoreCfg + { + get + { + return _NewbieScoreCfg; + } + set + { + __isset.NewbieScoreCfg = true; + this._NewbieScoreCfg = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.NPCFriendsData NPCFriendsData + { + get + { + return _NPCFriendsData; + } + set + { + __isset.NPCFriendsData = true; + this._NPCFriendsData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PassOne PassOne + { + get + { + return _PassOne; + } + set + { + __isset.PassOne = true; + this._PassOne = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PetAdWorkGift PetAdWorkGift + { + get + { + return _PetAdWorkGift; + } + set + { + __isset.PetAdWorkGift = true; + this._PetAdWorkGift = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PetAirItem PetAirItem + { + get + { + return _PetAirItem; + } + set + { + __isset.PetAirItem = true; + this._PetAirItem = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PetCareItem PetCareItem + { + get + { + return _PetCareItem; + } + set + { + __isset.PetCareItem = true; + this._PetCareItem = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PetCoinGift PetCoinGift + { + get + { + return _PetCoinGift; + } + set + { + __isset.PetCoinGift = true; + this._PetCoinGift = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PetDailyTaskCfg PetDailyTaskCfg + { + get + { + return _PetDailyTaskCfg; + } + set + { + __isset.PetDailyTaskCfg = true; + this._PetDailyTaskCfg = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PetDressItem PetDressItem + { + get + { + return _PetDressItem; + } + set + { + __isset.PetDressItem = true; + this._PetDressItem = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PetHomeDecorateList PetHomeDecorateList + { + get + { + return _PetHomeDecorateList; + } + set + { + __isset.PetHomeDecorateList = true; + this._PetHomeDecorateList = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PetPlayJoyItem PetPlayJoyItem + { + get + { + return _PetPlayJoyItem; + } + set + { + __isset.PetPlayJoyItem = true; + this._PetPlayJoyItem = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PetRoomUnlockCfg PetRoomUnlockCfg + { + get + { + return _PetRoomUnlockCfg; + } + set + { + __isset.PetRoomUnlockCfg = true; + this._PetRoomUnlockCfg = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PetShopItem PetShopItem + { + get + { + return _PetShopItem; + } + set + { + __isset.PetShopItem = true; + this._PetShopItem = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PlayHomeDecorateCfg PlayHomeDecorateCfg + { + get + { + return _PlayHomeDecorateCfg; + } + set + { + __isset.PlayHomeDecorateCfg = true; + this._PlayHomeDecorateCfg = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.PromotionPack PromotionPack + { + get + { + return _PromotionPack; + } + set + { + __isset.PromotionPack = true; + this._PromotionPack = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.RaceReward RaceReward + { + get + { + return _RaceReward; + } + set + { + __isset.RaceReward = true; + this._RaceReward = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.RankData RankData + { + get + { + return _RankData; + } + set + { + __isset.RankData = true; + this._RankData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.RegionData RegionData + { + get + { + return _RegionData; + } + set + { + __isset.RegionData = true; + this._RegionData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.SceneData SceneData + { + get + { + return _SceneData; + } + set + { + __isset.SceneData = true; + this._SceneData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.SevenLoginCfg SevenLoginCfg + { + get + { + return _SevenLoginCfg; + } + set + { + __isset.SevenLoginCfg = true; + this._SevenLoginCfg = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.ShopItem ShopItem + { + get + { + return _ShopItem; + } + set + { + __isset.ShopItem = true; + this._ShopItem = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.ShopPack ShopPack + { + get + { + return _ShopPack; + } + set + { + __isset.ShopPack = true; + this._ShopPack = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.ShopSpecial ShopSpecial + { + get + { + return _ShopSpecial; + } + set + { + __isset.ShopSpecial = true; + this._ShopSpecial = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.SignInData SignInData + { + get + { + return _SignInData; + } + set + { + __isset.SignInData = true; + this._SignInData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.Sound Sound + { + get + { + return _Sound; + } + set + { + __isset.Sound = true; + this._Sound = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.StartMerge StartMerge + { + get + { + return _StartMerge; + } + set + { + __isset.StartMerge = true; + this._StartMerge = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.StartOrder StartOrder + { + get + { + return _StartOrder; + } + set + { + __isset.StartOrder = true; + this._StartOrder = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.TurnTableCfg TurnTableCfg + { + get + { + return _TurnTableCfg; + } + set + { + __isset.TurnTableCfg = true; + this._TurnTableCfg = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.UIForm UIForm + { + get + { + return _UIForm; + } + set + { + __isset.UIForm = true; + this._UIForm = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.WashStartMerge WashStartMerge + { + get + { + return _WashStartMerge; + } + set + { + __isset.WashStartMerge = true; + this._WashStartMerge = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.WeekTaskReward WeekTaskReward + { + get + { + return _WeekTaskReward; + } + set + { + __isset.WeekTaskReward = true; + this._WeekTaskReward = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.LevelLauncherData LevelLauncherData + { + get + { + return _LevelLauncherData; + } + set + { + __isset.LevelLauncherData = true; + this._LevelLauncherData = value; + } + } + + [DataMember(Order = 0)] + public global::Byway.Thrift.Data.NickNameRandomData NickNameRandomData + { + get + { + return _NickNameRandomData; + } + set + { + __isset.NickNameRandomData = true; + this._NickNameRandomData = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool AdGiftData; + [DataMember] + public bool BagItemConfig; + [DataMember] + public bool BonusValue; + [DataMember] + public bool CardDetailCfg; + [DataMember] + public bool CardPackCfg; + [DataMember] + public bool CardStickerExchangeCfg; + [DataMember] + public bool CatsGardenMultiplyData; + [DataMember] + public bool CatsGardenProgressData; + [DataMember] + public bool CatsGardenSlotData; + [DataMember] + public bool CatsGardenTempleteData; + [DataMember] + public bool CatTrickData; + [DataMember] + public bool ChampshipCfg; + [DataMember] + public bool ChampshipRankReward; + [DataMember] + public bool ChampshipScoreReward; + [DataMember] + public bool ChineseResMap; + [DataMember] + public bool CollectionRoomReward; + [DataMember] + public bool CollectionsRewardsData; + [DataMember] + public bool ComboGift; + [DataMember] + public bool ComboGiftTwo; + [DataMember] + public bool DailyTaskActiveCfg; + [DataMember] + public bool DailyTaskConfig; + [DataMember] + public bool DailyTaskDetail; + [DataMember] + public bool DailyTaskReward; + [DataMember] + public bool DecorateCost; + [DataMember] + public bool DialogData; + [DataMember] + public bool EmiterRetreatData; + [DataMember] + public bool EmojiData; + [DataMember] + public bool EndlessGift; + [DataMember] + public bool EnergyLimitGift; + [DataMember] + public bool FrameData; + [DataMember] + public bool GrowthFund; + [DataMember] + public bool GuessReward; + [DataMember] + public bool GuideData; + [DataMember] + public bool HandbookReward; + [DataMember] + public bool HeadData; + [DataMember] + public bool HowToPlay; + [DataMember] + public bool IndoorProgress; + [DataMember] + public bool LanguageData; + [DataMember] + public bool LevelData; + [DataMember] + public bool LuckyCatData; + [DataMember] + public bool LuckyCatProbability; + [DataMember] + public bool MainCardCollect; + [DataMember] + public bool MergeData; + [DataMember] + public bool MileStoneDetail; + [DataMember] + public bool MileStoneReward; + [DataMember] + public bool MiningReward; + [DataMember] + public bool MultiLanguageResource; + [DataMember] + public bool Music; + [DataMember] + public bool NetAssetData; + [DataMember] + public bool NetworkItemData; + [DataMember] + public bool NewbieDailyTaskCfg; + [DataMember] + public bool NewbieScoreCfg; + [DataMember] + public bool NPCFriendsData; + [DataMember] + public bool PassOne; + [DataMember] + public bool PetAdWorkGift; + [DataMember] + public bool PetAirItem; + [DataMember] + public bool PetCareItem; + [DataMember] + public bool PetCoinGift; + [DataMember] + public bool PetDailyTaskCfg; + [DataMember] + public bool PetDressItem; + [DataMember] + public bool PetHomeDecorateList; + [DataMember] + public bool PetPlayJoyItem; + [DataMember] + public bool PetRoomUnlockCfg; + [DataMember] + public bool PetShopItem; + [DataMember] + public bool PlayHomeDecorateCfg; + [DataMember] + public bool PromotionPack; + [DataMember] + public bool RaceReward; + [DataMember] + public bool RankData; + [DataMember] + public bool RegionData; + [DataMember] + public bool SceneData; + [DataMember] + public bool SevenLoginCfg; + [DataMember] + public bool ShopItem; + [DataMember] + public bool ShopPack; + [DataMember] + public bool ShopSpecial; + [DataMember] + public bool SignInData; + [DataMember] + public bool Sound; + [DataMember] + public bool StartMerge; + [DataMember] + public bool StartOrder; + [DataMember] + public bool TurnTableCfg; + [DataMember] + public bool UIForm; + [DataMember] + public bool WashStartMerge; + [DataMember] + public bool WeekTaskReward; + [DataMember] + public bool LevelLauncherData; + [DataMember] + public bool NickNameRandomData; + } + + #region XmlSerializer support + + public bool ShouldSerializeAdGiftData() + { + return __isset.AdGiftData; + } + + public bool ShouldSerializeBagItemConfig() + { + return __isset.BagItemConfig; + } + + public bool ShouldSerializeBonusValue() + { + return __isset.BonusValue; + } + + public bool ShouldSerializeCardDetailCfg() + { + return __isset.CardDetailCfg; + } + + public bool ShouldSerializeCardPackCfg() + { + return __isset.CardPackCfg; + } + + public bool ShouldSerializeCardStickerExchangeCfg() + { + return __isset.CardStickerExchangeCfg; + } + + public bool ShouldSerializeCatsGardenMultiplyData() + { + return __isset.CatsGardenMultiplyData; + } + + public bool ShouldSerializeCatsGardenProgressData() + { + return __isset.CatsGardenProgressData; + } + + public bool ShouldSerializeCatsGardenSlotData() + { + return __isset.CatsGardenSlotData; + } + + public bool ShouldSerializeCatsGardenTempleteData() + { + return __isset.CatsGardenTempleteData; + } + + public bool ShouldSerializeCatTrickData() + { + return __isset.CatTrickData; + } + + public bool ShouldSerializeChampshipCfg() + { + return __isset.ChampshipCfg; + } + + public bool ShouldSerializeChampshipRankReward() + { + return __isset.ChampshipRankReward; + } + + public bool ShouldSerializeChampshipScoreReward() + { + return __isset.ChampshipScoreReward; + } + + public bool ShouldSerializeChineseResMap() + { + return __isset.ChineseResMap; + } + + public bool ShouldSerializeCollectionRoomReward() + { + return __isset.CollectionRoomReward; + } + + public bool ShouldSerializeCollectionsRewardsData() + { + return __isset.CollectionsRewardsData; + } + + public bool ShouldSerializeComboGift() + { + return __isset.ComboGift; + } + + public bool ShouldSerializeComboGiftTwo() + { + return __isset.ComboGiftTwo; + } + + public bool ShouldSerializeDailyTaskActiveCfg() + { + return __isset.DailyTaskActiveCfg; + } + + public bool ShouldSerializeDailyTaskConfig() + { + return __isset.DailyTaskConfig; + } + + public bool ShouldSerializeDailyTaskDetail() + { + return __isset.DailyTaskDetail; + } + + public bool ShouldSerializeDailyTaskReward() + { + return __isset.DailyTaskReward; + } + + public bool ShouldSerializeDecorateCost() + { + return __isset.DecorateCost; + } + + public bool ShouldSerializeDialogData() + { + return __isset.DialogData; + } + + public bool ShouldSerializeEmiterRetreatData() + { + return __isset.EmiterRetreatData; + } + + public bool ShouldSerializeEmojiData() + { + return __isset.EmojiData; + } + + public bool ShouldSerializeEndlessGift() + { + return __isset.EndlessGift; + } + + public bool ShouldSerializeEnergyLimitGift() + { + return __isset.EnergyLimitGift; + } + + public bool ShouldSerializeFrameData() + { + return __isset.FrameData; + } + + public bool ShouldSerializeGrowthFund() + { + return __isset.GrowthFund; + } + + public bool ShouldSerializeGuessReward() + { + return __isset.GuessReward; + } + + public bool ShouldSerializeGuideData() + { + return __isset.GuideData; + } + + public bool ShouldSerializeHandbookReward() + { + return __isset.HandbookReward; + } + + public bool ShouldSerializeHeadData() + { + return __isset.HeadData; + } + + public bool ShouldSerializeHowToPlay() + { + return __isset.HowToPlay; + } + + public bool ShouldSerializeIndoorProgress() + { + return __isset.IndoorProgress; + } + + public bool ShouldSerializeLanguageData() + { + return __isset.LanguageData; + } + + public bool ShouldSerializeLevelData() + { + return __isset.LevelData; + } + + public bool ShouldSerializeLuckyCatData() + { + return __isset.LuckyCatData; + } + + public bool ShouldSerializeLuckyCatProbability() + { + return __isset.LuckyCatProbability; + } + + public bool ShouldSerializeMainCardCollect() + { + return __isset.MainCardCollect; + } + + public bool ShouldSerializeMergeData() + { + return __isset.MergeData; + } + + public bool ShouldSerializeMileStoneDetail() + { + return __isset.MileStoneDetail; + } + + public bool ShouldSerializeMileStoneReward() + { + return __isset.MileStoneReward; + } + + public bool ShouldSerializeMiningReward() + { + return __isset.MiningReward; + } + + public bool ShouldSerializeMultiLanguageResource() + { + return __isset.MultiLanguageResource; + } + + public bool ShouldSerializeMusic() + { + return __isset.Music; + } + + public bool ShouldSerializeNetAssetData() + { + return __isset.NetAssetData; + } + + public bool ShouldSerializeNetworkItemData() + { + return __isset.NetworkItemData; + } + + public bool ShouldSerializeNewbieDailyTaskCfg() + { + return __isset.NewbieDailyTaskCfg; + } + + public bool ShouldSerializeNewbieScoreCfg() + { + return __isset.NewbieScoreCfg; + } + + public bool ShouldSerializeNPCFriendsData() + { + return __isset.NPCFriendsData; + } + + public bool ShouldSerializePassOne() + { + return __isset.PassOne; + } + + public bool ShouldSerializePetAdWorkGift() + { + return __isset.PetAdWorkGift; + } + + public bool ShouldSerializePetAirItem() + { + return __isset.PetAirItem; + } + + public bool ShouldSerializePetCareItem() + { + return __isset.PetCareItem; + } + + public bool ShouldSerializePetCoinGift() + { + return __isset.PetCoinGift; + } + + public bool ShouldSerializePetDailyTaskCfg() + { + return __isset.PetDailyTaskCfg; + } + + public bool ShouldSerializePetDressItem() + { + return __isset.PetDressItem; + } + + public bool ShouldSerializePetHomeDecorateList() + { + return __isset.PetHomeDecorateList; + } + + public bool ShouldSerializePetPlayJoyItem() + { + return __isset.PetPlayJoyItem; + } + + public bool ShouldSerializePetRoomUnlockCfg() + { + return __isset.PetRoomUnlockCfg; + } + + public bool ShouldSerializePetShopItem() + { + return __isset.PetShopItem; + } + + public bool ShouldSerializePlayHomeDecorateCfg() + { + return __isset.PlayHomeDecorateCfg; + } + + public bool ShouldSerializePromotionPack() + { + return __isset.PromotionPack; + } + + public bool ShouldSerializeRaceReward() + { + return __isset.RaceReward; + } + + public bool ShouldSerializeRankData() + { + return __isset.RankData; + } + + public bool ShouldSerializeRegionData() + { + return __isset.RegionData; + } + + public bool ShouldSerializeSceneData() + { + return __isset.SceneData; + } + + public bool ShouldSerializeSevenLoginCfg() + { + return __isset.SevenLoginCfg; + } + + public bool ShouldSerializeShopItem() + { + return __isset.ShopItem; + } + + public bool ShouldSerializeShopPack() + { + return __isset.ShopPack; + } + + public bool ShouldSerializeShopSpecial() + { + return __isset.ShopSpecial; + } + + public bool ShouldSerializeSignInData() + { + return __isset.SignInData; + } + + public bool ShouldSerializeSound() + { + return __isset.Sound; + } + + public bool ShouldSerializeStartMerge() + { + return __isset.StartMerge; + } + + public bool ShouldSerializeStartOrder() + { + return __isset.StartOrder; + } + + public bool ShouldSerializeTurnTableCfg() + { + return __isset.TurnTableCfg; + } + + public bool ShouldSerializeUIForm() + { + return __isset.UIForm; + } + + public bool ShouldSerializeWashStartMerge() + { + return __isset.WashStartMerge; + } + + public bool ShouldSerializeWeekTaskReward() + { + return __isset.WeekTaskReward; + } + + public bool ShouldSerializeLevelLauncherData() + { + return __isset.LevelLauncherData; + } + + public bool ShouldSerializeNickNameRandomData() + { + return __isset.NickNameRandomData; + } + + #endregion XmlSerializer support + + public AllConfigs() + { + } + + public AllConfigs DeepCopy() + { + var tmp0 = new AllConfigs(); + if((AdGiftData != null) && __isset.AdGiftData) + { + tmp0.AdGiftData = (global::Byway.Thrift.Data.AdGiftData)this.AdGiftData.DeepCopy(); + } + tmp0.__isset.AdGiftData = this.__isset.AdGiftData; + if((BagItemConfig != null) && __isset.BagItemConfig) + { + tmp0.BagItemConfig = (global::Byway.Thrift.Data.BagItemConfig)this.BagItemConfig.DeepCopy(); + } + tmp0.__isset.BagItemConfig = this.__isset.BagItemConfig; + if((BonusValue != null) && __isset.BonusValue) + { + tmp0.BonusValue = (global::Byway.Thrift.Data.BonusValue)this.BonusValue.DeepCopy(); + } + tmp0.__isset.BonusValue = this.__isset.BonusValue; + if((CardDetailCfg != null) && __isset.CardDetailCfg) + { + tmp0.CardDetailCfg = (global::Byway.Thrift.Data.CardDetailCfg)this.CardDetailCfg.DeepCopy(); + } + tmp0.__isset.CardDetailCfg = this.__isset.CardDetailCfg; + if((CardPackCfg != null) && __isset.CardPackCfg) + { + tmp0.CardPackCfg = (global::Byway.Thrift.Data.CardPackCfg)this.CardPackCfg.DeepCopy(); + } + tmp0.__isset.CardPackCfg = this.__isset.CardPackCfg; + if((CardStickerExchangeCfg != null) && __isset.CardStickerExchangeCfg) + { + tmp0.CardStickerExchangeCfg = (global::Byway.Thrift.Data.CardStickerExchangeCfg)this.CardStickerExchangeCfg.DeepCopy(); + } + tmp0.__isset.CardStickerExchangeCfg = this.__isset.CardStickerExchangeCfg; + if((CatsGardenMultiplyData != null) && __isset.CatsGardenMultiplyData) + { + tmp0.CatsGardenMultiplyData = (global::Byway.Thrift.Data.CatsGardenMultiplyData)this.CatsGardenMultiplyData.DeepCopy(); + } + tmp0.__isset.CatsGardenMultiplyData = this.__isset.CatsGardenMultiplyData; + if((CatsGardenProgressData != null) && __isset.CatsGardenProgressData) + { + tmp0.CatsGardenProgressData = (global::Byway.Thrift.Data.CatsGardenProgressData)this.CatsGardenProgressData.DeepCopy(); + } + tmp0.__isset.CatsGardenProgressData = this.__isset.CatsGardenProgressData; + if((CatsGardenSlotData != null) && __isset.CatsGardenSlotData) + { + tmp0.CatsGardenSlotData = (global::Byway.Thrift.Data.CatsGardenSlotData)this.CatsGardenSlotData.DeepCopy(); + } + tmp0.__isset.CatsGardenSlotData = this.__isset.CatsGardenSlotData; + if((CatsGardenTempleteData != null) && __isset.CatsGardenTempleteData) + { + tmp0.CatsGardenTempleteData = (global::Byway.Thrift.Data.CatsGardenTempleteData)this.CatsGardenTempleteData.DeepCopy(); + } + tmp0.__isset.CatsGardenTempleteData = this.__isset.CatsGardenTempleteData; + if((CatTrickData != null) && __isset.CatTrickData) + { + tmp0.CatTrickData = (global::Byway.Thrift.Data.CatTrickData)this.CatTrickData.DeepCopy(); + } + tmp0.__isset.CatTrickData = this.__isset.CatTrickData; + if((ChampshipCfg != null) && __isset.ChampshipCfg) + { + tmp0.ChampshipCfg = (global::Byway.Thrift.Data.ChampshipCfg)this.ChampshipCfg.DeepCopy(); + } + tmp0.__isset.ChampshipCfg = this.__isset.ChampshipCfg; + if((ChampshipRankReward != null) && __isset.ChampshipRankReward) + { + tmp0.ChampshipRankReward = (global::Byway.Thrift.Data.ChampshipRankReward)this.ChampshipRankReward.DeepCopy(); + } + tmp0.__isset.ChampshipRankReward = this.__isset.ChampshipRankReward; + if((ChampshipScoreReward != null) && __isset.ChampshipScoreReward) + { + tmp0.ChampshipScoreReward = (global::Byway.Thrift.Data.ChampshipScoreReward)this.ChampshipScoreReward.DeepCopy(); + } + tmp0.__isset.ChampshipScoreReward = this.__isset.ChampshipScoreReward; + if((ChineseResMap != null) && __isset.ChineseResMap) + { + tmp0.ChineseResMap = (global::Byway.Thrift.Data.ChineseResMap)this.ChineseResMap.DeepCopy(); + } + tmp0.__isset.ChineseResMap = this.__isset.ChineseResMap; + if((CollectionRoomReward != null) && __isset.CollectionRoomReward) + { + tmp0.CollectionRoomReward = (global::Byway.Thrift.Data.CollectionRoomReward)this.CollectionRoomReward.DeepCopy(); + } + tmp0.__isset.CollectionRoomReward = this.__isset.CollectionRoomReward; + if((CollectionsRewardsData != null) && __isset.CollectionsRewardsData) + { + tmp0.CollectionsRewardsData = (global::Byway.Thrift.Data.CollectionsRewardsData)this.CollectionsRewardsData.DeepCopy(); + } + tmp0.__isset.CollectionsRewardsData = this.__isset.CollectionsRewardsData; + if((ComboGift != null) && __isset.ComboGift) + { + tmp0.ComboGift = (global::Byway.Thrift.Data.ComboGift)this.ComboGift.DeepCopy(); + } + tmp0.__isset.ComboGift = this.__isset.ComboGift; + if((ComboGiftTwo != null) && __isset.ComboGiftTwo) + { + tmp0.ComboGiftTwo = (global::Byway.Thrift.Data.ComboGiftTwo)this.ComboGiftTwo.DeepCopy(); + } + tmp0.__isset.ComboGiftTwo = this.__isset.ComboGiftTwo; + if((DailyTaskActiveCfg != null) && __isset.DailyTaskActiveCfg) + { + tmp0.DailyTaskActiveCfg = (global::Byway.Thrift.Data.DailyTaskActiveCfg)this.DailyTaskActiveCfg.DeepCopy(); + } + tmp0.__isset.DailyTaskActiveCfg = this.__isset.DailyTaskActiveCfg; + if((DailyTaskConfig != null) && __isset.DailyTaskConfig) + { + tmp0.DailyTaskConfig = (global::Byway.Thrift.Data.DailyTaskConfig)this.DailyTaskConfig.DeepCopy(); + } + tmp0.__isset.DailyTaskConfig = this.__isset.DailyTaskConfig; + if((DailyTaskDetail != null) && __isset.DailyTaskDetail) + { + tmp0.DailyTaskDetail = (global::Byway.Thrift.Data.DailyTaskDetail)this.DailyTaskDetail.DeepCopy(); + } + tmp0.__isset.DailyTaskDetail = this.__isset.DailyTaskDetail; + if((DailyTaskReward != null) && __isset.DailyTaskReward) + { + tmp0.DailyTaskReward = (global::Byway.Thrift.Data.DailyTaskReward)this.DailyTaskReward.DeepCopy(); + } + tmp0.__isset.DailyTaskReward = this.__isset.DailyTaskReward; + if((DecorateCost != null) && __isset.DecorateCost) + { + tmp0.DecorateCost = (global::Byway.Thrift.Data.DecorateCost)this.DecorateCost.DeepCopy(); + } + tmp0.__isset.DecorateCost = this.__isset.DecorateCost; + if((DialogData != null) && __isset.DialogData) + { + tmp0.DialogData = (global::Byway.Thrift.Data.DialogData)this.DialogData.DeepCopy(); + } + tmp0.__isset.DialogData = this.__isset.DialogData; + if((EmiterRetreatData != null) && __isset.EmiterRetreatData) + { + tmp0.EmiterRetreatData = (global::Byway.Thrift.Data.EmiterRetreatData)this.EmiterRetreatData.DeepCopy(); + } + tmp0.__isset.EmiterRetreatData = this.__isset.EmiterRetreatData; + if((EmojiData != null) && __isset.EmojiData) + { + tmp0.EmojiData = (global::Byway.Thrift.Data.EmojiData)this.EmojiData.DeepCopy(); + } + tmp0.__isset.EmojiData = this.__isset.EmojiData; + if((EndlessGift != null) && __isset.EndlessGift) + { + tmp0.EndlessGift = (global::Byway.Thrift.Data.EndlessGift)this.EndlessGift.DeepCopy(); + } + tmp0.__isset.EndlessGift = this.__isset.EndlessGift; + if((EnergyLimitGift != null) && __isset.EnergyLimitGift) + { + tmp0.EnergyLimitGift = (global::Byway.Thrift.Data.EnergyLimitGift)this.EnergyLimitGift.DeepCopy(); + } + tmp0.__isset.EnergyLimitGift = this.__isset.EnergyLimitGift; + if((FrameData != null) && __isset.FrameData) + { + tmp0.FrameData = (global::Byway.Thrift.Data.FrameData)this.FrameData.DeepCopy(); + } + tmp0.__isset.FrameData = this.__isset.FrameData; + if((GrowthFund != null) && __isset.GrowthFund) + { + tmp0.GrowthFund = (global::Byway.Thrift.Data.GrowthFund)this.GrowthFund.DeepCopy(); + } + tmp0.__isset.GrowthFund = this.__isset.GrowthFund; + if((GuessReward != null) && __isset.GuessReward) + { + tmp0.GuessReward = (global::Byway.Thrift.Data.GuessReward)this.GuessReward.DeepCopy(); + } + tmp0.__isset.GuessReward = this.__isset.GuessReward; + if((GuideData != null) && __isset.GuideData) + { + tmp0.GuideData = (global::Byway.Thrift.Data.GuideData)this.GuideData.DeepCopy(); + } + tmp0.__isset.GuideData = this.__isset.GuideData; + if((HandbookReward != null) && __isset.HandbookReward) + { + tmp0.HandbookReward = (global::Byway.Thrift.Data.HandbookReward)this.HandbookReward.DeepCopy(); + } + tmp0.__isset.HandbookReward = this.__isset.HandbookReward; + if((HeadData != null) && __isset.HeadData) + { + tmp0.HeadData = (global::Byway.Thrift.Data.HeadData)this.HeadData.DeepCopy(); + } + tmp0.__isset.HeadData = this.__isset.HeadData; + if((HowToPlay != null) && __isset.HowToPlay) + { + tmp0.HowToPlay = (global::Byway.Thrift.Data.HowToPlay)this.HowToPlay.DeepCopy(); + } + tmp0.__isset.HowToPlay = this.__isset.HowToPlay; + if((IndoorProgress != null) && __isset.IndoorProgress) + { + tmp0.IndoorProgress = (global::Byway.Thrift.Data.IndoorProgress)this.IndoorProgress.DeepCopy(); + } + tmp0.__isset.IndoorProgress = this.__isset.IndoorProgress; + if((LanguageData != null) && __isset.LanguageData) + { + tmp0.LanguageData = (global::Byway.Thrift.Data.LanguageData)this.LanguageData.DeepCopy(); + } + tmp0.__isset.LanguageData = this.__isset.LanguageData; + if((LevelData != null) && __isset.LevelData) + { + tmp0.LevelData = (global::Byway.Thrift.Data.LevelData)this.LevelData.DeepCopy(); + } + tmp0.__isset.LevelData = this.__isset.LevelData; + if((LuckyCatData != null) && __isset.LuckyCatData) + { + tmp0.LuckyCatData = (global::Byway.Thrift.Data.LuckyCatData)this.LuckyCatData.DeepCopy(); + } + tmp0.__isset.LuckyCatData = this.__isset.LuckyCatData; + if((LuckyCatProbability != null) && __isset.LuckyCatProbability) + { + tmp0.LuckyCatProbability = (global::Byway.Thrift.Data.LuckyCatProbability)this.LuckyCatProbability.DeepCopy(); + } + tmp0.__isset.LuckyCatProbability = this.__isset.LuckyCatProbability; + if((MainCardCollect != null) && __isset.MainCardCollect) + { + tmp0.MainCardCollect = (global::Byway.Thrift.Data.MainCardCollect)this.MainCardCollect.DeepCopy(); + } + tmp0.__isset.MainCardCollect = this.__isset.MainCardCollect; + if((MergeData != null) && __isset.MergeData) + { + tmp0.MergeData = (global::Byway.Thrift.Data.MergeData)this.MergeData.DeepCopy(); + } + tmp0.__isset.MergeData = this.__isset.MergeData; + if((MileStoneDetail != null) && __isset.MileStoneDetail) + { + tmp0.MileStoneDetail = (global::Byway.Thrift.Data.MileStoneDetail)this.MileStoneDetail.DeepCopy(); + } + tmp0.__isset.MileStoneDetail = this.__isset.MileStoneDetail; + if((MileStoneReward != null) && __isset.MileStoneReward) + { + tmp0.MileStoneReward = (global::Byway.Thrift.Data.MileStoneReward)this.MileStoneReward.DeepCopy(); + } + tmp0.__isset.MileStoneReward = this.__isset.MileStoneReward; + if((MiningReward != null) && __isset.MiningReward) + { + tmp0.MiningReward = (global::Byway.Thrift.Data.MiningReward)this.MiningReward.DeepCopy(); + } + tmp0.__isset.MiningReward = this.__isset.MiningReward; + if((MultiLanguageResource != null) && __isset.MultiLanguageResource) + { + tmp0.MultiLanguageResource = (global::Byway.Thrift.Data.MultiLanguageResource)this.MultiLanguageResource.DeepCopy(); + } + tmp0.__isset.MultiLanguageResource = this.__isset.MultiLanguageResource; + if((Music != null) && __isset.Music) + { + tmp0.Music = (global::Byway.Thrift.Data.Music)this.Music.DeepCopy(); + } + tmp0.__isset.Music = this.__isset.Music; + if((NetAssetData != null) && __isset.NetAssetData) + { + tmp0.NetAssetData = (global::Byway.Thrift.Data.NetAssetData)this.NetAssetData.DeepCopy(); + } + tmp0.__isset.NetAssetData = this.__isset.NetAssetData; + if((NetworkItemData != null) && __isset.NetworkItemData) + { + tmp0.NetworkItemData = (global::Byway.Thrift.Data.NetworkItemData)this.NetworkItemData.DeepCopy(); + } + tmp0.__isset.NetworkItemData = this.__isset.NetworkItemData; + if((NewbieDailyTaskCfg != null) && __isset.NewbieDailyTaskCfg) + { + tmp0.NewbieDailyTaskCfg = (global::Byway.Thrift.Data.NewbieDailyTaskCfg)this.NewbieDailyTaskCfg.DeepCopy(); + } + tmp0.__isset.NewbieDailyTaskCfg = this.__isset.NewbieDailyTaskCfg; + if((NewbieScoreCfg != null) && __isset.NewbieScoreCfg) + { + tmp0.NewbieScoreCfg = (global::Byway.Thrift.Data.NewbieScoreCfg)this.NewbieScoreCfg.DeepCopy(); + } + tmp0.__isset.NewbieScoreCfg = this.__isset.NewbieScoreCfg; + if((NPCFriendsData != null) && __isset.NPCFriendsData) + { + tmp0.NPCFriendsData = (global::Byway.Thrift.Data.NPCFriendsData)this.NPCFriendsData.DeepCopy(); + } + tmp0.__isset.NPCFriendsData = this.__isset.NPCFriendsData; + if((PassOne != null) && __isset.PassOne) + { + tmp0.PassOne = (global::Byway.Thrift.Data.PassOne)this.PassOne.DeepCopy(); + } + tmp0.__isset.PassOne = this.__isset.PassOne; + if((PetAdWorkGift != null) && __isset.PetAdWorkGift) + { + tmp0.PetAdWorkGift = (global::Byway.Thrift.Data.PetAdWorkGift)this.PetAdWorkGift.DeepCopy(); + } + tmp0.__isset.PetAdWorkGift = this.__isset.PetAdWorkGift; + if((PetAirItem != null) && __isset.PetAirItem) + { + tmp0.PetAirItem = (global::Byway.Thrift.Data.PetAirItem)this.PetAirItem.DeepCopy(); + } + tmp0.__isset.PetAirItem = this.__isset.PetAirItem; + if((PetCareItem != null) && __isset.PetCareItem) + { + tmp0.PetCareItem = (global::Byway.Thrift.Data.PetCareItem)this.PetCareItem.DeepCopy(); + } + tmp0.__isset.PetCareItem = this.__isset.PetCareItem; + if((PetCoinGift != null) && __isset.PetCoinGift) + { + tmp0.PetCoinGift = (global::Byway.Thrift.Data.PetCoinGift)this.PetCoinGift.DeepCopy(); + } + tmp0.__isset.PetCoinGift = this.__isset.PetCoinGift; + if((PetDailyTaskCfg != null) && __isset.PetDailyTaskCfg) + { + tmp0.PetDailyTaskCfg = (global::Byway.Thrift.Data.PetDailyTaskCfg)this.PetDailyTaskCfg.DeepCopy(); + } + tmp0.__isset.PetDailyTaskCfg = this.__isset.PetDailyTaskCfg; + if((PetDressItem != null) && __isset.PetDressItem) + { + tmp0.PetDressItem = (global::Byway.Thrift.Data.PetDressItem)this.PetDressItem.DeepCopy(); + } + tmp0.__isset.PetDressItem = this.__isset.PetDressItem; + if((PetHomeDecorateList != null) && __isset.PetHomeDecorateList) + { + tmp0.PetHomeDecorateList = (global::Byway.Thrift.Data.PetHomeDecorateList)this.PetHomeDecorateList.DeepCopy(); + } + tmp0.__isset.PetHomeDecorateList = this.__isset.PetHomeDecorateList; + if((PetPlayJoyItem != null) && __isset.PetPlayJoyItem) + { + tmp0.PetPlayJoyItem = (global::Byway.Thrift.Data.PetPlayJoyItem)this.PetPlayJoyItem.DeepCopy(); + } + tmp0.__isset.PetPlayJoyItem = this.__isset.PetPlayJoyItem; + if((PetRoomUnlockCfg != null) && __isset.PetRoomUnlockCfg) + { + tmp0.PetRoomUnlockCfg = (global::Byway.Thrift.Data.PetRoomUnlockCfg)this.PetRoomUnlockCfg.DeepCopy(); + } + tmp0.__isset.PetRoomUnlockCfg = this.__isset.PetRoomUnlockCfg; + if((PetShopItem != null) && __isset.PetShopItem) + { + tmp0.PetShopItem = (global::Byway.Thrift.Data.PetShopItem)this.PetShopItem.DeepCopy(); + } + tmp0.__isset.PetShopItem = this.__isset.PetShopItem; + if((PlayHomeDecorateCfg != null) && __isset.PlayHomeDecorateCfg) + { + tmp0.PlayHomeDecorateCfg = (global::Byway.Thrift.Data.PlayHomeDecorateCfg)this.PlayHomeDecorateCfg.DeepCopy(); + } + tmp0.__isset.PlayHomeDecorateCfg = this.__isset.PlayHomeDecorateCfg; + if((PromotionPack != null) && __isset.PromotionPack) + { + tmp0.PromotionPack = (global::Byway.Thrift.Data.PromotionPack)this.PromotionPack.DeepCopy(); + } + tmp0.__isset.PromotionPack = this.__isset.PromotionPack; + if((RaceReward != null) && __isset.RaceReward) + { + tmp0.RaceReward = (global::Byway.Thrift.Data.RaceReward)this.RaceReward.DeepCopy(); + } + tmp0.__isset.RaceReward = this.__isset.RaceReward; + if((RankData != null) && __isset.RankData) + { + tmp0.RankData = (global::Byway.Thrift.Data.RankData)this.RankData.DeepCopy(); + } + tmp0.__isset.RankData = this.__isset.RankData; + if((RegionData != null) && __isset.RegionData) + { + tmp0.RegionData = (global::Byway.Thrift.Data.RegionData)this.RegionData.DeepCopy(); + } + tmp0.__isset.RegionData = this.__isset.RegionData; + if((SceneData != null) && __isset.SceneData) + { + tmp0.SceneData = (global::Byway.Thrift.Data.SceneData)this.SceneData.DeepCopy(); + } + tmp0.__isset.SceneData = this.__isset.SceneData; + if((SevenLoginCfg != null) && __isset.SevenLoginCfg) + { + tmp0.SevenLoginCfg = (global::Byway.Thrift.Data.SevenLoginCfg)this.SevenLoginCfg.DeepCopy(); + } + tmp0.__isset.SevenLoginCfg = this.__isset.SevenLoginCfg; + if((ShopItem != null) && __isset.ShopItem) + { + tmp0.ShopItem = (global::Byway.Thrift.Data.ShopItem)this.ShopItem.DeepCopy(); + } + tmp0.__isset.ShopItem = this.__isset.ShopItem; + if((ShopPack != null) && __isset.ShopPack) + { + tmp0.ShopPack = (global::Byway.Thrift.Data.ShopPack)this.ShopPack.DeepCopy(); + } + tmp0.__isset.ShopPack = this.__isset.ShopPack; + if((ShopSpecial != null) && __isset.ShopSpecial) + { + tmp0.ShopSpecial = (global::Byway.Thrift.Data.ShopSpecial)this.ShopSpecial.DeepCopy(); + } + tmp0.__isset.ShopSpecial = this.__isset.ShopSpecial; + if((SignInData != null) && __isset.SignInData) + { + tmp0.SignInData = (global::Byway.Thrift.Data.SignInData)this.SignInData.DeepCopy(); + } + tmp0.__isset.SignInData = this.__isset.SignInData; + if((Sound != null) && __isset.Sound) + { + tmp0.Sound = (global::Byway.Thrift.Data.Sound)this.Sound.DeepCopy(); + } + tmp0.__isset.Sound = this.__isset.Sound; + if((StartMerge != null) && __isset.StartMerge) + { + tmp0.StartMerge = (global::Byway.Thrift.Data.StartMerge)this.StartMerge.DeepCopy(); + } + tmp0.__isset.StartMerge = this.__isset.StartMerge; + if((StartOrder != null) && __isset.StartOrder) + { + tmp0.StartOrder = (global::Byway.Thrift.Data.StartOrder)this.StartOrder.DeepCopy(); + } + tmp0.__isset.StartOrder = this.__isset.StartOrder; + if((TurnTableCfg != null) && __isset.TurnTableCfg) + { + tmp0.TurnTableCfg = (global::Byway.Thrift.Data.TurnTableCfg)this.TurnTableCfg.DeepCopy(); + } + tmp0.__isset.TurnTableCfg = this.__isset.TurnTableCfg; + if((UIForm != null) && __isset.UIForm) + { + tmp0.UIForm = (global::Byway.Thrift.Data.UIForm)this.UIForm.DeepCopy(); + } + tmp0.__isset.UIForm = this.__isset.UIForm; + if((WashStartMerge != null) && __isset.WashStartMerge) + { + tmp0.WashStartMerge = (global::Byway.Thrift.Data.WashStartMerge)this.WashStartMerge.DeepCopy(); + } + tmp0.__isset.WashStartMerge = this.__isset.WashStartMerge; + if((WeekTaskReward != null) && __isset.WeekTaskReward) + { + tmp0.WeekTaskReward = (global::Byway.Thrift.Data.WeekTaskReward)this.WeekTaskReward.DeepCopy(); + } + tmp0.__isset.WeekTaskReward = this.__isset.WeekTaskReward; + if((LevelLauncherData != null) && __isset.LevelLauncherData) + { + tmp0.LevelLauncherData = (global::Byway.Thrift.Data.LevelLauncherData)this.LevelLauncherData.DeepCopy(); + } + tmp0.__isset.LevelLauncherData = this.__isset.LevelLauncherData; + if((NickNameRandomData != null) && __isset.NickNameRandomData) + { + tmp0.NickNameRandomData = (global::Byway.Thrift.Data.NickNameRandomData)this.NickNameRandomData.DeepCopy(); + } + tmp0.__isset.NickNameRandomData = this.__isset.NickNameRandomData; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Struct) + { + AdGiftData = new global::Byway.Thrift.Data.AdGiftData(); + await AdGiftData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.Struct) + { + BagItemConfig = new global::Byway.Thrift.Data.BagItemConfig(); + await BagItemConfig.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.Struct) + { + BonusValue = new global::Byway.Thrift.Data.BonusValue(); + await BonusValue.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.Struct) + { + CardDetailCfg = new global::Byway.Thrift.Data.CardDetailCfg(); + await CardDetailCfg.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.Struct) + { + CardPackCfg = new global::Byway.Thrift.Data.CardPackCfg(); + await CardPackCfg.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.Struct) + { + CardStickerExchangeCfg = new global::Byway.Thrift.Data.CardStickerExchangeCfg(); + await CardStickerExchangeCfg.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.Struct) + { + CatsGardenMultiplyData = new global::Byway.Thrift.Data.CatsGardenMultiplyData(); + await CatsGardenMultiplyData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.Struct) + { + CatsGardenProgressData = new global::Byway.Thrift.Data.CatsGardenProgressData(); + await CatsGardenProgressData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.Struct) + { + CatsGardenSlotData = new global::Byway.Thrift.Data.CatsGardenSlotData(); + await CatsGardenSlotData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.Struct) + { + CatsGardenTempleteData = new global::Byway.Thrift.Data.CatsGardenTempleteData(); + await CatsGardenTempleteData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 11: + if (field.Type == TType.Struct) + { + CatTrickData = new global::Byway.Thrift.Data.CatTrickData(); + await CatTrickData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 12: + if (field.Type == TType.Struct) + { + ChampshipCfg = new global::Byway.Thrift.Data.ChampshipCfg(); + await ChampshipCfg.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 13: + if (field.Type == TType.Struct) + { + ChampshipRankReward = new global::Byway.Thrift.Data.ChampshipRankReward(); + await ChampshipRankReward.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 14: + if (field.Type == TType.Struct) + { + ChampshipScoreReward = new global::Byway.Thrift.Data.ChampshipScoreReward(); + await ChampshipScoreReward.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 15: + if (field.Type == TType.Struct) + { + ChineseResMap = new global::Byway.Thrift.Data.ChineseResMap(); + await ChineseResMap.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 16: + if (field.Type == TType.Struct) + { + CollectionRoomReward = new global::Byway.Thrift.Data.CollectionRoomReward(); + await CollectionRoomReward.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 17: + if (field.Type == TType.Struct) + { + CollectionsRewardsData = new global::Byway.Thrift.Data.CollectionsRewardsData(); + await CollectionsRewardsData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 18: + if (field.Type == TType.Struct) + { + ComboGift = new global::Byway.Thrift.Data.ComboGift(); + await ComboGift.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 19: + if (field.Type == TType.Struct) + { + ComboGiftTwo = new global::Byway.Thrift.Data.ComboGiftTwo(); + await ComboGiftTwo.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 20: + if (field.Type == TType.Struct) + { + DailyTaskActiveCfg = new global::Byway.Thrift.Data.DailyTaskActiveCfg(); + await DailyTaskActiveCfg.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 21: + if (field.Type == TType.Struct) + { + DailyTaskConfig = new global::Byway.Thrift.Data.DailyTaskConfig(); + await DailyTaskConfig.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 22: + if (field.Type == TType.Struct) + { + DailyTaskDetail = new global::Byway.Thrift.Data.DailyTaskDetail(); + await DailyTaskDetail.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 23: + if (field.Type == TType.Struct) + { + DailyTaskReward = new global::Byway.Thrift.Data.DailyTaskReward(); + await DailyTaskReward.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 24: + if (field.Type == TType.Struct) + { + DecorateCost = new global::Byway.Thrift.Data.DecorateCost(); + await DecorateCost.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 25: + if (field.Type == TType.Struct) + { + DialogData = new global::Byway.Thrift.Data.DialogData(); + await DialogData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 26: + if (field.Type == TType.Struct) + { + EmiterRetreatData = new global::Byway.Thrift.Data.EmiterRetreatData(); + await EmiterRetreatData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 27: + if (field.Type == TType.Struct) + { + EmojiData = new global::Byway.Thrift.Data.EmojiData(); + await EmojiData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 28: + if (field.Type == TType.Struct) + { + EndlessGift = new global::Byway.Thrift.Data.EndlessGift(); + await EndlessGift.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 29: + if (field.Type == TType.Struct) + { + EnergyLimitGift = new global::Byway.Thrift.Data.EnergyLimitGift(); + await EnergyLimitGift.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 30: + if (field.Type == TType.Struct) + { + FrameData = new global::Byway.Thrift.Data.FrameData(); + await FrameData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 31: + if (field.Type == TType.Struct) + { + GrowthFund = new global::Byway.Thrift.Data.GrowthFund(); + await GrowthFund.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 32: + if (field.Type == TType.Struct) + { + GuessReward = new global::Byway.Thrift.Data.GuessReward(); + await GuessReward.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 33: + if (field.Type == TType.Struct) + { + GuideData = new global::Byway.Thrift.Data.GuideData(); + await GuideData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 34: + if (field.Type == TType.Struct) + { + HandbookReward = new global::Byway.Thrift.Data.HandbookReward(); + await HandbookReward.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 35: + if (field.Type == TType.Struct) + { + HeadData = new global::Byway.Thrift.Data.HeadData(); + await HeadData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 36: + if (field.Type == TType.Struct) + { + HowToPlay = new global::Byway.Thrift.Data.HowToPlay(); + await HowToPlay.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 37: + if (field.Type == TType.Struct) + { + IndoorProgress = new global::Byway.Thrift.Data.IndoorProgress(); + await IndoorProgress.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 38: + if (field.Type == TType.Struct) + { + LanguageData = new global::Byway.Thrift.Data.LanguageData(); + await LanguageData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 39: + if (field.Type == TType.Struct) + { + LevelData = new global::Byway.Thrift.Data.LevelData(); + await LevelData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 40: + if (field.Type == TType.Struct) + { + LuckyCatData = new global::Byway.Thrift.Data.LuckyCatData(); + await LuckyCatData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 41: + if (field.Type == TType.Struct) + { + LuckyCatProbability = new global::Byway.Thrift.Data.LuckyCatProbability(); + await LuckyCatProbability.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 42: + if (field.Type == TType.Struct) + { + MainCardCollect = new global::Byway.Thrift.Data.MainCardCollect(); + await MainCardCollect.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 43: + if (field.Type == TType.Struct) + { + MergeData = new global::Byway.Thrift.Data.MergeData(); + await MergeData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 44: + if (field.Type == TType.Struct) + { + MileStoneDetail = new global::Byway.Thrift.Data.MileStoneDetail(); + await MileStoneDetail.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 45: + if (field.Type == TType.Struct) + { + MileStoneReward = new global::Byway.Thrift.Data.MileStoneReward(); + await MileStoneReward.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 46: + if (field.Type == TType.Struct) + { + MiningReward = new global::Byway.Thrift.Data.MiningReward(); + await MiningReward.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 47: + if (field.Type == TType.Struct) + { + MultiLanguageResource = new global::Byway.Thrift.Data.MultiLanguageResource(); + await MultiLanguageResource.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 48: + if (field.Type == TType.Struct) + { + Music = new global::Byway.Thrift.Data.Music(); + await Music.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 49: + if (field.Type == TType.Struct) + { + NetAssetData = new global::Byway.Thrift.Data.NetAssetData(); + await NetAssetData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 50: + if (field.Type == TType.Struct) + { + NetworkItemData = new global::Byway.Thrift.Data.NetworkItemData(); + await NetworkItemData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 51: + if (field.Type == TType.Struct) + { + NewbieDailyTaskCfg = new global::Byway.Thrift.Data.NewbieDailyTaskCfg(); + await NewbieDailyTaskCfg.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 52: + if (field.Type == TType.Struct) + { + NewbieScoreCfg = new global::Byway.Thrift.Data.NewbieScoreCfg(); + await NewbieScoreCfg.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 53: + if (field.Type == TType.Struct) + { + NPCFriendsData = new global::Byway.Thrift.Data.NPCFriendsData(); + await NPCFriendsData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 54: + if (field.Type == TType.Struct) + { + PassOne = new global::Byway.Thrift.Data.PassOne(); + await PassOne.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 55: + if (field.Type == TType.Struct) + { + PetAdWorkGift = new global::Byway.Thrift.Data.PetAdWorkGift(); + await PetAdWorkGift.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 56: + if (field.Type == TType.Struct) + { + PetAirItem = new global::Byway.Thrift.Data.PetAirItem(); + await PetAirItem.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 57: + if (field.Type == TType.Struct) + { + PetCareItem = new global::Byway.Thrift.Data.PetCareItem(); + await PetCareItem.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 58: + if (field.Type == TType.Struct) + { + PetCoinGift = new global::Byway.Thrift.Data.PetCoinGift(); + await PetCoinGift.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 59: + if (field.Type == TType.Struct) + { + PetDailyTaskCfg = new global::Byway.Thrift.Data.PetDailyTaskCfg(); + await PetDailyTaskCfg.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 60: + if (field.Type == TType.Struct) + { + PetDressItem = new global::Byway.Thrift.Data.PetDressItem(); + await PetDressItem.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 61: + if (field.Type == TType.Struct) + { + PetHomeDecorateList = new global::Byway.Thrift.Data.PetHomeDecorateList(); + await PetHomeDecorateList.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 62: + if (field.Type == TType.Struct) + { + PetPlayJoyItem = new global::Byway.Thrift.Data.PetPlayJoyItem(); + await PetPlayJoyItem.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 63: + if (field.Type == TType.Struct) + { + PetRoomUnlockCfg = new global::Byway.Thrift.Data.PetRoomUnlockCfg(); + await PetRoomUnlockCfg.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 64: + if (field.Type == TType.Struct) + { + PetShopItem = new global::Byway.Thrift.Data.PetShopItem(); + await PetShopItem.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 65: + if (field.Type == TType.Struct) + { + PlayHomeDecorateCfg = new global::Byway.Thrift.Data.PlayHomeDecorateCfg(); + await PlayHomeDecorateCfg.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 66: + if (field.Type == TType.Struct) + { + PromotionPack = new global::Byway.Thrift.Data.PromotionPack(); + await PromotionPack.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 67: + if (field.Type == TType.Struct) + { + RaceReward = new global::Byway.Thrift.Data.RaceReward(); + await RaceReward.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 68: + if (field.Type == TType.Struct) + { + RankData = new global::Byway.Thrift.Data.RankData(); + await RankData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 69: + if (field.Type == TType.Struct) + { + RegionData = new global::Byway.Thrift.Data.RegionData(); + await RegionData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 70: + if (field.Type == TType.Struct) + { + SceneData = new global::Byway.Thrift.Data.SceneData(); + await SceneData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 71: + if (field.Type == TType.Struct) + { + SevenLoginCfg = new global::Byway.Thrift.Data.SevenLoginCfg(); + await SevenLoginCfg.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 72: + if (field.Type == TType.Struct) + { + ShopItem = new global::Byway.Thrift.Data.ShopItem(); + await ShopItem.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 73: + if (field.Type == TType.Struct) + { + ShopPack = new global::Byway.Thrift.Data.ShopPack(); + await ShopPack.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 74: + if (field.Type == TType.Struct) + { + ShopSpecial = new global::Byway.Thrift.Data.ShopSpecial(); + await ShopSpecial.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 75: + if (field.Type == TType.Struct) + { + SignInData = new global::Byway.Thrift.Data.SignInData(); + await SignInData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 76: + if (field.Type == TType.Struct) + { + Sound = new global::Byway.Thrift.Data.Sound(); + await Sound.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 77: + if (field.Type == TType.Struct) + { + StartMerge = new global::Byway.Thrift.Data.StartMerge(); + await StartMerge.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 78: + if (field.Type == TType.Struct) + { + StartOrder = new global::Byway.Thrift.Data.StartOrder(); + await StartOrder.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 79: + if (field.Type == TType.Struct) + { + TurnTableCfg = new global::Byway.Thrift.Data.TurnTableCfg(); + await TurnTableCfg.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 80: + if (field.Type == TType.Struct) + { + UIForm = new global::Byway.Thrift.Data.UIForm(); + await UIForm.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 81: + if (field.Type == TType.Struct) + { + WashStartMerge = new global::Byway.Thrift.Data.WashStartMerge(); + await WashStartMerge.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 82: + if (field.Type == TType.Struct) + { + WeekTaskReward = new global::Byway.Thrift.Data.WeekTaskReward(); + await WeekTaskReward.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 83: + if (field.Type == TType.Struct) + { + LevelLauncherData = new global::Byway.Thrift.Data.LevelLauncherData(); + await LevelLauncherData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 84: + if (field.Type == TType.Struct) + { + NickNameRandomData = new global::Byway.Thrift.Data.NickNameRandomData(); + await NickNameRandomData.ReadAsync(iprot, cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("AllConfigs"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if((AdGiftData != null) && __isset.AdGiftData) + { + tmp2.Name = "AdGiftData"; + tmp2.Type = TType.Struct; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await AdGiftData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((BagItemConfig != null) && __isset.BagItemConfig) + { + tmp2.Name = "BagItemConfig"; + tmp2.Type = TType.Struct; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await BagItemConfig.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((BonusValue != null) && __isset.BonusValue) + { + tmp2.Name = "BonusValue"; + tmp2.Type = TType.Struct; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await BonusValue.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((CardDetailCfg != null) && __isset.CardDetailCfg) + { + tmp2.Name = "CardDetailCfg"; + tmp2.Type = TType.Struct; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await CardDetailCfg.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((CardPackCfg != null) && __isset.CardPackCfg) + { + tmp2.Name = "CardPackCfg"; + tmp2.Type = TType.Struct; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await CardPackCfg.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((CardStickerExchangeCfg != null) && __isset.CardStickerExchangeCfg) + { + tmp2.Name = "CardStickerExchangeCfg"; + tmp2.Type = TType.Struct; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await CardStickerExchangeCfg.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((CatsGardenMultiplyData != null) && __isset.CatsGardenMultiplyData) + { + tmp2.Name = "CatsGardenMultiplyData"; + tmp2.Type = TType.Struct; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await CatsGardenMultiplyData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((CatsGardenProgressData != null) && __isset.CatsGardenProgressData) + { + tmp2.Name = "CatsGardenProgressData"; + tmp2.Type = TType.Struct; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await CatsGardenProgressData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((CatsGardenSlotData != null) && __isset.CatsGardenSlotData) + { + tmp2.Name = "CatsGardenSlotData"; + tmp2.Type = TType.Struct; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await CatsGardenSlotData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((CatsGardenTempleteData != null) && __isset.CatsGardenTempleteData) + { + tmp2.Name = "CatsGardenTempleteData"; + tmp2.Type = TType.Struct; + tmp2.ID = 10; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await CatsGardenTempleteData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((CatTrickData != null) && __isset.CatTrickData) + { + tmp2.Name = "CatTrickData"; + tmp2.Type = TType.Struct; + tmp2.ID = 11; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await CatTrickData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ChampshipCfg != null) && __isset.ChampshipCfg) + { + tmp2.Name = "ChampshipCfg"; + tmp2.Type = TType.Struct; + tmp2.ID = 12; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await ChampshipCfg.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ChampshipRankReward != null) && __isset.ChampshipRankReward) + { + tmp2.Name = "ChampshipRankReward"; + tmp2.Type = TType.Struct; + tmp2.ID = 13; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await ChampshipRankReward.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ChampshipScoreReward != null) && __isset.ChampshipScoreReward) + { + tmp2.Name = "ChampshipScoreReward"; + tmp2.Type = TType.Struct; + tmp2.ID = 14; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await ChampshipScoreReward.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ChineseResMap != null) && __isset.ChineseResMap) + { + tmp2.Name = "ChineseResMap"; + tmp2.Type = TType.Struct; + tmp2.ID = 15; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await ChineseResMap.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((CollectionRoomReward != null) && __isset.CollectionRoomReward) + { + tmp2.Name = "CollectionRoomReward"; + tmp2.Type = TType.Struct; + tmp2.ID = 16; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await CollectionRoomReward.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((CollectionsRewardsData != null) && __isset.CollectionsRewardsData) + { + tmp2.Name = "CollectionsRewardsData"; + tmp2.Type = TType.Struct; + tmp2.ID = 17; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await CollectionsRewardsData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ComboGift != null) && __isset.ComboGift) + { + tmp2.Name = "ComboGift"; + tmp2.Type = TType.Struct; + tmp2.ID = 18; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await ComboGift.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ComboGiftTwo != null) && __isset.ComboGiftTwo) + { + tmp2.Name = "ComboGiftTwo"; + tmp2.Type = TType.Struct; + tmp2.ID = 19; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await ComboGiftTwo.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((DailyTaskActiveCfg != null) && __isset.DailyTaskActiveCfg) + { + tmp2.Name = "DailyTaskActiveCfg"; + tmp2.Type = TType.Struct; + tmp2.ID = 20; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await DailyTaskActiveCfg.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((DailyTaskConfig != null) && __isset.DailyTaskConfig) + { + tmp2.Name = "DailyTaskConfig"; + tmp2.Type = TType.Struct; + tmp2.ID = 21; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await DailyTaskConfig.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((DailyTaskDetail != null) && __isset.DailyTaskDetail) + { + tmp2.Name = "DailyTaskDetail"; + tmp2.Type = TType.Struct; + tmp2.ID = 22; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await DailyTaskDetail.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((DailyTaskReward != null) && __isset.DailyTaskReward) + { + tmp2.Name = "DailyTaskReward"; + tmp2.Type = TType.Struct; + tmp2.ID = 23; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await DailyTaskReward.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((DecorateCost != null) && __isset.DecorateCost) + { + tmp2.Name = "DecorateCost"; + tmp2.Type = TType.Struct; + tmp2.ID = 24; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await DecorateCost.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((DialogData != null) && __isset.DialogData) + { + tmp2.Name = "DialogData"; + tmp2.Type = TType.Struct; + tmp2.ID = 25; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await DialogData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((EmiterRetreatData != null) && __isset.EmiterRetreatData) + { + tmp2.Name = "EmiterRetreatData"; + tmp2.Type = TType.Struct; + tmp2.ID = 26; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await EmiterRetreatData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((EmojiData != null) && __isset.EmojiData) + { + tmp2.Name = "EmojiData"; + tmp2.Type = TType.Struct; + tmp2.ID = 27; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await EmojiData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((EndlessGift != null) && __isset.EndlessGift) + { + tmp2.Name = "EndlessGift"; + tmp2.Type = TType.Struct; + tmp2.ID = 28; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await EndlessGift.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((EnergyLimitGift != null) && __isset.EnergyLimitGift) + { + tmp2.Name = "EnergyLimitGift"; + tmp2.Type = TType.Struct; + tmp2.ID = 29; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await EnergyLimitGift.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((FrameData != null) && __isset.FrameData) + { + tmp2.Name = "FrameData"; + tmp2.Type = TType.Struct; + tmp2.ID = 30; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await FrameData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((GrowthFund != null) && __isset.GrowthFund) + { + tmp2.Name = "GrowthFund"; + tmp2.Type = TType.Struct; + tmp2.ID = 31; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await GrowthFund.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((GuessReward != null) && __isset.GuessReward) + { + tmp2.Name = "GuessReward"; + tmp2.Type = TType.Struct; + tmp2.ID = 32; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await GuessReward.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((GuideData != null) && __isset.GuideData) + { + tmp2.Name = "GuideData"; + tmp2.Type = TType.Struct; + tmp2.ID = 33; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await GuideData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((HandbookReward != null) && __isset.HandbookReward) + { + tmp2.Name = "HandbookReward"; + tmp2.Type = TType.Struct; + tmp2.ID = 34; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await HandbookReward.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((HeadData != null) && __isset.HeadData) + { + tmp2.Name = "HeadData"; + tmp2.Type = TType.Struct; + tmp2.ID = 35; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await HeadData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((HowToPlay != null) && __isset.HowToPlay) + { + tmp2.Name = "HowToPlay"; + tmp2.Type = TType.Struct; + tmp2.ID = 36; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await HowToPlay.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((IndoorProgress != null) && __isset.IndoorProgress) + { + tmp2.Name = "IndoorProgress"; + tmp2.Type = TType.Struct; + tmp2.ID = 37; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await IndoorProgress.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((LanguageData != null) && __isset.LanguageData) + { + tmp2.Name = "LanguageData"; + tmp2.Type = TType.Struct; + tmp2.ID = 38; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await LanguageData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((LevelData != null) && __isset.LevelData) + { + tmp2.Name = "LevelData"; + tmp2.Type = TType.Struct; + tmp2.ID = 39; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await LevelData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((LuckyCatData != null) && __isset.LuckyCatData) + { + tmp2.Name = "LuckyCatData"; + tmp2.Type = TType.Struct; + tmp2.ID = 40; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await LuckyCatData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((LuckyCatProbability != null) && __isset.LuckyCatProbability) + { + tmp2.Name = "LuckyCatProbability"; + tmp2.Type = TType.Struct; + tmp2.ID = 41; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await LuckyCatProbability.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MainCardCollect != null) && __isset.MainCardCollect) + { + tmp2.Name = "MainCardCollect"; + tmp2.Type = TType.Struct; + tmp2.ID = 42; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await MainCardCollect.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MergeData != null) && __isset.MergeData) + { + tmp2.Name = "MergeData"; + tmp2.Type = TType.Struct; + tmp2.ID = 43; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await MergeData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MileStoneDetail != null) && __isset.MileStoneDetail) + { + tmp2.Name = "MileStoneDetail"; + tmp2.Type = TType.Struct; + tmp2.ID = 44; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await MileStoneDetail.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MileStoneReward != null) && __isset.MileStoneReward) + { + tmp2.Name = "MileStoneReward"; + tmp2.Type = TType.Struct; + tmp2.ID = 45; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await MileStoneReward.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MiningReward != null) && __isset.MiningReward) + { + tmp2.Name = "MiningReward"; + tmp2.Type = TType.Struct; + tmp2.ID = 46; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await MiningReward.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MultiLanguageResource != null) && __isset.MultiLanguageResource) + { + tmp2.Name = "MultiLanguageResource"; + tmp2.Type = TType.Struct; + tmp2.ID = 47; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await MultiLanguageResource.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Music != null) && __isset.Music) + { + tmp2.Name = "Music"; + tmp2.Type = TType.Struct; + tmp2.ID = 48; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await Music.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((NetAssetData != null) && __isset.NetAssetData) + { + tmp2.Name = "NetAssetData"; + tmp2.Type = TType.Struct; + tmp2.ID = 49; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await NetAssetData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((NetworkItemData != null) && __isset.NetworkItemData) + { + tmp2.Name = "NetworkItemData"; + tmp2.Type = TType.Struct; + tmp2.ID = 50; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await NetworkItemData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((NewbieDailyTaskCfg != null) && __isset.NewbieDailyTaskCfg) + { + tmp2.Name = "NewbieDailyTaskCfg"; + tmp2.Type = TType.Struct; + tmp2.ID = 51; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await NewbieDailyTaskCfg.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((NewbieScoreCfg != null) && __isset.NewbieScoreCfg) + { + tmp2.Name = "NewbieScoreCfg"; + tmp2.Type = TType.Struct; + tmp2.ID = 52; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await NewbieScoreCfg.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((NPCFriendsData != null) && __isset.NPCFriendsData) + { + tmp2.Name = "NPCFriendsData"; + tmp2.Type = TType.Struct; + tmp2.ID = 53; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await NPCFriendsData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PassOne != null) && __isset.PassOne) + { + tmp2.Name = "PassOne"; + tmp2.Type = TType.Struct; + tmp2.ID = 54; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PassOne.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetAdWorkGift != null) && __isset.PetAdWorkGift) + { + tmp2.Name = "PetAdWorkGift"; + tmp2.Type = TType.Struct; + tmp2.ID = 55; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PetAdWorkGift.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetAirItem != null) && __isset.PetAirItem) + { + tmp2.Name = "PetAirItem"; + tmp2.Type = TType.Struct; + tmp2.ID = 56; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PetAirItem.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetCareItem != null) && __isset.PetCareItem) + { + tmp2.Name = "PetCareItem"; + tmp2.Type = TType.Struct; + tmp2.ID = 57; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PetCareItem.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetCoinGift != null) && __isset.PetCoinGift) + { + tmp2.Name = "PetCoinGift"; + tmp2.Type = TType.Struct; + tmp2.ID = 58; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PetCoinGift.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetDailyTaskCfg != null) && __isset.PetDailyTaskCfg) + { + tmp2.Name = "PetDailyTaskCfg"; + tmp2.Type = TType.Struct; + tmp2.ID = 59; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PetDailyTaskCfg.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetDressItem != null) && __isset.PetDressItem) + { + tmp2.Name = "PetDressItem"; + tmp2.Type = TType.Struct; + tmp2.ID = 60; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PetDressItem.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetHomeDecorateList != null) && __isset.PetHomeDecorateList) + { + tmp2.Name = "PetHomeDecorateList"; + tmp2.Type = TType.Struct; + tmp2.ID = 61; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PetHomeDecorateList.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetPlayJoyItem != null) && __isset.PetPlayJoyItem) + { + tmp2.Name = "PetPlayJoyItem"; + tmp2.Type = TType.Struct; + tmp2.ID = 62; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PetPlayJoyItem.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetRoomUnlockCfg != null) && __isset.PetRoomUnlockCfg) + { + tmp2.Name = "PetRoomUnlockCfg"; + tmp2.Type = TType.Struct; + tmp2.ID = 63; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PetRoomUnlockCfg.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetShopItem != null) && __isset.PetShopItem) + { + tmp2.Name = "PetShopItem"; + tmp2.Type = TType.Struct; + tmp2.ID = 64; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PetShopItem.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PlayHomeDecorateCfg != null) && __isset.PlayHomeDecorateCfg) + { + tmp2.Name = "PlayHomeDecorateCfg"; + tmp2.Type = TType.Struct; + tmp2.ID = 65; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PlayHomeDecorateCfg.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PromotionPack != null) && __isset.PromotionPack) + { + tmp2.Name = "PromotionPack"; + tmp2.Type = TType.Struct; + tmp2.ID = 66; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await PromotionPack.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RaceReward != null) && __isset.RaceReward) + { + tmp2.Name = "RaceReward"; + tmp2.Type = TType.Struct; + tmp2.ID = 67; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await RaceReward.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RankData != null) && __isset.RankData) + { + tmp2.Name = "RankData"; + tmp2.Type = TType.Struct; + tmp2.ID = 68; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await RankData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RegionData != null) && __isset.RegionData) + { + tmp2.Name = "RegionData"; + tmp2.Type = TType.Struct; + tmp2.ID = 69; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await RegionData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((SceneData != null) && __isset.SceneData) + { + tmp2.Name = "SceneData"; + tmp2.Type = TType.Struct; + tmp2.ID = 70; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await SceneData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((SevenLoginCfg != null) && __isset.SevenLoginCfg) + { + tmp2.Name = "SevenLoginCfg"; + tmp2.Type = TType.Struct; + tmp2.ID = 71; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await SevenLoginCfg.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ShopItem != null) && __isset.ShopItem) + { + tmp2.Name = "ShopItem"; + tmp2.Type = TType.Struct; + tmp2.ID = 72; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await ShopItem.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ShopPack != null) && __isset.ShopPack) + { + tmp2.Name = "ShopPack"; + tmp2.Type = TType.Struct; + tmp2.ID = 73; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await ShopPack.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ShopSpecial != null) && __isset.ShopSpecial) + { + tmp2.Name = "ShopSpecial"; + tmp2.Type = TType.Struct; + tmp2.ID = 74; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await ShopSpecial.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((SignInData != null) && __isset.SignInData) + { + tmp2.Name = "SignInData"; + tmp2.Type = TType.Struct; + tmp2.ID = 75; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await SignInData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Sound != null) && __isset.Sound) + { + tmp2.Name = "Sound"; + tmp2.Type = TType.Struct; + tmp2.ID = 76; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await Sound.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((StartMerge != null) && __isset.StartMerge) + { + tmp2.Name = "StartMerge"; + tmp2.Type = TType.Struct; + tmp2.ID = 77; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await StartMerge.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((StartOrder != null) && __isset.StartOrder) + { + tmp2.Name = "StartOrder"; + tmp2.Type = TType.Struct; + tmp2.ID = 78; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await StartOrder.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((TurnTableCfg != null) && __isset.TurnTableCfg) + { + tmp2.Name = "TurnTableCfg"; + tmp2.Type = TType.Struct; + tmp2.ID = 79; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await TurnTableCfg.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((UIForm != null) && __isset.UIForm) + { + tmp2.Name = "UIForm"; + tmp2.Type = TType.Struct; + tmp2.ID = 80; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await UIForm.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((WashStartMerge != null) && __isset.WashStartMerge) + { + tmp2.Name = "WashStartMerge"; + tmp2.Type = TType.Struct; + tmp2.ID = 81; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await WashStartMerge.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((WeekTaskReward != null) && __isset.WeekTaskReward) + { + tmp2.Name = "WeekTaskReward"; + tmp2.Type = TType.Struct; + tmp2.ID = 82; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await WeekTaskReward.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((LevelLauncherData != null) && __isset.LevelLauncherData) + { + tmp2.Name = "LevelLauncherData"; + tmp2.Type = TType.Struct; + tmp2.ID = 83; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await LevelLauncherData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((NickNameRandomData != null) && __isset.NickNameRandomData) + { + tmp2.Name = "NickNameRandomData"; + tmp2.Type = TType.Struct; + tmp2.ID = 84; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await NickNameRandomData.WriteAsync(oprot, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is AllConfigs other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.AdGiftData == other.__isset.AdGiftData) && ((!__isset.AdGiftData) || (global::System.Object.Equals(AdGiftData, other.AdGiftData)))) + && ((__isset.BagItemConfig == other.__isset.BagItemConfig) && ((!__isset.BagItemConfig) || (global::System.Object.Equals(BagItemConfig, other.BagItemConfig)))) + && ((__isset.BonusValue == other.__isset.BonusValue) && ((!__isset.BonusValue) || (global::System.Object.Equals(BonusValue, other.BonusValue)))) + && ((__isset.CardDetailCfg == other.__isset.CardDetailCfg) && ((!__isset.CardDetailCfg) || (global::System.Object.Equals(CardDetailCfg, other.CardDetailCfg)))) + && ((__isset.CardPackCfg == other.__isset.CardPackCfg) && ((!__isset.CardPackCfg) || (global::System.Object.Equals(CardPackCfg, other.CardPackCfg)))) + && ((__isset.CardStickerExchangeCfg == other.__isset.CardStickerExchangeCfg) && ((!__isset.CardStickerExchangeCfg) || (global::System.Object.Equals(CardStickerExchangeCfg, other.CardStickerExchangeCfg)))) + && ((__isset.CatsGardenMultiplyData == other.__isset.CatsGardenMultiplyData) && ((!__isset.CatsGardenMultiplyData) || (global::System.Object.Equals(CatsGardenMultiplyData, other.CatsGardenMultiplyData)))) + && ((__isset.CatsGardenProgressData == other.__isset.CatsGardenProgressData) && ((!__isset.CatsGardenProgressData) || (global::System.Object.Equals(CatsGardenProgressData, other.CatsGardenProgressData)))) + && ((__isset.CatsGardenSlotData == other.__isset.CatsGardenSlotData) && ((!__isset.CatsGardenSlotData) || (global::System.Object.Equals(CatsGardenSlotData, other.CatsGardenSlotData)))) + && ((__isset.CatsGardenTempleteData == other.__isset.CatsGardenTempleteData) && ((!__isset.CatsGardenTempleteData) || (global::System.Object.Equals(CatsGardenTempleteData, other.CatsGardenTempleteData)))) + && ((__isset.CatTrickData == other.__isset.CatTrickData) && ((!__isset.CatTrickData) || (global::System.Object.Equals(CatTrickData, other.CatTrickData)))) + && ((__isset.ChampshipCfg == other.__isset.ChampshipCfg) && ((!__isset.ChampshipCfg) || (global::System.Object.Equals(ChampshipCfg, other.ChampshipCfg)))) + && ((__isset.ChampshipRankReward == other.__isset.ChampshipRankReward) && ((!__isset.ChampshipRankReward) || (global::System.Object.Equals(ChampshipRankReward, other.ChampshipRankReward)))) + && ((__isset.ChampshipScoreReward == other.__isset.ChampshipScoreReward) && ((!__isset.ChampshipScoreReward) || (global::System.Object.Equals(ChampshipScoreReward, other.ChampshipScoreReward)))) + && ((__isset.ChineseResMap == other.__isset.ChineseResMap) && ((!__isset.ChineseResMap) || (global::System.Object.Equals(ChineseResMap, other.ChineseResMap)))) + && ((__isset.CollectionRoomReward == other.__isset.CollectionRoomReward) && ((!__isset.CollectionRoomReward) || (global::System.Object.Equals(CollectionRoomReward, other.CollectionRoomReward)))) + && ((__isset.CollectionsRewardsData == other.__isset.CollectionsRewardsData) && ((!__isset.CollectionsRewardsData) || (global::System.Object.Equals(CollectionsRewardsData, other.CollectionsRewardsData)))) + && ((__isset.ComboGift == other.__isset.ComboGift) && ((!__isset.ComboGift) || (global::System.Object.Equals(ComboGift, other.ComboGift)))) + && ((__isset.ComboGiftTwo == other.__isset.ComboGiftTwo) && ((!__isset.ComboGiftTwo) || (global::System.Object.Equals(ComboGiftTwo, other.ComboGiftTwo)))) + && ((__isset.DailyTaskActiveCfg == other.__isset.DailyTaskActiveCfg) && ((!__isset.DailyTaskActiveCfg) || (global::System.Object.Equals(DailyTaskActiveCfg, other.DailyTaskActiveCfg)))) + && ((__isset.DailyTaskConfig == other.__isset.DailyTaskConfig) && ((!__isset.DailyTaskConfig) || (global::System.Object.Equals(DailyTaskConfig, other.DailyTaskConfig)))) + && ((__isset.DailyTaskDetail == other.__isset.DailyTaskDetail) && ((!__isset.DailyTaskDetail) || (global::System.Object.Equals(DailyTaskDetail, other.DailyTaskDetail)))) + && ((__isset.DailyTaskReward == other.__isset.DailyTaskReward) && ((!__isset.DailyTaskReward) || (global::System.Object.Equals(DailyTaskReward, other.DailyTaskReward)))) + && ((__isset.DecorateCost == other.__isset.DecorateCost) && ((!__isset.DecorateCost) || (global::System.Object.Equals(DecorateCost, other.DecorateCost)))) + && ((__isset.DialogData == other.__isset.DialogData) && ((!__isset.DialogData) || (global::System.Object.Equals(DialogData, other.DialogData)))) + && ((__isset.EmiterRetreatData == other.__isset.EmiterRetreatData) && ((!__isset.EmiterRetreatData) || (global::System.Object.Equals(EmiterRetreatData, other.EmiterRetreatData)))) + && ((__isset.EmojiData == other.__isset.EmojiData) && ((!__isset.EmojiData) || (global::System.Object.Equals(EmojiData, other.EmojiData)))) + && ((__isset.EndlessGift == other.__isset.EndlessGift) && ((!__isset.EndlessGift) || (global::System.Object.Equals(EndlessGift, other.EndlessGift)))) + && ((__isset.EnergyLimitGift == other.__isset.EnergyLimitGift) && ((!__isset.EnergyLimitGift) || (global::System.Object.Equals(EnergyLimitGift, other.EnergyLimitGift)))) + && ((__isset.FrameData == other.__isset.FrameData) && ((!__isset.FrameData) || (global::System.Object.Equals(FrameData, other.FrameData)))) + && ((__isset.GrowthFund == other.__isset.GrowthFund) && ((!__isset.GrowthFund) || (global::System.Object.Equals(GrowthFund, other.GrowthFund)))) + && ((__isset.GuessReward == other.__isset.GuessReward) && ((!__isset.GuessReward) || (global::System.Object.Equals(GuessReward, other.GuessReward)))) + && ((__isset.GuideData == other.__isset.GuideData) && ((!__isset.GuideData) || (global::System.Object.Equals(GuideData, other.GuideData)))) + && ((__isset.HandbookReward == other.__isset.HandbookReward) && ((!__isset.HandbookReward) || (global::System.Object.Equals(HandbookReward, other.HandbookReward)))) + && ((__isset.HeadData == other.__isset.HeadData) && ((!__isset.HeadData) || (global::System.Object.Equals(HeadData, other.HeadData)))) + && ((__isset.HowToPlay == other.__isset.HowToPlay) && ((!__isset.HowToPlay) || (global::System.Object.Equals(HowToPlay, other.HowToPlay)))) + && ((__isset.IndoorProgress == other.__isset.IndoorProgress) && ((!__isset.IndoorProgress) || (global::System.Object.Equals(IndoorProgress, other.IndoorProgress)))) + && ((__isset.LanguageData == other.__isset.LanguageData) && ((!__isset.LanguageData) || (global::System.Object.Equals(LanguageData, other.LanguageData)))) + && ((__isset.LevelData == other.__isset.LevelData) && ((!__isset.LevelData) || (global::System.Object.Equals(LevelData, other.LevelData)))) + && ((__isset.LuckyCatData == other.__isset.LuckyCatData) && ((!__isset.LuckyCatData) || (global::System.Object.Equals(LuckyCatData, other.LuckyCatData)))) + && ((__isset.LuckyCatProbability == other.__isset.LuckyCatProbability) && ((!__isset.LuckyCatProbability) || (global::System.Object.Equals(LuckyCatProbability, other.LuckyCatProbability)))) + && ((__isset.MainCardCollect == other.__isset.MainCardCollect) && ((!__isset.MainCardCollect) || (global::System.Object.Equals(MainCardCollect, other.MainCardCollect)))) + && ((__isset.MergeData == other.__isset.MergeData) && ((!__isset.MergeData) || (global::System.Object.Equals(MergeData, other.MergeData)))) + && ((__isset.MileStoneDetail == other.__isset.MileStoneDetail) && ((!__isset.MileStoneDetail) || (global::System.Object.Equals(MileStoneDetail, other.MileStoneDetail)))) + && ((__isset.MileStoneReward == other.__isset.MileStoneReward) && ((!__isset.MileStoneReward) || (global::System.Object.Equals(MileStoneReward, other.MileStoneReward)))) + && ((__isset.MiningReward == other.__isset.MiningReward) && ((!__isset.MiningReward) || (global::System.Object.Equals(MiningReward, other.MiningReward)))) + && ((__isset.MultiLanguageResource == other.__isset.MultiLanguageResource) && ((!__isset.MultiLanguageResource) || (global::System.Object.Equals(MultiLanguageResource, other.MultiLanguageResource)))) + && ((__isset.Music == other.__isset.Music) && ((!__isset.Music) || (global::System.Object.Equals(Music, other.Music)))) + && ((__isset.NetAssetData == other.__isset.NetAssetData) && ((!__isset.NetAssetData) || (global::System.Object.Equals(NetAssetData, other.NetAssetData)))) + && ((__isset.NetworkItemData == other.__isset.NetworkItemData) && ((!__isset.NetworkItemData) || (global::System.Object.Equals(NetworkItemData, other.NetworkItemData)))) + && ((__isset.NewbieDailyTaskCfg == other.__isset.NewbieDailyTaskCfg) && ((!__isset.NewbieDailyTaskCfg) || (global::System.Object.Equals(NewbieDailyTaskCfg, other.NewbieDailyTaskCfg)))) + && ((__isset.NewbieScoreCfg == other.__isset.NewbieScoreCfg) && ((!__isset.NewbieScoreCfg) || (global::System.Object.Equals(NewbieScoreCfg, other.NewbieScoreCfg)))) + && ((__isset.NPCFriendsData == other.__isset.NPCFriendsData) && ((!__isset.NPCFriendsData) || (global::System.Object.Equals(NPCFriendsData, other.NPCFriendsData)))) + && ((__isset.PassOne == other.__isset.PassOne) && ((!__isset.PassOne) || (global::System.Object.Equals(PassOne, other.PassOne)))) + && ((__isset.PetAdWorkGift == other.__isset.PetAdWorkGift) && ((!__isset.PetAdWorkGift) || (global::System.Object.Equals(PetAdWorkGift, other.PetAdWorkGift)))) + && ((__isset.PetAirItem == other.__isset.PetAirItem) && ((!__isset.PetAirItem) || (global::System.Object.Equals(PetAirItem, other.PetAirItem)))) + && ((__isset.PetCareItem == other.__isset.PetCareItem) && ((!__isset.PetCareItem) || (global::System.Object.Equals(PetCareItem, other.PetCareItem)))) + && ((__isset.PetCoinGift == other.__isset.PetCoinGift) && ((!__isset.PetCoinGift) || (global::System.Object.Equals(PetCoinGift, other.PetCoinGift)))) + && ((__isset.PetDailyTaskCfg == other.__isset.PetDailyTaskCfg) && ((!__isset.PetDailyTaskCfg) || (global::System.Object.Equals(PetDailyTaskCfg, other.PetDailyTaskCfg)))) + && ((__isset.PetDressItem == other.__isset.PetDressItem) && ((!__isset.PetDressItem) || (global::System.Object.Equals(PetDressItem, other.PetDressItem)))) + && ((__isset.PetHomeDecorateList == other.__isset.PetHomeDecorateList) && ((!__isset.PetHomeDecorateList) || (global::System.Object.Equals(PetHomeDecorateList, other.PetHomeDecorateList)))) + && ((__isset.PetPlayJoyItem == other.__isset.PetPlayJoyItem) && ((!__isset.PetPlayJoyItem) || (global::System.Object.Equals(PetPlayJoyItem, other.PetPlayJoyItem)))) + && ((__isset.PetRoomUnlockCfg == other.__isset.PetRoomUnlockCfg) && ((!__isset.PetRoomUnlockCfg) || (global::System.Object.Equals(PetRoomUnlockCfg, other.PetRoomUnlockCfg)))) + && ((__isset.PetShopItem == other.__isset.PetShopItem) && ((!__isset.PetShopItem) || (global::System.Object.Equals(PetShopItem, other.PetShopItem)))) + && ((__isset.PlayHomeDecorateCfg == other.__isset.PlayHomeDecorateCfg) && ((!__isset.PlayHomeDecorateCfg) || (global::System.Object.Equals(PlayHomeDecorateCfg, other.PlayHomeDecorateCfg)))) + && ((__isset.PromotionPack == other.__isset.PromotionPack) && ((!__isset.PromotionPack) || (global::System.Object.Equals(PromotionPack, other.PromotionPack)))) + && ((__isset.RaceReward == other.__isset.RaceReward) && ((!__isset.RaceReward) || (global::System.Object.Equals(RaceReward, other.RaceReward)))) + && ((__isset.RankData == other.__isset.RankData) && ((!__isset.RankData) || (global::System.Object.Equals(RankData, other.RankData)))) + && ((__isset.RegionData == other.__isset.RegionData) && ((!__isset.RegionData) || (global::System.Object.Equals(RegionData, other.RegionData)))) + && ((__isset.SceneData == other.__isset.SceneData) && ((!__isset.SceneData) || (global::System.Object.Equals(SceneData, other.SceneData)))) + && ((__isset.SevenLoginCfg == other.__isset.SevenLoginCfg) && ((!__isset.SevenLoginCfg) || (global::System.Object.Equals(SevenLoginCfg, other.SevenLoginCfg)))) + && ((__isset.ShopItem == other.__isset.ShopItem) && ((!__isset.ShopItem) || (global::System.Object.Equals(ShopItem, other.ShopItem)))) + && ((__isset.ShopPack == other.__isset.ShopPack) && ((!__isset.ShopPack) || (global::System.Object.Equals(ShopPack, other.ShopPack)))) + && ((__isset.ShopSpecial == other.__isset.ShopSpecial) && ((!__isset.ShopSpecial) || (global::System.Object.Equals(ShopSpecial, other.ShopSpecial)))) + && ((__isset.SignInData == other.__isset.SignInData) && ((!__isset.SignInData) || (global::System.Object.Equals(SignInData, other.SignInData)))) + && ((__isset.Sound == other.__isset.Sound) && ((!__isset.Sound) || (global::System.Object.Equals(Sound, other.Sound)))) + && ((__isset.StartMerge == other.__isset.StartMerge) && ((!__isset.StartMerge) || (global::System.Object.Equals(StartMerge, other.StartMerge)))) + && ((__isset.StartOrder == other.__isset.StartOrder) && ((!__isset.StartOrder) || (global::System.Object.Equals(StartOrder, other.StartOrder)))) + && ((__isset.TurnTableCfg == other.__isset.TurnTableCfg) && ((!__isset.TurnTableCfg) || (global::System.Object.Equals(TurnTableCfg, other.TurnTableCfg)))) + && ((__isset.UIForm == other.__isset.UIForm) && ((!__isset.UIForm) || (global::System.Object.Equals(UIForm, other.UIForm)))) + && ((__isset.WashStartMerge == other.__isset.WashStartMerge) && ((!__isset.WashStartMerge) || (global::System.Object.Equals(WashStartMerge, other.WashStartMerge)))) + && ((__isset.WeekTaskReward == other.__isset.WeekTaskReward) && ((!__isset.WeekTaskReward) || (global::System.Object.Equals(WeekTaskReward, other.WeekTaskReward)))) + && ((__isset.LevelLauncherData == other.__isset.LevelLauncherData) && ((!__isset.LevelLauncherData) || (global::System.Object.Equals(LevelLauncherData, other.LevelLauncherData)))) + && ((__isset.NickNameRandomData == other.__isset.NickNameRandomData) && ((!__isset.NickNameRandomData) || (global::System.Object.Equals(NickNameRandomData, other.NickNameRandomData)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((AdGiftData != null) && __isset.AdGiftData) + { + hashcode = (hashcode * 397) + AdGiftData.GetHashCode(); + } + if((BagItemConfig != null) && __isset.BagItemConfig) + { + hashcode = (hashcode * 397) + BagItemConfig.GetHashCode(); + } + if((BonusValue != null) && __isset.BonusValue) + { + hashcode = (hashcode * 397) + BonusValue.GetHashCode(); + } + if((CardDetailCfg != null) && __isset.CardDetailCfg) + { + hashcode = (hashcode * 397) + CardDetailCfg.GetHashCode(); + } + if((CardPackCfg != null) && __isset.CardPackCfg) + { + hashcode = (hashcode * 397) + CardPackCfg.GetHashCode(); + } + if((CardStickerExchangeCfg != null) && __isset.CardStickerExchangeCfg) + { + hashcode = (hashcode * 397) + CardStickerExchangeCfg.GetHashCode(); + } + if((CatsGardenMultiplyData != null) && __isset.CatsGardenMultiplyData) + { + hashcode = (hashcode * 397) + CatsGardenMultiplyData.GetHashCode(); + } + if((CatsGardenProgressData != null) && __isset.CatsGardenProgressData) + { + hashcode = (hashcode * 397) + CatsGardenProgressData.GetHashCode(); + } + if((CatsGardenSlotData != null) && __isset.CatsGardenSlotData) + { + hashcode = (hashcode * 397) + CatsGardenSlotData.GetHashCode(); + } + if((CatsGardenTempleteData != null) && __isset.CatsGardenTempleteData) + { + hashcode = (hashcode * 397) + CatsGardenTempleteData.GetHashCode(); + } + if((CatTrickData != null) && __isset.CatTrickData) + { + hashcode = (hashcode * 397) + CatTrickData.GetHashCode(); + } + if((ChampshipCfg != null) && __isset.ChampshipCfg) + { + hashcode = (hashcode * 397) + ChampshipCfg.GetHashCode(); + } + if((ChampshipRankReward != null) && __isset.ChampshipRankReward) + { + hashcode = (hashcode * 397) + ChampshipRankReward.GetHashCode(); + } + if((ChampshipScoreReward != null) && __isset.ChampshipScoreReward) + { + hashcode = (hashcode * 397) + ChampshipScoreReward.GetHashCode(); + } + if((ChineseResMap != null) && __isset.ChineseResMap) + { + hashcode = (hashcode * 397) + ChineseResMap.GetHashCode(); + } + if((CollectionRoomReward != null) && __isset.CollectionRoomReward) + { + hashcode = (hashcode * 397) + CollectionRoomReward.GetHashCode(); + } + if((CollectionsRewardsData != null) && __isset.CollectionsRewardsData) + { + hashcode = (hashcode * 397) + CollectionsRewardsData.GetHashCode(); + } + if((ComboGift != null) && __isset.ComboGift) + { + hashcode = (hashcode * 397) + ComboGift.GetHashCode(); + } + if((ComboGiftTwo != null) && __isset.ComboGiftTwo) + { + hashcode = (hashcode * 397) + ComboGiftTwo.GetHashCode(); + } + if((DailyTaskActiveCfg != null) && __isset.DailyTaskActiveCfg) + { + hashcode = (hashcode * 397) + DailyTaskActiveCfg.GetHashCode(); + } + if((DailyTaskConfig != null) && __isset.DailyTaskConfig) + { + hashcode = (hashcode * 397) + DailyTaskConfig.GetHashCode(); + } + if((DailyTaskDetail != null) && __isset.DailyTaskDetail) + { + hashcode = (hashcode * 397) + DailyTaskDetail.GetHashCode(); + } + if((DailyTaskReward != null) && __isset.DailyTaskReward) + { + hashcode = (hashcode * 397) + DailyTaskReward.GetHashCode(); + } + if((DecorateCost != null) && __isset.DecorateCost) + { + hashcode = (hashcode * 397) + DecorateCost.GetHashCode(); + } + if((DialogData != null) && __isset.DialogData) + { + hashcode = (hashcode * 397) + DialogData.GetHashCode(); + } + if((EmiterRetreatData != null) && __isset.EmiterRetreatData) + { + hashcode = (hashcode * 397) + EmiterRetreatData.GetHashCode(); + } + if((EmojiData != null) && __isset.EmojiData) + { + hashcode = (hashcode * 397) + EmojiData.GetHashCode(); + } + if((EndlessGift != null) && __isset.EndlessGift) + { + hashcode = (hashcode * 397) + EndlessGift.GetHashCode(); + } + if((EnergyLimitGift != null) && __isset.EnergyLimitGift) + { + hashcode = (hashcode * 397) + EnergyLimitGift.GetHashCode(); + } + if((FrameData != null) && __isset.FrameData) + { + hashcode = (hashcode * 397) + FrameData.GetHashCode(); + } + if((GrowthFund != null) && __isset.GrowthFund) + { + hashcode = (hashcode * 397) + GrowthFund.GetHashCode(); + } + if((GuessReward != null) && __isset.GuessReward) + { + hashcode = (hashcode * 397) + GuessReward.GetHashCode(); + } + if((GuideData != null) && __isset.GuideData) + { + hashcode = (hashcode * 397) + GuideData.GetHashCode(); + } + if((HandbookReward != null) && __isset.HandbookReward) + { + hashcode = (hashcode * 397) + HandbookReward.GetHashCode(); + } + if((HeadData != null) && __isset.HeadData) + { + hashcode = (hashcode * 397) + HeadData.GetHashCode(); + } + if((HowToPlay != null) && __isset.HowToPlay) + { + hashcode = (hashcode * 397) + HowToPlay.GetHashCode(); + } + if((IndoorProgress != null) && __isset.IndoorProgress) + { + hashcode = (hashcode * 397) + IndoorProgress.GetHashCode(); + } + if((LanguageData != null) && __isset.LanguageData) + { + hashcode = (hashcode * 397) + LanguageData.GetHashCode(); + } + if((LevelData != null) && __isset.LevelData) + { + hashcode = (hashcode * 397) + LevelData.GetHashCode(); + } + if((LuckyCatData != null) && __isset.LuckyCatData) + { + hashcode = (hashcode * 397) + LuckyCatData.GetHashCode(); + } + if((LuckyCatProbability != null) && __isset.LuckyCatProbability) + { + hashcode = (hashcode * 397) + LuckyCatProbability.GetHashCode(); + } + if((MainCardCollect != null) && __isset.MainCardCollect) + { + hashcode = (hashcode * 397) + MainCardCollect.GetHashCode(); + } + if((MergeData != null) && __isset.MergeData) + { + hashcode = (hashcode * 397) + MergeData.GetHashCode(); + } + if((MileStoneDetail != null) && __isset.MileStoneDetail) + { + hashcode = (hashcode * 397) + MileStoneDetail.GetHashCode(); + } + if((MileStoneReward != null) && __isset.MileStoneReward) + { + hashcode = (hashcode * 397) + MileStoneReward.GetHashCode(); + } + if((MiningReward != null) && __isset.MiningReward) + { + hashcode = (hashcode * 397) + MiningReward.GetHashCode(); + } + if((MultiLanguageResource != null) && __isset.MultiLanguageResource) + { + hashcode = (hashcode * 397) + MultiLanguageResource.GetHashCode(); + } + if((Music != null) && __isset.Music) + { + hashcode = (hashcode * 397) + Music.GetHashCode(); + } + if((NetAssetData != null) && __isset.NetAssetData) + { + hashcode = (hashcode * 397) + NetAssetData.GetHashCode(); + } + if((NetworkItemData != null) && __isset.NetworkItemData) + { + hashcode = (hashcode * 397) + NetworkItemData.GetHashCode(); + } + if((NewbieDailyTaskCfg != null) && __isset.NewbieDailyTaskCfg) + { + hashcode = (hashcode * 397) + NewbieDailyTaskCfg.GetHashCode(); + } + if((NewbieScoreCfg != null) && __isset.NewbieScoreCfg) + { + hashcode = (hashcode * 397) + NewbieScoreCfg.GetHashCode(); + } + if((NPCFriendsData != null) && __isset.NPCFriendsData) + { + hashcode = (hashcode * 397) + NPCFriendsData.GetHashCode(); + } + if((PassOne != null) && __isset.PassOne) + { + hashcode = (hashcode * 397) + PassOne.GetHashCode(); + } + if((PetAdWorkGift != null) && __isset.PetAdWorkGift) + { + hashcode = (hashcode * 397) + PetAdWorkGift.GetHashCode(); + } + if((PetAirItem != null) && __isset.PetAirItem) + { + hashcode = (hashcode * 397) + PetAirItem.GetHashCode(); + } + if((PetCareItem != null) && __isset.PetCareItem) + { + hashcode = (hashcode * 397) + PetCareItem.GetHashCode(); + } + if((PetCoinGift != null) && __isset.PetCoinGift) + { + hashcode = (hashcode * 397) + PetCoinGift.GetHashCode(); + } + if((PetDailyTaskCfg != null) && __isset.PetDailyTaskCfg) + { + hashcode = (hashcode * 397) + PetDailyTaskCfg.GetHashCode(); + } + if((PetDressItem != null) && __isset.PetDressItem) + { + hashcode = (hashcode * 397) + PetDressItem.GetHashCode(); + } + if((PetHomeDecorateList != null) && __isset.PetHomeDecorateList) + { + hashcode = (hashcode * 397) + PetHomeDecorateList.GetHashCode(); + } + if((PetPlayJoyItem != null) && __isset.PetPlayJoyItem) + { + hashcode = (hashcode * 397) + PetPlayJoyItem.GetHashCode(); + } + if((PetRoomUnlockCfg != null) && __isset.PetRoomUnlockCfg) + { + hashcode = (hashcode * 397) + PetRoomUnlockCfg.GetHashCode(); + } + if((PetShopItem != null) && __isset.PetShopItem) + { + hashcode = (hashcode * 397) + PetShopItem.GetHashCode(); + } + if((PlayHomeDecorateCfg != null) && __isset.PlayHomeDecorateCfg) + { + hashcode = (hashcode * 397) + PlayHomeDecorateCfg.GetHashCode(); + } + if((PromotionPack != null) && __isset.PromotionPack) + { + hashcode = (hashcode * 397) + PromotionPack.GetHashCode(); + } + if((RaceReward != null) && __isset.RaceReward) + { + hashcode = (hashcode * 397) + RaceReward.GetHashCode(); + } + if((RankData != null) && __isset.RankData) + { + hashcode = (hashcode * 397) + RankData.GetHashCode(); + } + if((RegionData != null) && __isset.RegionData) + { + hashcode = (hashcode * 397) + RegionData.GetHashCode(); + } + if((SceneData != null) && __isset.SceneData) + { + hashcode = (hashcode * 397) + SceneData.GetHashCode(); + } + if((SevenLoginCfg != null) && __isset.SevenLoginCfg) + { + hashcode = (hashcode * 397) + SevenLoginCfg.GetHashCode(); + } + if((ShopItem != null) && __isset.ShopItem) + { + hashcode = (hashcode * 397) + ShopItem.GetHashCode(); + } + if((ShopPack != null) && __isset.ShopPack) + { + hashcode = (hashcode * 397) + ShopPack.GetHashCode(); + } + if((ShopSpecial != null) && __isset.ShopSpecial) + { + hashcode = (hashcode * 397) + ShopSpecial.GetHashCode(); + } + if((SignInData != null) && __isset.SignInData) + { + hashcode = (hashcode * 397) + SignInData.GetHashCode(); + } + if((Sound != null) && __isset.Sound) + { + hashcode = (hashcode * 397) + Sound.GetHashCode(); + } + if((StartMerge != null) && __isset.StartMerge) + { + hashcode = (hashcode * 397) + StartMerge.GetHashCode(); + } + if((StartOrder != null) && __isset.StartOrder) + { + hashcode = (hashcode * 397) + StartOrder.GetHashCode(); + } + if((TurnTableCfg != null) && __isset.TurnTableCfg) + { + hashcode = (hashcode * 397) + TurnTableCfg.GetHashCode(); + } + if((UIForm != null) && __isset.UIForm) + { + hashcode = (hashcode * 397) + UIForm.GetHashCode(); + } + if((WashStartMerge != null) && __isset.WashStartMerge) + { + hashcode = (hashcode * 397) + WashStartMerge.GetHashCode(); + } + if((WeekTaskReward != null) && __isset.WeekTaskReward) + { + hashcode = (hashcode * 397) + WeekTaskReward.GetHashCode(); + } + if((LevelLauncherData != null) && __isset.LevelLauncherData) + { + hashcode = (hashcode * 397) + LevelLauncherData.GetHashCode(); + } + if((NickNameRandomData != null) && __isset.NickNameRandomData) + { + hashcode = (hashcode * 397) + NickNameRandomData.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("AllConfigs("); + int tmp4 = 0; + if((AdGiftData != null) && __isset.AdGiftData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("AdGiftData: "); + AdGiftData.ToString(tmp3); + } + if((BagItemConfig != null) && __isset.BagItemConfig) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("BagItemConfig: "); + BagItemConfig.ToString(tmp3); + } + if((BonusValue != null) && __isset.BonusValue) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("BonusValue: "); + BonusValue.ToString(tmp3); + } + if((CardDetailCfg != null) && __isset.CardDetailCfg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CardDetailCfg: "); + CardDetailCfg.ToString(tmp3); + } + if((CardPackCfg != null) && __isset.CardPackCfg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CardPackCfg: "); + CardPackCfg.ToString(tmp3); + } + if((CardStickerExchangeCfg != null) && __isset.CardStickerExchangeCfg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CardStickerExchangeCfg: "); + CardStickerExchangeCfg.ToString(tmp3); + } + if((CatsGardenMultiplyData != null) && __isset.CatsGardenMultiplyData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CatsGardenMultiplyData: "); + CatsGardenMultiplyData.ToString(tmp3); + } + if((CatsGardenProgressData != null) && __isset.CatsGardenProgressData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CatsGardenProgressData: "); + CatsGardenProgressData.ToString(tmp3); + } + if((CatsGardenSlotData != null) && __isset.CatsGardenSlotData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CatsGardenSlotData: "); + CatsGardenSlotData.ToString(tmp3); + } + if((CatsGardenTempleteData != null) && __isset.CatsGardenTempleteData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CatsGardenTempleteData: "); + CatsGardenTempleteData.ToString(tmp3); + } + if((CatTrickData != null) && __isset.CatTrickData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CatTrickData: "); + CatTrickData.ToString(tmp3); + } + if((ChampshipCfg != null) && __isset.ChampshipCfg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ChampshipCfg: "); + ChampshipCfg.ToString(tmp3); + } + if((ChampshipRankReward != null) && __isset.ChampshipRankReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ChampshipRankReward: "); + ChampshipRankReward.ToString(tmp3); + } + if((ChampshipScoreReward != null) && __isset.ChampshipScoreReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ChampshipScoreReward: "); + ChampshipScoreReward.ToString(tmp3); + } + if((ChineseResMap != null) && __isset.ChineseResMap) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ChineseResMap: "); + ChineseResMap.ToString(tmp3); + } + if((CollectionRoomReward != null) && __isset.CollectionRoomReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CollectionRoomReward: "); + CollectionRoomReward.ToString(tmp3); + } + if((CollectionsRewardsData != null) && __isset.CollectionsRewardsData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CollectionsRewardsData: "); + CollectionsRewardsData.ToString(tmp3); + } + if((ComboGift != null) && __isset.ComboGift) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ComboGift: "); + ComboGift.ToString(tmp3); + } + if((ComboGiftTwo != null) && __isset.ComboGiftTwo) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ComboGiftTwo: "); + ComboGiftTwo.ToString(tmp3); + } + if((DailyTaskActiveCfg != null) && __isset.DailyTaskActiveCfg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("DailyTaskActiveCfg: "); + DailyTaskActiveCfg.ToString(tmp3); + } + if((DailyTaskConfig != null) && __isset.DailyTaskConfig) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("DailyTaskConfig: "); + DailyTaskConfig.ToString(tmp3); + } + if((DailyTaskDetail != null) && __isset.DailyTaskDetail) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("DailyTaskDetail: "); + DailyTaskDetail.ToString(tmp3); + } + if((DailyTaskReward != null) && __isset.DailyTaskReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("DailyTaskReward: "); + DailyTaskReward.ToString(tmp3); + } + if((DecorateCost != null) && __isset.DecorateCost) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("DecorateCost: "); + DecorateCost.ToString(tmp3); + } + if((DialogData != null) && __isset.DialogData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("DialogData: "); + DialogData.ToString(tmp3); + } + if((EmiterRetreatData != null) && __isset.EmiterRetreatData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("EmiterRetreatData: "); + EmiterRetreatData.ToString(tmp3); + } + if((EmojiData != null) && __isset.EmojiData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("EmojiData: "); + EmojiData.ToString(tmp3); + } + if((EndlessGift != null) && __isset.EndlessGift) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("EndlessGift: "); + EndlessGift.ToString(tmp3); + } + if((EnergyLimitGift != null) && __isset.EnergyLimitGift) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("EnergyLimitGift: "); + EnergyLimitGift.ToString(tmp3); + } + if((FrameData != null) && __isset.FrameData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("FrameData: "); + FrameData.ToString(tmp3); + } + if((GrowthFund != null) && __isset.GrowthFund) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GrowthFund: "); + GrowthFund.ToString(tmp3); + } + if((GuessReward != null) && __isset.GuessReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GuessReward: "); + GuessReward.ToString(tmp3); + } + if((GuideData != null) && __isset.GuideData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GuideData: "); + GuideData.ToString(tmp3); + } + if((HandbookReward != null) && __isset.HandbookReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("HandbookReward: "); + HandbookReward.ToString(tmp3); + } + if((HeadData != null) && __isset.HeadData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("HeadData: "); + HeadData.ToString(tmp3); + } + if((HowToPlay != null) && __isset.HowToPlay) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("HowToPlay: "); + HowToPlay.ToString(tmp3); + } + if((IndoorProgress != null) && __isset.IndoorProgress) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("IndoorProgress: "); + IndoorProgress.ToString(tmp3); + } + if((LanguageData != null) && __isset.LanguageData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("LanguageData: "); + LanguageData.ToString(tmp3); + } + if((LevelData != null) && __isset.LevelData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("LevelData: "); + LevelData.ToString(tmp3); + } + if((LuckyCatData != null) && __isset.LuckyCatData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("LuckyCatData: "); + LuckyCatData.ToString(tmp3); + } + if((LuckyCatProbability != null) && __isset.LuckyCatProbability) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("LuckyCatProbability: "); + LuckyCatProbability.ToString(tmp3); + } + if((MainCardCollect != null) && __isset.MainCardCollect) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MainCardCollect: "); + MainCardCollect.ToString(tmp3); + } + if((MergeData != null) && __isset.MergeData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MergeData: "); + MergeData.ToString(tmp3); + } + if((MileStoneDetail != null) && __isset.MileStoneDetail) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MileStoneDetail: "); + MileStoneDetail.ToString(tmp3); + } + if((MileStoneReward != null) && __isset.MileStoneReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MileStoneReward: "); + MileStoneReward.ToString(tmp3); + } + if((MiningReward != null) && __isset.MiningReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MiningReward: "); + MiningReward.ToString(tmp3); + } + if((MultiLanguageResource != null) && __isset.MultiLanguageResource) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MultiLanguageResource: "); + MultiLanguageResource.ToString(tmp3); + } + if((Music != null) && __isset.Music) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Music: "); + Music.ToString(tmp3); + } + if((NetAssetData != null) && __isset.NetAssetData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NetAssetData: "); + NetAssetData.ToString(tmp3); + } + if((NetworkItemData != null) && __isset.NetworkItemData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NetworkItemData: "); + NetworkItemData.ToString(tmp3); + } + if((NewbieDailyTaskCfg != null) && __isset.NewbieDailyTaskCfg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NewbieDailyTaskCfg: "); + NewbieDailyTaskCfg.ToString(tmp3); + } + if((NewbieScoreCfg != null) && __isset.NewbieScoreCfg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NewbieScoreCfg: "); + NewbieScoreCfg.ToString(tmp3); + } + if((NPCFriendsData != null) && __isset.NPCFriendsData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NPCFriendsData: "); + NPCFriendsData.ToString(tmp3); + } + if((PassOne != null) && __isset.PassOne) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PassOne: "); + PassOne.ToString(tmp3); + } + if((PetAdWorkGift != null) && __isset.PetAdWorkGift) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetAdWorkGift: "); + PetAdWorkGift.ToString(tmp3); + } + if((PetAirItem != null) && __isset.PetAirItem) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetAirItem: "); + PetAirItem.ToString(tmp3); + } + if((PetCareItem != null) && __isset.PetCareItem) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetCareItem: "); + PetCareItem.ToString(tmp3); + } + if((PetCoinGift != null) && __isset.PetCoinGift) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetCoinGift: "); + PetCoinGift.ToString(tmp3); + } + if((PetDailyTaskCfg != null) && __isset.PetDailyTaskCfg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetDailyTaskCfg: "); + PetDailyTaskCfg.ToString(tmp3); + } + if((PetDressItem != null) && __isset.PetDressItem) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetDressItem: "); + PetDressItem.ToString(tmp3); + } + if((PetHomeDecorateList != null) && __isset.PetHomeDecorateList) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetHomeDecorateList: "); + PetHomeDecorateList.ToString(tmp3); + } + if((PetPlayJoyItem != null) && __isset.PetPlayJoyItem) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetPlayJoyItem: "); + PetPlayJoyItem.ToString(tmp3); + } + if((PetRoomUnlockCfg != null) && __isset.PetRoomUnlockCfg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetRoomUnlockCfg: "); + PetRoomUnlockCfg.ToString(tmp3); + } + if((PetShopItem != null) && __isset.PetShopItem) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetShopItem: "); + PetShopItem.ToString(tmp3); + } + if((PlayHomeDecorateCfg != null) && __isset.PlayHomeDecorateCfg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PlayHomeDecorateCfg: "); + PlayHomeDecorateCfg.ToString(tmp3); + } + if((PromotionPack != null) && __isset.PromotionPack) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PromotionPack: "); + PromotionPack.ToString(tmp3); + } + if((RaceReward != null) && __isset.RaceReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RaceReward: "); + RaceReward.ToString(tmp3); + } + if((RankData != null) && __isset.RankData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RankData: "); + RankData.ToString(tmp3); + } + if((RegionData != null) && __isset.RegionData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RegionData: "); + RegionData.ToString(tmp3); + } + if((SceneData != null) && __isset.SceneData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SceneData: "); + SceneData.ToString(tmp3); + } + if((SevenLoginCfg != null) && __isset.SevenLoginCfg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SevenLoginCfg: "); + SevenLoginCfg.ToString(tmp3); + } + if((ShopItem != null) && __isset.ShopItem) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ShopItem: "); + ShopItem.ToString(tmp3); + } + if((ShopPack != null) && __isset.ShopPack) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ShopPack: "); + ShopPack.ToString(tmp3); + } + if((ShopSpecial != null) && __isset.ShopSpecial) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ShopSpecial: "); + ShopSpecial.ToString(tmp3); + } + if((SignInData != null) && __isset.SignInData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SignInData: "); + SignInData.ToString(tmp3); + } + if((Sound != null) && __isset.Sound) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Sound: "); + Sound.ToString(tmp3); + } + if((StartMerge != null) && __isset.StartMerge) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("StartMerge: "); + StartMerge.ToString(tmp3); + } + if((StartOrder != null) && __isset.StartOrder) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("StartOrder: "); + StartOrder.ToString(tmp3); + } + if((TurnTableCfg != null) && __isset.TurnTableCfg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TurnTableCfg: "); + TurnTableCfg.ToString(tmp3); + } + if((UIForm != null) && __isset.UIForm) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("UIForm: "); + UIForm.ToString(tmp3); + } + if((WashStartMerge != null) && __isset.WashStartMerge) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("WashStartMerge: "); + WashStartMerge.ToString(tmp3); + } + if((WeekTaskReward != null) && __isset.WeekTaskReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("WeekTaskReward: "); + WeekTaskReward.ToString(tmp3); + } + if((LevelLauncherData != null) && __isset.LevelLauncherData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("LevelLauncherData: "); + LevelLauncherData.ToString(tmp3); + } + if((NickNameRandomData != null) && __isset.NickNameRandomData) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NickNameRandomData: "); + NickNameRandomData.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AllConfigs.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AllConfigs.cs.meta new file mode 100644 index 0000000..5143c0a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/AllConfigs.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 94f1d56b60ba2d54ea31255ded9658f7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfig.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfig.Extensions.cs new file mode 100644 index 0000000..f0cf67e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfig.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class BagItemConfigExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfig.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfig.Extensions.cs.meta new file mode 100644 index 0000000..22bf0e0 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfig.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b236d6dfa3d67b94089b8ed85a70134f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfig.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfig.cs new file mode 100644 index 0000000..5f7f29e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfig.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class BagItemConfig : TBase + { + private Dictionary _bagitemconfigs; + + [DataMember(Order = 0)] + public Dictionary Bagitemconfigs + { + get + { + return _bagitemconfigs; + } + set + { + __isset.@bagitemconfigs = true; + this._bagitemconfigs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @bagitemconfigs; + } + + #region XmlSerializer support + + public bool ShouldSerializeBagitemconfigs() + { + return __isset.@bagitemconfigs; + } + + #endregion XmlSerializer support + + public BagItemConfig() + { + } + + public BagItemConfig DeepCopy() + { + var tmp5 = new BagItemConfig(); + if((Bagitemconfigs != null) && __isset.@bagitemconfigs) + { + tmp5.Bagitemconfigs = this.Bagitemconfigs.DeepCopy(); + } + tmp5.__isset.@bagitemconfigs = this.__isset.@bagitemconfigs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Bagitemconfigs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.BagItemConfigItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.BagItemConfigItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Bagitemconfigs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("BagItemConfig"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Bagitemconfigs != null) && __isset.@bagitemconfigs) + { + tmp11.Name = "bagitemconfigs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Bagitemconfigs.Count), cancellationToken); + foreach (int _iter12 in Bagitemconfigs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Bagitemconfigs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is BagItemConfig other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@bagitemconfigs == other.__isset.@bagitemconfigs) && ((!__isset.@bagitemconfigs) || (TCollections.Equals(Bagitemconfigs, other.Bagitemconfigs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Bagitemconfigs != null) && __isset.@bagitemconfigs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Bagitemconfigs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("BagItemConfig("); + int tmp14 = 0; + if((Bagitemconfigs != null) && __isset.@bagitemconfigs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Bagitemconfigs: "); + Bagitemconfigs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfig.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfig.cs.meta new file mode 100644 index 0000000..50b15a9 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cae548fcaebbbdb448fbe318fd6354ee +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfigItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfigItem.cs new file mode 100644 index 0000000..217dbad --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfigItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class BagItemConfigItem : TBase + { + private int _Id; + private int _ItemId; + private string _Icon; + private int _TrueId; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int ItemId + { + get + { + return _ItemId; + } + set + { + __isset.ItemId = true; + this._ItemId = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public int TrueId + { + get + { + return _TrueId; + } + set + { + __isset.TrueId = true; + this._TrueId = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool ItemId; + [DataMember] + public bool Icon; + [DataMember] + public bool TrueId; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeItemId() + { + return __isset.ItemId; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeTrueId() + { + return __isset.TrueId; + } + + #endregion XmlSerializer support + + public BagItemConfigItem() + { + } + + public BagItemConfigItem DeepCopy() + { + var tmp0 = new BagItemConfigItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.ItemId) + { + tmp0.ItemId = this.ItemId; + } + tmp0.__isset.ItemId = this.__isset.ItemId; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if(__isset.TrueId) + { + tmp0.TrueId = this.TrueId; + } + tmp0.__isset.TrueId = this.__isset.TrueId; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + ItemId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + TrueId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("BagItemConfigItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ItemId) + { + tmp2.Name = "ItemId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ItemId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.TrueId) + { + tmp2.Name = "TrueId"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(TrueId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is BagItemConfigItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.ItemId == other.__isset.ItemId) && ((!__isset.ItemId) || (global::System.Object.Equals(ItemId, other.ItemId)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.TrueId == other.__isset.TrueId) && ((!__isset.TrueId) || (global::System.Object.Equals(TrueId, other.TrueId)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.ItemId) + { + hashcode = (hashcode * 397) + ItemId.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if(__isset.TrueId) + { + hashcode = (hashcode * 397) + TrueId.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("BagItemConfigItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.ItemId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemId: "); + ItemId.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if(__isset.TrueId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TrueId: "); + TrueId.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfigItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfigItem.cs.meta new file mode 100644 index 0000000..91f9dfb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BagItemConfigItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 92e276c80cc262949a2c9ec9ffb9c1de +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValue.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValue.Extensions.cs new file mode 100644 index 0000000..3c3fe51 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValue.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class BonusValueExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValue.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValue.Extensions.cs.meta new file mode 100644 index 0000000..b3ceaec --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValue.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d32b498bac9ae5b499bd8c275b2f5dc6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValue.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValue.cs new file mode 100644 index 0000000..c041852 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValue.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class BonusValue : TBase + { + private Dictionary _bonusvalues; + + [DataMember(Order = 0)] + public Dictionary Bonusvalues + { + get + { + return _bonusvalues; + } + set + { + __isset.@bonusvalues = true; + this._bonusvalues = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @bonusvalues; + } + + #region XmlSerializer support + + public bool ShouldSerializeBonusvalues() + { + return __isset.@bonusvalues; + } + + #endregion XmlSerializer support + + public BonusValue() + { + } + + public BonusValue DeepCopy() + { + var tmp5 = new BonusValue(); + if((Bonusvalues != null) && __isset.@bonusvalues) + { + tmp5.Bonusvalues = this.Bonusvalues.DeepCopy(); + } + tmp5.__isset.@bonusvalues = this.__isset.@bonusvalues; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Bonusvalues = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.BonusValueItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.BonusValueItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Bonusvalues[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("BonusValue"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Bonusvalues != null) && __isset.@bonusvalues) + { + tmp11.Name = "bonusvalues"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Bonusvalues.Count), cancellationToken); + foreach (int _iter12 in Bonusvalues.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Bonusvalues[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is BonusValue other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@bonusvalues == other.__isset.@bonusvalues) && ((!__isset.@bonusvalues) || (TCollections.Equals(Bonusvalues, other.Bonusvalues)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Bonusvalues != null) && __isset.@bonusvalues) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Bonusvalues); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("BonusValue("); + int tmp14 = 0; + if((Bonusvalues != null) && __isset.@bonusvalues) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Bonusvalues: "); + Bonusvalues.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValue.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValue.cs.meta new file mode 100644 index 0000000..ad5c089 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValue.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e1484cf5d69c5234bae81add023f3b35 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValueItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValueItem.cs new file mode 100644 index 0000000..aa7930f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValueItem.cs @@ -0,0 +1,480 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class BonusValueItem : TBase + { + private int _Id; + private string _Type; + private int _SortId; + private double _Price; + private string _Reward; + private double _OldPrice; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Type + { + get + { + return _Type; + } + set + { + __isset.Type = true; + this._Type = value; + } + } + + [DataMember(Order = 0)] + public int SortId + { + get + { + return _SortId; + } + set + { + __isset.SortId = true; + this._SortId = value; + } + } + + [DataMember(Order = 0)] + public double Price + { + get + { + return _Price; + } + set + { + __isset.Price = true; + this._Price = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + [DataMember(Order = 0)] + public double OldPrice + { + get + { + return _OldPrice; + } + set + { + __isset.OldPrice = true; + this._OldPrice = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Type; + [DataMember] + public bool SortId; + [DataMember] + public bool Price; + [DataMember] + public bool Reward; + [DataMember] + public bool OldPrice; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeType() + { + return __isset.Type; + } + + public bool ShouldSerializeSortId() + { + return __isset.SortId; + } + + public bool ShouldSerializePrice() + { + return __isset.Price; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + public bool ShouldSerializeOldPrice() + { + return __isset.OldPrice; + } + + #endregion XmlSerializer support + + public BonusValueItem() + { + } + + public BonusValueItem DeepCopy() + { + var tmp0 = new BonusValueItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Type != null) && __isset.Type) + { + tmp0.Type = this.Type; + } + tmp0.__isset.Type = this.__isset.Type; + if(__isset.SortId) + { + tmp0.SortId = this.SortId; + } + tmp0.__isset.SortId = this.__isset.SortId; + if(__isset.Price) + { + tmp0.Price = this.Price; + } + tmp0.__isset.Price = this.__isset.Price; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + if(__isset.OldPrice) + { + tmp0.OldPrice = this.OldPrice; + } + tmp0.__isset.OldPrice = this.__isset.OldPrice; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Type = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + SortId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.Double) + { + Price = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.Double) + { + OldPrice = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("BonusValueItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Type != null) && __isset.Type) + { + tmp2.Name = "Type"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SortId) + { + tmp2.Name = "SortId"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SortId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price) + { + tmp2.Name = "Price"; + tmp2.Type = TType.Double; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.OldPrice) + { + tmp2.Name = "OldPrice"; + tmp2.Type = TType.Double; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(OldPrice, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is BonusValueItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Type == other.__isset.Type) && ((!__isset.Type) || (global::System.Object.Equals(Type, other.Type)))) + && ((__isset.SortId == other.__isset.SortId) && ((!__isset.SortId) || (global::System.Object.Equals(SortId, other.SortId)))) + && ((__isset.Price == other.__isset.Price) && ((!__isset.Price) || (global::System.Object.Equals(Price, other.Price)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))) + && ((__isset.OldPrice == other.__isset.OldPrice) && ((!__isset.OldPrice) || (global::System.Object.Equals(OldPrice, other.OldPrice)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Type != null) && __isset.Type) + { + hashcode = (hashcode * 397) + Type.GetHashCode(); + } + if(__isset.SortId) + { + hashcode = (hashcode * 397) + SortId.GetHashCode(); + } + if(__isset.Price) + { + hashcode = (hashcode * 397) + Price.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + if(__isset.OldPrice) + { + hashcode = (hashcode * 397) + OldPrice.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("BonusValueItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Type != null) && __isset.Type) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Type: "); + Type.ToString(tmp3); + } + if(__isset.SortId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SortId: "); + SortId.ToString(tmp3); + } + if(__isset.Price) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price: "); + Price.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + if(__isset.OldPrice) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("OldPrice: "); + OldPrice.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValueItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValueItem.cs.meta new file mode 100644 index 0000000..bef3c3e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/BonusValueItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8f21be4a256735c4bb2f4d93c11736de +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfg.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfg.Extensions.cs new file mode 100644 index 0000000..503bc19 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfg.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class CardDetailCfgExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfg.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfg.Extensions.cs.meta new file mode 100644 index 0000000..7f84847 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfg.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c7324b9a3164f864daa6fdba7614776c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfg.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfg.cs new file mode 100644 index 0000000..6dc2d4e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfg.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CardDetailCfg : TBase + { + private Dictionary _carddetailcfgs; + + [DataMember(Order = 0)] + public Dictionary Carddetailcfgs + { + get + { + return _carddetailcfgs; + } + set + { + __isset.@carddetailcfgs = true; + this._carddetailcfgs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @carddetailcfgs; + } + + #region XmlSerializer support + + public bool ShouldSerializeCarddetailcfgs() + { + return __isset.@carddetailcfgs; + } + + #endregion XmlSerializer support + + public CardDetailCfg() + { + } + + public CardDetailCfg DeepCopy() + { + var tmp5 = new CardDetailCfg(); + if((Carddetailcfgs != null) && __isset.@carddetailcfgs) + { + tmp5.Carddetailcfgs = this.Carddetailcfgs.DeepCopy(); + } + tmp5.__isset.@carddetailcfgs = this.__isset.@carddetailcfgs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Carddetailcfgs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.CardDetailCfgItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.CardDetailCfgItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Carddetailcfgs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("CardDetailCfg"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Carddetailcfgs != null) && __isset.@carddetailcfgs) + { + tmp11.Name = "carddetailcfgs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Carddetailcfgs.Count), cancellationToken); + foreach (int _iter12 in Carddetailcfgs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Carddetailcfgs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CardDetailCfg other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@carddetailcfgs == other.__isset.@carddetailcfgs) && ((!__isset.@carddetailcfgs) || (TCollections.Equals(Carddetailcfgs, other.Carddetailcfgs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Carddetailcfgs != null) && __isset.@carddetailcfgs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Carddetailcfgs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("CardDetailCfg("); + int tmp14 = 0; + if((Carddetailcfgs != null) && __isset.@carddetailcfgs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Carddetailcfgs: "); + Carddetailcfgs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfg.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfg.cs.meta new file mode 100644 index 0000000..f348304 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 43dc95cd241dbb24ca4de1fb2d116705 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfgItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfgItem.cs new file mode 100644 index 0000000..81ba6be --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfgItem.cs @@ -0,0 +1,651 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CardDetailCfgItem : TBase + { + private int _Id; + private int _PictureAlbum; + private string _Icon; + private int _Color; + private int _Star; + private string _ImageRes; + private int _IsGold; + private string _Name; + private int _Round; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int PictureAlbum + { + get + { + return _PictureAlbum; + } + set + { + __isset.PictureAlbum = true; + this._PictureAlbum = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public int Color + { + get + { + return _Color; + } + set + { + __isset.Color = true; + this._Color = value; + } + } + + [DataMember(Order = 0)] + public int Star + { + get + { + return _Star; + } + set + { + __isset.Star = true; + this._Star = value; + } + } + + [DataMember(Order = 0)] + public string ImageRes + { + get + { + return _ImageRes; + } + set + { + __isset.ImageRes = true; + this._ImageRes = value; + } + } + + [DataMember(Order = 0)] + public int IsGold + { + get + { + return _IsGold; + } + set + { + __isset.IsGold = true; + this._IsGold = value; + } + } + + [DataMember(Order = 0)] + public string Name + { + get + { + return _Name; + } + set + { + __isset.Name = true; + this._Name = value; + } + } + + [DataMember(Order = 0)] + public int Round + { + get + { + return _Round; + } + set + { + __isset.Round = true; + this._Round = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool PictureAlbum; + [DataMember] + public bool Icon; + [DataMember] + public bool Color; + [DataMember] + public bool Star; + [DataMember] + public bool ImageRes; + [DataMember] + public bool IsGold; + [DataMember] + public bool Name; + [DataMember] + public bool Round; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializePictureAlbum() + { + return __isset.PictureAlbum; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeColor() + { + return __isset.Color; + } + + public bool ShouldSerializeStar() + { + return __isset.Star; + } + + public bool ShouldSerializeImageRes() + { + return __isset.ImageRes; + } + + public bool ShouldSerializeIsGold() + { + return __isset.IsGold; + } + + public bool ShouldSerializeName() + { + return __isset.Name; + } + + public bool ShouldSerializeRound() + { + return __isset.Round; + } + + #endregion XmlSerializer support + + public CardDetailCfgItem() + { + } + + public CardDetailCfgItem DeepCopy() + { + var tmp0 = new CardDetailCfgItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.PictureAlbum) + { + tmp0.PictureAlbum = this.PictureAlbum; + } + tmp0.__isset.PictureAlbum = this.__isset.PictureAlbum; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if(__isset.Color) + { + tmp0.Color = this.Color; + } + tmp0.__isset.Color = this.__isset.Color; + if(__isset.Star) + { + tmp0.Star = this.Star; + } + tmp0.__isset.Star = this.__isset.Star; + if((ImageRes != null) && __isset.ImageRes) + { + tmp0.ImageRes = this.ImageRes; + } + tmp0.__isset.ImageRes = this.__isset.ImageRes; + if(__isset.IsGold) + { + tmp0.IsGold = this.IsGold; + } + tmp0.__isset.IsGold = this.__isset.IsGold; + if((Name != null) && __isset.Name) + { + tmp0.Name = this.Name; + } + tmp0.__isset.Name = this.__isset.Name; + if(__isset.Round) + { + tmp0.Round = this.Round; + } + tmp0.__isset.Round = this.__isset.Round; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + PictureAlbum = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + Color = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + Star = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + ImageRes = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.I32) + { + IsGold = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + Name = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I32) + { + Round = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("CardDetailCfgItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.PictureAlbum) + { + tmp2.Name = "PictureAlbum"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(PictureAlbum, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Color) + { + tmp2.Name = "Color"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Color, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Star) + { + tmp2.Name = "Star"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Star, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ImageRes != null) && __isset.ImageRes) + { + tmp2.Name = "ImageRes"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ImageRes, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.IsGold) + { + tmp2.Name = "IsGold"; + tmp2.Type = TType.I32; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(IsGold, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Name != null) && __isset.Name) + { + tmp2.Name = "Name"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Round) + { + tmp2.Name = "Round"; + tmp2.Type = TType.I32; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Round, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CardDetailCfgItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.PictureAlbum == other.__isset.PictureAlbum) && ((!__isset.PictureAlbum) || (global::System.Object.Equals(PictureAlbum, other.PictureAlbum)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Color == other.__isset.Color) && ((!__isset.Color) || (global::System.Object.Equals(Color, other.Color)))) + && ((__isset.Star == other.__isset.Star) && ((!__isset.Star) || (global::System.Object.Equals(Star, other.Star)))) + && ((__isset.ImageRes == other.__isset.ImageRes) && ((!__isset.ImageRes) || (global::System.Object.Equals(ImageRes, other.ImageRes)))) + && ((__isset.IsGold == other.__isset.IsGold) && ((!__isset.IsGold) || (global::System.Object.Equals(IsGold, other.IsGold)))) + && ((__isset.Name == other.__isset.Name) && ((!__isset.Name) || (global::System.Object.Equals(Name, other.Name)))) + && ((__isset.Round == other.__isset.Round) && ((!__isset.Round) || (global::System.Object.Equals(Round, other.Round)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.PictureAlbum) + { + hashcode = (hashcode * 397) + PictureAlbum.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if(__isset.Color) + { + hashcode = (hashcode * 397) + Color.GetHashCode(); + } + if(__isset.Star) + { + hashcode = (hashcode * 397) + Star.GetHashCode(); + } + if((ImageRes != null) && __isset.ImageRes) + { + hashcode = (hashcode * 397) + ImageRes.GetHashCode(); + } + if(__isset.IsGold) + { + hashcode = (hashcode * 397) + IsGold.GetHashCode(); + } + if((Name != null) && __isset.Name) + { + hashcode = (hashcode * 397) + Name.GetHashCode(); + } + if(__isset.Round) + { + hashcode = (hashcode * 397) + Round.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("CardDetailCfgItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.PictureAlbum) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PictureAlbum: "); + PictureAlbum.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if(__isset.Color) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Color: "); + Color.ToString(tmp3); + } + if(__isset.Star) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Star: "); + Star.ToString(tmp3); + } + if((ImageRes != null) && __isset.ImageRes) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ImageRes: "); + ImageRes.ToString(tmp3); + } + if(__isset.IsGold) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("IsGold: "); + IsGold.ToString(tmp3); + } + if((Name != null) && __isset.Name) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Name: "); + Name.ToString(tmp3); + } + if(__isset.Round) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Round: "); + Round.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfgItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfgItem.cs.meta new file mode 100644 index 0000000..c7fb837 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardDetailCfgItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1e5287a55e65bf64d853a9a81a433818 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfg.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfg.Extensions.cs new file mode 100644 index 0000000..7b0884f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfg.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class CardPackCfgExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfg.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfg.Extensions.cs.meta new file mode 100644 index 0000000..43ec031 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfg.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f51b6aac0c7e8684097a3cf4240f8b7d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfg.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfg.cs new file mode 100644 index 0000000..906f327 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfg.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CardPackCfg : TBase + { + private Dictionary _cardpackcfgs; + + [DataMember(Order = 0)] + public Dictionary Cardpackcfgs + { + get + { + return _cardpackcfgs; + } + set + { + __isset.@cardpackcfgs = true; + this._cardpackcfgs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @cardpackcfgs; + } + + #region XmlSerializer support + + public bool ShouldSerializeCardpackcfgs() + { + return __isset.@cardpackcfgs; + } + + #endregion XmlSerializer support + + public CardPackCfg() + { + } + + public CardPackCfg DeepCopy() + { + var tmp5 = new CardPackCfg(); + if((Cardpackcfgs != null) && __isset.@cardpackcfgs) + { + tmp5.Cardpackcfgs = this.Cardpackcfgs.DeepCopy(); + } + tmp5.__isset.@cardpackcfgs = this.__isset.@cardpackcfgs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Cardpackcfgs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.CardPackCfgItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.CardPackCfgItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Cardpackcfgs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("CardPackCfg"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Cardpackcfgs != null) && __isset.@cardpackcfgs) + { + tmp11.Name = "cardpackcfgs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Cardpackcfgs.Count), cancellationToken); + foreach (int _iter12 in Cardpackcfgs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Cardpackcfgs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CardPackCfg other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@cardpackcfgs == other.__isset.@cardpackcfgs) && ((!__isset.@cardpackcfgs) || (TCollections.Equals(Cardpackcfgs, other.Cardpackcfgs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Cardpackcfgs != null) && __isset.@cardpackcfgs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Cardpackcfgs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("CardPackCfg("); + int tmp14 = 0; + if((Cardpackcfgs != null) && __isset.@cardpackcfgs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Cardpackcfgs: "); + Cardpackcfgs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfg.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfg.cs.meta new file mode 100644 index 0000000..505709c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4ac4f382a99048841899db2eb277a67a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfgItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfgItem.cs new file mode 100644 index 0000000..3867f08 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfgItem.cs @@ -0,0 +1,480 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CardPackCfgItem : TBase + { + private int _Id; + private string _Icon; + private int _Color; + private string _Name; + private int _RewardCnt; + private int _GoldRate; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public int Color + { + get + { + return _Color; + } + set + { + __isset.Color = true; + this._Color = value; + } + } + + [DataMember(Order = 0)] + public string Name + { + get + { + return _Name; + } + set + { + __isset.Name = true; + this._Name = value; + } + } + + [DataMember(Order = 0)] + public int RewardCnt + { + get + { + return _RewardCnt; + } + set + { + __isset.RewardCnt = true; + this._RewardCnt = value; + } + } + + [DataMember(Order = 0)] + public int GoldRate + { + get + { + return _GoldRate; + } + set + { + __isset.GoldRate = true; + this._GoldRate = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Icon; + [DataMember] + public bool Color; + [DataMember] + public bool Name; + [DataMember] + public bool RewardCnt; + [DataMember] + public bool GoldRate; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeColor() + { + return __isset.Color; + } + + public bool ShouldSerializeName() + { + return __isset.Name; + } + + public bool ShouldSerializeRewardCnt() + { + return __isset.RewardCnt; + } + + public bool ShouldSerializeGoldRate() + { + return __isset.GoldRate; + } + + #endregion XmlSerializer support + + public CardPackCfgItem() + { + } + + public CardPackCfgItem DeepCopy() + { + var tmp0 = new CardPackCfgItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if(__isset.Color) + { + tmp0.Color = this.Color; + } + tmp0.__isset.Color = this.__isset.Color; + if((Name != null) && __isset.Name) + { + tmp0.Name = this.Name; + } + tmp0.__isset.Name = this.__isset.Name; + if(__isset.RewardCnt) + { + tmp0.RewardCnt = this.RewardCnt; + } + tmp0.__isset.RewardCnt = this.__isset.RewardCnt; + if(__isset.GoldRate) + { + tmp0.GoldRate = this.GoldRate; + } + tmp0.__isset.GoldRate = this.__isset.GoldRate; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Color = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Name = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + RewardCnt = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I32) + { + GoldRate = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("CardPackCfgItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Color) + { + tmp2.Name = "Color"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Color, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Name != null) && __isset.Name) + { + tmp2.Name = "Name"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.RewardCnt) + { + tmp2.Name = "RewardCnt"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(RewardCnt, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.GoldRate) + { + tmp2.Name = "GoldRate"; + tmp2.Type = TType.I32; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(GoldRate, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CardPackCfgItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Color == other.__isset.Color) && ((!__isset.Color) || (global::System.Object.Equals(Color, other.Color)))) + && ((__isset.Name == other.__isset.Name) && ((!__isset.Name) || (global::System.Object.Equals(Name, other.Name)))) + && ((__isset.RewardCnt == other.__isset.RewardCnt) && ((!__isset.RewardCnt) || (global::System.Object.Equals(RewardCnt, other.RewardCnt)))) + && ((__isset.GoldRate == other.__isset.GoldRate) && ((!__isset.GoldRate) || (global::System.Object.Equals(GoldRate, other.GoldRate)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if(__isset.Color) + { + hashcode = (hashcode * 397) + Color.GetHashCode(); + } + if((Name != null) && __isset.Name) + { + hashcode = (hashcode * 397) + Name.GetHashCode(); + } + if(__isset.RewardCnt) + { + hashcode = (hashcode * 397) + RewardCnt.GetHashCode(); + } + if(__isset.GoldRate) + { + hashcode = (hashcode * 397) + GoldRate.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("CardPackCfgItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if(__isset.Color) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Color: "); + Color.ToString(tmp3); + } + if((Name != null) && __isset.Name) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Name: "); + Name.ToString(tmp3); + } + if(__isset.RewardCnt) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardCnt: "); + RewardCnt.ToString(tmp3); + } + if(__isset.GoldRate) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GoldRate: "); + GoldRate.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfgItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfgItem.cs.meta new file mode 100644 index 0000000..73f2b1f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardPackCfgItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4b316da1ce29fb645bbfe047479560f6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfg.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfg.Extensions.cs new file mode 100644 index 0000000..92d95eb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfg.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class CardStickerExchangeCfgExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfg.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfg.Extensions.cs.meta new file mode 100644 index 0000000..86ea53f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfg.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bb28e186d03803a498eaf32b75b4acf3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfg.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfg.cs new file mode 100644 index 0000000..d16bee2 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfg.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CardStickerExchangeCfg : TBase + { + private Dictionary _cardstickerexchangecfgs; + + [DataMember(Order = 0)] + public Dictionary Cardstickerexchangecfgs + { + get + { + return _cardstickerexchangecfgs; + } + set + { + __isset.@cardstickerexchangecfgs = true; + this._cardstickerexchangecfgs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @cardstickerexchangecfgs; + } + + #region XmlSerializer support + + public bool ShouldSerializeCardstickerexchangecfgs() + { + return __isset.@cardstickerexchangecfgs; + } + + #endregion XmlSerializer support + + public CardStickerExchangeCfg() + { + } + + public CardStickerExchangeCfg DeepCopy() + { + var tmp5 = new CardStickerExchangeCfg(); + if((Cardstickerexchangecfgs != null) && __isset.@cardstickerexchangecfgs) + { + tmp5.Cardstickerexchangecfgs = this.Cardstickerexchangecfgs.DeepCopy(); + } + tmp5.__isset.@cardstickerexchangecfgs = this.__isset.@cardstickerexchangecfgs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Cardstickerexchangecfgs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.CardStickerExchangeCfgItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.CardStickerExchangeCfgItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Cardstickerexchangecfgs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("CardStickerExchangeCfg"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Cardstickerexchangecfgs != null) && __isset.@cardstickerexchangecfgs) + { + tmp11.Name = "cardstickerexchangecfgs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Cardstickerexchangecfgs.Count), cancellationToken); + foreach (int _iter12 in Cardstickerexchangecfgs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Cardstickerexchangecfgs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CardStickerExchangeCfg other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@cardstickerexchangecfgs == other.__isset.@cardstickerexchangecfgs) && ((!__isset.@cardstickerexchangecfgs) || (TCollections.Equals(Cardstickerexchangecfgs, other.Cardstickerexchangecfgs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Cardstickerexchangecfgs != null) && __isset.@cardstickerexchangecfgs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Cardstickerexchangecfgs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("CardStickerExchangeCfg("); + int tmp14 = 0; + if((Cardstickerexchangecfgs != null) && __isset.@cardstickerexchangecfgs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Cardstickerexchangecfgs: "); + Cardstickerexchangecfgs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfg.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfg.cs.meta new file mode 100644 index 0000000..71b767e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 553d3804dd24e334787eb569680e7455 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfgItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfgItem.cs new file mode 100644 index 0000000..aa42f1c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfgItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CardStickerExchangeCfgItem : TBase + { + private int _Id; + private string _Icon; + private int _Cost; + private string _RewardId; + private string _RewardCnt; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public int Cost + { + get + { + return _Cost; + } + set + { + __isset.Cost = true; + this._Cost = value; + } + } + + [DataMember(Order = 0)] + public string RewardId + { + get + { + return _RewardId; + } + set + { + __isset.RewardId = true; + this._RewardId = value; + } + } + + [DataMember(Order = 0)] + public string RewardCnt + { + get + { + return _RewardCnt; + } + set + { + __isset.RewardCnt = true; + this._RewardCnt = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Icon; + [DataMember] + public bool Cost; + [DataMember] + public bool RewardId; + [DataMember] + public bool RewardCnt; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeCost() + { + return __isset.Cost; + } + + public bool ShouldSerializeRewardId() + { + return __isset.RewardId; + } + + public bool ShouldSerializeRewardCnt() + { + return __isset.RewardCnt; + } + + #endregion XmlSerializer support + + public CardStickerExchangeCfgItem() + { + } + + public CardStickerExchangeCfgItem DeepCopy() + { + var tmp0 = new CardStickerExchangeCfgItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if(__isset.Cost) + { + tmp0.Cost = this.Cost; + } + tmp0.__isset.Cost = this.__isset.Cost; + if((RewardId != null) && __isset.RewardId) + { + tmp0.RewardId = this.RewardId; + } + tmp0.__isset.RewardId = this.__isset.RewardId; + if((RewardCnt != null) && __isset.RewardCnt) + { + tmp0.RewardCnt = this.RewardCnt; + } + tmp0.__isset.RewardCnt = this.__isset.RewardCnt; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Cost = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + RewardId = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + RewardCnt = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("CardStickerExchangeCfgItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Cost) + { + tmp2.Name = "Cost"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Cost, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardId != null) && __isset.RewardId) + { + tmp2.Name = "RewardId"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + tmp2.Name = "RewardCnt"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardCnt, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CardStickerExchangeCfgItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Cost == other.__isset.Cost) && ((!__isset.Cost) || (global::System.Object.Equals(Cost, other.Cost)))) + && ((__isset.RewardId == other.__isset.RewardId) && ((!__isset.RewardId) || (global::System.Object.Equals(RewardId, other.RewardId)))) + && ((__isset.RewardCnt == other.__isset.RewardCnt) && ((!__isset.RewardCnt) || (global::System.Object.Equals(RewardCnt, other.RewardCnt)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if(__isset.Cost) + { + hashcode = (hashcode * 397) + Cost.GetHashCode(); + } + if((RewardId != null) && __isset.RewardId) + { + hashcode = (hashcode * 397) + RewardId.GetHashCode(); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + hashcode = (hashcode * 397) + RewardCnt.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("CardStickerExchangeCfgItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if(__isset.Cost) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Cost: "); + Cost.ToString(tmp3); + } + if((RewardId != null) && __isset.RewardId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardId: "); + RewardId.ToString(tmp3); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardCnt: "); + RewardCnt.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfgItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfgItem.cs.meta new file mode 100644 index 0000000..85c4004 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CardStickerExchangeCfgItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bdb1bb4e070010141847d27c4ff24513 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickData.Extensions.cs new file mode 100644 index 0000000..1c4bfbb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class CatTrickDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickData.Extensions.cs.meta new file mode 100644 index 0000000..636fdfd --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a3561834c6b72534cbb0b3a82f53d13c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickData.cs new file mode 100644 index 0000000..4b0b5c1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CatTrickData : TBase + { + private Dictionary _cattrickdatas; + + [DataMember(Order = 0)] + public Dictionary Cattrickdatas + { + get + { + return _cattrickdatas; + } + set + { + __isset.@cattrickdatas = true; + this._cattrickdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @cattrickdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeCattrickdatas() + { + return __isset.@cattrickdatas; + } + + #endregion XmlSerializer support + + public CatTrickData() + { + } + + public CatTrickData DeepCopy() + { + var tmp5 = new CatTrickData(); + if((Cattrickdatas != null) && __isset.@cattrickdatas) + { + tmp5.Cattrickdatas = this.Cattrickdatas.DeepCopy(); + } + tmp5.__isset.@cattrickdatas = this.__isset.@cattrickdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Cattrickdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.CatTrickDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.CatTrickDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Cattrickdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("CatTrickData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Cattrickdatas != null) && __isset.@cattrickdatas) + { + tmp11.Name = "cattrickdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Cattrickdatas.Count), cancellationToken); + foreach (int _iter12 in Cattrickdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Cattrickdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CatTrickData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@cattrickdatas == other.__isset.@cattrickdatas) && ((!__isset.@cattrickdatas) || (TCollections.Equals(Cattrickdatas, other.Cattrickdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Cattrickdatas != null) && __isset.@cattrickdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Cattrickdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("CatTrickData("); + int tmp14 = 0; + if((Cattrickdatas != null) && __isset.@cattrickdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Cattrickdatas: "); + Cattrickdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickData.cs.meta new file mode 100644 index 0000000..1d6f89b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a61181f82cc0251459a16a10e6d81678 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickDataItem.cs new file mode 100644 index 0000000..94bcd84 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickDataItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CatTrickDataItem : TBase + { + private int _Id; + private int _Type; + private int _Duration; + private int _Diamond; + private int _Energy; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Type + { + get + { + return _Type; + } + set + { + __isset.Type = true; + this._Type = value; + } + } + + [DataMember(Order = 0)] + public int Duration + { + get + { + return _Duration; + } + set + { + __isset.Duration = true; + this._Duration = value; + } + } + + [DataMember(Order = 0)] + public int Diamond + { + get + { + return _Diamond; + } + set + { + __isset.Diamond = true; + this._Diamond = value; + } + } + + [DataMember(Order = 0)] + public int Energy + { + get + { + return _Energy; + } + set + { + __isset.Energy = true; + this._Energy = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Type; + [DataMember] + public bool Duration; + [DataMember] + public bool Diamond; + [DataMember] + public bool Energy; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeType() + { + return __isset.Type; + } + + public bool ShouldSerializeDuration() + { + return __isset.Duration; + } + + public bool ShouldSerializeDiamond() + { + return __isset.Diamond; + } + + public bool ShouldSerializeEnergy() + { + return __isset.Energy; + } + + #endregion XmlSerializer support + + public CatTrickDataItem() + { + } + + public CatTrickDataItem DeepCopy() + { + var tmp0 = new CatTrickDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Type) + { + tmp0.Type = this.Type; + } + tmp0.__isset.Type = this.__isset.Type; + if(__isset.Duration) + { + tmp0.Duration = this.Duration; + } + tmp0.__isset.Duration = this.__isset.Duration; + if(__isset.Diamond) + { + tmp0.Diamond = this.Diamond; + } + tmp0.__isset.Diamond = this.__isset.Diamond; + if(__isset.Energy) + { + tmp0.Energy = this.Energy; + } + tmp0.__isset.Energy = this.__isset.Energy; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Type = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Duration = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + Diamond = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + Energy = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("CatTrickDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Type) + { + tmp2.Name = "Type"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Duration) + { + tmp2.Name = "Duration"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Duration, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Diamond) + { + tmp2.Name = "Diamond"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Diamond, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Energy) + { + tmp2.Name = "Energy"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Energy, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CatTrickDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Type == other.__isset.Type) && ((!__isset.Type) || (global::System.Object.Equals(Type, other.Type)))) + && ((__isset.Duration == other.__isset.Duration) && ((!__isset.Duration) || (global::System.Object.Equals(Duration, other.Duration)))) + && ((__isset.Diamond == other.__isset.Diamond) && ((!__isset.Diamond) || (global::System.Object.Equals(Diamond, other.Diamond)))) + && ((__isset.Energy == other.__isset.Energy) && ((!__isset.Energy) || (global::System.Object.Equals(Energy, other.Energy)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Type) + { + hashcode = (hashcode * 397) + Type.GetHashCode(); + } + if(__isset.Duration) + { + hashcode = (hashcode * 397) + Duration.GetHashCode(); + } + if(__isset.Diamond) + { + hashcode = (hashcode * 397) + Diamond.GetHashCode(); + } + if(__isset.Energy) + { + hashcode = (hashcode * 397) + Energy.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("CatTrickDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Type) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Type: "); + Type.ToString(tmp3); + } + if(__isset.Duration) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Duration: "); + Duration.ToString(tmp3); + } + if(__isset.Diamond) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Diamond: "); + Diamond.ToString(tmp3); + } + if(__isset.Energy) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Energy: "); + Energy.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickDataItem.cs.meta new file mode 100644 index 0000000..a810335 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatTrickDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b5d1fd996ed8b7940a799e98fda70e3c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyData.Extensions.cs new file mode 100644 index 0000000..67af0ab --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class CatsGardenMultiplyDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyData.Extensions.cs.meta new file mode 100644 index 0000000..fd51a68 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 928158da3e41f264e8b23634b4af866d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyData.cs new file mode 100644 index 0000000..5d2a40b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CatsGardenMultiplyData : TBase + { + private Dictionary _catsgardenmultiplydatas; + + [DataMember(Order = 0)] + public Dictionary Catsgardenmultiplydatas + { + get + { + return _catsgardenmultiplydatas; + } + set + { + __isset.@catsgardenmultiplydatas = true; + this._catsgardenmultiplydatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @catsgardenmultiplydatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeCatsgardenmultiplydatas() + { + return __isset.@catsgardenmultiplydatas; + } + + #endregion XmlSerializer support + + public CatsGardenMultiplyData() + { + } + + public CatsGardenMultiplyData DeepCopy() + { + var tmp5 = new CatsGardenMultiplyData(); + if((Catsgardenmultiplydatas != null) && __isset.@catsgardenmultiplydatas) + { + tmp5.Catsgardenmultiplydatas = this.Catsgardenmultiplydatas.DeepCopy(); + } + tmp5.__isset.@catsgardenmultiplydatas = this.__isset.@catsgardenmultiplydatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Catsgardenmultiplydatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.CatsGardenMultiplyDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.CatsGardenMultiplyDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Catsgardenmultiplydatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("CatsGardenMultiplyData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Catsgardenmultiplydatas != null) && __isset.@catsgardenmultiplydatas) + { + tmp11.Name = "catsgardenmultiplydatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Catsgardenmultiplydatas.Count), cancellationToken); + foreach (int _iter12 in Catsgardenmultiplydatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Catsgardenmultiplydatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CatsGardenMultiplyData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@catsgardenmultiplydatas == other.__isset.@catsgardenmultiplydatas) && ((!__isset.@catsgardenmultiplydatas) || (TCollections.Equals(Catsgardenmultiplydatas, other.Catsgardenmultiplydatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Catsgardenmultiplydatas != null) && __isset.@catsgardenmultiplydatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Catsgardenmultiplydatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("CatsGardenMultiplyData("); + int tmp14 = 0; + if((Catsgardenmultiplydatas != null) && __isset.@catsgardenmultiplydatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Catsgardenmultiplydatas: "); + Catsgardenmultiplydatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyData.cs.meta new file mode 100644 index 0000000..4e8a13a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 467b7a355b08d3c44ac4a8398893833c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyDataItem.cs new file mode 100644 index 0000000..4c7ffea --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyDataItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CatsGardenMultiplyDataItem : TBase + { + private int _Id; + private int _Low; + private int _Mid; + private int _High; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Low + { + get + { + return _Low; + } + set + { + __isset.Low = true; + this._Low = value; + } + } + + [DataMember(Order = 0)] + public int Mid + { + get + { + return _Mid; + } + set + { + __isset.Mid = true; + this._Mid = value; + } + } + + [DataMember(Order = 0)] + public int High + { + get + { + return _High; + } + set + { + __isset.High = true; + this._High = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Low; + [DataMember] + public bool Mid; + [DataMember] + public bool High; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeLow() + { + return __isset.Low; + } + + public bool ShouldSerializeMid() + { + return __isset.Mid; + } + + public bool ShouldSerializeHigh() + { + return __isset.High; + } + + #endregion XmlSerializer support + + public CatsGardenMultiplyDataItem() + { + } + + public CatsGardenMultiplyDataItem DeepCopy() + { + var tmp0 = new CatsGardenMultiplyDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Low) + { + tmp0.Low = this.Low; + } + tmp0.__isset.Low = this.__isset.Low; + if(__isset.Mid) + { + tmp0.Mid = this.Mid; + } + tmp0.__isset.Mid = this.__isset.Mid; + if(__isset.High) + { + tmp0.High = this.High; + } + tmp0.__isset.High = this.__isset.High; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Low = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Mid = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + High = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("CatsGardenMultiplyDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Low) + { + tmp2.Name = "Low"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Low, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Mid) + { + tmp2.Name = "Mid"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Mid, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.High) + { + tmp2.Name = "High"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(High, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CatsGardenMultiplyDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Low == other.__isset.Low) && ((!__isset.Low) || (global::System.Object.Equals(Low, other.Low)))) + && ((__isset.Mid == other.__isset.Mid) && ((!__isset.Mid) || (global::System.Object.Equals(Mid, other.Mid)))) + && ((__isset.High == other.__isset.High) && ((!__isset.High) || (global::System.Object.Equals(High, other.High)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Low) + { + hashcode = (hashcode * 397) + Low.GetHashCode(); + } + if(__isset.Mid) + { + hashcode = (hashcode * 397) + Mid.GetHashCode(); + } + if(__isset.High) + { + hashcode = (hashcode * 397) + High.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("CatsGardenMultiplyDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Low) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Low: "); + Low.ToString(tmp3); + } + if(__isset.Mid) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Mid: "); + Mid.ToString(tmp3); + } + if(__isset.High) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("High: "); + High.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyDataItem.cs.meta new file mode 100644 index 0000000..790a765 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenMultiplyDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 659a680a1acb5dc4b8472cfc478bd6c6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressData.Extensions.cs new file mode 100644 index 0000000..0e143e3 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class CatsGardenProgressDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressData.Extensions.cs.meta new file mode 100644 index 0000000..69a5284 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fe9a11fc79447d9418d762735ddd31b5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressData.cs new file mode 100644 index 0000000..717e4f1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CatsGardenProgressData : TBase + { + private Dictionary _catsgardenprogressdatas; + + [DataMember(Order = 0)] + public Dictionary Catsgardenprogressdatas + { + get + { + return _catsgardenprogressdatas; + } + set + { + __isset.@catsgardenprogressdatas = true; + this._catsgardenprogressdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @catsgardenprogressdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeCatsgardenprogressdatas() + { + return __isset.@catsgardenprogressdatas; + } + + #endregion XmlSerializer support + + public CatsGardenProgressData() + { + } + + public CatsGardenProgressData DeepCopy() + { + var tmp5 = new CatsGardenProgressData(); + if((Catsgardenprogressdatas != null) && __isset.@catsgardenprogressdatas) + { + tmp5.Catsgardenprogressdatas = this.Catsgardenprogressdatas.DeepCopy(); + } + tmp5.__isset.@catsgardenprogressdatas = this.__isset.@catsgardenprogressdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Catsgardenprogressdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.CatsGardenProgressDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.CatsGardenProgressDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Catsgardenprogressdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("CatsGardenProgressData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Catsgardenprogressdatas != null) && __isset.@catsgardenprogressdatas) + { + tmp11.Name = "catsgardenprogressdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Catsgardenprogressdatas.Count), cancellationToken); + foreach (int _iter12 in Catsgardenprogressdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Catsgardenprogressdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CatsGardenProgressData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@catsgardenprogressdatas == other.__isset.@catsgardenprogressdatas) && ((!__isset.@catsgardenprogressdatas) || (TCollections.Equals(Catsgardenprogressdatas, other.Catsgardenprogressdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Catsgardenprogressdatas != null) && __isset.@catsgardenprogressdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Catsgardenprogressdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("CatsGardenProgressData("); + int tmp14 = 0; + if((Catsgardenprogressdatas != null) && __isset.@catsgardenprogressdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Catsgardenprogressdatas: "); + Catsgardenprogressdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressData.cs.meta new file mode 100644 index 0000000..bc858ef --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 500d11bf3c39b5b45b639e197adc26b3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressDataItem.cs new file mode 100644 index 0000000..e4f3ded --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressDataItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CatsGardenProgressDataItem : TBase + { + private int _Id; + private int _Template; + private int _Need; + private string _Items; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Template + { + get + { + return _Template; + } + set + { + __isset.Template = true; + this._Template = value; + } + } + + [DataMember(Order = 0)] + public int Need + { + get + { + return _Need; + } + set + { + __isset.Need = true; + this._Need = value; + } + } + + [DataMember(Order = 0)] + public string Items + { + get + { + return _Items; + } + set + { + __isset.Items = true; + this._Items = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Template; + [DataMember] + public bool Need; + [DataMember] + public bool Items; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeTemplate() + { + return __isset.Template; + } + + public bool ShouldSerializeNeed() + { + return __isset.Need; + } + + public bool ShouldSerializeItems() + { + return __isset.Items; + } + + #endregion XmlSerializer support + + public CatsGardenProgressDataItem() + { + } + + public CatsGardenProgressDataItem DeepCopy() + { + var tmp0 = new CatsGardenProgressDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Template) + { + tmp0.Template = this.Template; + } + tmp0.__isset.Template = this.__isset.Template; + if(__isset.Need) + { + tmp0.Need = this.Need; + } + tmp0.__isset.Need = this.__isset.Need; + if((Items != null) && __isset.Items) + { + tmp0.Items = this.Items; + } + tmp0.__isset.Items = this.__isset.Items; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Template = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Need = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Items = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("CatsGardenProgressDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Template) + { + tmp2.Name = "Template"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Template, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Need) + { + tmp2.Name = "Need"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Need, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Items != null) && __isset.Items) + { + tmp2.Name = "Items"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Items, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CatsGardenProgressDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Template == other.__isset.Template) && ((!__isset.Template) || (global::System.Object.Equals(Template, other.Template)))) + && ((__isset.Need == other.__isset.Need) && ((!__isset.Need) || (global::System.Object.Equals(Need, other.Need)))) + && ((__isset.Items == other.__isset.Items) && ((!__isset.Items) || (global::System.Object.Equals(Items, other.Items)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Template) + { + hashcode = (hashcode * 397) + Template.GetHashCode(); + } + if(__isset.Need) + { + hashcode = (hashcode * 397) + Need.GetHashCode(); + } + if((Items != null) && __isset.Items) + { + hashcode = (hashcode * 397) + Items.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("CatsGardenProgressDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Template) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Template: "); + Template.ToString(tmp3); + } + if(__isset.Need) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Need: "); + Need.ToString(tmp3); + } + if((Items != null) && __isset.Items) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Items: "); + Items.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressDataItem.cs.meta new file mode 100644 index 0000000..5b423e8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenProgressDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b36347887d175484e9b02d6663d065e8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotData.Extensions.cs new file mode 100644 index 0000000..53eab23 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class CatsGardenSlotDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotData.Extensions.cs.meta new file mode 100644 index 0000000..d3d8e46 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 989a7a412ea70894b9a7c5634b9c8f6b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotData.cs new file mode 100644 index 0000000..db49ee6 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CatsGardenSlotData : TBase + { + private Dictionary _catsgardenslotdatas; + + [DataMember(Order = 0)] + public Dictionary Catsgardenslotdatas + { + get + { + return _catsgardenslotdatas; + } + set + { + __isset.@catsgardenslotdatas = true; + this._catsgardenslotdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @catsgardenslotdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeCatsgardenslotdatas() + { + return __isset.@catsgardenslotdatas; + } + + #endregion XmlSerializer support + + public CatsGardenSlotData() + { + } + + public CatsGardenSlotData DeepCopy() + { + var tmp5 = new CatsGardenSlotData(); + if((Catsgardenslotdatas != null) && __isset.@catsgardenslotdatas) + { + tmp5.Catsgardenslotdatas = this.Catsgardenslotdatas.DeepCopy(); + } + tmp5.__isset.@catsgardenslotdatas = this.__isset.@catsgardenslotdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Catsgardenslotdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.CatsGardenSlotDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.CatsGardenSlotDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Catsgardenslotdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("CatsGardenSlotData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Catsgardenslotdatas != null) && __isset.@catsgardenslotdatas) + { + tmp11.Name = "catsgardenslotdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Catsgardenslotdatas.Count), cancellationToken); + foreach (int _iter12 in Catsgardenslotdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Catsgardenslotdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CatsGardenSlotData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@catsgardenslotdatas == other.__isset.@catsgardenslotdatas) && ((!__isset.@catsgardenslotdatas) || (TCollections.Equals(Catsgardenslotdatas, other.Catsgardenslotdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Catsgardenslotdatas != null) && __isset.@catsgardenslotdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Catsgardenslotdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("CatsGardenSlotData("); + int tmp14 = 0; + if((Catsgardenslotdatas != null) && __isset.@catsgardenslotdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Catsgardenslotdatas: "); + Catsgardenslotdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotData.cs.meta new file mode 100644 index 0000000..d26a89b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5bf44415b001f864c8de3d2e378d69b6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotDataItem.cs new file mode 100644 index 0000000..76d19ad --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotDataItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CatsGardenSlotDataItem : TBase + { + private int _Id; + private string _Items; + private string _FriendItems; + private int _Type; + private int _Growth; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Items + { + get + { + return _Items; + } + set + { + __isset.Items = true; + this._Items = value; + } + } + + [DataMember(Order = 0)] + public string FriendItems + { + get + { + return _FriendItems; + } + set + { + __isset.FriendItems = true; + this._FriendItems = value; + } + } + + [DataMember(Order = 0)] + public int Type + { + get + { + return _Type; + } + set + { + __isset.Type = true; + this._Type = value; + } + } + + [DataMember(Order = 0)] + public int Growth + { + get + { + return _Growth; + } + set + { + __isset.Growth = true; + this._Growth = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Items; + [DataMember] + public bool FriendItems; + [DataMember] + public bool Type; + [DataMember] + public bool Growth; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeItems() + { + return __isset.Items; + } + + public bool ShouldSerializeFriendItems() + { + return __isset.FriendItems; + } + + public bool ShouldSerializeType() + { + return __isset.Type; + } + + public bool ShouldSerializeGrowth() + { + return __isset.Growth; + } + + #endregion XmlSerializer support + + public CatsGardenSlotDataItem() + { + } + + public CatsGardenSlotDataItem DeepCopy() + { + var tmp0 = new CatsGardenSlotDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Items != null) && __isset.Items) + { + tmp0.Items = this.Items; + } + tmp0.__isset.Items = this.__isset.Items; + if((FriendItems != null) && __isset.FriendItems) + { + tmp0.FriendItems = this.FriendItems; + } + tmp0.__isset.FriendItems = this.__isset.FriendItems; + if(__isset.Type) + { + tmp0.Type = this.Type; + } + tmp0.__isset.Type = this.__isset.Type; + if(__isset.Growth) + { + tmp0.Growth = this.Growth; + } + tmp0.__isset.Growth = this.__isset.Growth; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Items = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + FriendItems = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + Type = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + Growth = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("CatsGardenSlotDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Items != null) && __isset.Items) + { + tmp2.Name = "Items"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Items, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((FriendItems != null) && __isset.FriendItems) + { + tmp2.Name = "FriendItems"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(FriendItems, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Type) + { + tmp2.Name = "Type"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Growth) + { + tmp2.Name = "Growth"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Growth, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CatsGardenSlotDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Items == other.__isset.Items) && ((!__isset.Items) || (global::System.Object.Equals(Items, other.Items)))) + && ((__isset.FriendItems == other.__isset.FriendItems) && ((!__isset.FriendItems) || (global::System.Object.Equals(FriendItems, other.FriendItems)))) + && ((__isset.Type == other.__isset.Type) && ((!__isset.Type) || (global::System.Object.Equals(Type, other.Type)))) + && ((__isset.Growth == other.__isset.Growth) && ((!__isset.Growth) || (global::System.Object.Equals(Growth, other.Growth)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Items != null) && __isset.Items) + { + hashcode = (hashcode * 397) + Items.GetHashCode(); + } + if((FriendItems != null) && __isset.FriendItems) + { + hashcode = (hashcode * 397) + FriendItems.GetHashCode(); + } + if(__isset.Type) + { + hashcode = (hashcode * 397) + Type.GetHashCode(); + } + if(__isset.Growth) + { + hashcode = (hashcode * 397) + Growth.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("CatsGardenSlotDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Items != null) && __isset.Items) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Items: "); + Items.ToString(tmp3); + } + if((FriendItems != null) && __isset.FriendItems) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("FriendItems: "); + FriendItems.ToString(tmp3); + } + if(__isset.Type) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Type: "); + Type.ToString(tmp3); + } + if(__isset.Growth) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Growth: "); + Growth.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotDataItem.cs.meta new file mode 100644 index 0000000..e1b1de7 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenSlotDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f0c36acf2e693b34f9cfdb9d849eea16 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteData.Extensions.cs new file mode 100644 index 0000000..bf1d060 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class CatsGardenTempleteDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteData.Extensions.cs.meta new file mode 100644 index 0000000..935a09f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9ad8cb5f344b2264da5cf3ee06b6a4c1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteData.cs new file mode 100644 index 0000000..1168923 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CatsGardenTempleteData : TBase + { + private Dictionary _catsgardentempletedatas; + + [DataMember(Order = 0)] + public Dictionary Catsgardentempletedatas + { + get + { + return _catsgardentempletedatas; + } + set + { + __isset.@catsgardentempletedatas = true; + this._catsgardentempletedatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @catsgardentempletedatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeCatsgardentempletedatas() + { + return __isset.@catsgardentempletedatas; + } + + #endregion XmlSerializer support + + public CatsGardenTempleteData() + { + } + + public CatsGardenTempleteData DeepCopy() + { + var tmp5 = new CatsGardenTempleteData(); + if((Catsgardentempletedatas != null) && __isset.@catsgardentempletedatas) + { + tmp5.Catsgardentempletedatas = this.Catsgardentempletedatas.DeepCopy(); + } + tmp5.__isset.@catsgardentempletedatas = this.__isset.@catsgardentempletedatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Catsgardentempletedatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.CatsGardenTempleteDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.CatsGardenTempleteDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Catsgardentempletedatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("CatsGardenTempleteData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Catsgardentempletedatas != null) && __isset.@catsgardentempletedatas) + { + tmp11.Name = "catsgardentempletedatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Catsgardentempletedatas.Count), cancellationToken); + foreach (int _iter12 in Catsgardentempletedatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Catsgardentempletedatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CatsGardenTempleteData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@catsgardentempletedatas == other.__isset.@catsgardentempletedatas) && ((!__isset.@catsgardentempletedatas) || (TCollections.Equals(Catsgardentempletedatas, other.Catsgardentempletedatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Catsgardentempletedatas != null) && __isset.@catsgardentempletedatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Catsgardentempletedatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("CatsGardenTempleteData("); + int tmp14 = 0; + if((Catsgardentempletedatas != null) && __isset.@catsgardentempletedatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Catsgardentempletedatas: "); + Catsgardentempletedatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteData.cs.meta new file mode 100644 index 0000000..a324dca --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0bc2a1ff2c2fd1e4098899211aafeb16 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteDataItem.cs new file mode 100644 index 0000000..357c33b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteDataItem.cs @@ -0,0 +1,480 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CatsGardenTempleteDataItem : TBase + { + private int _Id; + private int _Template; + private int _PassNum; + private string _ItemCost; + private int _ItemId; + private string _Reward; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Template + { + get + { + return _Template; + } + set + { + __isset.Template = true; + this._Template = value; + } + } + + [DataMember(Order = 0)] + public int PassNum + { + get + { + return _PassNum; + } + set + { + __isset.PassNum = true; + this._PassNum = value; + } + } + + [DataMember(Order = 0)] + public string ItemCost + { + get + { + return _ItemCost; + } + set + { + __isset.ItemCost = true; + this._ItemCost = value; + } + } + + [DataMember(Order = 0)] + public int ItemId + { + get + { + return _ItemId; + } + set + { + __isset.ItemId = true; + this._ItemId = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Template; + [DataMember] + public bool PassNum; + [DataMember] + public bool ItemCost; + [DataMember] + public bool ItemId; + [DataMember] + public bool Reward; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeTemplate() + { + return __isset.Template; + } + + public bool ShouldSerializePassNum() + { + return __isset.PassNum; + } + + public bool ShouldSerializeItemCost() + { + return __isset.ItemCost; + } + + public bool ShouldSerializeItemId() + { + return __isset.ItemId; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + #endregion XmlSerializer support + + public CatsGardenTempleteDataItem() + { + } + + public CatsGardenTempleteDataItem DeepCopy() + { + var tmp0 = new CatsGardenTempleteDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Template) + { + tmp0.Template = this.Template; + } + tmp0.__isset.Template = this.__isset.Template; + if(__isset.PassNum) + { + tmp0.PassNum = this.PassNum; + } + tmp0.__isset.PassNum = this.__isset.PassNum; + if((ItemCost != null) && __isset.ItemCost) + { + tmp0.ItemCost = this.ItemCost; + } + tmp0.__isset.ItemCost = this.__isset.ItemCost; + if(__isset.ItemId) + { + tmp0.ItemId = this.ItemId; + } + tmp0.__isset.ItemId = this.__isset.ItemId; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Template = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + PassNum = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + ItemCost = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + ItemId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("CatsGardenTempleteDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Template) + { + tmp2.Name = "Template"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Template, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.PassNum) + { + tmp2.Name = "PassNum"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(PassNum, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemCost != null) && __isset.ItemCost) + { + tmp2.Name = "ItemCost"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemCost, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ItemId) + { + tmp2.Name = "ItemId"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ItemId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CatsGardenTempleteDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Template == other.__isset.Template) && ((!__isset.Template) || (global::System.Object.Equals(Template, other.Template)))) + && ((__isset.PassNum == other.__isset.PassNum) && ((!__isset.PassNum) || (global::System.Object.Equals(PassNum, other.PassNum)))) + && ((__isset.ItemCost == other.__isset.ItemCost) && ((!__isset.ItemCost) || (global::System.Object.Equals(ItemCost, other.ItemCost)))) + && ((__isset.ItemId == other.__isset.ItemId) && ((!__isset.ItemId) || (global::System.Object.Equals(ItemId, other.ItemId)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Template) + { + hashcode = (hashcode * 397) + Template.GetHashCode(); + } + if(__isset.PassNum) + { + hashcode = (hashcode * 397) + PassNum.GetHashCode(); + } + if((ItemCost != null) && __isset.ItemCost) + { + hashcode = (hashcode * 397) + ItemCost.GetHashCode(); + } + if(__isset.ItemId) + { + hashcode = (hashcode * 397) + ItemId.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("CatsGardenTempleteDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Template) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Template: "); + Template.ToString(tmp3); + } + if(__isset.PassNum) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PassNum: "); + PassNum.ToString(tmp3); + } + if((ItemCost != null) && __isset.ItemCost) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemCost: "); + ItemCost.ToString(tmp3); + } + if(__isset.ItemId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemId: "); + ItemId.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteDataItem.cs.meta new file mode 100644 index 0000000..7d33e04 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CatsGardenTempleteDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 700de15d9e5768142b13fcdae320283a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfg.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfg.Extensions.cs new file mode 100644 index 0000000..e81ad28 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfg.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class ChampshipCfgExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfg.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfg.Extensions.cs.meta new file mode 100644 index 0000000..d80cb0d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfg.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fcc449e186f294f4baa6411cb26be34e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfg.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfg.cs new file mode 100644 index 0000000..4082d24 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfg.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ChampshipCfg : TBase + { + private Dictionary _champshipcfgs; + + [DataMember(Order = 0)] + public Dictionary Champshipcfgs + { + get + { + return _champshipcfgs; + } + set + { + __isset.@champshipcfgs = true; + this._champshipcfgs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @champshipcfgs; + } + + #region XmlSerializer support + + public bool ShouldSerializeChampshipcfgs() + { + return __isset.@champshipcfgs; + } + + #endregion XmlSerializer support + + public ChampshipCfg() + { + } + + public ChampshipCfg DeepCopy() + { + var tmp5 = new ChampshipCfg(); + if((Champshipcfgs != null) && __isset.@champshipcfgs) + { + tmp5.Champshipcfgs = this.Champshipcfgs.DeepCopy(); + } + tmp5.__isset.@champshipcfgs = this.__isset.@champshipcfgs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Champshipcfgs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.ChampshipCfgItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.ChampshipCfgItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Champshipcfgs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("ChampshipCfg"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Champshipcfgs != null) && __isset.@champshipcfgs) + { + tmp11.Name = "champshipcfgs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Champshipcfgs.Count), cancellationToken); + foreach (int _iter12 in Champshipcfgs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Champshipcfgs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ChampshipCfg other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@champshipcfgs == other.__isset.@champshipcfgs) && ((!__isset.@champshipcfgs) || (TCollections.Equals(Champshipcfgs, other.Champshipcfgs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Champshipcfgs != null) && __isset.@champshipcfgs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Champshipcfgs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("ChampshipCfg("); + int tmp14 = 0; + if((Champshipcfgs != null) && __isset.@champshipcfgs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Champshipcfgs: "); + Champshipcfgs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfg.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfg.cs.meta new file mode 100644 index 0000000..a698066 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3e8bbe4346a0a35479bc47597268acff +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfgItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfgItem.cs new file mode 100644 index 0000000..d45176d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfgItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ChampshipCfgItem : TBase + { + private int _Id; + private string _Icon; + private string _Bg; + private string _NameKey; + private string _Button; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string Bg + { + get + { + return _Bg; + } + set + { + __isset.Bg = true; + this._Bg = value; + } + } + + [DataMember(Order = 0)] + public string NameKey + { + get + { + return _NameKey; + } + set + { + __isset.NameKey = true; + this._NameKey = value; + } + } + + [DataMember(Order = 0)] + public string Button + { + get + { + return _Button; + } + set + { + __isset.Button = true; + this._Button = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Icon; + [DataMember] + public bool Bg; + [DataMember] + public bool NameKey; + [DataMember] + public bool Button; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeBg() + { + return __isset.Bg; + } + + public bool ShouldSerializeNameKey() + { + return __isset.NameKey; + } + + public bool ShouldSerializeButton() + { + return __isset.Button; + } + + #endregion XmlSerializer support + + public ChampshipCfgItem() + { + } + + public ChampshipCfgItem DeepCopy() + { + var tmp0 = new ChampshipCfgItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((Bg != null) && __isset.Bg) + { + tmp0.Bg = this.Bg; + } + tmp0.__isset.Bg = this.__isset.Bg; + if((NameKey != null) && __isset.NameKey) + { + tmp0.NameKey = this.NameKey; + } + tmp0.__isset.NameKey = this.__isset.NameKey; + if((Button != null) && __isset.Button) + { + tmp0.Button = this.Button; + } + tmp0.__isset.Button = this.__isset.Button; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Bg = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + NameKey = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Button = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("ChampshipCfgItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Bg != null) && __isset.Bg) + { + tmp2.Name = "Bg"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Bg, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((NameKey != null) && __isset.NameKey) + { + tmp2.Name = "NameKey"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(NameKey, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Button != null) && __isset.Button) + { + tmp2.Name = "Button"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Button, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ChampshipCfgItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Bg == other.__isset.Bg) && ((!__isset.Bg) || (global::System.Object.Equals(Bg, other.Bg)))) + && ((__isset.NameKey == other.__isset.NameKey) && ((!__isset.NameKey) || (global::System.Object.Equals(NameKey, other.NameKey)))) + && ((__isset.Button == other.__isset.Button) && ((!__isset.Button) || (global::System.Object.Equals(Button, other.Button)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((Bg != null) && __isset.Bg) + { + hashcode = (hashcode * 397) + Bg.GetHashCode(); + } + if((NameKey != null) && __isset.NameKey) + { + hashcode = (hashcode * 397) + NameKey.GetHashCode(); + } + if((Button != null) && __isset.Button) + { + hashcode = (hashcode * 397) + Button.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("ChampshipCfgItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((Bg != null) && __isset.Bg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Bg: "); + Bg.ToString(tmp3); + } + if((NameKey != null) && __isset.NameKey) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NameKey: "); + NameKey.ToString(tmp3); + } + if((Button != null) && __isset.Button) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Button: "); + Button.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfgItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfgItem.cs.meta new file mode 100644 index 0000000..932e472 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipCfgItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 34fc644322a23424598131b8fcd71919 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankReward.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankReward.Extensions.cs new file mode 100644 index 0000000..9f68326 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankReward.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class ChampshipRankRewardExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankReward.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankReward.Extensions.cs.meta new file mode 100644 index 0000000..5026593 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankReward.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8b897ee94794d564e95c092281638fde +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankReward.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankReward.cs new file mode 100644 index 0000000..4994bcb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankReward.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ChampshipRankReward : TBase + { + private Dictionary _champshiprankrewards; + + [DataMember(Order = 0)] + public Dictionary Champshiprankrewards + { + get + { + return _champshiprankrewards; + } + set + { + __isset.@champshiprankrewards = true; + this._champshiprankrewards = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @champshiprankrewards; + } + + #region XmlSerializer support + + public bool ShouldSerializeChampshiprankrewards() + { + return __isset.@champshiprankrewards; + } + + #endregion XmlSerializer support + + public ChampshipRankReward() + { + } + + public ChampshipRankReward DeepCopy() + { + var tmp5 = new ChampshipRankReward(); + if((Champshiprankrewards != null) && __isset.@champshiprankrewards) + { + tmp5.Champshiprankrewards = this.Champshiprankrewards.DeepCopy(); + } + tmp5.__isset.@champshiprankrewards = this.__isset.@champshiprankrewards; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Champshiprankrewards = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.ChampshipRankRewardItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.ChampshipRankRewardItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Champshiprankrewards[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("ChampshipRankReward"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Champshiprankrewards != null) && __isset.@champshiprankrewards) + { + tmp11.Name = "champshiprankrewards"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Champshiprankrewards.Count), cancellationToken); + foreach (int _iter12 in Champshiprankrewards.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Champshiprankrewards[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ChampshipRankReward other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@champshiprankrewards == other.__isset.@champshiprankrewards) && ((!__isset.@champshiprankrewards) || (TCollections.Equals(Champshiprankrewards, other.Champshiprankrewards)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Champshiprankrewards != null) && __isset.@champshiprankrewards) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Champshiprankrewards); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("ChampshipRankReward("); + int tmp14 = 0; + if((Champshiprankrewards != null) && __isset.@champshiprankrewards) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Champshiprankrewards: "); + Champshiprankrewards.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankReward.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankReward.cs.meta new file mode 100644 index 0000000..cd81483 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 31c0da8df7194734abf1bb537841b8a4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankRewardItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankRewardItem.cs new file mode 100644 index 0000000..935872c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankRewardItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ChampshipRankRewardItem : TBase + { + private int _Id; + private int _Rank; + private string _ItemReward; + private double _People30; + private double _People50; + private double _People80; + private double _People100; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Rank + { + get + { + return _Rank; + } + set + { + __isset.Rank = true; + this._Rank = value; + } + } + + [DataMember(Order = 0)] + public string ItemReward + { + get + { + return _ItemReward; + } + set + { + __isset.ItemReward = true; + this._ItemReward = value; + } + } + + [DataMember(Order = 0)] + public double People30 + { + get + { + return _People30; + } + set + { + __isset.People30 = true; + this._People30 = value; + } + } + + [DataMember(Order = 0)] + public double People50 + { + get + { + return _People50; + } + set + { + __isset.People50 = true; + this._People50 = value; + } + } + + [DataMember(Order = 0)] + public double People80 + { + get + { + return _People80; + } + set + { + __isset.People80 = true; + this._People80 = value; + } + } + + [DataMember(Order = 0)] + public double People100 + { + get + { + return _People100; + } + set + { + __isset.People100 = true; + this._People100 = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Rank; + [DataMember] + public bool ItemReward; + [DataMember] + public bool People30; + [DataMember] + public bool People50; + [DataMember] + public bool People80; + [DataMember] + public bool People100; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeRank() + { + return __isset.Rank; + } + + public bool ShouldSerializeItemReward() + { + return __isset.ItemReward; + } + + public bool ShouldSerializePeople30() + { + return __isset.People30; + } + + public bool ShouldSerializePeople50() + { + return __isset.People50; + } + + public bool ShouldSerializePeople80() + { + return __isset.People80; + } + + public bool ShouldSerializePeople100() + { + return __isset.People100; + } + + #endregion XmlSerializer support + + public ChampshipRankRewardItem() + { + } + + public ChampshipRankRewardItem DeepCopy() + { + var tmp0 = new ChampshipRankRewardItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Rank) + { + tmp0.Rank = this.Rank; + } + tmp0.__isset.Rank = this.__isset.Rank; + if((ItemReward != null) && __isset.ItemReward) + { + tmp0.ItemReward = this.ItemReward; + } + tmp0.__isset.ItemReward = this.__isset.ItemReward; + if(__isset.People30) + { + tmp0.People30 = this.People30; + } + tmp0.__isset.People30 = this.__isset.People30; + if(__isset.People50) + { + tmp0.People50 = this.People50; + } + tmp0.__isset.People50 = this.__isset.People50; + if(__isset.People80) + { + tmp0.People80 = this.People80; + } + tmp0.__isset.People80 = this.__isset.People80; + if(__isset.People100) + { + tmp0.People100 = this.People100; + } + tmp0.__isset.People100 = this.__isset.People100; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Rank = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + ItemReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.Double) + { + People30 = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.Double) + { + People50 = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.Double) + { + People80 = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.Double) + { + People100 = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("ChampshipRankRewardItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Rank) + { + tmp2.Name = "Rank"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Rank, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemReward != null) && __isset.ItemReward) + { + tmp2.Name = "ItemReward"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.People30) + { + tmp2.Name = "People30"; + tmp2.Type = TType.Double; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(People30, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.People50) + { + tmp2.Name = "People50"; + tmp2.Type = TType.Double; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(People50, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.People80) + { + tmp2.Name = "People80"; + tmp2.Type = TType.Double; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(People80, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.People100) + { + tmp2.Name = "People100"; + tmp2.Type = TType.Double; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(People100, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ChampshipRankRewardItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Rank == other.__isset.Rank) && ((!__isset.Rank) || (global::System.Object.Equals(Rank, other.Rank)))) + && ((__isset.ItemReward == other.__isset.ItemReward) && ((!__isset.ItemReward) || (global::System.Object.Equals(ItemReward, other.ItemReward)))) + && ((__isset.People30 == other.__isset.People30) && ((!__isset.People30) || (global::System.Object.Equals(People30, other.People30)))) + && ((__isset.People50 == other.__isset.People50) && ((!__isset.People50) || (global::System.Object.Equals(People50, other.People50)))) + && ((__isset.People80 == other.__isset.People80) && ((!__isset.People80) || (global::System.Object.Equals(People80, other.People80)))) + && ((__isset.People100 == other.__isset.People100) && ((!__isset.People100) || (global::System.Object.Equals(People100, other.People100)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Rank) + { + hashcode = (hashcode * 397) + Rank.GetHashCode(); + } + if((ItemReward != null) && __isset.ItemReward) + { + hashcode = (hashcode * 397) + ItemReward.GetHashCode(); + } + if(__isset.People30) + { + hashcode = (hashcode * 397) + People30.GetHashCode(); + } + if(__isset.People50) + { + hashcode = (hashcode * 397) + People50.GetHashCode(); + } + if(__isset.People80) + { + hashcode = (hashcode * 397) + People80.GetHashCode(); + } + if(__isset.People100) + { + hashcode = (hashcode * 397) + People100.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("ChampshipRankRewardItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Rank) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Rank: "); + Rank.ToString(tmp3); + } + if((ItemReward != null) && __isset.ItemReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemReward: "); + ItemReward.ToString(tmp3); + } + if(__isset.People30) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("People30: "); + People30.ToString(tmp3); + } + if(__isset.People50) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("People50: "); + People50.ToString(tmp3); + } + if(__isset.People80) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("People80: "); + People80.ToString(tmp3); + } + if(__isset.People100) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("People100: "); + People100.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankRewardItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankRewardItem.cs.meta new file mode 100644 index 0000000..cc55110 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipRankRewardItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8e25987973a3ddb41a86b6b883768538 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreReward.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreReward.Extensions.cs new file mode 100644 index 0000000..ada1c29 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreReward.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class ChampshipScoreRewardExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreReward.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreReward.Extensions.cs.meta new file mode 100644 index 0000000..0d459ba --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreReward.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bfe1f79f46cd32048a69d95d674c4a13 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreReward.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreReward.cs new file mode 100644 index 0000000..b86355f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreReward.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ChampshipScoreReward : TBase + { + private Dictionary _champshipscorerewards; + + [DataMember(Order = 0)] + public Dictionary Champshipscorerewards + { + get + { + return _champshipscorerewards; + } + set + { + __isset.@champshipscorerewards = true; + this._champshipscorerewards = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @champshipscorerewards; + } + + #region XmlSerializer support + + public bool ShouldSerializeChampshipscorerewards() + { + return __isset.@champshipscorerewards; + } + + #endregion XmlSerializer support + + public ChampshipScoreReward() + { + } + + public ChampshipScoreReward DeepCopy() + { + var tmp5 = new ChampshipScoreReward(); + if((Champshipscorerewards != null) && __isset.@champshipscorerewards) + { + tmp5.Champshipscorerewards = this.Champshipscorerewards.DeepCopy(); + } + tmp5.__isset.@champshipscorerewards = this.__isset.@champshipscorerewards; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Champshipscorerewards = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.ChampshipScoreRewardItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.ChampshipScoreRewardItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Champshipscorerewards[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("ChampshipScoreReward"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Champshipscorerewards != null) && __isset.@champshipscorerewards) + { + tmp11.Name = "champshipscorerewards"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Champshipscorerewards.Count), cancellationToken); + foreach (int _iter12 in Champshipscorerewards.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Champshipscorerewards[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ChampshipScoreReward other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@champshipscorerewards == other.__isset.@champshipscorerewards) && ((!__isset.@champshipscorerewards) || (TCollections.Equals(Champshipscorerewards, other.Champshipscorerewards)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Champshipscorerewards != null) && __isset.@champshipscorerewards) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Champshipscorerewards); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("ChampshipScoreReward("); + int tmp14 = 0; + if((Champshipscorerewards != null) && __isset.@champshipscorerewards) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Champshipscorerewards: "); + Champshipscorerewards.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreReward.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreReward.cs.meta new file mode 100644 index 0000000..b080dc0 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 61115271e27600d49ba8acd98614d09f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreRewardItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreRewardItem.cs new file mode 100644 index 0000000..ab04f47 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreRewardItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ChampshipScoreRewardItem : TBase + { + private int _Id; + private int _ScoreNeed; + private string _ItemReward; + private int _SortId; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int ScoreNeed + { + get + { + return _ScoreNeed; + } + set + { + __isset.ScoreNeed = true; + this._ScoreNeed = value; + } + } + + [DataMember(Order = 0)] + public string ItemReward + { + get + { + return _ItemReward; + } + set + { + __isset.ItemReward = true; + this._ItemReward = value; + } + } + + [DataMember(Order = 0)] + public int SortId + { + get + { + return _SortId; + } + set + { + __isset.SortId = true; + this._SortId = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool ScoreNeed; + [DataMember] + public bool ItemReward; + [DataMember] + public bool SortId; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeScoreNeed() + { + return __isset.ScoreNeed; + } + + public bool ShouldSerializeItemReward() + { + return __isset.ItemReward; + } + + public bool ShouldSerializeSortId() + { + return __isset.SortId; + } + + #endregion XmlSerializer support + + public ChampshipScoreRewardItem() + { + } + + public ChampshipScoreRewardItem DeepCopy() + { + var tmp0 = new ChampshipScoreRewardItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.ScoreNeed) + { + tmp0.ScoreNeed = this.ScoreNeed; + } + tmp0.__isset.ScoreNeed = this.__isset.ScoreNeed; + if((ItemReward != null) && __isset.ItemReward) + { + tmp0.ItemReward = this.ItemReward; + } + tmp0.__isset.ItemReward = this.__isset.ItemReward; + if(__isset.SortId) + { + tmp0.SortId = this.SortId; + } + tmp0.__isset.SortId = this.__isset.SortId; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + ScoreNeed = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + ItemReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + SortId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("ChampshipScoreRewardItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ScoreNeed) + { + tmp2.Name = "ScoreNeed"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ScoreNeed, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemReward != null) && __isset.ItemReward) + { + tmp2.Name = "ItemReward"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SortId) + { + tmp2.Name = "SortId"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SortId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ChampshipScoreRewardItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.ScoreNeed == other.__isset.ScoreNeed) && ((!__isset.ScoreNeed) || (global::System.Object.Equals(ScoreNeed, other.ScoreNeed)))) + && ((__isset.ItemReward == other.__isset.ItemReward) && ((!__isset.ItemReward) || (global::System.Object.Equals(ItemReward, other.ItemReward)))) + && ((__isset.SortId == other.__isset.SortId) && ((!__isset.SortId) || (global::System.Object.Equals(SortId, other.SortId)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.ScoreNeed) + { + hashcode = (hashcode * 397) + ScoreNeed.GetHashCode(); + } + if((ItemReward != null) && __isset.ItemReward) + { + hashcode = (hashcode * 397) + ItemReward.GetHashCode(); + } + if(__isset.SortId) + { + hashcode = (hashcode * 397) + SortId.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("ChampshipScoreRewardItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.ScoreNeed) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ScoreNeed: "); + ScoreNeed.ToString(tmp3); + } + if((ItemReward != null) && __isset.ItemReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemReward: "); + ItemReward.ToString(tmp3); + } + if(__isset.SortId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SortId: "); + SortId.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreRewardItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreRewardItem.cs.meta new file mode 100644 index 0000000..58684d2 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChampshipScoreRewardItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 562a26cdfee4d644abb59d1aaac06793 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMap.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMap.Extensions.cs new file mode 100644 index 0000000..d47ae83 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMap.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class ChineseResMapExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMap.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMap.Extensions.cs.meta new file mode 100644 index 0000000..69e16be --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMap.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f4a87567e0810542970fc0b08b840f8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMap.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMap.cs new file mode 100644 index 0000000..6d6a60a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMap.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ChineseResMap : TBase + { + private Dictionary _chineseresmaps; + + [DataMember(Order = 0)] + public Dictionary Chineseresmaps + { + get + { + return _chineseresmaps; + } + set + { + __isset.@chineseresmaps = true; + this._chineseresmaps = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @chineseresmaps; + } + + #region XmlSerializer support + + public bool ShouldSerializeChineseresmaps() + { + return __isset.@chineseresmaps; + } + + #endregion XmlSerializer support + + public ChineseResMap() + { + } + + public ChineseResMap DeepCopy() + { + var tmp5 = new ChineseResMap(); + if((Chineseresmaps != null) && __isset.@chineseresmaps) + { + tmp5.Chineseresmaps = this.Chineseresmaps.DeepCopy(); + } + tmp5.__isset.@chineseresmaps = this.__isset.@chineseresmaps; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Chineseresmaps = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.ChineseResMapItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.ChineseResMapItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Chineseresmaps[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("ChineseResMap"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Chineseresmaps != null) && __isset.@chineseresmaps) + { + tmp11.Name = "chineseresmaps"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Chineseresmaps.Count), cancellationToken); + foreach (int _iter12 in Chineseresmaps.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Chineseresmaps[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ChineseResMap other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@chineseresmaps == other.__isset.@chineseresmaps) && ((!__isset.@chineseresmaps) || (TCollections.Equals(Chineseresmaps, other.Chineseresmaps)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Chineseresmaps != null) && __isset.@chineseresmaps) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Chineseresmaps); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("ChineseResMap("); + int tmp14 = 0; + if((Chineseresmaps != null) && __isset.@chineseresmaps) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Chineseresmaps: "); + Chineseresmaps.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMap.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMap.cs.meta new file mode 100644 index 0000000..ef99bd6 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMap.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2daf91d564e5e0d4e97ca2b315c674b3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMapItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMapItem.cs new file mode 100644 index 0000000..75afd42 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMapItem.cs @@ -0,0 +1,309 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ChineseResMapItem : TBase + { + private int _Id; + private string _TargetStr; + private string _Chinese; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string TargetStr + { + get + { + return _TargetStr; + } + set + { + __isset.TargetStr = true; + this._TargetStr = value; + } + } + + [DataMember(Order = 0)] + public string Chinese + { + get + { + return _Chinese; + } + set + { + __isset.Chinese = true; + this._Chinese = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool TargetStr; + [DataMember] + public bool Chinese; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeTargetStr() + { + return __isset.TargetStr; + } + + public bool ShouldSerializeChinese() + { + return __isset.Chinese; + } + + #endregion XmlSerializer support + + public ChineseResMapItem() + { + } + + public ChineseResMapItem DeepCopy() + { + var tmp0 = new ChineseResMapItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((TargetStr != null) && __isset.TargetStr) + { + tmp0.TargetStr = this.TargetStr; + } + tmp0.__isset.TargetStr = this.__isset.TargetStr; + if((Chinese != null) && __isset.Chinese) + { + tmp0.Chinese = this.Chinese; + } + tmp0.__isset.Chinese = this.__isset.Chinese; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + TargetStr = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Chinese = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("ChineseResMapItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((TargetStr != null) && __isset.TargetStr) + { + tmp2.Name = "TargetStr"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(TargetStr, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Chinese != null) && __isset.Chinese) + { + tmp2.Name = "Chinese"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Chinese, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ChineseResMapItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.TargetStr == other.__isset.TargetStr) && ((!__isset.TargetStr) || (global::System.Object.Equals(TargetStr, other.TargetStr)))) + && ((__isset.Chinese == other.__isset.Chinese) && ((!__isset.Chinese) || (global::System.Object.Equals(Chinese, other.Chinese)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((TargetStr != null) && __isset.TargetStr) + { + hashcode = (hashcode * 397) + TargetStr.GetHashCode(); + } + if((Chinese != null) && __isset.Chinese) + { + hashcode = (hashcode * 397) + Chinese.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("ChineseResMapItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((TargetStr != null) && __isset.TargetStr) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TargetStr: "); + TargetStr.ToString(tmp3); + } + if((Chinese != null) && __isset.Chinese) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Chinese: "); + Chinese.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMapItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMapItem.cs.meta new file mode 100644 index 0000000..e61bbd8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ChineseResMapItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 309385d96b2f22344926c389aea53fc1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomReward.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomReward.Extensions.cs new file mode 100644 index 0000000..d236bfd --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomReward.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class CollectionRoomRewardExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomReward.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomReward.Extensions.cs.meta new file mode 100644 index 0000000..95d0394 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomReward.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d781f7cb55e070247b0167b76b5c7481 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomReward.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomReward.cs new file mode 100644 index 0000000..4c9c6ea --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomReward.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CollectionRoomReward : TBase + { + private Dictionary _collectionroomrewards; + + [DataMember(Order = 0)] + public Dictionary Collectionroomrewards + { + get + { + return _collectionroomrewards; + } + set + { + __isset.@collectionroomrewards = true; + this._collectionroomrewards = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @collectionroomrewards; + } + + #region XmlSerializer support + + public bool ShouldSerializeCollectionroomrewards() + { + return __isset.@collectionroomrewards; + } + + #endregion XmlSerializer support + + public CollectionRoomReward() + { + } + + public CollectionRoomReward DeepCopy() + { + var tmp5 = new CollectionRoomReward(); + if((Collectionroomrewards != null) && __isset.@collectionroomrewards) + { + tmp5.Collectionroomrewards = this.Collectionroomrewards.DeepCopy(); + } + tmp5.__isset.@collectionroomrewards = this.__isset.@collectionroomrewards; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Collectionroomrewards = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.CollectionRoomRewardItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.CollectionRoomRewardItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Collectionroomrewards[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("CollectionRoomReward"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Collectionroomrewards != null) && __isset.@collectionroomrewards) + { + tmp11.Name = "collectionroomrewards"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Collectionroomrewards.Count), cancellationToken); + foreach (int _iter12 in Collectionroomrewards.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Collectionroomrewards[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CollectionRoomReward other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@collectionroomrewards == other.__isset.@collectionroomrewards) && ((!__isset.@collectionroomrewards) || (TCollections.Equals(Collectionroomrewards, other.Collectionroomrewards)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Collectionroomrewards != null) && __isset.@collectionroomrewards) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Collectionroomrewards); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("CollectionRoomReward("); + int tmp14 = 0; + if((Collectionroomrewards != null) && __isset.@collectionroomrewards) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Collectionroomrewards: "); + Collectionroomrewards.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomReward.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomReward.cs.meta new file mode 100644 index 0000000..c0d96ce --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 903f3cfb11ce680469281692352f61e2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomRewardItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomRewardItem.cs new file mode 100644 index 0000000..082a5af --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomRewardItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CollectionRoomRewardItem : TBase + { + private int _Id; + private int _Rank; + private string _ItemReward1; + private string _ItemReward2; + private string _ItemReward3; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Rank + { + get + { + return _Rank; + } + set + { + __isset.Rank = true; + this._Rank = value; + } + } + + [DataMember(Order = 0)] + public string ItemReward1 + { + get + { + return _ItemReward1; + } + set + { + __isset.ItemReward1 = true; + this._ItemReward1 = value; + } + } + + [DataMember(Order = 0)] + public string ItemReward2 + { + get + { + return _ItemReward2; + } + set + { + __isset.ItemReward2 = true; + this._ItemReward2 = value; + } + } + + [DataMember(Order = 0)] + public string ItemReward3 + { + get + { + return _ItemReward3; + } + set + { + __isset.ItemReward3 = true; + this._ItemReward3 = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Rank; + [DataMember] + public bool ItemReward1; + [DataMember] + public bool ItemReward2; + [DataMember] + public bool ItemReward3; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeRank() + { + return __isset.Rank; + } + + public bool ShouldSerializeItemReward1() + { + return __isset.ItemReward1; + } + + public bool ShouldSerializeItemReward2() + { + return __isset.ItemReward2; + } + + public bool ShouldSerializeItemReward3() + { + return __isset.ItemReward3; + } + + #endregion XmlSerializer support + + public CollectionRoomRewardItem() + { + } + + public CollectionRoomRewardItem DeepCopy() + { + var tmp0 = new CollectionRoomRewardItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Rank) + { + tmp0.Rank = this.Rank; + } + tmp0.__isset.Rank = this.__isset.Rank; + if((ItemReward1 != null) && __isset.ItemReward1) + { + tmp0.ItemReward1 = this.ItemReward1; + } + tmp0.__isset.ItemReward1 = this.__isset.ItemReward1; + if((ItemReward2 != null) && __isset.ItemReward2) + { + tmp0.ItemReward2 = this.ItemReward2; + } + tmp0.__isset.ItemReward2 = this.__isset.ItemReward2; + if((ItemReward3 != null) && __isset.ItemReward3) + { + tmp0.ItemReward3 = this.ItemReward3; + } + tmp0.__isset.ItemReward3 = this.__isset.ItemReward3; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Rank = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + ItemReward1 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + ItemReward2 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + ItemReward3 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("CollectionRoomRewardItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Rank) + { + tmp2.Name = "Rank"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Rank, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemReward1 != null) && __isset.ItemReward1) + { + tmp2.Name = "ItemReward1"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemReward1, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemReward2 != null) && __isset.ItemReward2) + { + tmp2.Name = "ItemReward2"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemReward2, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemReward3 != null) && __isset.ItemReward3) + { + tmp2.Name = "ItemReward3"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemReward3, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CollectionRoomRewardItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Rank == other.__isset.Rank) && ((!__isset.Rank) || (global::System.Object.Equals(Rank, other.Rank)))) + && ((__isset.ItemReward1 == other.__isset.ItemReward1) && ((!__isset.ItemReward1) || (global::System.Object.Equals(ItemReward1, other.ItemReward1)))) + && ((__isset.ItemReward2 == other.__isset.ItemReward2) && ((!__isset.ItemReward2) || (global::System.Object.Equals(ItemReward2, other.ItemReward2)))) + && ((__isset.ItemReward3 == other.__isset.ItemReward3) && ((!__isset.ItemReward3) || (global::System.Object.Equals(ItemReward3, other.ItemReward3)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Rank) + { + hashcode = (hashcode * 397) + Rank.GetHashCode(); + } + if((ItemReward1 != null) && __isset.ItemReward1) + { + hashcode = (hashcode * 397) + ItemReward1.GetHashCode(); + } + if((ItemReward2 != null) && __isset.ItemReward2) + { + hashcode = (hashcode * 397) + ItemReward2.GetHashCode(); + } + if((ItemReward3 != null) && __isset.ItemReward3) + { + hashcode = (hashcode * 397) + ItemReward3.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("CollectionRoomRewardItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Rank) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Rank: "); + Rank.ToString(tmp3); + } + if((ItemReward1 != null) && __isset.ItemReward1) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemReward1: "); + ItemReward1.ToString(tmp3); + } + if((ItemReward2 != null) && __isset.ItemReward2) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemReward2: "); + ItemReward2.ToString(tmp3); + } + if((ItemReward3 != null) && __isset.ItemReward3) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemReward3: "); + ItemReward3.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomRewardItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomRewardItem.cs.meta new file mode 100644 index 0000000..274c9dd --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionRoomRewardItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7c2cac7ed09218a4eb01b9623e38d8f9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsData.Extensions.cs new file mode 100644 index 0000000..19afb5e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class CollectionsRewardsDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsData.Extensions.cs.meta new file mode 100644 index 0000000..fa30775 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 688e7ba2bdd9f1c41b251814a66f8bc4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsData.cs new file mode 100644 index 0000000..318eb5e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CollectionsRewardsData : TBase + { + private Dictionary _collectionsrewardsdatas; + + [DataMember(Order = 0)] + public Dictionary Collectionsrewardsdatas + { + get + { + return _collectionsrewardsdatas; + } + set + { + __isset.@collectionsrewardsdatas = true; + this._collectionsrewardsdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @collectionsrewardsdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeCollectionsrewardsdatas() + { + return __isset.@collectionsrewardsdatas; + } + + #endregion XmlSerializer support + + public CollectionsRewardsData() + { + } + + public CollectionsRewardsData DeepCopy() + { + var tmp5 = new CollectionsRewardsData(); + if((Collectionsrewardsdatas != null) && __isset.@collectionsrewardsdatas) + { + tmp5.Collectionsrewardsdatas = this.Collectionsrewardsdatas.DeepCopy(); + } + tmp5.__isset.@collectionsrewardsdatas = this.__isset.@collectionsrewardsdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Collectionsrewardsdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.CollectionsRewardsDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.CollectionsRewardsDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Collectionsrewardsdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("CollectionsRewardsData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Collectionsrewardsdatas != null) && __isset.@collectionsrewardsdatas) + { + tmp11.Name = "collectionsrewardsdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Collectionsrewardsdatas.Count), cancellationToken); + foreach (int _iter12 in Collectionsrewardsdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Collectionsrewardsdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CollectionsRewardsData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@collectionsrewardsdatas == other.__isset.@collectionsrewardsdatas) && ((!__isset.@collectionsrewardsdatas) || (TCollections.Equals(Collectionsrewardsdatas, other.Collectionsrewardsdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Collectionsrewardsdatas != null) && __isset.@collectionsrewardsdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Collectionsrewardsdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("CollectionsRewardsData("); + int tmp14 = 0; + if((Collectionsrewardsdatas != null) && __isset.@collectionsrewardsdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Collectionsrewardsdatas: "); + Collectionsrewardsdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsData.cs.meta new file mode 100644 index 0000000..29bb38b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b9b1165d12f8bcd479bbd637df9ae3f5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsDataItem.cs new file mode 100644 index 0000000..f385053 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsDataItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class CollectionsRewardsDataItem : TBase + { + private int _Id; + private int _Index; + private int _Type; + private int _Need; + private int _ClientNeed; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Index + { + get + { + return _Index; + } + set + { + __isset.Index = true; + this._Index = value; + } + } + + [DataMember(Order = 0)] + public int Type + { + get + { + return _Type; + } + set + { + __isset.Type = true; + this._Type = value; + } + } + + [DataMember(Order = 0)] + public int Need + { + get + { + return _Need; + } + set + { + __isset.Need = true; + this._Need = value; + } + } + + [DataMember(Order = 0)] + public int ClientNeed + { + get + { + return _ClientNeed; + } + set + { + __isset.ClientNeed = true; + this._ClientNeed = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Index; + [DataMember] + public bool Type; + [DataMember] + public bool Need; + [DataMember] + public bool ClientNeed; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeIndex() + { + return __isset.Index; + } + + public bool ShouldSerializeType() + { + return __isset.Type; + } + + public bool ShouldSerializeNeed() + { + return __isset.Need; + } + + public bool ShouldSerializeClientNeed() + { + return __isset.ClientNeed; + } + + #endregion XmlSerializer support + + public CollectionsRewardsDataItem() + { + } + + public CollectionsRewardsDataItem DeepCopy() + { + var tmp0 = new CollectionsRewardsDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Index) + { + tmp0.Index = this.Index; + } + tmp0.__isset.Index = this.__isset.Index; + if(__isset.Type) + { + tmp0.Type = this.Type; + } + tmp0.__isset.Type = this.__isset.Type; + if(__isset.Need) + { + tmp0.Need = this.Need; + } + tmp0.__isset.Need = this.__isset.Need; + if(__isset.ClientNeed) + { + tmp0.ClientNeed = this.ClientNeed; + } + tmp0.__isset.ClientNeed = this.__isset.ClientNeed; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Index = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Type = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + Need = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + ClientNeed = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("CollectionsRewardsDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Index) + { + tmp2.Name = "Index"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Index, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Type) + { + tmp2.Name = "Type"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Need) + { + tmp2.Name = "Need"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Need, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ClientNeed) + { + tmp2.Name = "ClientNeed"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ClientNeed, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is CollectionsRewardsDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Index == other.__isset.Index) && ((!__isset.Index) || (global::System.Object.Equals(Index, other.Index)))) + && ((__isset.Type == other.__isset.Type) && ((!__isset.Type) || (global::System.Object.Equals(Type, other.Type)))) + && ((__isset.Need == other.__isset.Need) && ((!__isset.Need) || (global::System.Object.Equals(Need, other.Need)))) + && ((__isset.ClientNeed == other.__isset.ClientNeed) && ((!__isset.ClientNeed) || (global::System.Object.Equals(ClientNeed, other.ClientNeed)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Index) + { + hashcode = (hashcode * 397) + Index.GetHashCode(); + } + if(__isset.Type) + { + hashcode = (hashcode * 397) + Type.GetHashCode(); + } + if(__isset.Need) + { + hashcode = (hashcode * 397) + Need.GetHashCode(); + } + if(__isset.ClientNeed) + { + hashcode = (hashcode * 397) + ClientNeed.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("CollectionsRewardsDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Index) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Index: "); + Index.ToString(tmp3); + } + if(__isset.Type) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Type: "); + Type.ToString(tmp3); + } + if(__isset.Need) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Need: "); + Need.ToString(tmp3); + } + if(__isset.ClientNeed) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ClientNeed: "); + ClientNeed.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsDataItem.cs.meta new file mode 100644 index 0000000..f46a613 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/CollectionsRewardsDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 49fe2847c62d7c84682ec34d1caa0267 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGift.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGift.Extensions.cs new file mode 100644 index 0000000..e921657 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGift.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class ComboGiftExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGift.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGift.Extensions.cs.meta new file mode 100644 index 0000000..d4499fb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGift.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5be92f3c87344364095100376b3a8b01 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGift.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGift.cs new file mode 100644 index 0000000..be98a55 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGift.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ComboGift : TBase + { + private Dictionary _combogifts; + + [DataMember(Order = 0)] + public Dictionary Combogifts + { + get + { + return _combogifts; + } + set + { + __isset.@combogifts = true; + this._combogifts = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @combogifts; + } + + #region XmlSerializer support + + public bool ShouldSerializeCombogifts() + { + return __isset.@combogifts; + } + + #endregion XmlSerializer support + + public ComboGift() + { + } + + public ComboGift DeepCopy() + { + var tmp5 = new ComboGift(); + if((Combogifts != null) && __isset.@combogifts) + { + tmp5.Combogifts = this.Combogifts.DeepCopy(); + } + tmp5.__isset.@combogifts = this.__isset.@combogifts; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Combogifts = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.ComboGiftItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.ComboGiftItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Combogifts[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("ComboGift"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Combogifts != null) && __isset.@combogifts) + { + tmp11.Name = "combogifts"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Combogifts.Count), cancellationToken); + foreach (int _iter12 in Combogifts.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Combogifts[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ComboGift other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@combogifts == other.__isset.@combogifts) && ((!__isset.@combogifts) || (TCollections.Equals(Combogifts, other.Combogifts)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Combogifts != null) && __isset.@combogifts) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Combogifts); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("ComboGift("); + int tmp14 = 0; + if((Combogifts != null) && __isset.@combogifts) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Combogifts: "); + Combogifts.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGift.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGift.cs.meta new file mode 100644 index 0000000..4fada4c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGift.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 00e1bec0505eff344a3ad6d19b882d08 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftItem.cs new file mode 100644 index 0000000..72ec350 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ComboGiftItem : TBase + { + private int _Id; + private string _Ratio; + private double _Price; + private string _ItemReward; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Ratio + { + get + { + return _Ratio; + } + set + { + __isset.Ratio = true; + this._Ratio = value; + } + } + + [DataMember(Order = 0)] + public double Price + { + get + { + return _Price; + } + set + { + __isset.Price = true; + this._Price = value; + } + } + + [DataMember(Order = 0)] + public string ItemReward + { + get + { + return _ItemReward; + } + set + { + __isset.ItemReward = true; + this._ItemReward = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Ratio; + [DataMember] + public bool Price; + [DataMember] + public bool ItemReward; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeRatio() + { + return __isset.Ratio; + } + + public bool ShouldSerializePrice() + { + return __isset.Price; + } + + public bool ShouldSerializeItemReward() + { + return __isset.ItemReward; + } + + #endregion XmlSerializer support + + public ComboGiftItem() + { + } + + public ComboGiftItem DeepCopy() + { + var tmp0 = new ComboGiftItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Ratio != null) && __isset.Ratio) + { + tmp0.Ratio = this.Ratio; + } + tmp0.__isset.Ratio = this.__isset.Ratio; + if(__isset.Price) + { + tmp0.Price = this.Price; + } + tmp0.__isset.Price = this.__isset.Price; + if((ItemReward != null) && __isset.ItemReward) + { + tmp0.ItemReward = this.ItemReward; + } + tmp0.__isset.ItemReward = this.__isset.ItemReward; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Ratio = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.Double) + { + Price = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + ItemReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("ComboGiftItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Ratio != null) && __isset.Ratio) + { + tmp2.Name = "Ratio"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Ratio, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price) + { + tmp2.Name = "Price"; + tmp2.Type = TType.Double; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemReward != null) && __isset.ItemReward) + { + tmp2.Name = "ItemReward"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ComboGiftItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Ratio == other.__isset.Ratio) && ((!__isset.Ratio) || (global::System.Object.Equals(Ratio, other.Ratio)))) + && ((__isset.Price == other.__isset.Price) && ((!__isset.Price) || (global::System.Object.Equals(Price, other.Price)))) + && ((__isset.ItemReward == other.__isset.ItemReward) && ((!__isset.ItemReward) || (global::System.Object.Equals(ItemReward, other.ItemReward)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Ratio != null) && __isset.Ratio) + { + hashcode = (hashcode * 397) + Ratio.GetHashCode(); + } + if(__isset.Price) + { + hashcode = (hashcode * 397) + Price.GetHashCode(); + } + if((ItemReward != null) && __isset.ItemReward) + { + hashcode = (hashcode * 397) + ItemReward.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("ComboGiftItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Ratio != null) && __isset.Ratio) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Ratio: "); + Ratio.ToString(tmp3); + } + if(__isset.Price) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price: "); + Price.ToString(tmp3); + } + if((ItemReward != null) && __isset.ItemReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemReward: "); + ItemReward.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftItem.cs.meta new file mode 100644 index 0000000..00f426f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f2e93ec86eb97e4e8da24ff260f042b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwo.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwo.Extensions.cs new file mode 100644 index 0000000..5d941bc --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwo.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class ComboGiftTwoExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwo.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwo.Extensions.cs.meta new file mode 100644 index 0000000..069c00b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwo.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9584b20a861b022429271c14d494fd4d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwo.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwo.cs new file mode 100644 index 0000000..2ff3106 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwo.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ComboGiftTwo : TBase + { + private Dictionary _combogifttwos; + + [DataMember(Order = 0)] + public Dictionary Combogifttwos + { + get + { + return _combogifttwos; + } + set + { + __isset.@combogifttwos = true; + this._combogifttwos = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @combogifttwos; + } + + #region XmlSerializer support + + public bool ShouldSerializeCombogifttwos() + { + return __isset.@combogifttwos; + } + + #endregion XmlSerializer support + + public ComboGiftTwo() + { + } + + public ComboGiftTwo DeepCopy() + { + var tmp5 = new ComboGiftTwo(); + if((Combogifttwos != null) && __isset.@combogifttwos) + { + tmp5.Combogifttwos = this.Combogifttwos.DeepCopy(); + } + tmp5.__isset.@combogifttwos = this.__isset.@combogifttwos; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Combogifttwos = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.ComboGiftTwoItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.ComboGiftTwoItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Combogifttwos[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("ComboGiftTwo"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Combogifttwos != null) && __isset.@combogifttwos) + { + tmp11.Name = "combogifttwos"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Combogifttwos.Count), cancellationToken); + foreach (int _iter12 in Combogifttwos.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Combogifttwos[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ComboGiftTwo other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@combogifttwos == other.__isset.@combogifttwos) && ((!__isset.@combogifttwos) || (TCollections.Equals(Combogifttwos, other.Combogifttwos)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Combogifttwos != null) && __isset.@combogifttwos) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Combogifttwos); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("ComboGiftTwo("); + int tmp14 = 0; + if((Combogifttwos != null) && __isset.@combogifttwos) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Combogifttwos: "); + Combogifttwos.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwo.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwo.cs.meta new file mode 100644 index 0000000..8478e78 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwo.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bbaf102c419f24f418b93cc69dc18c8d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwoItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwoItem.cs new file mode 100644 index 0000000..7c64dde --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwoItem.cs @@ -0,0 +1,309 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ComboGiftTwoItem : TBase + { + private int _Id; + private double _Price; + private string _ItemReward; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public double Price + { + get + { + return _Price; + } + set + { + __isset.Price = true; + this._Price = value; + } + } + + [DataMember(Order = 0)] + public string ItemReward + { + get + { + return _ItemReward; + } + set + { + __isset.ItemReward = true; + this._ItemReward = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Price; + [DataMember] + public bool ItemReward; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializePrice() + { + return __isset.Price; + } + + public bool ShouldSerializeItemReward() + { + return __isset.ItemReward; + } + + #endregion XmlSerializer support + + public ComboGiftTwoItem() + { + } + + public ComboGiftTwoItem DeepCopy() + { + var tmp0 = new ComboGiftTwoItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Price) + { + tmp0.Price = this.Price; + } + tmp0.__isset.Price = this.__isset.Price; + if((ItemReward != null) && __isset.ItemReward) + { + tmp0.ItemReward = this.ItemReward; + } + tmp0.__isset.ItemReward = this.__isset.ItemReward; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.Double) + { + Price = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + ItemReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("ComboGiftTwoItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price) + { + tmp2.Name = "Price"; + tmp2.Type = TType.Double; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemReward != null) && __isset.ItemReward) + { + tmp2.Name = "ItemReward"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ComboGiftTwoItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Price == other.__isset.Price) && ((!__isset.Price) || (global::System.Object.Equals(Price, other.Price)))) + && ((__isset.ItemReward == other.__isset.ItemReward) && ((!__isset.ItemReward) || (global::System.Object.Equals(ItemReward, other.ItemReward)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Price) + { + hashcode = (hashcode * 397) + Price.GetHashCode(); + } + if((ItemReward != null) && __isset.ItemReward) + { + hashcode = (hashcode * 397) + ItemReward.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("ComboGiftTwoItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Price) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price: "); + Price.ToString(tmp3); + } + if((ItemReward != null) && __isset.ItemReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemReward: "); + ItemReward.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwoItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwoItem.cs.meta new file mode 100644 index 0000000..2a9dae6 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ComboGiftTwoItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8e89710ac902817428d0db49dda2f02f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfg.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfg.Extensions.cs new file mode 100644 index 0000000..3b4d5ab --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfg.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class DailyTaskActiveCfgExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfg.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfg.Extensions.cs.meta new file mode 100644 index 0000000..82172b2 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfg.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3c53b9ee107e09d4aa9ed24442176a0f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfg.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfg.cs new file mode 100644 index 0000000..cf66e99 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfg.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class DailyTaskActiveCfg : TBase + { + private Dictionary _dailytaskactivecfgs; + + [DataMember(Order = 0)] + public Dictionary Dailytaskactivecfgs + { + get + { + return _dailytaskactivecfgs; + } + set + { + __isset.@dailytaskactivecfgs = true; + this._dailytaskactivecfgs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @dailytaskactivecfgs; + } + + #region XmlSerializer support + + public bool ShouldSerializeDailytaskactivecfgs() + { + return __isset.@dailytaskactivecfgs; + } + + #endregion XmlSerializer support + + public DailyTaskActiveCfg() + { + } + + public DailyTaskActiveCfg DeepCopy() + { + var tmp5 = new DailyTaskActiveCfg(); + if((Dailytaskactivecfgs != null) && __isset.@dailytaskactivecfgs) + { + tmp5.Dailytaskactivecfgs = this.Dailytaskactivecfgs.DeepCopy(); + } + tmp5.__isset.@dailytaskactivecfgs = this.__isset.@dailytaskactivecfgs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Dailytaskactivecfgs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.DailyTaskActiveCfgItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.DailyTaskActiveCfgItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Dailytaskactivecfgs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("DailyTaskActiveCfg"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Dailytaskactivecfgs != null) && __isset.@dailytaskactivecfgs) + { + tmp11.Name = "dailytaskactivecfgs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Dailytaskactivecfgs.Count), cancellationToken); + foreach (int _iter12 in Dailytaskactivecfgs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Dailytaskactivecfgs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is DailyTaskActiveCfg other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@dailytaskactivecfgs == other.__isset.@dailytaskactivecfgs) && ((!__isset.@dailytaskactivecfgs) || (TCollections.Equals(Dailytaskactivecfgs, other.Dailytaskactivecfgs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Dailytaskactivecfgs != null) && __isset.@dailytaskactivecfgs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Dailytaskactivecfgs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("DailyTaskActiveCfg("); + int tmp14 = 0; + if((Dailytaskactivecfgs != null) && __isset.@dailytaskactivecfgs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Dailytaskactivecfgs: "); + Dailytaskactivecfgs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfg.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfg.cs.meta new file mode 100644 index 0000000..3b8ff5a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e2c9e776c68bcb14e8902b6e90979616 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfgItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfgItem.cs new file mode 100644 index 0000000..e4e9915 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfgItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class DailyTaskActiveCfgItem : TBase + { + private int _Id; + private string _RewardID; + private string _RewardCnt; + private int _Active; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string RewardID + { + get + { + return _RewardID; + } + set + { + __isset.RewardID = true; + this._RewardID = value; + } + } + + [DataMember(Order = 0)] + public string RewardCnt + { + get + { + return _RewardCnt; + } + set + { + __isset.RewardCnt = true; + this._RewardCnt = value; + } + } + + [DataMember(Order = 0)] + public int Active + { + get + { + return _Active; + } + set + { + __isset.Active = true; + this._Active = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool RewardID; + [DataMember] + public bool RewardCnt; + [DataMember] + public bool Active; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeRewardID() + { + return __isset.RewardID; + } + + public bool ShouldSerializeRewardCnt() + { + return __isset.RewardCnt; + } + + public bool ShouldSerializeActive() + { + return __isset.Active; + } + + #endregion XmlSerializer support + + public DailyTaskActiveCfgItem() + { + } + + public DailyTaskActiveCfgItem DeepCopy() + { + var tmp0 = new DailyTaskActiveCfgItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((RewardID != null) && __isset.RewardID) + { + tmp0.RewardID = this.RewardID; + } + tmp0.__isset.RewardID = this.__isset.RewardID; + if((RewardCnt != null) && __isset.RewardCnt) + { + tmp0.RewardCnt = this.RewardCnt; + } + tmp0.__isset.RewardCnt = this.__isset.RewardCnt; + if(__isset.Active) + { + tmp0.Active = this.Active; + } + tmp0.__isset.Active = this.__isset.Active; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + RewardID = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + RewardCnt = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + Active = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("DailyTaskActiveCfgItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardID != null) && __isset.RewardID) + { + tmp2.Name = "RewardID"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardID, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + tmp2.Name = "RewardCnt"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardCnt, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Active) + { + tmp2.Name = "Active"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Active, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is DailyTaskActiveCfgItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.RewardID == other.__isset.RewardID) && ((!__isset.RewardID) || (global::System.Object.Equals(RewardID, other.RewardID)))) + && ((__isset.RewardCnt == other.__isset.RewardCnt) && ((!__isset.RewardCnt) || (global::System.Object.Equals(RewardCnt, other.RewardCnt)))) + && ((__isset.Active == other.__isset.Active) && ((!__isset.Active) || (global::System.Object.Equals(Active, other.Active)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((RewardID != null) && __isset.RewardID) + { + hashcode = (hashcode * 397) + RewardID.GetHashCode(); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + hashcode = (hashcode * 397) + RewardCnt.GetHashCode(); + } + if(__isset.Active) + { + hashcode = (hashcode * 397) + Active.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("DailyTaskActiveCfgItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((RewardID != null) && __isset.RewardID) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardID: "); + RewardID.ToString(tmp3); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardCnt: "); + RewardCnt.ToString(tmp3); + } + if(__isset.Active) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Active: "); + Active.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfgItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfgItem.cs.meta new file mode 100644 index 0000000..41d5a72 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskActiveCfgItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f60ae0083784ff042b052f7d4dd5f21b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfig.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfig.Extensions.cs new file mode 100644 index 0000000..351f258 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfig.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class DailyTaskConfigExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfig.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfig.Extensions.cs.meta new file mode 100644 index 0000000..5dbbdff --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfig.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 53bf975cfe3cb1745ad763e10ebf56ce +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfig.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfig.cs new file mode 100644 index 0000000..7f58daf --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfig.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class DailyTaskConfig : TBase + { + private Dictionary _dailytaskconfigs; + + [DataMember(Order = 0)] + public Dictionary Dailytaskconfigs + { + get + { + return _dailytaskconfigs; + } + set + { + __isset.@dailytaskconfigs = true; + this._dailytaskconfigs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @dailytaskconfigs; + } + + #region XmlSerializer support + + public bool ShouldSerializeDailytaskconfigs() + { + return __isset.@dailytaskconfigs; + } + + #endregion XmlSerializer support + + public DailyTaskConfig() + { + } + + public DailyTaskConfig DeepCopy() + { + var tmp5 = new DailyTaskConfig(); + if((Dailytaskconfigs != null) && __isset.@dailytaskconfigs) + { + tmp5.Dailytaskconfigs = this.Dailytaskconfigs.DeepCopy(); + } + tmp5.__isset.@dailytaskconfigs = this.__isset.@dailytaskconfigs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Dailytaskconfigs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.DailyTaskConfigItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.DailyTaskConfigItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Dailytaskconfigs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("DailyTaskConfig"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Dailytaskconfigs != null) && __isset.@dailytaskconfigs) + { + tmp11.Name = "dailytaskconfigs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Dailytaskconfigs.Count), cancellationToken); + foreach (int _iter12 in Dailytaskconfigs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Dailytaskconfigs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is DailyTaskConfig other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@dailytaskconfigs == other.__isset.@dailytaskconfigs) && ((!__isset.@dailytaskconfigs) || (TCollections.Equals(Dailytaskconfigs, other.Dailytaskconfigs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Dailytaskconfigs != null) && __isset.@dailytaskconfigs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Dailytaskconfigs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("DailyTaskConfig("); + int tmp14 = 0; + if((Dailytaskconfigs != null) && __isset.@dailytaskconfigs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Dailytaskconfigs: "); + Dailytaskconfigs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfig.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfig.cs.meta new file mode 100644 index 0000000..dbd561d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfig.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5f441a4a64375624c9eace72c04b516c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfigItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfigItem.cs new file mode 100644 index 0000000..ea2859a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfigItem.cs @@ -0,0 +1,651 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class DailyTaskConfigItem : TBase + { + private int _Id; + private int _TaskPoolId; + private string _OpenCondition; + private int _TaskType; + private string _Describe; + private int _TaskNum; + private string _RewardID; + private string _RewardCnt; + private int _Active; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int TaskPoolId + { + get + { + return _TaskPoolId; + } + set + { + __isset.TaskPoolId = true; + this._TaskPoolId = value; + } + } + + [DataMember(Order = 0)] + public string OpenCondition + { + get + { + return _OpenCondition; + } + set + { + __isset.OpenCondition = true; + this._OpenCondition = value; + } + } + + [DataMember(Order = 0)] + public int TaskType + { + get + { + return _TaskType; + } + set + { + __isset.TaskType = true; + this._TaskType = value; + } + } + + [DataMember(Order = 0)] + public string Describe + { + get + { + return _Describe; + } + set + { + __isset.Describe = true; + this._Describe = value; + } + } + + [DataMember(Order = 0)] + public int TaskNum + { + get + { + return _TaskNum; + } + set + { + __isset.TaskNum = true; + this._TaskNum = value; + } + } + + [DataMember(Order = 0)] + public string RewardID + { + get + { + return _RewardID; + } + set + { + __isset.RewardID = true; + this._RewardID = value; + } + } + + [DataMember(Order = 0)] + public string RewardCnt + { + get + { + return _RewardCnt; + } + set + { + __isset.RewardCnt = true; + this._RewardCnt = value; + } + } + + [DataMember(Order = 0)] + public int Active + { + get + { + return _Active; + } + set + { + __isset.Active = true; + this._Active = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool TaskPoolId; + [DataMember] + public bool OpenCondition; + [DataMember] + public bool TaskType; + [DataMember] + public bool Describe; + [DataMember] + public bool TaskNum; + [DataMember] + public bool RewardID; + [DataMember] + public bool RewardCnt; + [DataMember] + public bool Active; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeTaskPoolId() + { + return __isset.TaskPoolId; + } + + public bool ShouldSerializeOpenCondition() + { + return __isset.OpenCondition; + } + + public bool ShouldSerializeTaskType() + { + return __isset.TaskType; + } + + public bool ShouldSerializeDescribe() + { + return __isset.Describe; + } + + public bool ShouldSerializeTaskNum() + { + return __isset.TaskNum; + } + + public bool ShouldSerializeRewardID() + { + return __isset.RewardID; + } + + public bool ShouldSerializeRewardCnt() + { + return __isset.RewardCnt; + } + + public bool ShouldSerializeActive() + { + return __isset.Active; + } + + #endregion XmlSerializer support + + public DailyTaskConfigItem() + { + } + + public DailyTaskConfigItem DeepCopy() + { + var tmp0 = new DailyTaskConfigItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.TaskPoolId) + { + tmp0.TaskPoolId = this.TaskPoolId; + } + tmp0.__isset.TaskPoolId = this.__isset.TaskPoolId; + if((OpenCondition != null) && __isset.OpenCondition) + { + tmp0.OpenCondition = this.OpenCondition; + } + tmp0.__isset.OpenCondition = this.__isset.OpenCondition; + if(__isset.TaskType) + { + tmp0.TaskType = this.TaskType; + } + tmp0.__isset.TaskType = this.__isset.TaskType; + if((Describe != null) && __isset.Describe) + { + tmp0.Describe = this.Describe; + } + tmp0.__isset.Describe = this.__isset.Describe; + if(__isset.TaskNum) + { + tmp0.TaskNum = this.TaskNum; + } + tmp0.__isset.TaskNum = this.__isset.TaskNum; + if((RewardID != null) && __isset.RewardID) + { + tmp0.RewardID = this.RewardID; + } + tmp0.__isset.RewardID = this.__isset.RewardID; + if((RewardCnt != null) && __isset.RewardCnt) + { + tmp0.RewardCnt = this.RewardCnt; + } + tmp0.__isset.RewardCnt = this.__isset.RewardCnt; + if(__isset.Active) + { + tmp0.Active = this.Active; + } + tmp0.__isset.Active = this.__isset.Active; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + TaskPoolId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + OpenCondition = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + TaskType = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Describe = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I32) + { + TaskNum = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + RewardID = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + RewardCnt = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I32) + { + Active = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("DailyTaskConfigItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.TaskPoolId) + { + tmp2.Name = "TaskPoolId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(TaskPoolId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((OpenCondition != null) && __isset.OpenCondition) + { + tmp2.Name = "OpenCondition"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(OpenCondition, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.TaskType) + { + tmp2.Name = "TaskType"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(TaskType, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Describe != null) && __isset.Describe) + { + tmp2.Name = "Describe"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Describe, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.TaskNum) + { + tmp2.Name = "TaskNum"; + tmp2.Type = TType.I32; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(TaskNum, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardID != null) && __isset.RewardID) + { + tmp2.Name = "RewardID"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardID, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + tmp2.Name = "RewardCnt"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardCnt, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Active) + { + tmp2.Name = "Active"; + tmp2.Type = TType.I32; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Active, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is DailyTaskConfigItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.TaskPoolId == other.__isset.TaskPoolId) && ((!__isset.TaskPoolId) || (global::System.Object.Equals(TaskPoolId, other.TaskPoolId)))) + && ((__isset.OpenCondition == other.__isset.OpenCondition) && ((!__isset.OpenCondition) || (global::System.Object.Equals(OpenCondition, other.OpenCondition)))) + && ((__isset.TaskType == other.__isset.TaskType) && ((!__isset.TaskType) || (global::System.Object.Equals(TaskType, other.TaskType)))) + && ((__isset.Describe == other.__isset.Describe) && ((!__isset.Describe) || (global::System.Object.Equals(Describe, other.Describe)))) + && ((__isset.TaskNum == other.__isset.TaskNum) && ((!__isset.TaskNum) || (global::System.Object.Equals(TaskNum, other.TaskNum)))) + && ((__isset.RewardID == other.__isset.RewardID) && ((!__isset.RewardID) || (global::System.Object.Equals(RewardID, other.RewardID)))) + && ((__isset.RewardCnt == other.__isset.RewardCnt) && ((!__isset.RewardCnt) || (global::System.Object.Equals(RewardCnt, other.RewardCnt)))) + && ((__isset.Active == other.__isset.Active) && ((!__isset.Active) || (global::System.Object.Equals(Active, other.Active)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.TaskPoolId) + { + hashcode = (hashcode * 397) + TaskPoolId.GetHashCode(); + } + if((OpenCondition != null) && __isset.OpenCondition) + { + hashcode = (hashcode * 397) + OpenCondition.GetHashCode(); + } + if(__isset.TaskType) + { + hashcode = (hashcode * 397) + TaskType.GetHashCode(); + } + if((Describe != null) && __isset.Describe) + { + hashcode = (hashcode * 397) + Describe.GetHashCode(); + } + if(__isset.TaskNum) + { + hashcode = (hashcode * 397) + TaskNum.GetHashCode(); + } + if((RewardID != null) && __isset.RewardID) + { + hashcode = (hashcode * 397) + RewardID.GetHashCode(); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + hashcode = (hashcode * 397) + RewardCnt.GetHashCode(); + } + if(__isset.Active) + { + hashcode = (hashcode * 397) + Active.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("DailyTaskConfigItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.TaskPoolId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TaskPoolId: "); + TaskPoolId.ToString(tmp3); + } + if((OpenCondition != null) && __isset.OpenCondition) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("OpenCondition: "); + OpenCondition.ToString(tmp3); + } + if(__isset.TaskType) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TaskType: "); + TaskType.ToString(tmp3); + } + if((Describe != null) && __isset.Describe) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Describe: "); + Describe.ToString(tmp3); + } + if(__isset.TaskNum) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TaskNum: "); + TaskNum.ToString(tmp3); + } + if((RewardID != null) && __isset.RewardID) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardID: "); + RewardID.ToString(tmp3); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardCnt: "); + RewardCnt.ToString(tmp3); + } + if(__isset.Active) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Active: "); + Active.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfigItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfigItem.cs.meta new file mode 100644 index 0000000..48f2830 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskConfigItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b93080d69a0bcfd438a6d0f6779a1fc3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetail.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetail.Extensions.cs new file mode 100644 index 0000000..d826762 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetail.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class DailyTaskDetailExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetail.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetail.Extensions.cs.meta new file mode 100644 index 0000000..2b4c513 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetail.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1460c7bea6884f64f9d30b3a6b46ab72 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetail.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetail.cs new file mode 100644 index 0000000..688ece9 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetail.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class DailyTaskDetail : TBase + { + private Dictionary _dailytaskdetails; + + [DataMember(Order = 0)] + public Dictionary Dailytaskdetails + { + get + { + return _dailytaskdetails; + } + set + { + __isset.@dailytaskdetails = true; + this._dailytaskdetails = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @dailytaskdetails; + } + + #region XmlSerializer support + + public bool ShouldSerializeDailytaskdetails() + { + return __isset.@dailytaskdetails; + } + + #endregion XmlSerializer support + + public DailyTaskDetail() + { + } + + public DailyTaskDetail DeepCopy() + { + var tmp5 = new DailyTaskDetail(); + if((Dailytaskdetails != null) && __isset.@dailytaskdetails) + { + tmp5.Dailytaskdetails = this.Dailytaskdetails.DeepCopy(); + } + tmp5.__isset.@dailytaskdetails = this.__isset.@dailytaskdetails; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Dailytaskdetails = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.DailyTaskDetailItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.DailyTaskDetailItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Dailytaskdetails[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("DailyTaskDetail"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Dailytaskdetails != null) && __isset.@dailytaskdetails) + { + tmp11.Name = "dailytaskdetails"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Dailytaskdetails.Count), cancellationToken); + foreach (int _iter12 in Dailytaskdetails.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Dailytaskdetails[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is DailyTaskDetail other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@dailytaskdetails == other.__isset.@dailytaskdetails) && ((!__isset.@dailytaskdetails) || (TCollections.Equals(Dailytaskdetails, other.Dailytaskdetails)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Dailytaskdetails != null) && __isset.@dailytaskdetails) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Dailytaskdetails); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("DailyTaskDetail("); + int tmp14 = 0; + if((Dailytaskdetails != null) && __isset.@dailytaskdetails) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Dailytaskdetails: "); + Dailytaskdetails.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetail.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetail.cs.meta new file mode 100644 index 0000000..7e3a358 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetail.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6a026653772392f41979b722bdee0821 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetailItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetailItem.cs new file mode 100644 index 0000000..9d92aac --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetailItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class DailyTaskDetailItem : TBase + { + private int _Id; + private int _SortId; + private string _Task; + private string _Type; + private string _Title; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int SortId + { + get + { + return _SortId; + } + set + { + __isset.SortId = true; + this._SortId = value; + } + } + + [DataMember(Order = 0)] + public string Task + { + get + { + return _Task; + } + set + { + __isset.Task = true; + this._Task = value; + } + } + + [DataMember(Order = 0)] + public string Type + { + get + { + return _Type; + } + set + { + __isset.Type = true; + this._Type = value; + } + } + + [DataMember(Order = 0)] + public string Title + { + get + { + return _Title; + } + set + { + __isset.Title = true; + this._Title = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool SortId; + [DataMember] + public bool Task; + [DataMember] + public bool Type; + [DataMember] + public bool Title; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeSortId() + { + return __isset.SortId; + } + + public bool ShouldSerializeTask() + { + return __isset.Task; + } + + public bool ShouldSerializeType() + { + return __isset.Type; + } + + public bool ShouldSerializeTitle() + { + return __isset.Title; + } + + #endregion XmlSerializer support + + public DailyTaskDetailItem() + { + } + + public DailyTaskDetailItem DeepCopy() + { + var tmp0 = new DailyTaskDetailItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.SortId) + { + tmp0.SortId = this.SortId; + } + tmp0.__isset.SortId = this.__isset.SortId; + if((Task != null) && __isset.Task) + { + tmp0.Task = this.Task; + } + tmp0.__isset.Task = this.__isset.Task; + if((Type != null) && __isset.Type) + { + tmp0.Type = this.Type; + } + tmp0.__isset.Type = this.__isset.Type; + if((Title != null) && __isset.Title) + { + tmp0.Title = this.Title; + } + tmp0.__isset.Title = this.__isset.Title; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + SortId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Task = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Type = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Title = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("DailyTaskDetailItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SortId) + { + tmp2.Name = "SortId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SortId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Task != null) && __isset.Task) + { + tmp2.Name = "Task"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Task, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Type != null) && __isset.Type) + { + tmp2.Name = "Type"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Title != null) && __isset.Title) + { + tmp2.Name = "Title"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Title, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is DailyTaskDetailItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.SortId == other.__isset.SortId) && ((!__isset.SortId) || (global::System.Object.Equals(SortId, other.SortId)))) + && ((__isset.Task == other.__isset.Task) && ((!__isset.Task) || (global::System.Object.Equals(Task, other.Task)))) + && ((__isset.Type == other.__isset.Type) && ((!__isset.Type) || (global::System.Object.Equals(Type, other.Type)))) + && ((__isset.Title == other.__isset.Title) && ((!__isset.Title) || (global::System.Object.Equals(Title, other.Title)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.SortId) + { + hashcode = (hashcode * 397) + SortId.GetHashCode(); + } + if((Task != null) && __isset.Task) + { + hashcode = (hashcode * 397) + Task.GetHashCode(); + } + if((Type != null) && __isset.Type) + { + hashcode = (hashcode * 397) + Type.GetHashCode(); + } + if((Title != null) && __isset.Title) + { + hashcode = (hashcode * 397) + Title.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("DailyTaskDetailItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.SortId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SortId: "); + SortId.ToString(tmp3); + } + if((Task != null) && __isset.Task) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Task: "); + Task.ToString(tmp3); + } + if((Type != null) && __isset.Type) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Type: "); + Type.ToString(tmp3); + } + if((Title != null) && __isset.Title) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Title: "); + Title.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetailItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetailItem.cs.meta new file mode 100644 index 0000000..eea9a73 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskDetailItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3b2ea3620d77d0f488c6ab24f29db36c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskReward.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskReward.Extensions.cs new file mode 100644 index 0000000..7955d4f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskReward.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class DailyTaskRewardExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskReward.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskReward.Extensions.cs.meta new file mode 100644 index 0000000..dad96e9 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskReward.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cc5496c19057f544284d91d839ddb915 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskReward.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskReward.cs new file mode 100644 index 0000000..c217516 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskReward.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class DailyTaskReward : TBase + { + private Dictionary _dailytaskrewards; + + [DataMember(Order = 0)] + public Dictionary Dailytaskrewards + { + get + { + return _dailytaskrewards; + } + set + { + __isset.@dailytaskrewards = true; + this._dailytaskrewards = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @dailytaskrewards; + } + + #region XmlSerializer support + + public bool ShouldSerializeDailytaskrewards() + { + return __isset.@dailytaskrewards; + } + + #endregion XmlSerializer support + + public DailyTaskReward() + { + } + + public DailyTaskReward DeepCopy() + { + var tmp5 = new DailyTaskReward(); + if((Dailytaskrewards != null) && __isset.@dailytaskrewards) + { + tmp5.Dailytaskrewards = this.Dailytaskrewards.DeepCopy(); + } + tmp5.__isset.@dailytaskrewards = this.__isset.@dailytaskrewards; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Dailytaskrewards = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.DailyTaskRewardItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.DailyTaskRewardItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Dailytaskrewards[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("DailyTaskReward"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Dailytaskrewards != null) && __isset.@dailytaskrewards) + { + tmp11.Name = "dailytaskrewards"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Dailytaskrewards.Count), cancellationToken); + foreach (int _iter12 in Dailytaskrewards.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Dailytaskrewards[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is DailyTaskReward other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@dailytaskrewards == other.__isset.@dailytaskrewards) && ((!__isset.@dailytaskrewards) || (TCollections.Equals(Dailytaskrewards, other.Dailytaskrewards)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Dailytaskrewards != null) && __isset.@dailytaskrewards) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Dailytaskrewards); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("DailyTaskReward("); + int tmp14 = 0; + if((Dailytaskrewards != null) && __isset.@dailytaskrewards) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Dailytaskrewards: "); + Dailytaskrewards.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskReward.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskReward.cs.meta new file mode 100644 index 0000000..bd087e7 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2a311e2779fd757428b3cdb15b20395e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskRewardItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskRewardItem.cs new file mode 100644 index 0000000..14e9676 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskRewardItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class DailyTaskRewardItem : TBase + { + private int _Id; + private int _SortId; + private string _ItemReward; + private int _ScoreReward; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int SortId + { + get + { + return _SortId; + } + set + { + __isset.SortId = true; + this._SortId = value; + } + } + + [DataMember(Order = 0)] + public string ItemReward + { + get + { + return _ItemReward; + } + set + { + __isset.ItemReward = true; + this._ItemReward = value; + } + } + + [DataMember(Order = 0)] + public int ScoreReward + { + get + { + return _ScoreReward; + } + set + { + __isset.ScoreReward = true; + this._ScoreReward = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool SortId; + [DataMember] + public bool ItemReward; + [DataMember] + public bool ScoreReward; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeSortId() + { + return __isset.SortId; + } + + public bool ShouldSerializeItemReward() + { + return __isset.ItemReward; + } + + public bool ShouldSerializeScoreReward() + { + return __isset.ScoreReward; + } + + #endregion XmlSerializer support + + public DailyTaskRewardItem() + { + } + + public DailyTaskRewardItem DeepCopy() + { + var tmp0 = new DailyTaskRewardItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.SortId) + { + tmp0.SortId = this.SortId; + } + tmp0.__isset.SortId = this.__isset.SortId; + if((ItemReward != null) && __isset.ItemReward) + { + tmp0.ItemReward = this.ItemReward; + } + tmp0.__isset.ItemReward = this.__isset.ItemReward; + if(__isset.ScoreReward) + { + tmp0.ScoreReward = this.ScoreReward; + } + tmp0.__isset.ScoreReward = this.__isset.ScoreReward; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + SortId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + ItemReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + ScoreReward = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("DailyTaskRewardItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SortId) + { + tmp2.Name = "SortId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SortId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemReward != null) && __isset.ItemReward) + { + tmp2.Name = "ItemReward"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ScoreReward) + { + tmp2.Name = "ScoreReward"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ScoreReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is DailyTaskRewardItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.SortId == other.__isset.SortId) && ((!__isset.SortId) || (global::System.Object.Equals(SortId, other.SortId)))) + && ((__isset.ItemReward == other.__isset.ItemReward) && ((!__isset.ItemReward) || (global::System.Object.Equals(ItemReward, other.ItemReward)))) + && ((__isset.ScoreReward == other.__isset.ScoreReward) && ((!__isset.ScoreReward) || (global::System.Object.Equals(ScoreReward, other.ScoreReward)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.SortId) + { + hashcode = (hashcode * 397) + SortId.GetHashCode(); + } + if((ItemReward != null) && __isset.ItemReward) + { + hashcode = (hashcode * 397) + ItemReward.GetHashCode(); + } + if(__isset.ScoreReward) + { + hashcode = (hashcode * 397) + ScoreReward.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("DailyTaskRewardItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.SortId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SortId: "); + SortId.ToString(tmp3); + } + if((ItemReward != null) && __isset.ItemReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemReward: "); + ItemReward.ToString(tmp3); + } + if(__isset.ScoreReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ScoreReward: "); + ScoreReward.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskRewardItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskRewardItem.cs.meta new file mode 100644 index 0000000..2e0daef --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DailyTaskRewardItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 215fb754b891b4a4489097efbe25901d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCost.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCost.Extensions.cs new file mode 100644 index 0000000..743e38e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCost.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class DecorateCostExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCost.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCost.Extensions.cs.meta new file mode 100644 index 0000000..08f8d63 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCost.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d587ec7cd1abe13479a596b18bab4b2c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCost.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCost.cs new file mode 100644 index 0000000..106a2d4 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCost.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class DecorateCost : TBase + { + private Dictionary _decoratecosts; + + [DataMember(Order = 0)] + public Dictionary Decoratecosts + { + get + { + return _decoratecosts; + } + set + { + __isset.@decoratecosts = true; + this._decoratecosts = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @decoratecosts; + } + + #region XmlSerializer support + + public bool ShouldSerializeDecoratecosts() + { + return __isset.@decoratecosts; + } + + #endregion XmlSerializer support + + public DecorateCost() + { + } + + public DecorateCost DeepCopy() + { + var tmp5 = new DecorateCost(); + if((Decoratecosts != null) && __isset.@decoratecosts) + { + tmp5.Decoratecosts = this.Decoratecosts.DeepCopy(); + } + tmp5.__isset.@decoratecosts = this.__isset.@decoratecosts; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Decoratecosts = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.DecorateCostItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.DecorateCostItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Decoratecosts[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("DecorateCost"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Decoratecosts != null) && __isset.@decoratecosts) + { + tmp11.Name = "decoratecosts"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Decoratecosts.Count), cancellationToken); + foreach (int _iter12 in Decoratecosts.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Decoratecosts[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is DecorateCost other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@decoratecosts == other.__isset.@decoratecosts) && ((!__isset.@decoratecosts) || (TCollections.Equals(Decoratecosts, other.Decoratecosts)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Decoratecosts != null) && __isset.@decoratecosts) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Decoratecosts); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("DecorateCost("); + int tmp14 = 0; + if((Decoratecosts != null) && __isset.@decoratecosts) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Decoratecosts: "); + Decoratecosts.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCost.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCost.cs.meta new file mode 100644 index 0000000..aacefdb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCost.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5223870e60fea8244a8ae055ff63ebf6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCostItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCostItem.cs new file mode 100644 index 0000000..3cd2b9a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCostItem.cs @@ -0,0 +1,1107 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class DecorateCostItem : TBase + { + private int _Id; + private int _AreaId; + private int _SortId; + private int _CostCount; + private string _Title; + private string _Icon; + private string _Pos; + private string _Action; + private string _Spine; + private string _Button; + private string _Build; + private string _Shine; + private string _Origin; + private string _DecoratePos; + private string _Skip; + private string _MapPethomeId; + private string _PetExp; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int AreaId + { + get + { + return _AreaId; + } + set + { + __isset.AreaId = true; + this._AreaId = value; + } + } + + [DataMember(Order = 0)] + public int SortId + { + get + { + return _SortId; + } + set + { + __isset.SortId = true; + this._SortId = value; + } + } + + [DataMember(Order = 0)] + public int CostCount + { + get + { + return _CostCount; + } + set + { + __isset.CostCount = true; + this._CostCount = value; + } + } + + [DataMember(Order = 0)] + public string Title + { + get + { + return _Title; + } + set + { + __isset.Title = true; + this._Title = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string Pos + { + get + { + return _Pos; + } + set + { + __isset.Pos = true; + this._Pos = value; + } + } + + [DataMember(Order = 0)] + public string Action + { + get + { + return _Action; + } + set + { + __isset.Action = true; + this._Action = value; + } + } + + [DataMember(Order = 0)] + public string Spine + { + get + { + return _Spine; + } + set + { + __isset.Spine = true; + this._Spine = value; + } + } + + [DataMember(Order = 0)] + public string Button + { + get + { + return _Button; + } + set + { + __isset.Button = true; + this._Button = value; + } + } + + [DataMember(Order = 0)] + public string Build + { + get + { + return _Build; + } + set + { + __isset.Build = true; + this._Build = value; + } + } + + [DataMember(Order = 0)] + public string Shine + { + get + { + return _Shine; + } + set + { + __isset.Shine = true; + this._Shine = value; + } + } + + [DataMember(Order = 0)] + public string Origin + { + get + { + return _Origin; + } + set + { + __isset.Origin = true; + this._Origin = value; + } + } + + [DataMember(Order = 0)] + public string DecoratePos + { + get + { + return _DecoratePos; + } + set + { + __isset.DecoratePos = true; + this._DecoratePos = value; + } + } + + [DataMember(Order = 0)] + public string Skip + { + get + { + return _Skip; + } + set + { + __isset.Skip = true; + this._Skip = value; + } + } + + [DataMember(Order = 0)] + public string MapPethomeId + { + get + { + return _MapPethomeId; + } + set + { + __isset.MapPethomeId = true; + this._MapPethomeId = value; + } + } + + [DataMember(Order = 0)] + public string PetExp + { + get + { + return _PetExp; + } + set + { + __isset.PetExp = true; + this._PetExp = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool AreaId; + [DataMember] + public bool SortId; + [DataMember] + public bool CostCount; + [DataMember] + public bool Title; + [DataMember] + public bool Icon; + [DataMember] + public bool Pos; + [DataMember] + public bool Action; + [DataMember] + public bool Spine; + [DataMember] + public bool Button; + [DataMember] + public bool Build; + [DataMember] + public bool Shine; + [DataMember] + public bool Origin; + [DataMember] + public bool DecoratePos; + [DataMember] + public bool Skip; + [DataMember] + public bool MapPethomeId; + [DataMember] + public bool PetExp; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeAreaId() + { + return __isset.AreaId; + } + + public bool ShouldSerializeSortId() + { + return __isset.SortId; + } + + public bool ShouldSerializeCostCount() + { + return __isset.CostCount; + } + + public bool ShouldSerializeTitle() + { + return __isset.Title; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializePos() + { + return __isset.Pos; + } + + public bool ShouldSerializeAction() + { + return __isset.Action; + } + + public bool ShouldSerializeSpine() + { + return __isset.Spine; + } + + public bool ShouldSerializeButton() + { + return __isset.Button; + } + + public bool ShouldSerializeBuild() + { + return __isset.Build; + } + + public bool ShouldSerializeShine() + { + return __isset.Shine; + } + + public bool ShouldSerializeOrigin() + { + return __isset.Origin; + } + + public bool ShouldSerializeDecoratePos() + { + return __isset.DecoratePos; + } + + public bool ShouldSerializeSkip() + { + return __isset.Skip; + } + + public bool ShouldSerializeMapPethomeId() + { + return __isset.MapPethomeId; + } + + public bool ShouldSerializePetExp() + { + return __isset.PetExp; + } + + #endregion XmlSerializer support + + public DecorateCostItem() + { + } + + public DecorateCostItem DeepCopy() + { + var tmp0 = new DecorateCostItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.AreaId) + { + tmp0.AreaId = this.AreaId; + } + tmp0.__isset.AreaId = this.__isset.AreaId; + if(__isset.SortId) + { + tmp0.SortId = this.SortId; + } + tmp0.__isset.SortId = this.__isset.SortId; + if(__isset.CostCount) + { + tmp0.CostCount = this.CostCount; + } + tmp0.__isset.CostCount = this.__isset.CostCount; + if((Title != null) && __isset.Title) + { + tmp0.Title = this.Title; + } + tmp0.__isset.Title = this.__isset.Title; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((Pos != null) && __isset.Pos) + { + tmp0.Pos = this.Pos; + } + tmp0.__isset.Pos = this.__isset.Pos; + if((Action != null) && __isset.Action) + { + tmp0.Action = this.Action; + } + tmp0.__isset.Action = this.__isset.Action; + if((Spine != null) && __isset.Spine) + { + tmp0.Spine = this.Spine; + } + tmp0.__isset.Spine = this.__isset.Spine; + if((Button != null) && __isset.Button) + { + tmp0.Button = this.Button; + } + tmp0.__isset.Button = this.__isset.Button; + if((Build != null) && __isset.Build) + { + tmp0.Build = this.Build; + } + tmp0.__isset.Build = this.__isset.Build; + if((Shine != null) && __isset.Shine) + { + tmp0.Shine = this.Shine; + } + tmp0.__isset.Shine = this.__isset.Shine; + if((Origin != null) && __isset.Origin) + { + tmp0.Origin = this.Origin; + } + tmp0.__isset.Origin = this.__isset.Origin; + if((DecoratePos != null) && __isset.DecoratePos) + { + tmp0.DecoratePos = this.DecoratePos; + } + tmp0.__isset.DecoratePos = this.__isset.DecoratePos; + if((Skip != null) && __isset.Skip) + { + tmp0.Skip = this.Skip; + } + tmp0.__isset.Skip = this.__isset.Skip; + if((MapPethomeId != null) && __isset.MapPethomeId) + { + tmp0.MapPethomeId = this.MapPethomeId; + } + tmp0.__isset.MapPethomeId = this.__isset.MapPethomeId; + if((PetExp != null) && __isset.PetExp) + { + tmp0.PetExp = this.PetExp; + } + tmp0.__isset.PetExp = this.__isset.PetExp; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + AreaId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + SortId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + CostCount = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Title = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Pos = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + Action = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.String) + { + Spine = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.String) + { + Button = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 11: + if (field.Type == TType.String) + { + Build = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 12: + if (field.Type == TType.String) + { + Shine = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 13: + if (field.Type == TType.String) + { + Origin = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 14: + if (field.Type == TType.String) + { + DecoratePos = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 15: + if (field.Type == TType.String) + { + Skip = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 16: + if (field.Type == TType.String) + { + MapPethomeId = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 17: + if (field.Type == TType.String) + { + PetExp = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("DecorateCostItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.AreaId) + { + tmp2.Name = "AreaId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(AreaId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SortId) + { + tmp2.Name = "SortId"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SortId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.CostCount) + { + tmp2.Name = "CostCount"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(CostCount, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Title != null) && __isset.Title) + { + tmp2.Name = "Title"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Title, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Pos != null) && __isset.Pos) + { + tmp2.Name = "Pos"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Pos, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Action != null) && __isset.Action) + { + tmp2.Name = "Action"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Action, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Spine != null) && __isset.Spine) + { + tmp2.Name = "Spine"; + tmp2.Type = TType.String; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Spine, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Button != null) && __isset.Button) + { + tmp2.Name = "Button"; + tmp2.Type = TType.String; + tmp2.ID = 10; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Button, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Build != null) && __isset.Build) + { + tmp2.Name = "Build"; + tmp2.Type = TType.String; + tmp2.ID = 11; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Build, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Shine != null) && __isset.Shine) + { + tmp2.Name = "Shine"; + tmp2.Type = TType.String; + tmp2.ID = 12; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Shine, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Origin != null) && __isset.Origin) + { + tmp2.Name = "Origin"; + tmp2.Type = TType.String; + tmp2.ID = 13; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Origin, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((DecoratePos != null) && __isset.DecoratePos) + { + tmp2.Name = "DecoratePos"; + tmp2.Type = TType.String; + tmp2.ID = 14; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(DecoratePos, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Skip != null) && __isset.Skip) + { + tmp2.Name = "Skip"; + tmp2.Type = TType.String; + tmp2.ID = 15; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Skip, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MapPethomeId != null) && __isset.MapPethomeId) + { + tmp2.Name = "MapPethomeId"; + tmp2.Type = TType.String; + tmp2.ID = 16; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(MapPethomeId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetExp != null) && __isset.PetExp) + { + tmp2.Name = "PetExp"; + tmp2.Type = TType.String; + tmp2.ID = 17; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(PetExp, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is DecorateCostItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.AreaId == other.__isset.AreaId) && ((!__isset.AreaId) || (global::System.Object.Equals(AreaId, other.AreaId)))) + && ((__isset.SortId == other.__isset.SortId) && ((!__isset.SortId) || (global::System.Object.Equals(SortId, other.SortId)))) + && ((__isset.CostCount == other.__isset.CostCount) && ((!__isset.CostCount) || (global::System.Object.Equals(CostCount, other.CostCount)))) + && ((__isset.Title == other.__isset.Title) && ((!__isset.Title) || (global::System.Object.Equals(Title, other.Title)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Pos == other.__isset.Pos) && ((!__isset.Pos) || (global::System.Object.Equals(Pos, other.Pos)))) + && ((__isset.Action == other.__isset.Action) && ((!__isset.Action) || (global::System.Object.Equals(Action, other.Action)))) + && ((__isset.Spine == other.__isset.Spine) && ((!__isset.Spine) || (global::System.Object.Equals(Spine, other.Spine)))) + && ((__isset.Button == other.__isset.Button) && ((!__isset.Button) || (global::System.Object.Equals(Button, other.Button)))) + && ((__isset.Build == other.__isset.Build) && ((!__isset.Build) || (global::System.Object.Equals(Build, other.Build)))) + && ((__isset.Shine == other.__isset.Shine) && ((!__isset.Shine) || (global::System.Object.Equals(Shine, other.Shine)))) + && ((__isset.Origin == other.__isset.Origin) && ((!__isset.Origin) || (global::System.Object.Equals(Origin, other.Origin)))) + && ((__isset.DecoratePos == other.__isset.DecoratePos) && ((!__isset.DecoratePos) || (global::System.Object.Equals(DecoratePos, other.DecoratePos)))) + && ((__isset.Skip == other.__isset.Skip) && ((!__isset.Skip) || (global::System.Object.Equals(Skip, other.Skip)))) + && ((__isset.MapPethomeId == other.__isset.MapPethomeId) && ((!__isset.MapPethomeId) || (global::System.Object.Equals(MapPethomeId, other.MapPethomeId)))) + && ((__isset.PetExp == other.__isset.PetExp) && ((!__isset.PetExp) || (global::System.Object.Equals(PetExp, other.PetExp)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.AreaId) + { + hashcode = (hashcode * 397) + AreaId.GetHashCode(); + } + if(__isset.SortId) + { + hashcode = (hashcode * 397) + SortId.GetHashCode(); + } + if(__isset.CostCount) + { + hashcode = (hashcode * 397) + CostCount.GetHashCode(); + } + if((Title != null) && __isset.Title) + { + hashcode = (hashcode * 397) + Title.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((Pos != null) && __isset.Pos) + { + hashcode = (hashcode * 397) + Pos.GetHashCode(); + } + if((Action != null) && __isset.Action) + { + hashcode = (hashcode * 397) + Action.GetHashCode(); + } + if((Spine != null) && __isset.Spine) + { + hashcode = (hashcode * 397) + Spine.GetHashCode(); + } + if((Button != null) && __isset.Button) + { + hashcode = (hashcode * 397) + Button.GetHashCode(); + } + if((Build != null) && __isset.Build) + { + hashcode = (hashcode * 397) + Build.GetHashCode(); + } + if((Shine != null) && __isset.Shine) + { + hashcode = (hashcode * 397) + Shine.GetHashCode(); + } + if((Origin != null) && __isset.Origin) + { + hashcode = (hashcode * 397) + Origin.GetHashCode(); + } + if((DecoratePos != null) && __isset.DecoratePos) + { + hashcode = (hashcode * 397) + DecoratePos.GetHashCode(); + } + if((Skip != null) && __isset.Skip) + { + hashcode = (hashcode * 397) + Skip.GetHashCode(); + } + if((MapPethomeId != null) && __isset.MapPethomeId) + { + hashcode = (hashcode * 397) + MapPethomeId.GetHashCode(); + } + if((PetExp != null) && __isset.PetExp) + { + hashcode = (hashcode * 397) + PetExp.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("DecorateCostItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.AreaId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("AreaId: "); + AreaId.ToString(tmp3); + } + if(__isset.SortId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SortId: "); + SortId.ToString(tmp3); + } + if(__isset.CostCount) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CostCount: "); + CostCount.ToString(tmp3); + } + if((Title != null) && __isset.Title) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Title: "); + Title.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((Pos != null) && __isset.Pos) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Pos: "); + Pos.ToString(tmp3); + } + if((Action != null) && __isset.Action) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Action: "); + Action.ToString(tmp3); + } + if((Spine != null) && __isset.Spine) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Spine: "); + Spine.ToString(tmp3); + } + if((Button != null) && __isset.Button) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Button: "); + Button.ToString(tmp3); + } + if((Build != null) && __isset.Build) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Build: "); + Build.ToString(tmp3); + } + if((Shine != null) && __isset.Shine) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Shine: "); + Shine.ToString(tmp3); + } + if((Origin != null) && __isset.Origin) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Origin: "); + Origin.ToString(tmp3); + } + if((DecoratePos != null) && __isset.DecoratePos) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("DecoratePos: "); + DecoratePos.ToString(tmp3); + } + if((Skip != null) && __isset.Skip) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Skip: "); + Skip.ToString(tmp3); + } + if((MapPethomeId != null) && __isset.MapPethomeId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MapPethomeId: "); + MapPethomeId.ToString(tmp3); + } + if((PetExp != null) && __isset.PetExp) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetExp: "); + PetExp.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCostItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCostItem.cs.meta new file mode 100644 index 0000000..7f6928f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DecorateCostItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a5d303d176d89c54a8ce84182b9dd4f6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogData.Extensions.cs new file mode 100644 index 0000000..b1d8411 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class DialogDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogData.Extensions.cs.meta new file mode 100644 index 0000000..e25b9b2 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cf17fcfd70bf4b44284c81e2f47551b5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogData.cs new file mode 100644 index 0000000..8119793 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class DialogData : TBase + { + private Dictionary _dialogdatas; + + [DataMember(Order = 0)] + public Dictionary Dialogdatas + { + get + { + return _dialogdatas; + } + set + { + __isset.@dialogdatas = true; + this._dialogdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @dialogdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeDialogdatas() + { + return __isset.@dialogdatas; + } + + #endregion XmlSerializer support + + public DialogData() + { + } + + public DialogData DeepCopy() + { + var tmp5 = new DialogData(); + if((Dialogdatas != null) && __isset.@dialogdatas) + { + tmp5.Dialogdatas = this.Dialogdatas.DeepCopy(); + } + tmp5.__isset.@dialogdatas = this.__isset.@dialogdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Dialogdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.DialogDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.DialogDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Dialogdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("DialogData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Dialogdatas != null) && __isset.@dialogdatas) + { + tmp11.Name = "dialogdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Dialogdatas.Count), cancellationToken); + foreach (int _iter12 in Dialogdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Dialogdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is DialogData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@dialogdatas == other.__isset.@dialogdatas) && ((!__isset.@dialogdatas) || (TCollections.Equals(Dialogdatas, other.Dialogdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Dialogdatas != null) && __isset.@dialogdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Dialogdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("DialogData("); + int tmp14 = 0; + if((Dialogdatas != null) && __isset.@dialogdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Dialogdatas: "); + Dialogdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogData.cs.meta new file mode 100644 index 0000000..9395a5c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3ff30e8bb8a03a54f90f7f0e442d7ce6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogDataItem.cs new file mode 100644 index 0000000..d4ea3be --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogDataItem.cs @@ -0,0 +1,822 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class DialogDataItem : TBase + { + private int _Id; + private string _PlotNode; + private int _SceneId; + private string _Group; + private int _SortId; + private string _Direct; + private string _Icon; + private string _Title; + private string _Content; + private string _BubbleType; + private string _Phone; + private string _Status; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string PlotNode + { + get + { + return _PlotNode; + } + set + { + __isset.PlotNode = true; + this._PlotNode = value; + } + } + + [DataMember(Order = 0)] + public int SceneId + { + get + { + return _SceneId; + } + set + { + __isset.SceneId = true; + this._SceneId = value; + } + } + + [DataMember(Order = 0)] + public string Group + { + get + { + return _Group; + } + set + { + __isset.@Group = true; + this._Group = value; + } + } + + [DataMember(Order = 0)] + public int SortId + { + get + { + return _SortId; + } + set + { + __isset.SortId = true; + this._SortId = value; + } + } + + [DataMember(Order = 0)] + public string Direct + { + get + { + return _Direct; + } + set + { + __isset.Direct = true; + this._Direct = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string Title + { + get + { + return _Title; + } + set + { + __isset.Title = true; + this._Title = value; + } + } + + [DataMember(Order = 0)] + public string Content + { + get + { + return _Content; + } + set + { + __isset.Content = true; + this._Content = value; + } + } + + [DataMember(Order = 0)] + public string BubbleType + { + get + { + return _BubbleType; + } + set + { + __isset.BubbleType = true; + this._BubbleType = value; + } + } + + [DataMember(Order = 0)] + public string Phone + { + get + { + return _Phone; + } + set + { + __isset.Phone = true; + this._Phone = value; + } + } + + [DataMember(Order = 0)] + public string Status + { + get + { + return _Status; + } + set + { + __isset.Status = true; + this._Status = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool PlotNode; + [DataMember] + public bool SceneId; + [DataMember] + public bool @Group; + [DataMember] + public bool SortId; + [DataMember] + public bool Direct; + [DataMember] + public bool Icon; + [DataMember] + public bool Title; + [DataMember] + public bool Content; + [DataMember] + public bool BubbleType; + [DataMember] + public bool Phone; + [DataMember] + public bool Status; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializePlotNode() + { + return __isset.PlotNode; + } + + public bool ShouldSerializeSceneId() + { + return __isset.SceneId; + } + + public bool ShouldSerializeGroup() + { + return __isset.@Group; + } + + public bool ShouldSerializeSortId() + { + return __isset.SortId; + } + + public bool ShouldSerializeDirect() + { + return __isset.Direct; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeTitle() + { + return __isset.Title; + } + + public bool ShouldSerializeContent() + { + return __isset.Content; + } + + public bool ShouldSerializeBubbleType() + { + return __isset.BubbleType; + } + + public bool ShouldSerializePhone() + { + return __isset.Phone; + } + + public bool ShouldSerializeStatus() + { + return __isset.Status; + } + + #endregion XmlSerializer support + + public DialogDataItem() + { + } + + public DialogDataItem DeepCopy() + { + var tmp0 = new DialogDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((PlotNode != null) && __isset.PlotNode) + { + tmp0.PlotNode = this.PlotNode; + } + tmp0.__isset.PlotNode = this.__isset.PlotNode; + if(__isset.SceneId) + { + tmp0.SceneId = this.SceneId; + } + tmp0.__isset.SceneId = this.__isset.SceneId; + if((Group != null) && __isset.@Group) + { + tmp0.Group = this.Group; + } + tmp0.__isset.@Group = this.__isset.@Group; + if(__isset.SortId) + { + tmp0.SortId = this.SortId; + } + tmp0.__isset.SortId = this.__isset.SortId; + if((Direct != null) && __isset.Direct) + { + tmp0.Direct = this.Direct; + } + tmp0.__isset.Direct = this.__isset.Direct; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((Title != null) && __isset.Title) + { + tmp0.Title = this.Title; + } + tmp0.__isset.Title = this.__isset.Title; + if((Content != null) && __isset.Content) + { + tmp0.Content = this.Content; + } + tmp0.__isset.Content = this.__isset.Content; + if((BubbleType != null) && __isset.BubbleType) + { + tmp0.BubbleType = this.BubbleType; + } + tmp0.__isset.BubbleType = this.__isset.BubbleType; + if((Phone != null) && __isset.Phone) + { + tmp0.Phone = this.Phone; + } + tmp0.__isset.Phone = this.__isset.Phone; + if((Status != null) && __isset.Status) + { + tmp0.Status = this.Status; + } + tmp0.__isset.Status = this.__isset.Status; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + PlotNode = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + SceneId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Group = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + SortId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + Direct = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + Title = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.String) + { + Content = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.String) + { + BubbleType = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 11: + if (field.Type == TType.String) + { + Phone = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 12: + if (field.Type == TType.String) + { + Status = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("DialogDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PlotNode != null) && __isset.PlotNode) + { + tmp2.Name = "PlotNode"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(PlotNode, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SceneId) + { + tmp2.Name = "SceneId"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SceneId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Group != null) && __isset.@Group) + { + tmp2.Name = "Group"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Group, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SortId) + { + tmp2.Name = "SortId"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SortId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Direct != null) && __isset.Direct) + { + tmp2.Name = "Direct"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Direct, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Title != null) && __isset.Title) + { + tmp2.Name = "Title"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Title, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Content != null) && __isset.Content) + { + tmp2.Name = "Content"; + tmp2.Type = TType.String; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Content, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((BubbleType != null) && __isset.BubbleType) + { + tmp2.Name = "BubbleType"; + tmp2.Type = TType.String; + tmp2.ID = 10; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(BubbleType, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Phone != null) && __isset.Phone) + { + tmp2.Name = "Phone"; + tmp2.Type = TType.String; + tmp2.ID = 11; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Phone, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Status != null) && __isset.Status) + { + tmp2.Name = "Status"; + tmp2.Type = TType.String; + tmp2.ID = 12; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Status, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is DialogDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.PlotNode == other.__isset.PlotNode) && ((!__isset.PlotNode) || (global::System.Object.Equals(PlotNode, other.PlotNode)))) + && ((__isset.SceneId == other.__isset.SceneId) && ((!__isset.SceneId) || (global::System.Object.Equals(SceneId, other.SceneId)))) + && ((__isset.@Group == other.__isset.@Group) && ((!__isset.@Group) || (global::System.Object.Equals(Group, other.Group)))) + && ((__isset.SortId == other.__isset.SortId) && ((!__isset.SortId) || (global::System.Object.Equals(SortId, other.SortId)))) + && ((__isset.Direct == other.__isset.Direct) && ((!__isset.Direct) || (global::System.Object.Equals(Direct, other.Direct)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Title == other.__isset.Title) && ((!__isset.Title) || (global::System.Object.Equals(Title, other.Title)))) + && ((__isset.Content == other.__isset.Content) && ((!__isset.Content) || (global::System.Object.Equals(Content, other.Content)))) + && ((__isset.BubbleType == other.__isset.BubbleType) && ((!__isset.BubbleType) || (global::System.Object.Equals(BubbleType, other.BubbleType)))) + && ((__isset.Phone == other.__isset.Phone) && ((!__isset.Phone) || (global::System.Object.Equals(Phone, other.Phone)))) + && ((__isset.Status == other.__isset.Status) && ((!__isset.Status) || (global::System.Object.Equals(Status, other.Status)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((PlotNode != null) && __isset.PlotNode) + { + hashcode = (hashcode * 397) + PlotNode.GetHashCode(); + } + if(__isset.SceneId) + { + hashcode = (hashcode * 397) + SceneId.GetHashCode(); + } + if((Group != null) && __isset.@Group) + { + hashcode = (hashcode * 397) + Group.GetHashCode(); + } + if(__isset.SortId) + { + hashcode = (hashcode * 397) + SortId.GetHashCode(); + } + if((Direct != null) && __isset.Direct) + { + hashcode = (hashcode * 397) + Direct.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((Title != null) && __isset.Title) + { + hashcode = (hashcode * 397) + Title.GetHashCode(); + } + if((Content != null) && __isset.Content) + { + hashcode = (hashcode * 397) + Content.GetHashCode(); + } + if((BubbleType != null) && __isset.BubbleType) + { + hashcode = (hashcode * 397) + BubbleType.GetHashCode(); + } + if((Phone != null) && __isset.Phone) + { + hashcode = (hashcode * 397) + Phone.GetHashCode(); + } + if((Status != null) && __isset.Status) + { + hashcode = (hashcode * 397) + Status.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("DialogDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((PlotNode != null) && __isset.PlotNode) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PlotNode: "); + PlotNode.ToString(tmp3); + } + if(__isset.SceneId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SceneId: "); + SceneId.ToString(tmp3); + } + if((Group != null) && __isset.@Group) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Group: "); + Group.ToString(tmp3); + } + if(__isset.SortId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SortId: "); + SortId.ToString(tmp3); + } + if((Direct != null) && __isset.Direct) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Direct: "); + Direct.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((Title != null) && __isset.Title) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Title: "); + Title.ToString(tmp3); + } + if((Content != null) && __isset.Content) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Content: "); + Content.ToString(tmp3); + } + if((BubbleType != null) && __isset.BubbleType) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("BubbleType: "); + BubbleType.ToString(tmp3); + } + if((Phone != null) && __isset.Phone) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Phone: "); + Phone.ToString(tmp3); + } + if((Status != null) && __isset.Status) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Status: "); + Status.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogDataItem.cs.meta new file mode 100644 index 0000000..4423468 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/DialogDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 108aa28aa28993344b0e01c61374c13f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatData.Extensions.cs new file mode 100644 index 0000000..ed56533 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class EmiterRetreatDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatData.Extensions.cs.meta new file mode 100644 index 0000000..c23cb72 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 83622b01ea72b5a4eacb1e24ec87d432 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatData.cs new file mode 100644 index 0000000..d70501f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class EmiterRetreatData : TBase + { + private Dictionary _emiterretreatdatas; + + [DataMember(Order = 0)] + public Dictionary Emiterretreatdatas + { + get + { + return _emiterretreatdatas; + } + set + { + __isset.@emiterretreatdatas = true; + this._emiterretreatdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @emiterretreatdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeEmiterretreatdatas() + { + return __isset.@emiterretreatdatas; + } + + #endregion XmlSerializer support + + public EmiterRetreatData() + { + } + + public EmiterRetreatData DeepCopy() + { + var tmp5 = new EmiterRetreatData(); + if((Emiterretreatdatas != null) && __isset.@emiterretreatdatas) + { + tmp5.Emiterretreatdatas = this.Emiterretreatdatas.DeepCopy(); + } + tmp5.__isset.@emiterretreatdatas = this.__isset.@emiterretreatdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Emiterretreatdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.EmiterRetreatDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.EmiterRetreatDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Emiterretreatdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("EmiterRetreatData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Emiterretreatdatas != null) && __isset.@emiterretreatdatas) + { + tmp11.Name = "emiterretreatdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Emiterretreatdatas.Count), cancellationToken); + foreach (int _iter12 in Emiterretreatdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Emiterretreatdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is EmiterRetreatData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@emiterretreatdatas == other.__isset.@emiterretreatdatas) && ((!__isset.@emiterretreatdatas) || (TCollections.Equals(Emiterretreatdatas, other.Emiterretreatdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Emiterretreatdatas != null) && __isset.@emiterretreatdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Emiterretreatdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("EmiterRetreatData("); + int tmp14 = 0; + if((Emiterretreatdatas != null) && __isset.@emiterretreatdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Emiterretreatdatas: "); + Emiterretreatdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatData.cs.meta new file mode 100644 index 0000000..453714f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0c10126284a89f646a5e73fabcb058af +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatDataItem.cs new file mode 100644 index 0000000..ed240f1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatDataItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class EmiterRetreatDataItem : TBase + { + private int _Id; + private int _SortId; + private string _Emit_ID; + private string _Color; + private string _Retreat_Emit_ID; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int SortId + { + get + { + return _SortId; + } + set + { + __isset.SortId = true; + this._SortId = value; + } + } + + [DataMember(Order = 0)] + public string Emit_ID + { + get + { + return _Emit_ID; + } + set + { + __isset.Emit_ID = true; + this._Emit_ID = value; + } + } + + [DataMember(Order = 0)] + public string Color + { + get + { + return _Color; + } + set + { + __isset.Color = true; + this._Color = value; + } + } + + [DataMember(Order = 0)] + public string Retreat_Emit_ID + { + get + { + return _Retreat_Emit_ID; + } + set + { + __isset.Retreat_Emit_ID = true; + this._Retreat_Emit_ID = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool SortId; + [DataMember] + public bool Emit_ID; + [DataMember] + public bool Color; + [DataMember] + public bool Retreat_Emit_ID; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeSortId() + { + return __isset.SortId; + } + + public bool ShouldSerializeEmit_ID() + { + return __isset.Emit_ID; + } + + public bool ShouldSerializeColor() + { + return __isset.Color; + } + + public bool ShouldSerializeRetreat_Emit_ID() + { + return __isset.Retreat_Emit_ID; + } + + #endregion XmlSerializer support + + public EmiterRetreatDataItem() + { + } + + public EmiterRetreatDataItem DeepCopy() + { + var tmp0 = new EmiterRetreatDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.SortId) + { + tmp0.SortId = this.SortId; + } + tmp0.__isset.SortId = this.__isset.SortId; + if((Emit_ID != null) && __isset.Emit_ID) + { + tmp0.Emit_ID = this.Emit_ID; + } + tmp0.__isset.Emit_ID = this.__isset.Emit_ID; + if((Color != null) && __isset.Color) + { + tmp0.Color = this.Color; + } + tmp0.__isset.Color = this.__isset.Color; + if((Retreat_Emit_ID != null) && __isset.Retreat_Emit_ID) + { + tmp0.Retreat_Emit_ID = this.Retreat_Emit_ID; + } + tmp0.__isset.Retreat_Emit_ID = this.__isset.Retreat_Emit_ID; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + SortId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Emit_ID = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Color = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Retreat_Emit_ID = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("EmiterRetreatDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SortId) + { + tmp2.Name = "SortId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SortId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Emit_ID != null) && __isset.Emit_ID) + { + tmp2.Name = "Emit_ID"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Emit_ID, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Color != null) && __isset.Color) + { + tmp2.Name = "Color"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Color, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Retreat_Emit_ID != null) && __isset.Retreat_Emit_ID) + { + tmp2.Name = "Retreat_Emit_ID"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Retreat_Emit_ID, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is EmiterRetreatDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.SortId == other.__isset.SortId) && ((!__isset.SortId) || (global::System.Object.Equals(SortId, other.SortId)))) + && ((__isset.Emit_ID == other.__isset.Emit_ID) && ((!__isset.Emit_ID) || (global::System.Object.Equals(Emit_ID, other.Emit_ID)))) + && ((__isset.Color == other.__isset.Color) && ((!__isset.Color) || (global::System.Object.Equals(Color, other.Color)))) + && ((__isset.Retreat_Emit_ID == other.__isset.Retreat_Emit_ID) && ((!__isset.Retreat_Emit_ID) || (global::System.Object.Equals(Retreat_Emit_ID, other.Retreat_Emit_ID)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.SortId) + { + hashcode = (hashcode * 397) + SortId.GetHashCode(); + } + if((Emit_ID != null) && __isset.Emit_ID) + { + hashcode = (hashcode * 397) + Emit_ID.GetHashCode(); + } + if((Color != null) && __isset.Color) + { + hashcode = (hashcode * 397) + Color.GetHashCode(); + } + if((Retreat_Emit_ID != null) && __isset.Retreat_Emit_ID) + { + hashcode = (hashcode * 397) + Retreat_Emit_ID.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("EmiterRetreatDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.SortId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SortId: "); + SortId.ToString(tmp3); + } + if((Emit_ID != null) && __isset.Emit_ID) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Emit_ID: "); + Emit_ID.ToString(tmp3); + } + if((Color != null) && __isset.Color) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Color: "); + Color.ToString(tmp3); + } + if((Retreat_Emit_ID != null) && __isset.Retreat_Emit_ID) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Retreat_Emit_ID: "); + Retreat_Emit_ID.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatDataItem.cs.meta new file mode 100644 index 0000000..23fc98f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmiterRetreatDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f5e6bc95bd891643a14c8fa42cac381 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiData.Extensions.cs new file mode 100644 index 0000000..b61b1f8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class EmojiDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiData.Extensions.cs.meta new file mode 100644 index 0000000..648eafb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4de004792df99c34abc8a631b7c0eaf5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiData.cs new file mode 100644 index 0000000..bd0cc2f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class EmojiData : TBase + { + private Dictionary _emojidatas; + + [DataMember(Order = 0)] + public Dictionary Emojidatas + { + get + { + return _emojidatas; + } + set + { + __isset.@emojidatas = true; + this._emojidatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @emojidatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeEmojidatas() + { + return __isset.@emojidatas; + } + + #endregion XmlSerializer support + + public EmojiData() + { + } + + public EmojiData DeepCopy() + { + var tmp5 = new EmojiData(); + if((Emojidatas != null) && __isset.@emojidatas) + { + tmp5.Emojidatas = this.Emojidatas.DeepCopy(); + } + tmp5.__isset.@emojidatas = this.__isset.@emojidatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Emojidatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.EmojiDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.EmojiDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Emojidatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("EmojiData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Emojidatas != null) && __isset.@emojidatas) + { + tmp11.Name = "emojidatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Emojidatas.Count), cancellationToken); + foreach (int _iter12 in Emojidatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Emojidatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is EmojiData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@emojidatas == other.__isset.@emojidatas) && ((!__isset.@emojidatas) || (TCollections.Equals(Emojidatas, other.Emojidatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Emojidatas != null) && __isset.@emojidatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Emojidatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("EmojiData("); + int tmp14 = 0; + if((Emojidatas != null) && __isset.@emojidatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Emojidatas: "); + Emojidatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiData.cs.meta new file mode 100644 index 0000000..20147f0 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a82f042eb0770da43946e4f881c75531 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiDataItem.cs new file mode 100644 index 0000000..47593f5 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiDataItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class EmojiDataItem : TBase + { + private int _Id; + private string _NameKey; + private int _Init; + private string _Icon; + private string _Spine; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string NameKey + { + get + { + return _NameKey; + } + set + { + __isset.NameKey = true; + this._NameKey = value; + } + } + + [DataMember(Order = 0)] + public int Init + { + get + { + return _Init; + } + set + { + __isset.Init = true; + this._Init = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string Spine + { + get + { + return _Spine; + } + set + { + __isset.Spine = true; + this._Spine = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool NameKey; + [DataMember] + public bool Init; + [DataMember] + public bool Icon; + [DataMember] + public bool Spine; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeNameKey() + { + return __isset.NameKey; + } + + public bool ShouldSerializeInit() + { + return __isset.Init; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeSpine() + { + return __isset.Spine; + } + + #endregion XmlSerializer support + + public EmojiDataItem() + { + } + + public EmojiDataItem DeepCopy() + { + var tmp0 = new EmojiDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((NameKey != null) && __isset.NameKey) + { + tmp0.NameKey = this.NameKey; + } + tmp0.__isset.NameKey = this.__isset.NameKey; + if(__isset.Init) + { + tmp0.Init = this.Init; + } + tmp0.__isset.Init = this.__isset.Init; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((Spine != null) && __isset.Spine) + { + tmp0.Spine = this.Spine; + } + tmp0.__isset.Spine = this.__isset.Spine; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + NameKey = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Init = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Spine = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("EmojiDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((NameKey != null) && __isset.NameKey) + { + tmp2.Name = "NameKey"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(NameKey, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Init) + { + tmp2.Name = "Init"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Init, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Spine != null) && __isset.Spine) + { + tmp2.Name = "Spine"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Spine, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is EmojiDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.NameKey == other.__isset.NameKey) && ((!__isset.NameKey) || (global::System.Object.Equals(NameKey, other.NameKey)))) + && ((__isset.Init == other.__isset.Init) && ((!__isset.Init) || (global::System.Object.Equals(Init, other.Init)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Spine == other.__isset.Spine) && ((!__isset.Spine) || (global::System.Object.Equals(Spine, other.Spine)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((NameKey != null) && __isset.NameKey) + { + hashcode = (hashcode * 397) + NameKey.GetHashCode(); + } + if(__isset.Init) + { + hashcode = (hashcode * 397) + Init.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((Spine != null) && __isset.Spine) + { + hashcode = (hashcode * 397) + Spine.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("EmojiDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((NameKey != null) && __isset.NameKey) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NameKey: "); + NameKey.ToString(tmp3); + } + if(__isset.Init) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Init: "); + Init.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((Spine != null) && __isset.Spine) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Spine: "); + Spine.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiDataItem.cs.meta new file mode 100644 index 0000000..41df571 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EmojiDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 92775aea3466709459a53dec9db1b38c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGift.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGift.Extensions.cs new file mode 100644 index 0000000..dbc7d44 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGift.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class EndlessGiftExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGift.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGift.Extensions.cs.meta new file mode 100644 index 0000000..e668477 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGift.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9927c7923bfd84645b70748dbd794f68 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGift.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGift.cs new file mode 100644 index 0000000..fbe1cb7 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGift.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class EndlessGift : TBase + { + private Dictionary _endlessgifts; + + [DataMember(Order = 0)] + public Dictionary Endlessgifts + { + get + { + return _endlessgifts; + } + set + { + __isset.@endlessgifts = true; + this._endlessgifts = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @endlessgifts; + } + + #region XmlSerializer support + + public bool ShouldSerializeEndlessgifts() + { + return __isset.@endlessgifts; + } + + #endregion XmlSerializer support + + public EndlessGift() + { + } + + public EndlessGift DeepCopy() + { + var tmp5 = new EndlessGift(); + if((Endlessgifts != null) && __isset.@endlessgifts) + { + tmp5.Endlessgifts = this.Endlessgifts.DeepCopy(); + } + tmp5.__isset.@endlessgifts = this.__isset.@endlessgifts; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Endlessgifts = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.EndlessGiftItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.EndlessGiftItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Endlessgifts[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("EndlessGift"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Endlessgifts != null) && __isset.@endlessgifts) + { + tmp11.Name = "endlessgifts"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Endlessgifts.Count), cancellationToken); + foreach (int _iter12 in Endlessgifts.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Endlessgifts[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is EndlessGift other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@endlessgifts == other.__isset.@endlessgifts) && ((!__isset.@endlessgifts) || (TCollections.Equals(Endlessgifts, other.Endlessgifts)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Endlessgifts != null) && __isset.@endlessgifts) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Endlessgifts); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("EndlessGift("); + int tmp14 = 0; + if((Endlessgifts != null) && __isset.@endlessgifts) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Endlessgifts: "); + Endlessgifts.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGift.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGift.cs.meta new file mode 100644 index 0000000..3ae570e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGift.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fa25f837643fb78409a388bf24ba2526 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGiftItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGiftItem.cs new file mode 100644 index 0000000..3a55d1f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGiftItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class EndlessGiftItem : TBase + { + private int _Id; + private string _Content; + private string _SellType; + private double _SellPrice; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Content + { + get + { + return _Content; + } + set + { + __isset.Content = true; + this._Content = value; + } + } + + [DataMember(Order = 0)] + public string SellType + { + get + { + return _SellType; + } + set + { + __isset.SellType = true; + this._SellType = value; + } + } + + [DataMember(Order = 0)] + public double SellPrice + { + get + { + return _SellPrice; + } + set + { + __isset.SellPrice = true; + this._SellPrice = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Content; + [DataMember] + public bool SellType; + [DataMember] + public bool SellPrice; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeContent() + { + return __isset.Content; + } + + public bool ShouldSerializeSellType() + { + return __isset.SellType; + } + + public bool ShouldSerializeSellPrice() + { + return __isset.SellPrice; + } + + #endregion XmlSerializer support + + public EndlessGiftItem() + { + } + + public EndlessGiftItem DeepCopy() + { + var tmp0 = new EndlessGiftItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Content != null) && __isset.Content) + { + tmp0.Content = this.Content; + } + tmp0.__isset.Content = this.__isset.Content; + if((SellType != null) && __isset.SellType) + { + tmp0.SellType = this.SellType; + } + tmp0.__isset.SellType = this.__isset.SellType; + if(__isset.SellPrice) + { + tmp0.SellPrice = this.SellPrice; + } + tmp0.__isset.SellPrice = this.__isset.SellPrice; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Content = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + SellType = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.Double) + { + SellPrice = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("EndlessGiftItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Content != null) && __isset.Content) + { + tmp2.Name = "Content"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Content, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((SellType != null) && __isset.SellType) + { + tmp2.Name = "SellType"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(SellType, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SellPrice) + { + tmp2.Name = "SellPrice"; + tmp2.Type = TType.Double; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(SellPrice, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is EndlessGiftItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Content == other.__isset.Content) && ((!__isset.Content) || (global::System.Object.Equals(Content, other.Content)))) + && ((__isset.SellType == other.__isset.SellType) && ((!__isset.SellType) || (global::System.Object.Equals(SellType, other.SellType)))) + && ((__isset.SellPrice == other.__isset.SellPrice) && ((!__isset.SellPrice) || (global::System.Object.Equals(SellPrice, other.SellPrice)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Content != null) && __isset.Content) + { + hashcode = (hashcode * 397) + Content.GetHashCode(); + } + if((SellType != null) && __isset.SellType) + { + hashcode = (hashcode * 397) + SellType.GetHashCode(); + } + if(__isset.SellPrice) + { + hashcode = (hashcode * 397) + SellPrice.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("EndlessGiftItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Content != null) && __isset.Content) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Content: "); + Content.ToString(tmp3); + } + if((SellType != null) && __isset.SellType) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SellType: "); + SellType.ToString(tmp3); + } + if(__isset.SellPrice) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SellPrice: "); + SellPrice.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGiftItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGiftItem.cs.meta new file mode 100644 index 0000000..ba368a8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EndlessGiftItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d7227339826a2ef47b9c6f8e8e319176 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGift.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGift.Extensions.cs new file mode 100644 index 0000000..c3a7be4 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGift.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class EnergyLimitGiftExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGift.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGift.Extensions.cs.meta new file mode 100644 index 0000000..d38d592 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGift.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2f7d7ddf3d7b7cb459bfe778aa12ba11 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGift.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGift.cs new file mode 100644 index 0000000..77073c1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGift.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class EnergyLimitGift : TBase + { + private Dictionary _energylimitgifts; + + [DataMember(Order = 0)] + public Dictionary Energylimitgifts + { + get + { + return _energylimitgifts; + } + set + { + __isset.@energylimitgifts = true; + this._energylimitgifts = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @energylimitgifts; + } + + #region XmlSerializer support + + public bool ShouldSerializeEnergylimitgifts() + { + return __isset.@energylimitgifts; + } + + #endregion XmlSerializer support + + public EnergyLimitGift() + { + } + + public EnergyLimitGift DeepCopy() + { + var tmp5 = new EnergyLimitGift(); + if((Energylimitgifts != null) && __isset.@energylimitgifts) + { + tmp5.Energylimitgifts = this.Energylimitgifts.DeepCopy(); + } + tmp5.__isset.@energylimitgifts = this.__isset.@energylimitgifts; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Energylimitgifts = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.EnergyLimitGiftItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.EnergyLimitGiftItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Energylimitgifts[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("EnergyLimitGift"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Energylimitgifts != null) && __isset.@energylimitgifts) + { + tmp11.Name = "energylimitgifts"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Energylimitgifts.Count), cancellationToken); + foreach (int _iter12 in Energylimitgifts.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Energylimitgifts[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is EnergyLimitGift other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@energylimitgifts == other.__isset.@energylimitgifts) && ((!__isset.@energylimitgifts) || (TCollections.Equals(Energylimitgifts, other.Energylimitgifts)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Energylimitgifts != null) && __isset.@energylimitgifts) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Energylimitgifts); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("EnergyLimitGift("); + int tmp14 = 0; + if((Energylimitgifts != null) && __isset.@energylimitgifts) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Energylimitgifts: "); + Energylimitgifts.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGift.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGift.cs.meta new file mode 100644 index 0000000..f679654 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGift.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d66d2e2c4726427409b5bfce4441a1df +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGiftItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGiftItem.cs new file mode 100644 index 0000000..9abf625 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGiftItem.cs @@ -0,0 +1,309 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class EnergyLimitGiftItem : TBase + { + private int _Id; + private string _ItemReward; + private double _PayPrice; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string ItemReward + { + get + { + return _ItemReward; + } + set + { + __isset.ItemReward = true; + this._ItemReward = value; + } + } + + [DataMember(Order = 0)] + public double PayPrice + { + get + { + return _PayPrice; + } + set + { + __isset.PayPrice = true; + this._PayPrice = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool ItemReward; + [DataMember] + public bool PayPrice; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeItemReward() + { + return __isset.ItemReward; + } + + public bool ShouldSerializePayPrice() + { + return __isset.PayPrice; + } + + #endregion XmlSerializer support + + public EnergyLimitGiftItem() + { + } + + public EnergyLimitGiftItem DeepCopy() + { + var tmp0 = new EnergyLimitGiftItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((ItemReward != null) && __isset.ItemReward) + { + tmp0.ItemReward = this.ItemReward; + } + tmp0.__isset.ItemReward = this.__isset.ItemReward; + if(__isset.PayPrice) + { + tmp0.PayPrice = this.PayPrice; + } + tmp0.__isset.PayPrice = this.__isset.PayPrice; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + ItemReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.Double) + { + PayPrice = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("EnergyLimitGiftItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemReward != null) && __isset.ItemReward) + { + tmp2.Name = "ItemReward"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.PayPrice) + { + tmp2.Name = "PayPrice"; + tmp2.Type = TType.Double; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(PayPrice, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is EnergyLimitGiftItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.ItemReward == other.__isset.ItemReward) && ((!__isset.ItemReward) || (global::System.Object.Equals(ItemReward, other.ItemReward)))) + && ((__isset.PayPrice == other.__isset.PayPrice) && ((!__isset.PayPrice) || (global::System.Object.Equals(PayPrice, other.PayPrice)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((ItemReward != null) && __isset.ItemReward) + { + hashcode = (hashcode * 397) + ItemReward.GetHashCode(); + } + if(__isset.PayPrice) + { + hashcode = (hashcode * 397) + PayPrice.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("EnergyLimitGiftItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((ItemReward != null) && __isset.ItemReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemReward: "); + ItemReward.ToString(tmp3); + } + if(__isset.PayPrice) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PayPrice: "); + PayPrice.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGiftItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGiftItem.cs.meta new file mode 100644 index 0000000..b69b0b7 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/EnergyLimitGiftItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 79afee26df9bc1c438ec6c5dea4025aa +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameData.Extensions.cs new file mode 100644 index 0000000..9b7c745 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class FrameDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameData.Extensions.cs.meta new file mode 100644 index 0000000..6a94511 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f86e24b8d166bb84dabbced4ac1aaf82 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameData.cs new file mode 100644 index 0000000..fb01742 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class FrameData : TBase + { + private Dictionary _framedatas; + + [DataMember(Order = 0)] + public Dictionary Framedatas + { + get + { + return _framedatas; + } + set + { + __isset.@framedatas = true; + this._framedatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @framedatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeFramedatas() + { + return __isset.@framedatas; + } + + #endregion XmlSerializer support + + public FrameData() + { + } + + public FrameData DeepCopy() + { + var tmp5 = new FrameData(); + if((Framedatas != null) && __isset.@framedatas) + { + tmp5.Framedatas = this.Framedatas.DeepCopy(); + } + tmp5.__isset.@framedatas = this.__isset.@framedatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Framedatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.FrameDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.FrameDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Framedatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("FrameData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Framedatas != null) && __isset.@framedatas) + { + tmp11.Name = "framedatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Framedatas.Count), cancellationToken); + foreach (int _iter12 in Framedatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Framedatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is FrameData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@framedatas == other.__isset.@framedatas) && ((!__isset.@framedatas) || (TCollections.Equals(Framedatas, other.Framedatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Framedatas != null) && __isset.@framedatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Framedatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("FrameData("); + int tmp14 = 0; + if((Framedatas != null) && __isset.@framedatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Framedatas: "); + Framedatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameData.cs.meta new file mode 100644 index 0000000..a11cc12 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5776b5e7c5f9ebb4bb968a949fbc4ce7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameDataItem.cs new file mode 100644 index 0000000..c37709f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameDataItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class FrameDataItem : TBase + { + private int _Id; + private string _NameKey; + private int _Init; + private string _Icon; + private string _SpineFile; + private string _AnimName; + private string _FrameImageScale; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string NameKey + { + get + { + return _NameKey; + } + set + { + __isset.NameKey = true; + this._NameKey = value; + } + } + + [DataMember(Order = 0)] + public int Init + { + get + { + return _Init; + } + set + { + __isset.Init = true; + this._Init = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string SpineFile + { + get + { + return _SpineFile; + } + set + { + __isset.SpineFile = true; + this._SpineFile = value; + } + } + + [DataMember(Order = 0)] + public string AnimName + { + get + { + return _AnimName; + } + set + { + __isset.AnimName = true; + this._AnimName = value; + } + } + + [DataMember(Order = 0)] + public string FrameImageScale + { + get + { + return _FrameImageScale; + } + set + { + __isset.FrameImageScale = true; + this._FrameImageScale = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool NameKey; + [DataMember] + public bool Init; + [DataMember] + public bool Icon; + [DataMember] + public bool SpineFile; + [DataMember] + public bool AnimName; + [DataMember] + public bool FrameImageScale; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeNameKey() + { + return __isset.NameKey; + } + + public bool ShouldSerializeInit() + { + return __isset.Init; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeSpineFile() + { + return __isset.SpineFile; + } + + public bool ShouldSerializeAnimName() + { + return __isset.AnimName; + } + + public bool ShouldSerializeFrameImageScale() + { + return __isset.FrameImageScale; + } + + #endregion XmlSerializer support + + public FrameDataItem() + { + } + + public FrameDataItem DeepCopy() + { + var tmp0 = new FrameDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((NameKey != null) && __isset.NameKey) + { + tmp0.NameKey = this.NameKey; + } + tmp0.__isset.NameKey = this.__isset.NameKey; + if(__isset.Init) + { + tmp0.Init = this.Init; + } + tmp0.__isset.Init = this.__isset.Init; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((SpineFile != null) && __isset.SpineFile) + { + tmp0.SpineFile = this.SpineFile; + } + tmp0.__isset.SpineFile = this.__isset.SpineFile; + if((AnimName != null) && __isset.AnimName) + { + tmp0.AnimName = this.AnimName; + } + tmp0.__isset.AnimName = this.__isset.AnimName; + if((FrameImageScale != null) && __isset.FrameImageScale) + { + tmp0.FrameImageScale = this.FrameImageScale; + } + tmp0.__isset.FrameImageScale = this.__isset.FrameImageScale; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + NameKey = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Init = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + SpineFile = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + AnimName = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + FrameImageScale = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("FrameDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((NameKey != null) && __isset.NameKey) + { + tmp2.Name = "NameKey"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(NameKey, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Init) + { + tmp2.Name = "Init"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Init, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((SpineFile != null) && __isset.SpineFile) + { + tmp2.Name = "SpineFile"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(SpineFile, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((AnimName != null) && __isset.AnimName) + { + tmp2.Name = "AnimName"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(AnimName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((FrameImageScale != null) && __isset.FrameImageScale) + { + tmp2.Name = "FrameImageScale"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(FrameImageScale, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is FrameDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.NameKey == other.__isset.NameKey) && ((!__isset.NameKey) || (global::System.Object.Equals(NameKey, other.NameKey)))) + && ((__isset.Init == other.__isset.Init) && ((!__isset.Init) || (global::System.Object.Equals(Init, other.Init)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.SpineFile == other.__isset.SpineFile) && ((!__isset.SpineFile) || (global::System.Object.Equals(SpineFile, other.SpineFile)))) + && ((__isset.AnimName == other.__isset.AnimName) && ((!__isset.AnimName) || (global::System.Object.Equals(AnimName, other.AnimName)))) + && ((__isset.FrameImageScale == other.__isset.FrameImageScale) && ((!__isset.FrameImageScale) || (global::System.Object.Equals(FrameImageScale, other.FrameImageScale)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((NameKey != null) && __isset.NameKey) + { + hashcode = (hashcode * 397) + NameKey.GetHashCode(); + } + if(__isset.Init) + { + hashcode = (hashcode * 397) + Init.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((SpineFile != null) && __isset.SpineFile) + { + hashcode = (hashcode * 397) + SpineFile.GetHashCode(); + } + if((AnimName != null) && __isset.AnimName) + { + hashcode = (hashcode * 397) + AnimName.GetHashCode(); + } + if((FrameImageScale != null) && __isset.FrameImageScale) + { + hashcode = (hashcode * 397) + FrameImageScale.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("FrameDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((NameKey != null) && __isset.NameKey) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NameKey: "); + NameKey.ToString(tmp3); + } + if(__isset.Init) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Init: "); + Init.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((SpineFile != null) && __isset.SpineFile) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SpineFile: "); + SpineFile.ToString(tmp3); + } + if((AnimName != null) && __isset.AnimName) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("AnimName: "); + AnimName.ToString(tmp3); + } + if((FrameImageScale != null) && __isset.FrameImageScale) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("FrameImageScale: "); + FrameImageScale.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameDataItem.cs.meta new file mode 100644 index 0000000..4b27c0f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/FrameDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1f32b4c265cdd524793d2a876100e438 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFund.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFund.Extensions.cs new file mode 100644 index 0000000..3c2e161 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFund.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class GrowthFundExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFund.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFund.Extensions.cs.meta new file mode 100644 index 0000000..3fa557b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFund.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 45ce2311b6f163f47840e9b367132217 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFund.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFund.cs new file mode 100644 index 0000000..dc74255 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFund.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class GrowthFund : TBase + { + private Dictionary _growthfunds; + + [DataMember(Order = 0)] + public Dictionary Growthfunds + { + get + { + return _growthfunds; + } + set + { + __isset.@growthfunds = true; + this._growthfunds = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @growthfunds; + } + + #region XmlSerializer support + + public bool ShouldSerializeGrowthfunds() + { + return __isset.@growthfunds; + } + + #endregion XmlSerializer support + + public GrowthFund() + { + } + + public GrowthFund DeepCopy() + { + var tmp5 = new GrowthFund(); + if((Growthfunds != null) && __isset.@growthfunds) + { + tmp5.Growthfunds = this.Growthfunds.DeepCopy(); + } + tmp5.__isset.@growthfunds = this.__isset.@growthfunds; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Growthfunds = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.GrowthFundItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.GrowthFundItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Growthfunds[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("GrowthFund"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Growthfunds != null) && __isset.@growthfunds) + { + tmp11.Name = "growthfunds"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Growthfunds.Count), cancellationToken); + foreach (int _iter12 in Growthfunds.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Growthfunds[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is GrowthFund other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@growthfunds == other.__isset.@growthfunds) && ((!__isset.@growthfunds) || (TCollections.Equals(Growthfunds, other.Growthfunds)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Growthfunds != null) && __isset.@growthfunds) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Growthfunds); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("GrowthFund("); + int tmp14 = 0; + if((Growthfunds != null) && __isset.@growthfunds) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Growthfunds: "); + Growthfunds.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFund.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFund.cs.meta new file mode 100644 index 0000000..1a56eb3 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFund.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cecf0eb67da278346bf600e4d39dcbfe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFundItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFundItem.cs new file mode 100644 index 0000000..2f85fc5 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFundItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class GrowthFundItem : TBase + { + private int _Id; + private int _Level; + private string _RewardIds; + private string _RewardCnt; + private double _Price; + private double _OriginPrice; + private string _Describe; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Level + { + get + { + return _Level; + } + set + { + __isset.Level = true; + this._Level = value; + } + } + + [DataMember(Order = 0)] + public string RewardIds + { + get + { + return _RewardIds; + } + set + { + __isset.RewardIds = true; + this._RewardIds = value; + } + } + + [DataMember(Order = 0)] + public string RewardCnt + { + get + { + return _RewardCnt; + } + set + { + __isset.RewardCnt = true; + this._RewardCnt = value; + } + } + + [DataMember(Order = 0)] + public double Price + { + get + { + return _Price; + } + set + { + __isset.Price = true; + this._Price = value; + } + } + + [DataMember(Order = 0)] + public double OriginPrice + { + get + { + return _OriginPrice; + } + set + { + __isset.OriginPrice = true; + this._OriginPrice = value; + } + } + + [DataMember(Order = 0)] + public string Describe + { + get + { + return _Describe; + } + set + { + __isset.Describe = true; + this._Describe = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Level; + [DataMember] + public bool RewardIds; + [DataMember] + public bool RewardCnt; + [DataMember] + public bool Price; + [DataMember] + public bool OriginPrice; + [DataMember] + public bool Describe; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeLevel() + { + return __isset.Level; + } + + public bool ShouldSerializeRewardIds() + { + return __isset.RewardIds; + } + + public bool ShouldSerializeRewardCnt() + { + return __isset.RewardCnt; + } + + public bool ShouldSerializePrice() + { + return __isset.Price; + } + + public bool ShouldSerializeOriginPrice() + { + return __isset.OriginPrice; + } + + public bool ShouldSerializeDescribe() + { + return __isset.Describe; + } + + #endregion XmlSerializer support + + public GrowthFundItem() + { + } + + public GrowthFundItem DeepCopy() + { + var tmp0 = new GrowthFundItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Level) + { + tmp0.Level = this.Level; + } + tmp0.__isset.Level = this.__isset.Level; + if((RewardIds != null) && __isset.RewardIds) + { + tmp0.RewardIds = this.RewardIds; + } + tmp0.__isset.RewardIds = this.__isset.RewardIds; + if((RewardCnt != null) && __isset.RewardCnt) + { + tmp0.RewardCnt = this.RewardCnt; + } + tmp0.__isset.RewardCnt = this.__isset.RewardCnt; + if(__isset.Price) + { + tmp0.Price = this.Price; + } + tmp0.__isset.Price = this.__isset.Price; + if(__isset.OriginPrice) + { + tmp0.OriginPrice = this.OriginPrice; + } + tmp0.__isset.OriginPrice = this.__isset.OriginPrice; + if((Describe != null) && __isset.Describe) + { + tmp0.Describe = this.Describe; + } + tmp0.__isset.Describe = this.__isset.Describe; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Level = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + RewardIds = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + RewardCnt = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.Double) + { + Price = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.Double) + { + OriginPrice = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Describe = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("GrowthFundItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Level) + { + tmp2.Name = "Level"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Level, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardIds != null) && __isset.RewardIds) + { + tmp2.Name = "RewardIds"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardIds, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + tmp2.Name = "RewardCnt"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardCnt, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price) + { + tmp2.Name = "Price"; + tmp2.Type = TType.Double; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.OriginPrice) + { + tmp2.Name = "OriginPrice"; + tmp2.Type = TType.Double; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(OriginPrice, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Describe != null) && __isset.Describe) + { + tmp2.Name = "Describe"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Describe, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is GrowthFundItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Level == other.__isset.Level) && ((!__isset.Level) || (global::System.Object.Equals(Level, other.Level)))) + && ((__isset.RewardIds == other.__isset.RewardIds) && ((!__isset.RewardIds) || (global::System.Object.Equals(RewardIds, other.RewardIds)))) + && ((__isset.RewardCnt == other.__isset.RewardCnt) && ((!__isset.RewardCnt) || (global::System.Object.Equals(RewardCnt, other.RewardCnt)))) + && ((__isset.Price == other.__isset.Price) && ((!__isset.Price) || (global::System.Object.Equals(Price, other.Price)))) + && ((__isset.OriginPrice == other.__isset.OriginPrice) && ((!__isset.OriginPrice) || (global::System.Object.Equals(OriginPrice, other.OriginPrice)))) + && ((__isset.Describe == other.__isset.Describe) && ((!__isset.Describe) || (global::System.Object.Equals(Describe, other.Describe)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Level) + { + hashcode = (hashcode * 397) + Level.GetHashCode(); + } + if((RewardIds != null) && __isset.RewardIds) + { + hashcode = (hashcode * 397) + RewardIds.GetHashCode(); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + hashcode = (hashcode * 397) + RewardCnt.GetHashCode(); + } + if(__isset.Price) + { + hashcode = (hashcode * 397) + Price.GetHashCode(); + } + if(__isset.OriginPrice) + { + hashcode = (hashcode * 397) + OriginPrice.GetHashCode(); + } + if((Describe != null) && __isset.Describe) + { + hashcode = (hashcode * 397) + Describe.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("GrowthFundItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Level) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Level: "); + Level.ToString(tmp3); + } + if((RewardIds != null) && __isset.RewardIds) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardIds: "); + RewardIds.ToString(tmp3); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardCnt: "); + RewardCnt.ToString(tmp3); + } + if(__isset.Price) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price: "); + Price.ToString(tmp3); + } + if(__isset.OriginPrice) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("OriginPrice: "); + OriginPrice.ToString(tmp3); + } + if((Describe != null) && __isset.Describe) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Describe: "); + Describe.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFundItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFundItem.cs.meta new file mode 100644 index 0000000..cc9d632 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GrowthFundItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ca5e9d239ba53ce44b1f91a5d8f119a1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessReward.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessReward.Extensions.cs new file mode 100644 index 0000000..638aac6 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessReward.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class GuessRewardExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessReward.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessReward.Extensions.cs.meta new file mode 100644 index 0000000..597e045 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessReward.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ee81e749b22d57c45ba60cf72f70df5a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessReward.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessReward.cs new file mode 100644 index 0000000..cefb917 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessReward.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class GuessReward : TBase + { + private Dictionary _guessrewards; + + [DataMember(Order = 0)] + public Dictionary Guessrewards + { + get + { + return _guessrewards; + } + set + { + __isset.@guessrewards = true; + this._guessrewards = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @guessrewards; + } + + #region XmlSerializer support + + public bool ShouldSerializeGuessrewards() + { + return __isset.@guessrewards; + } + + #endregion XmlSerializer support + + public GuessReward() + { + } + + public GuessReward DeepCopy() + { + var tmp5 = new GuessReward(); + if((Guessrewards != null) && __isset.@guessrewards) + { + tmp5.Guessrewards = this.Guessrewards.DeepCopy(); + } + tmp5.__isset.@guessrewards = this.__isset.@guessrewards; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Guessrewards = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.GuessRewardItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.GuessRewardItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Guessrewards[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("GuessReward"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Guessrewards != null) && __isset.@guessrewards) + { + tmp11.Name = "guessrewards"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Guessrewards.Count), cancellationToken); + foreach (int _iter12 in Guessrewards.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Guessrewards[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is GuessReward other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@guessrewards == other.__isset.@guessrewards) && ((!__isset.@guessrewards) || (TCollections.Equals(Guessrewards, other.Guessrewards)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Guessrewards != null) && __isset.@guessrewards) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Guessrewards); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("GuessReward("); + int tmp14 = 0; + if((Guessrewards != null) && __isset.@guessrewards) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Guessrewards: "); + Guessrewards.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessReward.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessReward.cs.meta new file mode 100644 index 0000000..e6b0fcf --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1345d695435c2794a8565fc14b62e7ce +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessRewardItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessRewardItem.cs new file mode 100644 index 0000000..a75daf9 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessRewardItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class GuessRewardItem : TBase + { + private int _Id; + private int _Level; + private string _Reward_1; + private string _Reward_2; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Level + { + get + { + return _Level; + } + set + { + __isset.Level = true; + this._Level = value; + } + } + + [DataMember(Order = 0)] + public string Reward_1 + { + get + { + return _Reward_1; + } + set + { + __isset.Reward_1 = true; + this._Reward_1 = value; + } + } + + [DataMember(Order = 0)] + public string Reward_2 + { + get + { + return _Reward_2; + } + set + { + __isset.Reward_2 = true; + this._Reward_2 = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Level; + [DataMember] + public bool Reward_1; + [DataMember] + public bool Reward_2; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeLevel() + { + return __isset.Level; + } + + public bool ShouldSerializeReward_1() + { + return __isset.Reward_1; + } + + public bool ShouldSerializeReward_2() + { + return __isset.Reward_2; + } + + #endregion XmlSerializer support + + public GuessRewardItem() + { + } + + public GuessRewardItem DeepCopy() + { + var tmp0 = new GuessRewardItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Level) + { + tmp0.Level = this.Level; + } + tmp0.__isset.Level = this.__isset.Level; + if((Reward_1 != null) && __isset.Reward_1) + { + tmp0.Reward_1 = this.Reward_1; + } + tmp0.__isset.Reward_1 = this.__isset.Reward_1; + if((Reward_2 != null) && __isset.Reward_2) + { + tmp0.Reward_2 = this.Reward_2; + } + tmp0.__isset.Reward_2 = this.__isset.Reward_2; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Level = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Reward_1 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Reward_2 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("GuessRewardItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Level) + { + tmp2.Name = "Level"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Level, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward_1 != null) && __isset.Reward_1) + { + tmp2.Name = "Reward_1"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward_1, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward_2 != null) && __isset.Reward_2) + { + tmp2.Name = "Reward_2"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward_2, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is GuessRewardItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Level == other.__isset.Level) && ((!__isset.Level) || (global::System.Object.Equals(Level, other.Level)))) + && ((__isset.Reward_1 == other.__isset.Reward_1) && ((!__isset.Reward_1) || (global::System.Object.Equals(Reward_1, other.Reward_1)))) + && ((__isset.Reward_2 == other.__isset.Reward_2) && ((!__isset.Reward_2) || (global::System.Object.Equals(Reward_2, other.Reward_2)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Level) + { + hashcode = (hashcode * 397) + Level.GetHashCode(); + } + if((Reward_1 != null) && __isset.Reward_1) + { + hashcode = (hashcode * 397) + Reward_1.GetHashCode(); + } + if((Reward_2 != null) && __isset.Reward_2) + { + hashcode = (hashcode * 397) + Reward_2.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("GuessRewardItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Level) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Level: "); + Level.ToString(tmp3); + } + if((Reward_1 != null) && __isset.Reward_1) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward_1: "); + Reward_1.ToString(tmp3); + } + if((Reward_2 != null) && __isset.Reward_2) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward_2: "); + Reward_2.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessRewardItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessRewardItem.cs.meta new file mode 100644 index 0000000..f8a0780 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuessRewardItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 081788dab1e16c343a207198feb08354 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideData.Extensions.cs new file mode 100644 index 0000000..adc63c7 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class GuideDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideData.Extensions.cs.meta new file mode 100644 index 0000000..c4a8212 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1687ee34cfc7ee843a3db3b92dc67da7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideData.cs new file mode 100644 index 0000000..487cd9f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class GuideData : TBase + { + private Dictionary _guidedatas; + + [DataMember(Order = 0)] + public Dictionary Guidedatas + { + get + { + return _guidedatas; + } + set + { + __isset.@guidedatas = true; + this._guidedatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @guidedatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeGuidedatas() + { + return __isset.@guidedatas; + } + + #endregion XmlSerializer support + + public GuideData() + { + } + + public GuideData DeepCopy() + { + var tmp5 = new GuideData(); + if((Guidedatas != null) && __isset.@guidedatas) + { + tmp5.Guidedatas = this.Guidedatas.DeepCopy(); + } + tmp5.__isset.@guidedatas = this.__isset.@guidedatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Guidedatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.GuideDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.GuideDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Guidedatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("GuideData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Guidedatas != null) && __isset.@guidedatas) + { + tmp11.Name = "guidedatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Guidedatas.Count), cancellationToken); + foreach (int _iter12 in Guidedatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Guidedatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is GuideData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@guidedatas == other.__isset.@guidedatas) && ((!__isset.@guidedatas) || (TCollections.Equals(Guidedatas, other.Guidedatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Guidedatas != null) && __isset.@guidedatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Guidedatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("GuideData("); + int tmp14 = 0; + if((Guidedatas != null) && __isset.@guidedatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Guidedatas: "); + Guidedatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideData.cs.meta new file mode 100644 index 0000000..bdbe40d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2a9d9de4947363e45b6a76eb0b858f70 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideDataItem.cs new file mode 100644 index 0000000..5612117 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideDataItem.cs @@ -0,0 +1,651 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class GuideDataItem : TBase + { + private int _Id; + private string _TargetStr; + private int _FingerType; + private string _Title; + private string _TitlePos; + private string _Expression; + private string _Other; + private string _Disappear; + private string _Remark; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string TargetStr + { + get + { + return _TargetStr; + } + set + { + __isset.TargetStr = true; + this._TargetStr = value; + } + } + + [DataMember(Order = 0)] + public int FingerType + { + get + { + return _FingerType; + } + set + { + __isset.FingerType = true; + this._FingerType = value; + } + } + + [DataMember(Order = 0)] + public string Title + { + get + { + return _Title; + } + set + { + __isset.Title = true; + this._Title = value; + } + } + + [DataMember(Order = 0)] + public string TitlePos + { + get + { + return _TitlePos; + } + set + { + __isset.TitlePos = true; + this._TitlePos = value; + } + } + + [DataMember(Order = 0)] + public string Expression + { + get + { + return _Expression; + } + set + { + __isset.Expression = true; + this._Expression = value; + } + } + + [DataMember(Order = 0)] + public string Other + { + get + { + return _Other; + } + set + { + __isset.Other = true; + this._Other = value; + } + } + + [DataMember(Order = 0)] + public string Disappear + { + get + { + return _Disappear; + } + set + { + __isset.Disappear = true; + this._Disappear = value; + } + } + + [DataMember(Order = 0)] + public string Remark + { + get + { + return _Remark; + } + set + { + __isset.Remark = true; + this._Remark = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool TargetStr; + [DataMember] + public bool FingerType; + [DataMember] + public bool Title; + [DataMember] + public bool TitlePos; + [DataMember] + public bool Expression; + [DataMember] + public bool Other; + [DataMember] + public bool Disappear; + [DataMember] + public bool Remark; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeTargetStr() + { + return __isset.TargetStr; + } + + public bool ShouldSerializeFingerType() + { + return __isset.FingerType; + } + + public bool ShouldSerializeTitle() + { + return __isset.Title; + } + + public bool ShouldSerializeTitlePos() + { + return __isset.TitlePos; + } + + public bool ShouldSerializeExpression() + { + return __isset.Expression; + } + + public bool ShouldSerializeOther() + { + return __isset.Other; + } + + public bool ShouldSerializeDisappear() + { + return __isset.Disappear; + } + + public bool ShouldSerializeRemark() + { + return __isset.Remark; + } + + #endregion XmlSerializer support + + public GuideDataItem() + { + } + + public GuideDataItem DeepCopy() + { + var tmp0 = new GuideDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((TargetStr != null) && __isset.TargetStr) + { + tmp0.TargetStr = this.TargetStr; + } + tmp0.__isset.TargetStr = this.__isset.TargetStr; + if(__isset.FingerType) + { + tmp0.FingerType = this.FingerType; + } + tmp0.__isset.FingerType = this.__isset.FingerType; + if((Title != null) && __isset.Title) + { + tmp0.Title = this.Title; + } + tmp0.__isset.Title = this.__isset.Title; + if((TitlePos != null) && __isset.TitlePos) + { + tmp0.TitlePos = this.TitlePos; + } + tmp0.__isset.TitlePos = this.__isset.TitlePos; + if((Expression != null) && __isset.Expression) + { + tmp0.Expression = this.Expression; + } + tmp0.__isset.Expression = this.__isset.Expression; + if((Other != null) && __isset.Other) + { + tmp0.Other = this.Other; + } + tmp0.__isset.Other = this.__isset.Other; + if((Disappear != null) && __isset.Disappear) + { + tmp0.Disappear = this.Disappear; + } + tmp0.__isset.Disappear = this.__isset.Disappear; + if((Remark != null) && __isset.Remark) + { + tmp0.Remark = this.Remark; + } + tmp0.__isset.Remark = this.__isset.Remark; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + TargetStr = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + FingerType = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Title = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + TitlePos = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + Expression = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Other = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + Disappear = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.String) + { + Remark = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("GuideDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((TargetStr != null) && __isset.TargetStr) + { + tmp2.Name = "TargetStr"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(TargetStr, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.FingerType) + { + tmp2.Name = "FingerType"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(FingerType, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Title != null) && __isset.Title) + { + tmp2.Name = "Title"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Title, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((TitlePos != null) && __isset.TitlePos) + { + tmp2.Name = "TitlePos"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(TitlePos, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Expression != null) && __isset.Expression) + { + tmp2.Name = "Expression"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Expression, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Other != null) && __isset.Other) + { + tmp2.Name = "Other"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Other, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Disappear != null) && __isset.Disappear) + { + tmp2.Name = "Disappear"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Disappear, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Remark != null) && __isset.Remark) + { + tmp2.Name = "Remark"; + tmp2.Type = TType.String; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Remark, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is GuideDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.TargetStr == other.__isset.TargetStr) && ((!__isset.TargetStr) || (global::System.Object.Equals(TargetStr, other.TargetStr)))) + && ((__isset.FingerType == other.__isset.FingerType) && ((!__isset.FingerType) || (global::System.Object.Equals(FingerType, other.FingerType)))) + && ((__isset.Title == other.__isset.Title) && ((!__isset.Title) || (global::System.Object.Equals(Title, other.Title)))) + && ((__isset.TitlePos == other.__isset.TitlePos) && ((!__isset.TitlePos) || (global::System.Object.Equals(TitlePos, other.TitlePos)))) + && ((__isset.Expression == other.__isset.Expression) && ((!__isset.Expression) || (global::System.Object.Equals(Expression, other.Expression)))) + && ((__isset.Other == other.__isset.Other) && ((!__isset.Other) || (global::System.Object.Equals(Other, other.Other)))) + && ((__isset.Disappear == other.__isset.Disappear) && ((!__isset.Disappear) || (global::System.Object.Equals(Disappear, other.Disappear)))) + && ((__isset.Remark == other.__isset.Remark) && ((!__isset.Remark) || (global::System.Object.Equals(Remark, other.Remark)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((TargetStr != null) && __isset.TargetStr) + { + hashcode = (hashcode * 397) + TargetStr.GetHashCode(); + } + if(__isset.FingerType) + { + hashcode = (hashcode * 397) + FingerType.GetHashCode(); + } + if((Title != null) && __isset.Title) + { + hashcode = (hashcode * 397) + Title.GetHashCode(); + } + if((TitlePos != null) && __isset.TitlePos) + { + hashcode = (hashcode * 397) + TitlePos.GetHashCode(); + } + if((Expression != null) && __isset.Expression) + { + hashcode = (hashcode * 397) + Expression.GetHashCode(); + } + if((Other != null) && __isset.Other) + { + hashcode = (hashcode * 397) + Other.GetHashCode(); + } + if((Disappear != null) && __isset.Disappear) + { + hashcode = (hashcode * 397) + Disappear.GetHashCode(); + } + if((Remark != null) && __isset.Remark) + { + hashcode = (hashcode * 397) + Remark.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("GuideDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((TargetStr != null) && __isset.TargetStr) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TargetStr: "); + TargetStr.ToString(tmp3); + } + if(__isset.FingerType) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("FingerType: "); + FingerType.ToString(tmp3); + } + if((Title != null) && __isset.Title) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Title: "); + Title.ToString(tmp3); + } + if((TitlePos != null) && __isset.TitlePos) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TitlePos: "); + TitlePos.ToString(tmp3); + } + if((Expression != null) && __isset.Expression) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Expression: "); + Expression.ToString(tmp3); + } + if((Other != null) && __isset.Other) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Other: "); + Other.ToString(tmp3); + } + if((Disappear != null) && __isset.Disappear) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Disappear: "); + Disappear.ToString(tmp3); + } + if((Remark != null) && __isset.Remark) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Remark: "); + Remark.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideDataItem.cs.meta new file mode 100644 index 0000000..a84ad29 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/GuideDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b6651a48671da454f9bc5d9c2c403911 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookReward.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookReward.Extensions.cs new file mode 100644 index 0000000..7adb450 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookReward.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class HandbookRewardExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookReward.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookReward.Extensions.cs.meta new file mode 100644 index 0000000..15dfb26 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookReward.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6bb7aba34a606ee4ebdc16db2138e346 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookReward.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookReward.cs new file mode 100644 index 0000000..acc2bfb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookReward.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class HandbookReward : TBase + { + private Dictionary _handbookrewards; + + [DataMember(Order = 0)] + public Dictionary Handbookrewards + { + get + { + return _handbookrewards; + } + set + { + __isset.@handbookrewards = true; + this._handbookrewards = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @handbookrewards; + } + + #region XmlSerializer support + + public bool ShouldSerializeHandbookrewards() + { + return __isset.@handbookrewards; + } + + #endregion XmlSerializer support + + public HandbookReward() + { + } + + public HandbookReward DeepCopy() + { + var tmp5 = new HandbookReward(); + if((Handbookrewards != null) && __isset.@handbookrewards) + { + tmp5.Handbookrewards = this.Handbookrewards.DeepCopy(); + } + tmp5.__isset.@handbookrewards = this.__isset.@handbookrewards; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Handbookrewards = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.HandbookRewardItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.HandbookRewardItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Handbookrewards[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("HandbookReward"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Handbookrewards != null) && __isset.@handbookrewards) + { + tmp11.Name = "handbookrewards"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Handbookrewards.Count), cancellationToken); + foreach (int _iter12 in Handbookrewards.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Handbookrewards[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is HandbookReward other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@handbookrewards == other.__isset.@handbookrewards) && ((!__isset.@handbookrewards) || (TCollections.Equals(Handbookrewards, other.Handbookrewards)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Handbookrewards != null) && __isset.@handbookrewards) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Handbookrewards); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("HandbookReward("); + int tmp14 = 0; + if((Handbookrewards != null) && __isset.@handbookrewards) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Handbookrewards: "); + Handbookrewards.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookReward.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookReward.cs.meta new file mode 100644 index 0000000..3485651 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e4b145005e73d3f46a9de0a738c095a5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookRewardItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookRewardItem.cs new file mode 100644 index 0000000..ef8b2d8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookRewardItem.cs @@ -0,0 +1,309 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class HandbookRewardItem : TBase + { + private int _Id; + private string _Type; + private string _Reward; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Type + { + get + { + return _Type; + } + set + { + __isset.Type = true; + this._Type = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Type; + [DataMember] + public bool Reward; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeType() + { + return __isset.Type; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + #endregion XmlSerializer support + + public HandbookRewardItem() + { + } + + public HandbookRewardItem DeepCopy() + { + var tmp0 = new HandbookRewardItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Type != null) && __isset.Type) + { + tmp0.Type = this.Type; + } + tmp0.__isset.Type = this.__isset.Type; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Type = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("HandbookRewardItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Type != null) && __isset.Type) + { + tmp2.Name = "Type"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is HandbookRewardItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Type == other.__isset.Type) && ((!__isset.Type) || (global::System.Object.Equals(Type, other.Type)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Type != null) && __isset.Type) + { + hashcode = (hashcode * 397) + Type.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("HandbookRewardItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Type != null) && __isset.Type) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Type: "); + Type.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookRewardItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookRewardItem.cs.meta new file mode 100644 index 0000000..49b45bb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HandbookRewardItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d4931edfa004397488220cca5601e64a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadData.Extensions.cs new file mode 100644 index 0000000..81635d4 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class HeadDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadData.Extensions.cs.meta new file mode 100644 index 0000000..c759d8b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 732d942b7c0b3ab40b0d7ed12b15ad9f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadData.cs new file mode 100644 index 0000000..8431883 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class HeadData : TBase + { + private Dictionary _headdatas; + + [DataMember(Order = 0)] + public Dictionary Headdatas + { + get + { + return _headdatas; + } + set + { + __isset.@headdatas = true; + this._headdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @headdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeHeaddatas() + { + return __isset.@headdatas; + } + + #endregion XmlSerializer support + + public HeadData() + { + } + + public HeadData DeepCopy() + { + var tmp5 = new HeadData(); + if((Headdatas != null) && __isset.@headdatas) + { + tmp5.Headdatas = this.Headdatas.DeepCopy(); + } + tmp5.__isset.@headdatas = this.__isset.@headdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Headdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.HeadDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.HeadDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Headdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("HeadData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Headdatas != null) && __isset.@headdatas) + { + tmp11.Name = "headdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Headdatas.Count), cancellationToken); + foreach (int _iter12 in Headdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Headdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is HeadData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@headdatas == other.__isset.@headdatas) && ((!__isset.@headdatas) || (TCollections.Equals(Headdatas, other.Headdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Headdatas != null) && __isset.@headdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Headdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("HeadData("); + int tmp14 = 0; + if((Headdatas != null) && __isset.@headdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Headdatas: "); + Headdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadData.cs.meta new file mode 100644 index 0000000..de5fb7d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f9c7955d23286184ba846b85faabd4d0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadDataItem.cs new file mode 100644 index 0000000..86231a8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadDataItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class HeadDataItem : TBase + { + private int _Id; + private string _NameKey; + private int _Init; + private string _Icon; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string NameKey + { + get + { + return _NameKey; + } + set + { + __isset.NameKey = true; + this._NameKey = value; + } + } + + [DataMember(Order = 0)] + public int Init + { + get + { + return _Init; + } + set + { + __isset.Init = true; + this._Init = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool NameKey; + [DataMember] + public bool Init; + [DataMember] + public bool Icon; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeNameKey() + { + return __isset.NameKey; + } + + public bool ShouldSerializeInit() + { + return __isset.Init; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + #endregion XmlSerializer support + + public HeadDataItem() + { + } + + public HeadDataItem DeepCopy() + { + var tmp0 = new HeadDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((NameKey != null) && __isset.NameKey) + { + tmp0.NameKey = this.NameKey; + } + tmp0.__isset.NameKey = this.__isset.NameKey; + if(__isset.Init) + { + tmp0.Init = this.Init; + } + tmp0.__isset.Init = this.__isset.Init; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + NameKey = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Init = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("HeadDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((NameKey != null) && __isset.NameKey) + { + tmp2.Name = "NameKey"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(NameKey, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Init) + { + tmp2.Name = "Init"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Init, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is HeadDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.NameKey == other.__isset.NameKey) && ((!__isset.NameKey) || (global::System.Object.Equals(NameKey, other.NameKey)))) + && ((__isset.Init == other.__isset.Init) && ((!__isset.Init) || (global::System.Object.Equals(Init, other.Init)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((NameKey != null) && __isset.NameKey) + { + hashcode = (hashcode * 397) + NameKey.GetHashCode(); + } + if(__isset.Init) + { + hashcode = (hashcode * 397) + Init.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("HeadDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((NameKey != null) && __isset.NameKey) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NameKey: "); + NameKey.ToString(tmp3); + } + if(__isset.Init) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Init: "); + Init.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadDataItem.cs.meta new file mode 100644 index 0000000..d0491da --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HeadDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7ed05fe2a701bd044b5a0dae5388816a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlay.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlay.Extensions.cs new file mode 100644 index 0000000..ac634c5 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlay.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class HowToPlayExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlay.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlay.Extensions.cs.meta new file mode 100644 index 0000000..3dfd51c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlay.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6566878ae7cfde9418ed1e865874e0f3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlay.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlay.cs new file mode 100644 index 0000000..fd02797 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlay.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class HowToPlay : TBase + { + private Dictionary _howtoplays; + + [DataMember(Order = 0)] + public Dictionary Howtoplays + { + get + { + return _howtoplays; + } + set + { + __isset.@howtoplays = true; + this._howtoplays = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @howtoplays; + } + + #region XmlSerializer support + + public bool ShouldSerializeHowtoplays() + { + return __isset.@howtoplays; + } + + #endregion XmlSerializer support + + public HowToPlay() + { + } + + public HowToPlay DeepCopy() + { + var tmp5 = new HowToPlay(); + if((Howtoplays != null) && __isset.@howtoplays) + { + tmp5.Howtoplays = this.Howtoplays.DeepCopy(); + } + tmp5.__isset.@howtoplays = this.__isset.@howtoplays; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Howtoplays = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.HowToPlayItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.HowToPlayItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Howtoplays[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("HowToPlay"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Howtoplays != null) && __isset.@howtoplays) + { + tmp11.Name = "howtoplays"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Howtoplays.Count), cancellationToken); + foreach (int _iter12 in Howtoplays.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Howtoplays[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is HowToPlay other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@howtoplays == other.__isset.@howtoplays) && ((!__isset.@howtoplays) || (TCollections.Equals(Howtoplays, other.Howtoplays)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Howtoplays != null) && __isset.@howtoplays) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Howtoplays); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("HowToPlay("); + int tmp14 = 0; + if((Howtoplays != null) && __isset.@howtoplays) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Howtoplays: "); + Howtoplays.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlay.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlay.cs.meta new file mode 100644 index 0000000..28d2055 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlay.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 21c2f2e4966ceda41aa28bab3fe4b216 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlayItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlayItem.cs new file mode 100644 index 0000000..69a6cf1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlayItem.cs @@ -0,0 +1,309 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class HowToPlayItem : TBase + { + private int _Id; + private string _Icon; + private string _Tip; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string Tip + { + get + { + return _Tip; + } + set + { + __isset.Tip = true; + this._Tip = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Icon; + [DataMember] + public bool Tip; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeTip() + { + return __isset.Tip; + } + + #endregion XmlSerializer support + + public HowToPlayItem() + { + } + + public HowToPlayItem DeepCopy() + { + var tmp0 = new HowToPlayItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((Tip != null) && __isset.Tip) + { + tmp0.Tip = this.Tip; + } + tmp0.__isset.Tip = this.__isset.Tip; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Tip = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("HowToPlayItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Tip != null) && __isset.Tip) + { + tmp2.Name = "Tip"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Tip, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is HowToPlayItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Tip == other.__isset.Tip) && ((!__isset.Tip) || (global::System.Object.Equals(Tip, other.Tip)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((Tip != null) && __isset.Tip) + { + hashcode = (hashcode * 397) + Tip.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("HowToPlayItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((Tip != null) && __isset.Tip) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Tip: "); + Tip.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlayItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlayItem.cs.meta new file mode 100644 index 0000000..a1907db --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/HowToPlayItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e02d00481e7092e4aa5334f766b65d66 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgress.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgress.Extensions.cs new file mode 100644 index 0000000..6d4783e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgress.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class IndoorProgressExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgress.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgress.Extensions.cs.meta new file mode 100644 index 0000000..df0ab64 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgress.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0525277413e771c4998698d9cab35c63 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgress.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgress.cs new file mode 100644 index 0000000..903e566 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgress.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class IndoorProgress : TBase + { + private Dictionary _indoorprogresss; + + [DataMember(Order = 0)] + public Dictionary Indoorprogresss + { + get + { + return _indoorprogresss; + } + set + { + __isset.@indoorprogresss = true; + this._indoorprogresss = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @indoorprogresss; + } + + #region XmlSerializer support + + public bool ShouldSerializeIndoorprogresss() + { + return __isset.@indoorprogresss; + } + + #endregion XmlSerializer support + + public IndoorProgress() + { + } + + public IndoorProgress DeepCopy() + { + var tmp5 = new IndoorProgress(); + if((Indoorprogresss != null) && __isset.@indoorprogresss) + { + tmp5.Indoorprogresss = this.Indoorprogresss.DeepCopy(); + } + tmp5.__isset.@indoorprogresss = this.__isset.@indoorprogresss; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Indoorprogresss = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.IndoorProgressItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.IndoorProgressItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Indoorprogresss[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("IndoorProgress"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Indoorprogresss != null) && __isset.@indoorprogresss) + { + tmp11.Name = "indoorprogresss"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Indoorprogresss.Count), cancellationToken); + foreach (int _iter12 in Indoorprogresss.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Indoorprogresss[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is IndoorProgress other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@indoorprogresss == other.__isset.@indoorprogresss) && ((!__isset.@indoorprogresss) || (TCollections.Equals(Indoorprogresss, other.Indoorprogresss)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Indoorprogresss != null) && __isset.@indoorprogresss) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Indoorprogresss); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("IndoorProgress("); + int tmp14 = 0; + if((Indoorprogresss != null) && __isset.@indoorprogresss) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Indoorprogresss: "); + Indoorprogresss.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgress.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgress.cs.meta new file mode 100644 index 0000000..658c98a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgress.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e19b4919109b96d4ab564e4a51211ec2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgressItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgressItem.cs new file mode 100644 index 0000000..c91fc84 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgressItem.cs @@ -0,0 +1,651 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class IndoorProgressItem : TBase + { + private int _Id; + private int _Scene; + private int _Lv; + private string _Item; + private string _Emit; + private string _Reward; + private string _BigReward; + private string _AreaReward; + private int _Part; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Scene + { + get + { + return _Scene; + } + set + { + __isset.Scene = true; + this._Scene = value; + } + } + + [DataMember(Order = 0)] + public int Lv + { + get + { + return _Lv; + } + set + { + __isset.Lv = true; + this._Lv = value; + } + } + + [DataMember(Order = 0)] + public string Item + { + get + { + return _Item; + } + set + { + __isset.Item = true; + this._Item = value; + } + } + + [DataMember(Order = 0)] + public string Emit + { + get + { + return _Emit; + } + set + { + __isset.Emit = true; + this._Emit = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + [DataMember(Order = 0)] + public string BigReward + { + get + { + return _BigReward; + } + set + { + __isset.BigReward = true; + this._BigReward = value; + } + } + + [DataMember(Order = 0)] + public string AreaReward + { + get + { + return _AreaReward; + } + set + { + __isset.AreaReward = true; + this._AreaReward = value; + } + } + + [DataMember(Order = 0)] + public int Part + { + get + { + return _Part; + } + set + { + __isset.Part = true; + this._Part = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Scene; + [DataMember] + public bool Lv; + [DataMember] + public bool Item; + [DataMember] + public bool Emit; + [DataMember] + public bool Reward; + [DataMember] + public bool BigReward; + [DataMember] + public bool AreaReward; + [DataMember] + public bool Part; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeScene() + { + return __isset.Scene; + } + + public bool ShouldSerializeLv() + { + return __isset.Lv; + } + + public bool ShouldSerializeItem() + { + return __isset.Item; + } + + public bool ShouldSerializeEmit() + { + return __isset.Emit; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + public bool ShouldSerializeBigReward() + { + return __isset.BigReward; + } + + public bool ShouldSerializeAreaReward() + { + return __isset.AreaReward; + } + + public bool ShouldSerializePart() + { + return __isset.Part; + } + + #endregion XmlSerializer support + + public IndoorProgressItem() + { + } + + public IndoorProgressItem DeepCopy() + { + var tmp0 = new IndoorProgressItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Scene) + { + tmp0.Scene = this.Scene; + } + tmp0.__isset.Scene = this.__isset.Scene; + if(__isset.Lv) + { + tmp0.Lv = this.Lv; + } + tmp0.__isset.Lv = this.__isset.Lv; + if((Item != null) && __isset.Item) + { + tmp0.Item = this.Item; + } + tmp0.__isset.Item = this.__isset.Item; + if((Emit != null) && __isset.Emit) + { + tmp0.Emit = this.Emit; + } + tmp0.__isset.Emit = this.__isset.Emit; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + if((BigReward != null) && __isset.BigReward) + { + tmp0.BigReward = this.BigReward; + } + tmp0.__isset.BigReward = this.__isset.BigReward; + if((AreaReward != null) && __isset.AreaReward) + { + tmp0.AreaReward = this.AreaReward; + } + tmp0.__isset.AreaReward = this.__isset.AreaReward; + if(__isset.Part) + { + tmp0.Part = this.Part; + } + tmp0.__isset.Part = this.__isset.Part; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Scene = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Lv = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Item = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Emit = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + BigReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + AreaReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I32) + { + Part = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("IndoorProgressItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Scene) + { + tmp2.Name = "Scene"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Scene, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Lv) + { + tmp2.Name = "Lv"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Lv, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Item != null) && __isset.Item) + { + tmp2.Name = "Item"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Item, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Emit != null) && __isset.Emit) + { + tmp2.Name = "Emit"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Emit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((BigReward != null) && __isset.BigReward) + { + tmp2.Name = "BigReward"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(BigReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((AreaReward != null) && __isset.AreaReward) + { + tmp2.Name = "AreaReward"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(AreaReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Part) + { + tmp2.Name = "Part"; + tmp2.Type = TType.I32; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Part, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is IndoorProgressItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Scene == other.__isset.Scene) && ((!__isset.Scene) || (global::System.Object.Equals(Scene, other.Scene)))) + && ((__isset.Lv == other.__isset.Lv) && ((!__isset.Lv) || (global::System.Object.Equals(Lv, other.Lv)))) + && ((__isset.Item == other.__isset.Item) && ((!__isset.Item) || (global::System.Object.Equals(Item, other.Item)))) + && ((__isset.Emit == other.__isset.Emit) && ((!__isset.Emit) || (global::System.Object.Equals(Emit, other.Emit)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))) + && ((__isset.BigReward == other.__isset.BigReward) && ((!__isset.BigReward) || (global::System.Object.Equals(BigReward, other.BigReward)))) + && ((__isset.AreaReward == other.__isset.AreaReward) && ((!__isset.AreaReward) || (global::System.Object.Equals(AreaReward, other.AreaReward)))) + && ((__isset.Part == other.__isset.Part) && ((!__isset.Part) || (global::System.Object.Equals(Part, other.Part)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Scene) + { + hashcode = (hashcode * 397) + Scene.GetHashCode(); + } + if(__isset.Lv) + { + hashcode = (hashcode * 397) + Lv.GetHashCode(); + } + if((Item != null) && __isset.Item) + { + hashcode = (hashcode * 397) + Item.GetHashCode(); + } + if((Emit != null) && __isset.Emit) + { + hashcode = (hashcode * 397) + Emit.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + if((BigReward != null) && __isset.BigReward) + { + hashcode = (hashcode * 397) + BigReward.GetHashCode(); + } + if((AreaReward != null) && __isset.AreaReward) + { + hashcode = (hashcode * 397) + AreaReward.GetHashCode(); + } + if(__isset.Part) + { + hashcode = (hashcode * 397) + Part.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("IndoorProgressItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Scene) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Scene: "); + Scene.ToString(tmp3); + } + if(__isset.Lv) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Lv: "); + Lv.ToString(tmp3); + } + if((Item != null) && __isset.Item) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Item: "); + Item.ToString(tmp3); + } + if((Emit != null) && __isset.Emit) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Emit: "); + Emit.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + if((BigReward != null) && __isset.BigReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("BigReward: "); + BigReward.ToString(tmp3); + } + if((AreaReward != null) && __isset.AreaReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("AreaReward: "); + AreaReward.ToString(tmp3); + } + if(__isset.Part) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Part: "); + Part.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgressItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgressItem.cs.meta new file mode 100644 index 0000000..2237817 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/IndoorProgressItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 81b04fc29ed474e4aa864a2a72f02cde +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageData.Extensions.cs new file mode 100644 index 0000000..ed851ee --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class LanguageDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageData.Extensions.cs.meta new file mode 100644 index 0000000..66d2954 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 338dd302a1e03d543b1704ecb0ecfab3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageData.cs new file mode 100644 index 0000000..c609467 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class LanguageData : TBase + { + private Dictionary _languagedatas; + + [DataMember(Order = 0)] + public Dictionary Languagedatas + { + get + { + return _languagedatas; + } + set + { + __isset.@languagedatas = true; + this._languagedatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @languagedatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeLanguagedatas() + { + return __isset.@languagedatas; + } + + #endregion XmlSerializer support + + public LanguageData() + { + } + + public LanguageData DeepCopy() + { + var tmp5 = new LanguageData(); + if((Languagedatas != null) && __isset.@languagedatas) + { + tmp5.Languagedatas = this.Languagedatas.DeepCopy(); + } + tmp5.__isset.@languagedatas = this.__isset.@languagedatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Languagedatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.LanguageDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.LanguageDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Languagedatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("LanguageData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Languagedatas != null) && __isset.@languagedatas) + { + tmp11.Name = "languagedatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Languagedatas.Count), cancellationToken); + foreach (int _iter12 in Languagedatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Languagedatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is LanguageData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@languagedatas == other.__isset.@languagedatas) && ((!__isset.@languagedatas) || (TCollections.Equals(Languagedatas, other.Languagedatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Languagedatas != null) && __isset.@languagedatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Languagedatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("LanguageData("); + int tmp14 = 0; + if((Languagedatas != null) && __isset.@languagedatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Languagedatas: "); + Languagedatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageData.cs.meta new file mode 100644 index 0000000..ce4c6fa --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 777788b3894ecd24cb5d9e5da20756c8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageDataItem.cs new file mode 100644 index 0000000..87b314b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageDataItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class LanguageDataItem : TBase + { + private int _Id; + private string _Key; + private string _En_US; + private string _Zh_CN; + private string _Pt_BR; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Key + { + get + { + return _Key; + } + set + { + __isset.Key = true; + this._Key = value; + } + } + + [DataMember(Order = 0)] + public string En_US + { + get + { + return _En_US; + } + set + { + __isset.En_US = true; + this._En_US = value; + } + } + + [DataMember(Order = 0)] + public string Zh_CN + { + get + { + return _Zh_CN; + } + set + { + __isset.Zh_CN = true; + this._Zh_CN = value; + } + } + + [DataMember(Order = 0)] + public string Pt_BR + { + get + { + return _Pt_BR; + } + set + { + __isset.Pt_BR = true; + this._Pt_BR = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Key; + [DataMember] + public bool En_US; + [DataMember] + public bool Zh_CN; + [DataMember] + public bool Pt_BR; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeKey() + { + return __isset.Key; + } + + public bool ShouldSerializeEn_US() + { + return __isset.En_US; + } + + public bool ShouldSerializeZh_CN() + { + return __isset.Zh_CN; + } + + public bool ShouldSerializePt_BR() + { + return __isset.Pt_BR; + } + + #endregion XmlSerializer support + + public LanguageDataItem() + { + } + + public LanguageDataItem DeepCopy() + { + var tmp0 = new LanguageDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Key != null) && __isset.Key) + { + tmp0.Key = this.Key; + } + tmp0.__isset.Key = this.__isset.Key; + if((En_US != null) && __isset.En_US) + { + tmp0.En_US = this.En_US; + } + tmp0.__isset.En_US = this.__isset.En_US; + if((Zh_CN != null) && __isset.Zh_CN) + { + tmp0.Zh_CN = this.Zh_CN; + } + tmp0.__isset.Zh_CN = this.__isset.Zh_CN; + if((Pt_BR != null) && __isset.Pt_BR) + { + tmp0.Pt_BR = this.Pt_BR; + } + tmp0.__isset.Pt_BR = this.__isset.Pt_BR; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Key = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + En_US = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Zh_CN = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Pt_BR = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("LanguageDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Key != null) && __isset.Key) + { + tmp2.Name = "Key"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Key, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((En_US != null) && __isset.En_US) + { + tmp2.Name = "En_US"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(En_US, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Zh_CN != null) && __isset.Zh_CN) + { + tmp2.Name = "Zh_CN"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Zh_CN, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Pt_BR != null) && __isset.Pt_BR) + { + tmp2.Name = "Pt_BR"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Pt_BR, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is LanguageDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Key == other.__isset.Key) && ((!__isset.Key) || (global::System.Object.Equals(Key, other.Key)))) + && ((__isset.En_US == other.__isset.En_US) && ((!__isset.En_US) || (global::System.Object.Equals(En_US, other.En_US)))) + && ((__isset.Zh_CN == other.__isset.Zh_CN) && ((!__isset.Zh_CN) || (global::System.Object.Equals(Zh_CN, other.Zh_CN)))) + && ((__isset.Pt_BR == other.__isset.Pt_BR) && ((!__isset.Pt_BR) || (global::System.Object.Equals(Pt_BR, other.Pt_BR)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Key != null) && __isset.Key) + { + hashcode = (hashcode * 397) + Key.GetHashCode(); + } + if((En_US != null) && __isset.En_US) + { + hashcode = (hashcode * 397) + En_US.GetHashCode(); + } + if((Zh_CN != null) && __isset.Zh_CN) + { + hashcode = (hashcode * 397) + Zh_CN.GetHashCode(); + } + if((Pt_BR != null) && __isset.Pt_BR) + { + hashcode = (hashcode * 397) + Pt_BR.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("LanguageDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Key != null) && __isset.Key) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Key: "); + Key.ToString(tmp3); + } + if((En_US != null) && __isset.En_US) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("En_US: "); + En_US.ToString(tmp3); + } + if((Zh_CN != null) && __isset.Zh_CN) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Zh_CN: "); + Zh_CN.ToString(tmp3); + } + if((Pt_BR != null) && __isset.Pt_BR) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Pt_BR: "); + Pt_BR.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageDataItem.cs.meta new file mode 100644 index 0000000..7dfa4b0 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LanguageDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: aad1535c783544844968db044390c3fe +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelData.Extensions.cs new file mode 100644 index 0000000..bac6c1e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class LevelDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelData.Extensions.cs.meta new file mode 100644 index 0000000..a178299 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 071608b5e308af4439d9ecee9da03d6f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelData.cs new file mode 100644 index 0000000..7c33659 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class LevelData : TBase + { + private Dictionary _leveldatas; + + [DataMember(Order = 0)] + public Dictionary Leveldatas + { + get + { + return _leveldatas; + } + set + { + __isset.@leveldatas = true; + this._leveldatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @leveldatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeLeveldatas() + { + return __isset.@leveldatas; + } + + #endregion XmlSerializer support + + public LevelData() + { + } + + public LevelData DeepCopy() + { + var tmp5 = new LevelData(); + if((Leveldatas != null) && __isset.@leveldatas) + { + tmp5.Leveldatas = this.Leveldatas.DeepCopy(); + } + tmp5.__isset.@leveldatas = this.__isset.@leveldatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Leveldatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.LevelDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.LevelDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Leveldatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("LevelData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Leveldatas != null) && __isset.@leveldatas) + { + tmp11.Name = "leveldatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Leveldatas.Count), cancellationToken); + foreach (int _iter12 in Leveldatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Leveldatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is LevelData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@leveldatas == other.__isset.@leveldatas) && ((!__isset.@leveldatas) || (TCollections.Equals(Leveldatas, other.Leveldatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Leveldatas != null) && __isset.@leveldatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Leveldatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("LevelData("); + int tmp14 = 0; + if((Leveldatas != null) && __isset.@leveldatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Leveldatas: "); + Leveldatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelData.cs.meta new file mode 100644 index 0000000..6415fde --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 513df4b6fabdfa54e83ff8a3679611d6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelDataItem.cs new file mode 100644 index 0000000..148e53e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelDataItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class LevelDataItem : TBase + { + private int _Id; + private int _Lv; + private int _StoryExp; + private int _PetExp; + private string _StoryReward; + private string _PetReward; + private string _RetireEmit; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Lv + { + get + { + return _Lv; + } + set + { + __isset.Lv = true; + this._Lv = value; + } + } + + [DataMember(Order = 0)] + public int StoryExp + { + get + { + return _StoryExp; + } + set + { + __isset.StoryExp = true; + this._StoryExp = value; + } + } + + [DataMember(Order = 0)] + public int PetExp + { + get + { + return _PetExp; + } + set + { + __isset.PetExp = true; + this._PetExp = value; + } + } + + [DataMember(Order = 0)] + public string StoryReward + { + get + { + return _StoryReward; + } + set + { + __isset.StoryReward = true; + this._StoryReward = value; + } + } + + [DataMember(Order = 0)] + public string PetReward + { + get + { + return _PetReward; + } + set + { + __isset.PetReward = true; + this._PetReward = value; + } + } + + [DataMember(Order = 0)] + public string RetireEmit + { + get + { + return _RetireEmit; + } + set + { + __isset.RetireEmit = true; + this._RetireEmit = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Lv; + [DataMember] + public bool StoryExp; + [DataMember] + public bool PetExp; + [DataMember] + public bool StoryReward; + [DataMember] + public bool PetReward; + [DataMember] + public bool RetireEmit; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeLv() + { + return __isset.Lv; + } + + public bool ShouldSerializeStoryExp() + { + return __isset.StoryExp; + } + + public bool ShouldSerializePetExp() + { + return __isset.PetExp; + } + + public bool ShouldSerializeStoryReward() + { + return __isset.StoryReward; + } + + public bool ShouldSerializePetReward() + { + return __isset.PetReward; + } + + public bool ShouldSerializeRetireEmit() + { + return __isset.RetireEmit; + } + + #endregion XmlSerializer support + + public LevelDataItem() + { + } + + public LevelDataItem DeepCopy() + { + var tmp0 = new LevelDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Lv) + { + tmp0.Lv = this.Lv; + } + tmp0.__isset.Lv = this.__isset.Lv; + if(__isset.StoryExp) + { + tmp0.StoryExp = this.StoryExp; + } + tmp0.__isset.StoryExp = this.__isset.StoryExp; + if(__isset.PetExp) + { + tmp0.PetExp = this.PetExp; + } + tmp0.__isset.PetExp = this.__isset.PetExp; + if((StoryReward != null) && __isset.StoryReward) + { + tmp0.StoryReward = this.StoryReward; + } + tmp0.__isset.StoryReward = this.__isset.StoryReward; + if((PetReward != null) && __isset.PetReward) + { + tmp0.PetReward = this.PetReward; + } + tmp0.__isset.PetReward = this.__isset.PetReward; + if((RetireEmit != null) && __isset.RetireEmit) + { + tmp0.RetireEmit = this.RetireEmit; + } + tmp0.__isset.RetireEmit = this.__isset.RetireEmit; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Lv = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + StoryExp = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + PetExp = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + StoryReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + PetReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + RetireEmit = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("LevelDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Lv) + { + tmp2.Name = "Lv"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Lv, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.StoryExp) + { + tmp2.Name = "StoryExp"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(StoryExp, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.PetExp) + { + tmp2.Name = "PetExp"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(PetExp, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((StoryReward != null) && __isset.StoryReward) + { + tmp2.Name = "StoryReward"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(StoryReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetReward != null) && __isset.PetReward) + { + tmp2.Name = "PetReward"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(PetReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RetireEmit != null) && __isset.RetireEmit) + { + tmp2.Name = "RetireEmit"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RetireEmit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is LevelDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Lv == other.__isset.Lv) && ((!__isset.Lv) || (global::System.Object.Equals(Lv, other.Lv)))) + && ((__isset.StoryExp == other.__isset.StoryExp) && ((!__isset.StoryExp) || (global::System.Object.Equals(StoryExp, other.StoryExp)))) + && ((__isset.PetExp == other.__isset.PetExp) && ((!__isset.PetExp) || (global::System.Object.Equals(PetExp, other.PetExp)))) + && ((__isset.StoryReward == other.__isset.StoryReward) && ((!__isset.StoryReward) || (global::System.Object.Equals(StoryReward, other.StoryReward)))) + && ((__isset.PetReward == other.__isset.PetReward) && ((!__isset.PetReward) || (global::System.Object.Equals(PetReward, other.PetReward)))) + && ((__isset.RetireEmit == other.__isset.RetireEmit) && ((!__isset.RetireEmit) || (global::System.Object.Equals(RetireEmit, other.RetireEmit)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Lv) + { + hashcode = (hashcode * 397) + Lv.GetHashCode(); + } + if(__isset.StoryExp) + { + hashcode = (hashcode * 397) + StoryExp.GetHashCode(); + } + if(__isset.PetExp) + { + hashcode = (hashcode * 397) + PetExp.GetHashCode(); + } + if((StoryReward != null) && __isset.StoryReward) + { + hashcode = (hashcode * 397) + StoryReward.GetHashCode(); + } + if((PetReward != null) && __isset.PetReward) + { + hashcode = (hashcode * 397) + PetReward.GetHashCode(); + } + if((RetireEmit != null) && __isset.RetireEmit) + { + hashcode = (hashcode * 397) + RetireEmit.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("LevelDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Lv) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Lv: "); + Lv.ToString(tmp3); + } + if(__isset.StoryExp) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("StoryExp: "); + StoryExp.ToString(tmp3); + } + if(__isset.PetExp) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetExp: "); + PetExp.ToString(tmp3); + } + if((StoryReward != null) && __isset.StoryReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("StoryReward: "); + StoryReward.ToString(tmp3); + } + if((PetReward != null) && __isset.PetReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetReward: "); + PetReward.ToString(tmp3); + } + if((RetireEmit != null) && __isset.RetireEmit) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RetireEmit: "); + RetireEmit.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelDataItem.cs.meta new file mode 100644 index 0000000..5fa287d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 76da5a3d11b7dbf4e94b71c0b6f9020b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherData.Extensions.cs new file mode 100644 index 0000000..e003dbc --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class LevelLauncherDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherData.Extensions.cs.meta new file mode 100644 index 0000000..ae75ec5 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2936f3b5ec55b2d44ba59ac57537a0e6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherData.cs new file mode 100644 index 0000000..70b6092 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class LevelLauncherData : TBase + { + private Dictionary _levellauncherdatas; + + [DataMember(Order = 0)] + public Dictionary Levellauncherdatas + { + get + { + return _levellauncherdatas; + } + set + { + __isset.@levellauncherdatas = true; + this._levellauncherdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @levellauncherdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeLevellauncherdatas() + { + return __isset.@levellauncherdatas; + } + + #endregion XmlSerializer support + + public LevelLauncherData() + { + } + + public LevelLauncherData DeepCopy() + { + var tmp5 = new LevelLauncherData(); + if((Levellauncherdatas != null) && __isset.@levellauncherdatas) + { + tmp5.Levellauncherdatas = this.Levellauncherdatas.DeepCopy(); + } + tmp5.__isset.@levellauncherdatas = this.__isset.@levellauncherdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Levellauncherdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.LevelLauncherDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.LevelLauncherDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Levellauncherdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("LevelLauncherData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Levellauncherdatas != null) && __isset.@levellauncherdatas) + { + tmp11.Name = "levellauncherdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Levellauncherdatas.Count), cancellationToken); + foreach (int _iter12 in Levellauncherdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Levellauncherdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is LevelLauncherData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@levellauncherdatas == other.__isset.@levellauncherdatas) && ((!__isset.@levellauncherdatas) || (TCollections.Equals(Levellauncherdatas, other.Levellauncherdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Levellauncherdatas != null) && __isset.@levellauncherdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Levellauncherdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("LevelLauncherData("); + int tmp14 = 0; + if((Levellauncherdatas != null) && __isset.@levellauncherdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Levellauncherdatas: "); + Levellauncherdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherData.cs.meta new file mode 100644 index 0000000..91d3ede --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 25362b10560ecbb439c06b7bdadb9622 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherDataItem.cs new file mode 100644 index 0000000..aec810d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherDataItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class LevelLauncherDataItem : TBase + { + private int _Id; + private int _Lv; + private string _LanguageKey; + private string _Picture; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Lv + { + get + { + return _Lv; + } + set + { + __isset.Lv = true; + this._Lv = value; + } + } + + [DataMember(Order = 0)] + public string LanguageKey + { + get + { + return _LanguageKey; + } + set + { + __isset.LanguageKey = true; + this._LanguageKey = value; + } + } + + [DataMember(Order = 0)] + public string Picture + { + get + { + return _Picture; + } + set + { + __isset.Picture = true; + this._Picture = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Lv; + [DataMember] + public bool LanguageKey; + [DataMember] + public bool Picture; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeLv() + { + return __isset.Lv; + } + + public bool ShouldSerializeLanguageKey() + { + return __isset.LanguageKey; + } + + public bool ShouldSerializePicture() + { + return __isset.Picture; + } + + #endregion XmlSerializer support + + public LevelLauncherDataItem() + { + } + + public LevelLauncherDataItem DeepCopy() + { + var tmp0 = new LevelLauncherDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Lv) + { + tmp0.Lv = this.Lv; + } + tmp0.__isset.Lv = this.__isset.Lv; + if((LanguageKey != null) && __isset.LanguageKey) + { + tmp0.LanguageKey = this.LanguageKey; + } + tmp0.__isset.LanguageKey = this.__isset.LanguageKey; + if((Picture != null) && __isset.Picture) + { + tmp0.Picture = this.Picture; + } + tmp0.__isset.Picture = this.__isset.Picture; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Lv = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + LanguageKey = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Picture = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("LevelLauncherDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Lv) + { + tmp2.Name = "Lv"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Lv, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((LanguageKey != null) && __isset.LanguageKey) + { + tmp2.Name = "LanguageKey"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(LanguageKey, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Picture != null) && __isset.Picture) + { + tmp2.Name = "Picture"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Picture, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is LevelLauncherDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Lv == other.__isset.Lv) && ((!__isset.Lv) || (global::System.Object.Equals(Lv, other.Lv)))) + && ((__isset.LanguageKey == other.__isset.LanguageKey) && ((!__isset.LanguageKey) || (global::System.Object.Equals(LanguageKey, other.LanguageKey)))) + && ((__isset.Picture == other.__isset.Picture) && ((!__isset.Picture) || (global::System.Object.Equals(Picture, other.Picture)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Lv) + { + hashcode = (hashcode * 397) + Lv.GetHashCode(); + } + if((LanguageKey != null) && __isset.LanguageKey) + { + hashcode = (hashcode * 397) + LanguageKey.GetHashCode(); + } + if((Picture != null) && __isset.Picture) + { + hashcode = (hashcode * 397) + Picture.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("LevelLauncherDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Lv) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Lv: "); + Lv.ToString(tmp3); + } + if((LanguageKey != null) && __isset.LanguageKey) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("LanguageKey: "); + LanguageKey.ToString(tmp3); + } + if((Picture != null) && __isset.Picture) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Picture: "); + Picture.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherDataItem.cs.meta new file mode 100644 index 0000000..9817fbd --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LevelLauncherDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e629b2c69b726c348a453b1d63c674c3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatData.Extensions.cs new file mode 100644 index 0000000..35a4dfa --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class LuckyCatDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatData.Extensions.cs.meta new file mode 100644 index 0000000..2f19fc2 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1a88e59cb92eec44eb5b802efbfc82e3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatData.cs new file mode 100644 index 0000000..9d5402a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class LuckyCatData : TBase + { + private Dictionary _luckycatdatas; + + [DataMember(Order = 0)] + public Dictionary Luckycatdatas + { + get + { + return _luckycatdatas; + } + set + { + __isset.@luckycatdatas = true; + this._luckycatdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @luckycatdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeLuckycatdatas() + { + return __isset.@luckycatdatas; + } + + #endregion XmlSerializer support + + public LuckyCatData() + { + } + + public LuckyCatData DeepCopy() + { + var tmp5 = new LuckyCatData(); + if((Luckycatdatas != null) && __isset.@luckycatdatas) + { + tmp5.Luckycatdatas = this.Luckycatdatas.DeepCopy(); + } + tmp5.__isset.@luckycatdatas = this.__isset.@luckycatdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Luckycatdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.LuckyCatDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.LuckyCatDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Luckycatdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("LuckyCatData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Luckycatdatas != null) && __isset.@luckycatdatas) + { + tmp11.Name = "luckycatdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Luckycatdatas.Count), cancellationToken); + foreach (int _iter12 in Luckycatdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Luckycatdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is LuckyCatData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@luckycatdatas == other.__isset.@luckycatdatas) && ((!__isset.@luckycatdatas) || (TCollections.Equals(Luckycatdatas, other.Luckycatdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Luckycatdatas != null) && __isset.@luckycatdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Luckycatdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("LuckyCatData("); + int tmp14 = 0; + if((Luckycatdatas != null) && __isset.@luckycatdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Luckycatdatas: "); + Luckycatdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatData.cs.meta new file mode 100644 index 0000000..c233561 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e15b762f05448a849b727ef84789d822 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatDataItem.cs new file mode 100644 index 0000000..cb7bf22 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatDataItem.cs @@ -0,0 +1,309 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class LuckyCatDataItem : TBase + { + private int _Id; + private int _Time; + private int _Earn; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Time + { + get + { + return _Time; + } + set + { + __isset.Time = true; + this._Time = value; + } + } + + [DataMember(Order = 0)] + public int Earn + { + get + { + return _Earn; + } + set + { + __isset.Earn = true; + this._Earn = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Time; + [DataMember] + public bool Earn; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeTime() + { + return __isset.Time; + } + + public bool ShouldSerializeEarn() + { + return __isset.Earn; + } + + #endregion XmlSerializer support + + public LuckyCatDataItem() + { + } + + public LuckyCatDataItem DeepCopy() + { + var tmp0 = new LuckyCatDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Time) + { + tmp0.Time = this.Time; + } + tmp0.__isset.Time = this.__isset.Time; + if(__isset.Earn) + { + tmp0.Earn = this.Earn; + } + tmp0.__isset.Earn = this.__isset.Earn; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Time = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Earn = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("LuckyCatDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Time) + { + tmp2.Name = "Time"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Time, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Earn) + { + tmp2.Name = "Earn"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Earn, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is LuckyCatDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Time == other.__isset.Time) && ((!__isset.Time) || (global::System.Object.Equals(Time, other.Time)))) + && ((__isset.Earn == other.__isset.Earn) && ((!__isset.Earn) || (global::System.Object.Equals(Earn, other.Earn)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Time) + { + hashcode = (hashcode * 397) + Time.GetHashCode(); + } + if(__isset.Earn) + { + hashcode = (hashcode * 397) + Earn.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("LuckyCatDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Time) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Time: "); + Time.ToString(tmp3); + } + if(__isset.Earn) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Earn: "); + Earn.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatDataItem.cs.meta new file mode 100644 index 0000000..8915323 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a8d10e0b0a85e984aa2a6f1292be6ad0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbability.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbability.Extensions.cs new file mode 100644 index 0000000..0e52eeb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbability.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class LuckyCatProbabilityExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbability.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbability.Extensions.cs.meta new file mode 100644 index 0000000..5959937 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbability.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: dca95af7106cb224fa549d2c559ca520 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbability.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbability.cs new file mode 100644 index 0000000..2a3fa00 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbability.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class LuckyCatProbability : TBase + { + private Dictionary _luckycatprobabilitys; + + [DataMember(Order = 0)] + public Dictionary Luckycatprobabilitys + { + get + { + return _luckycatprobabilitys; + } + set + { + __isset.@luckycatprobabilitys = true; + this._luckycatprobabilitys = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @luckycatprobabilitys; + } + + #region XmlSerializer support + + public bool ShouldSerializeLuckycatprobabilitys() + { + return __isset.@luckycatprobabilitys; + } + + #endregion XmlSerializer support + + public LuckyCatProbability() + { + } + + public LuckyCatProbability DeepCopy() + { + var tmp5 = new LuckyCatProbability(); + if((Luckycatprobabilitys != null) && __isset.@luckycatprobabilitys) + { + tmp5.Luckycatprobabilitys = this.Luckycatprobabilitys.DeepCopy(); + } + tmp5.__isset.@luckycatprobabilitys = this.__isset.@luckycatprobabilitys; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Luckycatprobabilitys = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.LuckyCatProbabilityItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.LuckyCatProbabilityItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Luckycatprobabilitys[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("LuckyCatProbability"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Luckycatprobabilitys != null) && __isset.@luckycatprobabilitys) + { + tmp11.Name = "luckycatprobabilitys"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Luckycatprobabilitys.Count), cancellationToken); + foreach (int _iter12 in Luckycatprobabilitys.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Luckycatprobabilitys[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is LuckyCatProbability other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@luckycatprobabilitys == other.__isset.@luckycatprobabilitys) && ((!__isset.@luckycatprobabilitys) || (TCollections.Equals(Luckycatprobabilitys, other.Luckycatprobabilitys)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Luckycatprobabilitys != null) && __isset.@luckycatprobabilitys) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Luckycatprobabilitys); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("LuckyCatProbability("); + int tmp14 = 0; + if((Luckycatprobabilitys != null) && __isset.@luckycatprobabilitys) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Luckycatprobabilitys: "); + Luckycatprobabilitys.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbability.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbability.cs.meta new file mode 100644 index 0000000..a6515f6 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbability.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b8fdda59da2e21d47b27c2cb47d78950 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbabilityItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbabilityItem.cs new file mode 100644 index 0000000..542e3df --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbabilityItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class LuckyCatProbabilityItem : TBase + { + private int _Id; + private int _BaseProbability; + private int _ProbabilityBonus; + private int _ProbabilityCap; + private int _EnergyEfficiencyValue; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int BaseProbability + { + get + { + return _BaseProbability; + } + set + { + __isset.BaseProbability = true; + this._BaseProbability = value; + } + } + + [DataMember(Order = 0)] + public int ProbabilityBonus + { + get + { + return _ProbabilityBonus; + } + set + { + __isset.ProbabilityBonus = true; + this._ProbabilityBonus = value; + } + } + + [DataMember(Order = 0)] + public int ProbabilityCap + { + get + { + return _ProbabilityCap; + } + set + { + __isset.ProbabilityCap = true; + this._ProbabilityCap = value; + } + } + + [DataMember(Order = 0)] + public int EnergyEfficiencyValue + { + get + { + return _EnergyEfficiencyValue; + } + set + { + __isset.EnergyEfficiencyValue = true; + this._EnergyEfficiencyValue = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool BaseProbability; + [DataMember] + public bool ProbabilityBonus; + [DataMember] + public bool ProbabilityCap; + [DataMember] + public bool EnergyEfficiencyValue; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeBaseProbability() + { + return __isset.BaseProbability; + } + + public bool ShouldSerializeProbabilityBonus() + { + return __isset.ProbabilityBonus; + } + + public bool ShouldSerializeProbabilityCap() + { + return __isset.ProbabilityCap; + } + + public bool ShouldSerializeEnergyEfficiencyValue() + { + return __isset.EnergyEfficiencyValue; + } + + #endregion XmlSerializer support + + public LuckyCatProbabilityItem() + { + } + + public LuckyCatProbabilityItem DeepCopy() + { + var tmp0 = new LuckyCatProbabilityItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.BaseProbability) + { + tmp0.BaseProbability = this.BaseProbability; + } + tmp0.__isset.BaseProbability = this.__isset.BaseProbability; + if(__isset.ProbabilityBonus) + { + tmp0.ProbabilityBonus = this.ProbabilityBonus; + } + tmp0.__isset.ProbabilityBonus = this.__isset.ProbabilityBonus; + if(__isset.ProbabilityCap) + { + tmp0.ProbabilityCap = this.ProbabilityCap; + } + tmp0.__isset.ProbabilityCap = this.__isset.ProbabilityCap; + if(__isset.EnergyEfficiencyValue) + { + tmp0.EnergyEfficiencyValue = this.EnergyEfficiencyValue; + } + tmp0.__isset.EnergyEfficiencyValue = this.__isset.EnergyEfficiencyValue; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + BaseProbability = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + ProbabilityBonus = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + ProbabilityCap = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + EnergyEfficiencyValue = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("LuckyCatProbabilityItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.BaseProbability) + { + tmp2.Name = "BaseProbability"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(BaseProbability, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ProbabilityBonus) + { + tmp2.Name = "ProbabilityBonus"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ProbabilityBonus, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ProbabilityCap) + { + tmp2.Name = "ProbabilityCap"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ProbabilityCap, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.EnergyEfficiencyValue) + { + tmp2.Name = "EnergyEfficiencyValue"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(EnergyEfficiencyValue, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is LuckyCatProbabilityItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.BaseProbability == other.__isset.BaseProbability) && ((!__isset.BaseProbability) || (global::System.Object.Equals(BaseProbability, other.BaseProbability)))) + && ((__isset.ProbabilityBonus == other.__isset.ProbabilityBonus) && ((!__isset.ProbabilityBonus) || (global::System.Object.Equals(ProbabilityBonus, other.ProbabilityBonus)))) + && ((__isset.ProbabilityCap == other.__isset.ProbabilityCap) && ((!__isset.ProbabilityCap) || (global::System.Object.Equals(ProbabilityCap, other.ProbabilityCap)))) + && ((__isset.EnergyEfficiencyValue == other.__isset.EnergyEfficiencyValue) && ((!__isset.EnergyEfficiencyValue) || (global::System.Object.Equals(EnergyEfficiencyValue, other.EnergyEfficiencyValue)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.BaseProbability) + { + hashcode = (hashcode * 397) + BaseProbability.GetHashCode(); + } + if(__isset.ProbabilityBonus) + { + hashcode = (hashcode * 397) + ProbabilityBonus.GetHashCode(); + } + if(__isset.ProbabilityCap) + { + hashcode = (hashcode * 397) + ProbabilityCap.GetHashCode(); + } + if(__isset.EnergyEfficiencyValue) + { + hashcode = (hashcode * 397) + EnergyEfficiencyValue.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("LuckyCatProbabilityItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.BaseProbability) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("BaseProbability: "); + BaseProbability.ToString(tmp3); + } + if(__isset.ProbabilityBonus) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ProbabilityBonus: "); + ProbabilityBonus.ToString(tmp3); + } + if(__isset.ProbabilityCap) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ProbabilityCap: "); + ProbabilityCap.ToString(tmp3); + } + if(__isset.EnergyEfficiencyValue) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("EnergyEfficiencyValue: "); + EnergyEfficiencyValue.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbabilityItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbabilityItem.cs.meta new file mode 100644 index 0000000..97ef45d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/LuckyCatProbabilityItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7dfa3432eafcf4047ab7578ffd831eff +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollect.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollect.Extensions.cs new file mode 100644 index 0000000..74b286d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollect.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class MainCardCollectExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollect.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollect.Extensions.cs.meta new file mode 100644 index 0000000..133b50a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollect.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fe638dc046568344b953a272a7a52e11 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollect.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollect.cs new file mode 100644 index 0000000..3811063 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollect.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MainCardCollect : TBase + { + private Dictionary _maincardcollects; + + [DataMember(Order = 0)] + public Dictionary Maincardcollects + { + get + { + return _maincardcollects; + } + set + { + __isset.@maincardcollects = true; + this._maincardcollects = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @maincardcollects; + } + + #region XmlSerializer support + + public bool ShouldSerializeMaincardcollects() + { + return __isset.@maincardcollects; + } + + #endregion XmlSerializer support + + public MainCardCollect() + { + } + + public MainCardCollect DeepCopy() + { + var tmp5 = new MainCardCollect(); + if((Maincardcollects != null) && __isset.@maincardcollects) + { + tmp5.Maincardcollects = this.Maincardcollects.DeepCopy(); + } + tmp5.__isset.@maincardcollects = this.__isset.@maincardcollects; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Maincardcollects = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.MainCardCollectItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.MainCardCollectItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Maincardcollects[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("MainCardCollect"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Maincardcollects != null) && __isset.@maincardcollects) + { + tmp11.Name = "maincardcollects"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Maincardcollects.Count), cancellationToken); + foreach (int _iter12 in Maincardcollects.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Maincardcollects[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MainCardCollect other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@maincardcollects == other.__isset.@maincardcollects) && ((!__isset.@maincardcollects) || (TCollections.Equals(Maincardcollects, other.Maincardcollects)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Maincardcollects != null) && __isset.@maincardcollects) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Maincardcollects); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("MainCardCollect("); + int tmp14 = 0; + if((Maincardcollects != null) && __isset.@maincardcollects) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Maincardcollects: "); + Maincardcollects.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollect.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollect.cs.meta new file mode 100644 index 0000000..746d8c8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollect.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 10ce75c8c2f3fbc46bad2ea13b081129 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollectItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollectItem.cs new file mode 100644 index 0000000..49e470a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollectItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MainCardCollectItem : TBase + { + private int _Id; + private string _Icon; + private int _Color; + private string _Name; + private string _RewardId; + private string _RewardCnt; + private int _Round; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public int Color + { + get + { + return _Color; + } + set + { + __isset.Color = true; + this._Color = value; + } + } + + [DataMember(Order = 0)] + public string Name + { + get + { + return _Name; + } + set + { + __isset.Name = true; + this._Name = value; + } + } + + [DataMember(Order = 0)] + public string RewardId + { + get + { + return _RewardId; + } + set + { + __isset.RewardId = true; + this._RewardId = value; + } + } + + [DataMember(Order = 0)] + public string RewardCnt + { + get + { + return _RewardCnt; + } + set + { + __isset.RewardCnt = true; + this._RewardCnt = value; + } + } + + [DataMember(Order = 0)] + public int Round + { + get + { + return _Round; + } + set + { + __isset.Round = true; + this._Round = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Icon; + [DataMember] + public bool Color; + [DataMember] + public bool Name; + [DataMember] + public bool RewardId; + [DataMember] + public bool RewardCnt; + [DataMember] + public bool Round; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeColor() + { + return __isset.Color; + } + + public bool ShouldSerializeName() + { + return __isset.Name; + } + + public bool ShouldSerializeRewardId() + { + return __isset.RewardId; + } + + public bool ShouldSerializeRewardCnt() + { + return __isset.RewardCnt; + } + + public bool ShouldSerializeRound() + { + return __isset.Round; + } + + #endregion XmlSerializer support + + public MainCardCollectItem() + { + } + + public MainCardCollectItem DeepCopy() + { + var tmp0 = new MainCardCollectItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if(__isset.Color) + { + tmp0.Color = this.Color; + } + tmp0.__isset.Color = this.__isset.Color; + if((Name != null) && __isset.Name) + { + tmp0.Name = this.Name; + } + tmp0.__isset.Name = this.__isset.Name; + if((RewardId != null) && __isset.RewardId) + { + tmp0.RewardId = this.RewardId; + } + tmp0.__isset.RewardId = this.__isset.RewardId; + if((RewardCnt != null) && __isset.RewardCnt) + { + tmp0.RewardCnt = this.RewardCnt; + } + tmp0.__isset.RewardCnt = this.__isset.RewardCnt; + if(__isset.Round) + { + tmp0.Round = this.Round; + } + tmp0.__isset.Round = this.__isset.Round; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Color = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Name = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + RewardId = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + RewardCnt = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.I32) + { + Round = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("MainCardCollectItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Color) + { + tmp2.Name = "Color"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Color, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Name != null) && __isset.Name) + { + tmp2.Name = "Name"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardId != null) && __isset.RewardId) + { + tmp2.Name = "RewardId"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + tmp2.Name = "RewardCnt"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardCnt, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Round) + { + tmp2.Name = "Round"; + tmp2.Type = TType.I32; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Round, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MainCardCollectItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Color == other.__isset.Color) && ((!__isset.Color) || (global::System.Object.Equals(Color, other.Color)))) + && ((__isset.Name == other.__isset.Name) && ((!__isset.Name) || (global::System.Object.Equals(Name, other.Name)))) + && ((__isset.RewardId == other.__isset.RewardId) && ((!__isset.RewardId) || (global::System.Object.Equals(RewardId, other.RewardId)))) + && ((__isset.RewardCnt == other.__isset.RewardCnt) && ((!__isset.RewardCnt) || (global::System.Object.Equals(RewardCnt, other.RewardCnt)))) + && ((__isset.Round == other.__isset.Round) && ((!__isset.Round) || (global::System.Object.Equals(Round, other.Round)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if(__isset.Color) + { + hashcode = (hashcode * 397) + Color.GetHashCode(); + } + if((Name != null) && __isset.Name) + { + hashcode = (hashcode * 397) + Name.GetHashCode(); + } + if((RewardId != null) && __isset.RewardId) + { + hashcode = (hashcode * 397) + RewardId.GetHashCode(); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + hashcode = (hashcode * 397) + RewardCnt.GetHashCode(); + } + if(__isset.Round) + { + hashcode = (hashcode * 397) + Round.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("MainCardCollectItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if(__isset.Color) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Color: "); + Color.ToString(tmp3); + } + if((Name != null) && __isset.Name) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Name: "); + Name.ToString(tmp3); + } + if((RewardId != null) && __isset.RewardId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardId: "); + RewardId.ToString(tmp3); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardCnt: "); + RewardCnt.ToString(tmp3); + } + if(__isset.Round) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Round: "); + Round.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollectItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollectItem.cs.meta new file mode 100644 index 0000000..ce80ab3 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MainCardCollectItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cb2a1fd07d1b6b944bfe12b23fd28f7f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeData.Extensions.cs new file mode 100644 index 0000000..a6c09dd --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class MergeDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeData.Extensions.cs.meta new file mode 100644 index 0000000..e46cf6c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d458298ef4fcdfc47ae1d4124cefe798 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeData.cs new file mode 100644 index 0000000..7dbc68d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MergeData : TBase + { + private Dictionary _mergedatas; + + [DataMember(Order = 0)] + public Dictionary Mergedatas + { + get + { + return _mergedatas; + } + set + { + __isset.@mergedatas = true; + this._mergedatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @mergedatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeMergedatas() + { + return __isset.@mergedatas; + } + + #endregion XmlSerializer support + + public MergeData() + { + } + + public MergeData DeepCopy() + { + var tmp5 = new MergeData(); + if((Mergedatas != null) && __isset.@mergedatas) + { + tmp5.Mergedatas = this.Mergedatas.DeepCopy(); + } + tmp5.__isset.@mergedatas = this.__isset.@mergedatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Mergedatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.MergeDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.MergeDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Mergedatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("MergeData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Mergedatas != null) && __isset.@mergedatas) + { + tmp11.Name = "mergedatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Mergedatas.Count), cancellationToken); + foreach (int _iter12 in Mergedatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Mergedatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MergeData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@mergedatas == other.__isset.@mergedatas) && ((!__isset.@mergedatas) || (TCollections.Equals(Mergedatas, other.Mergedatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Mergedatas != null) && __isset.@mergedatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Mergedatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("MergeData("); + int tmp14 = 0; + if((Mergedatas != null) && __isset.@mergedatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Mergedatas: "); + Mergedatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeData.cs.meta new file mode 100644 index 0000000..7dbd3e9 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 86571a7ceb1d37748ac328f4d49a0ced +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeDataItem.cs new file mode 100644 index 0000000..77a6c0c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeDataItem.cs @@ -0,0 +1,1677 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MergeDataItem : TBase + { + private int _Id; + private int _Lv; + private int _MaxLv; + private string _Icon; + private string _Color; + private string _Title; + private string _Content; + private string _SellType; + private int _SellNum; + private int _Star; + private string _Origin; + private int _Capacity; + private int _CoolTime; + private int _CoolNum; + private string _Emit_List; + private int _SellDiamond; + private string _Relative; + private string _Type; + private string _Emit_ID; + private string _Emit_Type; + private string _Product_Type; + private int _Order_Score; + private string _Emit_Product; + private string _Dynamic; + private string _Dynamic1; + private string _Dynamic2; + private string _Dynamic3; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Lv + { + get + { + return _Lv; + } + set + { + __isset.Lv = true; + this._Lv = value; + } + } + + [DataMember(Order = 0)] + public int MaxLv + { + get + { + return _MaxLv; + } + set + { + __isset.MaxLv = true; + this._MaxLv = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string Color + { + get + { + return _Color; + } + set + { + __isset.Color = true; + this._Color = value; + } + } + + [DataMember(Order = 0)] + public string Title + { + get + { + return _Title; + } + set + { + __isset.Title = true; + this._Title = value; + } + } + + [DataMember(Order = 0)] + public string Content + { + get + { + return _Content; + } + set + { + __isset.Content = true; + this._Content = value; + } + } + + [DataMember(Order = 0)] + public string SellType + { + get + { + return _SellType; + } + set + { + __isset.SellType = true; + this._SellType = value; + } + } + + [DataMember(Order = 0)] + public int SellNum + { + get + { + return _SellNum; + } + set + { + __isset.SellNum = true; + this._SellNum = value; + } + } + + [DataMember(Order = 0)] + public int Star + { + get + { + return _Star; + } + set + { + __isset.Star = true; + this._Star = value; + } + } + + [DataMember(Order = 0)] + public string Origin + { + get + { + return _Origin; + } + set + { + __isset.Origin = true; + this._Origin = value; + } + } + + [DataMember(Order = 0)] + public int Capacity + { + get + { + return _Capacity; + } + set + { + __isset.Capacity = true; + this._Capacity = value; + } + } + + [DataMember(Order = 0)] + public int CoolTime + { + get + { + return _CoolTime; + } + set + { + __isset.CoolTime = true; + this._CoolTime = value; + } + } + + [DataMember(Order = 0)] + public int CoolNum + { + get + { + return _CoolNum; + } + set + { + __isset.CoolNum = true; + this._CoolNum = value; + } + } + + [DataMember(Order = 0)] + public string Emit_List + { + get + { + return _Emit_List; + } + set + { + __isset.Emit_List = true; + this._Emit_List = value; + } + } + + [DataMember(Order = 0)] + public int SellDiamond + { + get + { + return _SellDiamond; + } + set + { + __isset.SellDiamond = true; + this._SellDiamond = value; + } + } + + [DataMember(Order = 0)] + public string Relative + { + get + { + return _Relative; + } + set + { + __isset.Relative = true; + this._Relative = value; + } + } + + [DataMember(Order = 0)] + public string Type + { + get + { + return _Type; + } + set + { + __isset.Type = true; + this._Type = value; + } + } + + [DataMember(Order = 0)] + public string Emit_ID + { + get + { + return _Emit_ID; + } + set + { + __isset.Emit_ID = true; + this._Emit_ID = value; + } + } + + [DataMember(Order = 0)] + public string Emit_Type + { + get + { + return _Emit_Type; + } + set + { + __isset.Emit_Type = true; + this._Emit_Type = value; + } + } + + [DataMember(Order = 0)] + public string Product_Type + { + get + { + return _Product_Type; + } + set + { + __isset.Product_Type = true; + this._Product_Type = value; + } + } + + [DataMember(Order = 0)] + public int Order_Score + { + get + { + return _Order_Score; + } + set + { + __isset.Order_Score = true; + this._Order_Score = value; + } + } + + [DataMember(Order = 0)] + public string Emit_Product + { + get + { + return _Emit_Product; + } + set + { + __isset.Emit_Product = true; + this._Emit_Product = value; + } + } + + [DataMember(Order = 0)] + public string Dynamic + { + get + { + return _Dynamic; + } + set + { + __isset.@Dynamic = true; + this._Dynamic = value; + } + } + + [DataMember(Order = 0)] + public string Dynamic1 + { + get + { + return _Dynamic1; + } + set + { + __isset.Dynamic1 = true; + this._Dynamic1 = value; + } + } + + [DataMember(Order = 0)] + public string Dynamic2 + { + get + { + return _Dynamic2; + } + set + { + __isset.Dynamic2 = true; + this._Dynamic2 = value; + } + } + + [DataMember(Order = 0)] + public string Dynamic3 + { + get + { + return _Dynamic3; + } + set + { + __isset.Dynamic3 = true; + this._Dynamic3 = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Lv; + [DataMember] + public bool MaxLv; + [DataMember] + public bool Icon; + [DataMember] + public bool Color; + [DataMember] + public bool Title; + [DataMember] + public bool Content; + [DataMember] + public bool SellType; + [DataMember] + public bool SellNum; + [DataMember] + public bool Star; + [DataMember] + public bool Origin; + [DataMember] + public bool Capacity; + [DataMember] + public bool CoolTime; + [DataMember] + public bool CoolNum; + [DataMember] + public bool Emit_List; + [DataMember] + public bool SellDiamond; + [DataMember] + public bool Relative; + [DataMember] + public bool Type; + [DataMember] + public bool Emit_ID; + [DataMember] + public bool Emit_Type; + [DataMember] + public bool Product_Type; + [DataMember] + public bool Order_Score; + [DataMember] + public bool Emit_Product; + [DataMember] + public bool @Dynamic; + [DataMember] + public bool Dynamic1; + [DataMember] + public bool Dynamic2; + [DataMember] + public bool Dynamic3; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeLv() + { + return __isset.Lv; + } + + public bool ShouldSerializeMaxLv() + { + return __isset.MaxLv; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeColor() + { + return __isset.Color; + } + + public bool ShouldSerializeTitle() + { + return __isset.Title; + } + + public bool ShouldSerializeContent() + { + return __isset.Content; + } + + public bool ShouldSerializeSellType() + { + return __isset.SellType; + } + + public bool ShouldSerializeSellNum() + { + return __isset.SellNum; + } + + public bool ShouldSerializeStar() + { + return __isset.Star; + } + + public bool ShouldSerializeOrigin() + { + return __isset.Origin; + } + + public bool ShouldSerializeCapacity() + { + return __isset.Capacity; + } + + public bool ShouldSerializeCoolTime() + { + return __isset.CoolTime; + } + + public bool ShouldSerializeCoolNum() + { + return __isset.CoolNum; + } + + public bool ShouldSerializeEmit_List() + { + return __isset.Emit_List; + } + + public bool ShouldSerializeSellDiamond() + { + return __isset.SellDiamond; + } + + public bool ShouldSerializeRelative() + { + return __isset.Relative; + } + + public bool ShouldSerializeType() + { + return __isset.Type; + } + + public bool ShouldSerializeEmit_ID() + { + return __isset.Emit_ID; + } + + public bool ShouldSerializeEmit_Type() + { + return __isset.Emit_Type; + } + + public bool ShouldSerializeProduct_Type() + { + return __isset.Product_Type; + } + + public bool ShouldSerializeOrder_Score() + { + return __isset.Order_Score; + } + + public bool ShouldSerializeEmit_Product() + { + return __isset.Emit_Product; + } + + public bool ShouldSerializeDynamic() + { + return __isset.@Dynamic; + } + + public bool ShouldSerializeDynamic1() + { + return __isset.Dynamic1; + } + + public bool ShouldSerializeDynamic2() + { + return __isset.Dynamic2; + } + + public bool ShouldSerializeDynamic3() + { + return __isset.Dynamic3; + } + + #endregion XmlSerializer support + + public MergeDataItem() + { + } + + public MergeDataItem DeepCopy() + { + var tmp0 = new MergeDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Lv) + { + tmp0.Lv = this.Lv; + } + tmp0.__isset.Lv = this.__isset.Lv; + if(__isset.MaxLv) + { + tmp0.MaxLv = this.MaxLv; + } + tmp0.__isset.MaxLv = this.__isset.MaxLv; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((Color != null) && __isset.Color) + { + tmp0.Color = this.Color; + } + tmp0.__isset.Color = this.__isset.Color; + if((Title != null) && __isset.Title) + { + tmp0.Title = this.Title; + } + tmp0.__isset.Title = this.__isset.Title; + if((Content != null) && __isset.Content) + { + tmp0.Content = this.Content; + } + tmp0.__isset.Content = this.__isset.Content; + if((SellType != null) && __isset.SellType) + { + tmp0.SellType = this.SellType; + } + tmp0.__isset.SellType = this.__isset.SellType; + if(__isset.SellNum) + { + tmp0.SellNum = this.SellNum; + } + tmp0.__isset.SellNum = this.__isset.SellNum; + if(__isset.Star) + { + tmp0.Star = this.Star; + } + tmp0.__isset.Star = this.__isset.Star; + if((Origin != null) && __isset.Origin) + { + tmp0.Origin = this.Origin; + } + tmp0.__isset.Origin = this.__isset.Origin; + if(__isset.Capacity) + { + tmp0.Capacity = this.Capacity; + } + tmp0.__isset.Capacity = this.__isset.Capacity; + if(__isset.CoolTime) + { + tmp0.CoolTime = this.CoolTime; + } + tmp0.__isset.CoolTime = this.__isset.CoolTime; + if(__isset.CoolNum) + { + tmp0.CoolNum = this.CoolNum; + } + tmp0.__isset.CoolNum = this.__isset.CoolNum; + if((Emit_List != null) && __isset.Emit_List) + { + tmp0.Emit_List = this.Emit_List; + } + tmp0.__isset.Emit_List = this.__isset.Emit_List; + if(__isset.SellDiamond) + { + tmp0.SellDiamond = this.SellDiamond; + } + tmp0.__isset.SellDiamond = this.__isset.SellDiamond; + if((Relative != null) && __isset.Relative) + { + tmp0.Relative = this.Relative; + } + tmp0.__isset.Relative = this.__isset.Relative; + if((Type != null) && __isset.Type) + { + tmp0.Type = this.Type; + } + tmp0.__isset.Type = this.__isset.Type; + if((Emit_ID != null) && __isset.Emit_ID) + { + tmp0.Emit_ID = this.Emit_ID; + } + tmp0.__isset.Emit_ID = this.__isset.Emit_ID; + if((Emit_Type != null) && __isset.Emit_Type) + { + tmp0.Emit_Type = this.Emit_Type; + } + tmp0.__isset.Emit_Type = this.__isset.Emit_Type; + if((Product_Type != null) && __isset.Product_Type) + { + tmp0.Product_Type = this.Product_Type; + } + tmp0.__isset.Product_Type = this.__isset.Product_Type; + if(__isset.Order_Score) + { + tmp0.Order_Score = this.Order_Score; + } + tmp0.__isset.Order_Score = this.__isset.Order_Score; + if((Emit_Product != null) && __isset.Emit_Product) + { + tmp0.Emit_Product = this.Emit_Product; + } + tmp0.__isset.Emit_Product = this.__isset.Emit_Product; + if((Dynamic != null) && __isset.@Dynamic) + { + tmp0.Dynamic = this.Dynamic; + } + tmp0.__isset.@Dynamic = this.__isset.@Dynamic; + if((Dynamic1 != null) && __isset.Dynamic1) + { + tmp0.Dynamic1 = this.Dynamic1; + } + tmp0.__isset.Dynamic1 = this.__isset.Dynamic1; + if((Dynamic2 != null) && __isset.Dynamic2) + { + tmp0.Dynamic2 = this.Dynamic2; + } + tmp0.__isset.Dynamic2 = this.__isset.Dynamic2; + if((Dynamic3 != null) && __isset.Dynamic3) + { + tmp0.Dynamic3 = this.Dynamic3; + } + tmp0.__isset.Dynamic3 = this.__isset.Dynamic3; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Lv = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + MaxLv = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Color = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + Title = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Content = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + SellType = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I32) + { + SellNum = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.I32) + { + Star = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 11: + if (field.Type == TType.String) + { + Origin = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 12: + if (field.Type == TType.I32) + { + Capacity = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 13: + if (field.Type == TType.I32) + { + CoolTime = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 14: + if (field.Type == TType.I32) + { + CoolNum = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 15: + if (field.Type == TType.String) + { + Emit_List = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 16: + if (field.Type == TType.I32) + { + SellDiamond = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 17: + if (field.Type == TType.String) + { + Relative = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 18: + if (field.Type == TType.String) + { + Type = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 19: + if (field.Type == TType.String) + { + Emit_ID = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 20: + if (field.Type == TType.String) + { + Emit_Type = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 21: + if (field.Type == TType.String) + { + Product_Type = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 22: + if (field.Type == TType.I32) + { + Order_Score = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 23: + if (field.Type == TType.String) + { + Emit_Product = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 24: + if (field.Type == TType.String) + { + Dynamic = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 25: + if (field.Type == TType.String) + { + Dynamic1 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 26: + if (field.Type == TType.String) + { + Dynamic2 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 27: + if (field.Type == TType.String) + { + Dynamic3 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("MergeDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Lv) + { + tmp2.Name = "Lv"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Lv, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.MaxLv) + { + tmp2.Name = "MaxLv"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(MaxLv, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Color != null) && __isset.Color) + { + tmp2.Name = "Color"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Color, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Title != null) && __isset.Title) + { + tmp2.Name = "Title"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Title, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Content != null) && __isset.Content) + { + tmp2.Name = "Content"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Content, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((SellType != null) && __isset.SellType) + { + tmp2.Name = "SellType"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(SellType, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SellNum) + { + tmp2.Name = "SellNum"; + tmp2.Type = TType.I32; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SellNum, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Star) + { + tmp2.Name = "Star"; + tmp2.Type = TType.I32; + tmp2.ID = 10; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Star, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Origin != null) && __isset.Origin) + { + tmp2.Name = "Origin"; + tmp2.Type = TType.String; + tmp2.ID = 11; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Origin, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Capacity) + { + tmp2.Name = "Capacity"; + tmp2.Type = TType.I32; + tmp2.ID = 12; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Capacity, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.CoolTime) + { + tmp2.Name = "CoolTime"; + tmp2.Type = TType.I32; + tmp2.ID = 13; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(CoolTime, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.CoolNum) + { + tmp2.Name = "CoolNum"; + tmp2.Type = TType.I32; + tmp2.ID = 14; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(CoolNum, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Emit_List != null) && __isset.Emit_List) + { + tmp2.Name = "Emit_List"; + tmp2.Type = TType.String; + tmp2.ID = 15; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Emit_List, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SellDiamond) + { + tmp2.Name = "SellDiamond"; + tmp2.Type = TType.I32; + tmp2.ID = 16; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SellDiamond, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Relative != null) && __isset.Relative) + { + tmp2.Name = "Relative"; + tmp2.Type = TType.String; + tmp2.ID = 17; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Relative, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Type != null) && __isset.Type) + { + tmp2.Name = "Type"; + tmp2.Type = TType.String; + tmp2.ID = 18; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Emit_ID != null) && __isset.Emit_ID) + { + tmp2.Name = "Emit_ID"; + tmp2.Type = TType.String; + tmp2.ID = 19; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Emit_ID, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Emit_Type != null) && __isset.Emit_Type) + { + tmp2.Name = "Emit_Type"; + tmp2.Type = TType.String; + tmp2.ID = 20; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Emit_Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Product_Type != null) && __isset.Product_Type) + { + tmp2.Name = "Product_Type"; + tmp2.Type = TType.String; + tmp2.ID = 21; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Product_Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Order_Score) + { + tmp2.Name = "Order_Score"; + tmp2.Type = TType.I32; + tmp2.ID = 22; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Order_Score, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Emit_Product != null) && __isset.Emit_Product) + { + tmp2.Name = "Emit_Product"; + tmp2.Type = TType.String; + tmp2.ID = 23; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Emit_Product, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Dynamic != null) && __isset.@Dynamic) + { + tmp2.Name = "Dynamic"; + tmp2.Type = TType.String; + tmp2.ID = 24; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Dynamic, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Dynamic1 != null) && __isset.Dynamic1) + { + tmp2.Name = "Dynamic1"; + tmp2.Type = TType.String; + tmp2.ID = 25; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Dynamic1, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Dynamic2 != null) && __isset.Dynamic2) + { + tmp2.Name = "Dynamic2"; + tmp2.Type = TType.String; + tmp2.ID = 26; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Dynamic2, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Dynamic3 != null) && __isset.Dynamic3) + { + tmp2.Name = "Dynamic3"; + tmp2.Type = TType.String; + tmp2.ID = 27; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Dynamic3, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MergeDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Lv == other.__isset.Lv) && ((!__isset.Lv) || (global::System.Object.Equals(Lv, other.Lv)))) + && ((__isset.MaxLv == other.__isset.MaxLv) && ((!__isset.MaxLv) || (global::System.Object.Equals(MaxLv, other.MaxLv)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Color == other.__isset.Color) && ((!__isset.Color) || (global::System.Object.Equals(Color, other.Color)))) + && ((__isset.Title == other.__isset.Title) && ((!__isset.Title) || (global::System.Object.Equals(Title, other.Title)))) + && ((__isset.Content == other.__isset.Content) && ((!__isset.Content) || (global::System.Object.Equals(Content, other.Content)))) + && ((__isset.SellType == other.__isset.SellType) && ((!__isset.SellType) || (global::System.Object.Equals(SellType, other.SellType)))) + && ((__isset.SellNum == other.__isset.SellNum) && ((!__isset.SellNum) || (global::System.Object.Equals(SellNum, other.SellNum)))) + && ((__isset.Star == other.__isset.Star) && ((!__isset.Star) || (global::System.Object.Equals(Star, other.Star)))) + && ((__isset.Origin == other.__isset.Origin) && ((!__isset.Origin) || (global::System.Object.Equals(Origin, other.Origin)))) + && ((__isset.Capacity == other.__isset.Capacity) && ((!__isset.Capacity) || (global::System.Object.Equals(Capacity, other.Capacity)))) + && ((__isset.CoolTime == other.__isset.CoolTime) && ((!__isset.CoolTime) || (global::System.Object.Equals(CoolTime, other.CoolTime)))) + && ((__isset.CoolNum == other.__isset.CoolNum) && ((!__isset.CoolNum) || (global::System.Object.Equals(CoolNum, other.CoolNum)))) + && ((__isset.Emit_List == other.__isset.Emit_List) && ((!__isset.Emit_List) || (global::System.Object.Equals(Emit_List, other.Emit_List)))) + && ((__isset.SellDiamond == other.__isset.SellDiamond) && ((!__isset.SellDiamond) || (global::System.Object.Equals(SellDiamond, other.SellDiamond)))) + && ((__isset.Relative == other.__isset.Relative) && ((!__isset.Relative) || (global::System.Object.Equals(Relative, other.Relative)))) + && ((__isset.Type == other.__isset.Type) && ((!__isset.Type) || (global::System.Object.Equals(Type, other.Type)))) + && ((__isset.Emit_ID == other.__isset.Emit_ID) && ((!__isset.Emit_ID) || (global::System.Object.Equals(Emit_ID, other.Emit_ID)))) + && ((__isset.Emit_Type == other.__isset.Emit_Type) && ((!__isset.Emit_Type) || (global::System.Object.Equals(Emit_Type, other.Emit_Type)))) + && ((__isset.Product_Type == other.__isset.Product_Type) && ((!__isset.Product_Type) || (global::System.Object.Equals(Product_Type, other.Product_Type)))) + && ((__isset.Order_Score == other.__isset.Order_Score) && ((!__isset.Order_Score) || (global::System.Object.Equals(Order_Score, other.Order_Score)))) + && ((__isset.Emit_Product == other.__isset.Emit_Product) && ((!__isset.Emit_Product) || (global::System.Object.Equals(Emit_Product, other.Emit_Product)))) + && ((__isset.@Dynamic == other.__isset.@Dynamic) && ((!__isset.@Dynamic) || (global::System.Object.Equals(Dynamic, other.Dynamic)))) + && ((__isset.Dynamic1 == other.__isset.Dynamic1) && ((!__isset.Dynamic1) || (global::System.Object.Equals(Dynamic1, other.Dynamic1)))) + && ((__isset.Dynamic2 == other.__isset.Dynamic2) && ((!__isset.Dynamic2) || (global::System.Object.Equals(Dynamic2, other.Dynamic2)))) + && ((__isset.Dynamic3 == other.__isset.Dynamic3) && ((!__isset.Dynamic3) || (global::System.Object.Equals(Dynamic3, other.Dynamic3)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Lv) + { + hashcode = (hashcode * 397) + Lv.GetHashCode(); + } + if(__isset.MaxLv) + { + hashcode = (hashcode * 397) + MaxLv.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((Color != null) && __isset.Color) + { + hashcode = (hashcode * 397) + Color.GetHashCode(); + } + if((Title != null) && __isset.Title) + { + hashcode = (hashcode * 397) + Title.GetHashCode(); + } + if((Content != null) && __isset.Content) + { + hashcode = (hashcode * 397) + Content.GetHashCode(); + } + if((SellType != null) && __isset.SellType) + { + hashcode = (hashcode * 397) + SellType.GetHashCode(); + } + if(__isset.SellNum) + { + hashcode = (hashcode * 397) + SellNum.GetHashCode(); + } + if(__isset.Star) + { + hashcode = (hashcode * 397) + Star.GetHashCode(); + } + if((Origin != null) && __isset.Origin) + { + hashcode = (hashcode * 397) + Origin.GetHashCode(); + } + if(__isset.Capacity) + { + hashcode = (hashcode * 397) + Capacity.GetHashCode(); + } + if(__isset.CoolTime) + { + hashcode = (hashcode * 397) + CoolTime.GetHashCode(); + } + if(__isset.CoolNum) + { + hashcode = (hashcode * 397) + CoolNum.GetHashCode(); + } + if((Emit_List != null) && __isset.Emit_List) + { + hashcode = (hashcode * 397) + Emit_List.GetHashCode(); + } + if(__isset.SellDiamond) + { + hashcode = (hashcode * 397) + SellDiamond.GetHashCode(); + } + if((Relative != null) && __isset.Relative) + { + hashcode = (hashcode * 397) + Relative.GetHashCode(); + } + if((Type != null) && __isset.Type) + { + hashcode = (hashcode * 397) + Type.GetHashCode(); + } + if((Emit_ID != null) && __isset.Emit_ID) + { + hashcode = (hashcode * 397) + Emit_ID.GetHashCode(); + } + if((Emit_Type != null) && __isset.Emit_Type) + { + hashcode = (hashcode * 397) + Emit_Type.GetHashCode(); + } + if((Product_Type != null) && __isset.Product_Type) + { + hashcode = (hashcode * 397) + Product_Type.GetHashCode(); + } + if(__isset.Order_Score) + { + hashcode = (hashcode * 397) + Order_Score.GetHashCode(); + } + if((Emit_Product != null) && __isset.Emit_Product) + { + hashcode = (hashcode * 397) + Emit_Product.GetHashCode(); + } + if((Dynamic != null) && __isset.@Dynamic) + { + hashcode = (hashcode * 397) + Dynamic.GetHashCode(); + } + if((Dynamic1 != null) && __isset.Dynamic1) + { + hashcode = (hashcode * 397) + Dynamic1.GetHashCode(); + } + if((Dynamic2 != null) && __isset.Dynamic2) + { + hashcode = (hashcode * 397) + Dynamic2.GetHashCode(); + } + if((Dynamic3 != null) && __isset.Dynamic3) + { + hashcode = (hashcode * 397) + Dynamic3.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("MergeDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Lv) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Lv: "); + Lv.ToString(tmp3); + } + if(__isset.MaxLv) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MaxLv: "); + MaxLv.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((Color != null) && __isset.Color) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Color: "); + Color.ToString(tmp3); + } + if((Title != null) && __isset.Title) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Title: "); + Title.ToString(tmp3); + } + if((Content != null) && __isset.Content) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Content: "); + Content.ToString(tmp3); + } + if((SellType != null) && __isset.SellType) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SellType: "); + SellType.ToString(tmp3); + } + if(__isset.SellNum) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SellNum: "); + SellNum.ToString(tmp3); + } + if(__isset.Star) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Star: "); + Star.ToString(tmp3); + } + if((Origin != null) && __isset.Origin) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Origin: "); + Origin.ToString(tmp3); + } + if(__isset.Capacity) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Capacity: "); + Capacity.ToString(tmp3); + } + if(__isset.CoolTime) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CoolTime: "); + CoolTime.ToString(tmp3); + } + if(__isset.CoolNum) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CoolNum: "); + CoolNum.ToString(tmp3); + } + if((Emit_List != null) && __isset.Emit_List) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Emit_List: "); + Emit_List.ToString(tmp3); + } + if(__isset.SellDiamond) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SellDiamond: "); + SellDiamond.ToString(tmp3); + } + if((Relative != null) && __isset.Relative) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Relative: "); + Relative.ToString(tmp3); + } + if((Type != null) && __isset.Type) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Type: "); + Type.ToString(tmp3); + } + if((Emit_ID != null) && __isset.Emit_ID) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Emit_ID: "); + Emit_ID.ToString(tmp3); + } + if((Emit_Type != null) && __isset.Emit_Type) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Emit_Type: "); + Emit_Type.ToString(tmp3); + } + if((Product_Type != null) && __isset.Product_Type) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Product_Type: "); + Product_Type.ToString(tmp3); + } + if(__isset.Order_Score) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Order_Score: "); + Order_Score.ToString(tmp3); + } + if((Emit_Product != null) && __isset.Emit_Product) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Emit_Product: "); + Emit_Product.ToString(tmp3); + } + if((Dynamic != null) && __isset.@Dynamic) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Dynamic: "); + Dynamic.ToString(tmp3); + } + if((Dynamic1 != null) && __isset.Dynamic1) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Dynamic1: "); + Dynamic1.ToString(tmp3); + } + if((Dynamic2 != null) && __isset.Dynamic2) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Dynamic2: "); + Dynamic2.ToString(tmp3); + } + if((Dynamic3 != null) && __isset.Dynamic3) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Dynamic3: "); + Dynamic3.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeDataItem.cs.meta new file mode 100644 index 0000000..ca4f596 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MergeDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1da9ba84a9a3faa45935f813b891b07e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetail.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetail.Extensions.cs new file mode 100644 index 0000000..84eef87 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetail.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class MileStoneDetailExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetail.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetail.Extensions.cs.meta new file mode 100644 index 0000000..4c0d687 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetail.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fdc7b1224086535429cdf55a794ab0ac +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetail.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetail.cs new file mode 100644 index 0000000..ab51217 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetail.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MileStoneDetail : TBase + { + private Dictionary _milestonedetails; + + [DataMember(Order = 0)] + public Dictionary Milestonedetails + { + get + { + return _milestonedetails; + } + set + { + __isset.@milestonedetails = true; + this._milestonedetails = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @milestonedetails; + } + + #region XmlSerializer support + + public bool ShouldSerializeMilestonedetails() + { + return __isset.@milestonedetails; + } + + #endregion XmlSerializer support + + public MileStoneDetail() + { + } + + public MileStoneDetail DeepCopy() + { + var tmp5 = new MileStoneDetail(); + if((Milestonedetails != null) && __isset.@milestonedetails) + { + tmp5.Milestonedetails = this.Milestonedetails.DeepCopy(); + } + tmp5.__isset.@milestonedetails = this.__isset.@milestonedetails; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Milestonedetails = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.MileStoneDetailItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.MileStoneDetailItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Milestonedetails[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("MileStoneDetail"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Milestonedetails != null) && __isset.@milestonedetails) + { + tmp11.Name = "milestonedetails"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Milestonedetails.Count), cancellationToken); + foreach (int _iter12 in Milestonedetails.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Milestonedetails[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MileStoneDetail other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@milestonedetails == other.__isset.@milestonedetails) && ((!__isset.@milestonedetails) || (TCollections.Equals(Milestonedetails, other.Milestonedetails)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Milestonedetails != null) && __isset.@milestonedetails) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Milestonedetails); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("MileStoneDetail("); + int tmp14 = 0; + if((Milestonedetails != null) && __isset.@milestonedetails) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Milestonedetails: "); + Milestonedetails.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetail.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetail.cs.meta new file mode 100644 index 0000000..654ed13 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetail.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 28ab3a1d3ec835e4597aa1fd009bb6b9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetailItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetailItem.cs new file mode 100644 index 0000000..67ea54e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetailItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MileStoneDetailItem : TBase + { + private int _Id; + private int _SortId; + private string _Action; + private int _Score; + private string _ScoreExtra; + private string _Title; + private string _Icon; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int SortId + { + get + { + return _SortId; + } + set + { + __isset.SortId = true; + this._SortId = value; + } + } + + [DataMember(Order = 0)] + public string Action + { + get + { + return _Action; + } + set + { + __isset.Action = true; + this._Action = value; + } + } + + [DataMember(Order = 0)] + public int Score + { + get + { + return _Score; + } + set + { + __isset.Score = true; + this._Score = value; + } + } + + [DataMember(Order = 0)] + public string ScoreExtra + { + get + { + return _ScoreExtra; + } + set + { + __isset.ScoreExtra = true; + this._ScoreExtra = value; + } + } + + [DataMember(Order = 0)] + public string Title + { + get + { + return _Title; + } + set + { + __isset.Title = true; + this._Title = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool SortId; + [DataMember] + public bool Action; + [DataMember] + public bool Score; + [DataMember] + public bool ScoreExtra; + [DataMember] + public bool Title; + [DataMember] + public bool Icon; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeSortId() + { + return __isset.SortId; + } + + public bool ShouldSerializeAction() + { + return __isset.Action; + } + + public bool ShouldSerializeScore() + { + return __isset.Score; + } + + public bool ShouldSerializeScoreExtra() + { + return __isset.ScoreExtra; + } + + public bool ShouldSerializeTitle() + { + return __isset.Title; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + #endregion XmlSerializer support + + public MileStoneDetailItem() + { + } + + public MileStoneDetailItem DeepCopy() + { + var tmp0 = new MileStoneDetailItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.SortId) + { + tmp0.SortId = this.SortId; + } + tmp0.__isset.SortId = this.__isset.SortId; + if((Action != null) && __isset.Action) + { + tmp0.Action = this.Action; + } + tmp0.__isset.Action = this.__isset.Action; + if(__isset.Score) + { + tmp0.Score = this.Score; + } + tmp0.__isset.Score = this.__isset.Score; + if((ScoreExtra != null) && __isset.ScoreExtra) + { + tmp0.ScoreExtra = this.ScoreExtra; + } + tmp0.__isset.ScoreExtra = this.__isset.ScoreExtra; + if((Title != null) && __isset.Title) + { + tmp0.Title = this.Title; + } + tmp0.__isset.Title = this.__isset.Title; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + SortId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Action = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + Score = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + ScoreExtra = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + Title = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("MileStoneDetailItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SortId) + { + tmp2.Name = "SortId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SortId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Action != null) && __isset.Action) + { + tmp2.Name = "Action"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Action, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Score) + { + tmp2.Name = "Score"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Score, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ScoreExtra != null) && __isset.ScoreExtra) + { + tmp2.Name = "ScoreExtra"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ScoreExtra, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Title != null) && __isset.Title) + { + tmp2.Name = "Title"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Title, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MileStoneDetailItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.SortId == other.__isset.SortId) && ((!__isset.SortId) || (global::System.Object.Equals(SortId, other.SortId)))) + && ((__isset.Action == other.__isset.Action) && ((!__isset.Action) || (global::System.Object.Equals(Action, other.Action)))) + && ((__isset.Score == other.__isset.Score) && ((!__isset.Score) || (global::System.Object.Equals(Score, other.Score)))) + && ((__isset.ScoreExtra == other.__isset.ScoreExtra) && ((!__isset.ScoreExtra) || (global::System.Object.Equals(ScoreExtra, other.ScoreExtra)))) + && ((__isset.Title == other.__isset.Title) && ((!__isset.Title) || (global::System.Object.Equals(Title, other.Title)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.SortId) + { + hashcode = (hashcode * 397) + SortId.GetHashCode(); + } + if((Action != null) && __isset.Action) + { + hashcode = (hashcode * 397) + Action.GetHashCode(); + } + if(__isset.Score) + { + hashcode = (hashcode * 397) + Score.GetHashCode(); + } + if((ScoreExtra != null) && __isset.ScoreExtra) + { + hashcode = (hashcode * 397) + ScoreExtra.GetHashCode(); + } + if((Title != null) && __isset.Title) + { + hashcode = (hashcode * 397) + Title.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("MileStoneDetailItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.SortId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SortId: "); + SortId.ToString(tmp3); + } + if((Action != null) && __isset.Action) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Action: "); + Action.ToString(tmp3); + } + if(__isset.Score) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Score: "); + Score.ToString(tmp3); + } + if((ScoreExtra != null) && __isset.ScoreExtra) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ScoreExtra: "); + ScoreExtra.ToString(tmp3); + } + if((Title != null) && __isset.Title) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Title: "); + Title.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetailItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetailItem.cs.meta new file mode 100644 index 0000000..c8a259f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneDetailItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 92ba5137c63f2144dab6898ab227e385 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneReward.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneReward.Extensions.cs new file mode 100644 index 0000000..9a64ceb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneReward.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class MileStoneRewardExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneReward.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneReward.Extensions.cs.meta new file mode 100644 index 0000000..7484872 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneReward.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8c9a72540aa9fef4d85410c0d0700c52 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneReward.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneReward.cs new file mode 100644 index 0000000..40dbf30 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneReward.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MileStoneReward : TBase + { + private Dictionary _milestonerewards; + + [DataMember(Order = 0)] + public Dictionary Milestonerewards + { + get + { + return _milestonerewards; + } + set + { + __isset.@milestonerewards = true; + this._milestonerewards = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @milestonerewards; + } + + #region XmlSerializer support + + public bool ShouldSerializeMilestonerewards() + { + return __isset.@milestonerewards; + } + + #endregion XmlSerializer support + + public MileStoneReward() + { + } + + public MileStoneReward DeepCopy() + { + var tmp5 = new MileStoneReward(); + if((Milestonerewards != null) && __isset.@milestonerewards) + { + tmp5.Milestonerewards = this.Milestonerewards.DeepCopy(); + } + tmp5.__isset.@milestonerewards = this.__isset.@milestonerewards; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Milestonerewards = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.MileStoneRewardItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.MileStoneRewardItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Milestonerewards[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("MileStoneReward"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Milestonerewards != null) && __isset.@milestonerewards) + { + tmp11.Name = "milestonerewards"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Milestonerewards.Count), cancellationToken); + foreach (int _iter12 in Milestonerewards.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Milestonerewards[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MileStoneReward other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@milestonerewards == other.__isset.@milestonerewards) && ((!__isset.@milestonerewards) || (TCollections.Equals(Milestonerewards, other.Milestonerewards)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Milestonerewards != null) && __isset.@milestonerewards) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Milestonerewards); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("MileStoneReward("); + int tmp14 = 0; + if((Milestonerewards != null) && __isset.@milestonerewards) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Milestonerewards: "); + Milestonerewards.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneReward.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneReward.cs.meta new file mode 100644 index 0000000..2f3bf25 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: fb2f346a9bdca82408c78cb62041160f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneRewardItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneRewardItem.cs new file mode 100644 index 0000000..f5af70d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneRewardItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MileStoneRewardItem : TBase + { + private int _Id; + private int _ScoreNeed; + private string _Reward; + private int _ScoreTotal; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int ScoreNeed + { + get + { + return _ScoreNeed; + } + set + { + __isset.ScoreNeed = true; + this._ScoreNeed = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + [DataMember(Order = 0)] + public int ScoreTotal + { + get + { + return _ScoreTotal; + } + set + { + __isset.ScoreTotal = true; + this._ScoreTotal = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool ScoreNeed; + [DataMember] + public bool Reward; + [DataMember] + public bool ScoreTotal; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeScoreNeed() + { + return __isset.ScoreNeed; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + public bool ShouldSerializeScoreTotal() + { + return __isset.ScoreTotal; + } + + #endregion XmlSerializer support + + public MileStoneRewardItem() + { + } + + public MileStoneRewardItem DeepCopy() + { + var tmp0 = new MileStoneRewardItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.ScoreNeed) + { + tmp0.ScoreNeed = this.ScoreNeed; + } + tmp0.__isset.ScoreNeed = this.__isset.ScoreNeed; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + if(__isset.ScoreTotal) + { + tmp0.ScoreTotal = this.ScoreTotal; + } + tmp0.__isset.ScoreTotal = this.__isset.ScoreTotal; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + ScoreNeed = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + ScoreTotal = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("MileStoneRewardItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ScoreNeed) + { + tmp2.Name = "ScoreNeed"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ScoreNeed, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ScoreTotal) + { + tmp2.Name = "ScoreTotal"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ScoreTotal, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MileStoneRewardItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.ScoreNeed == other.__isset.ScoreNeed) && ((!__isset.ScoreNeed) || (global::System.Object.Equals(ScoreNeed, other.ScoreNeed)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))) + && ((__isset.ScoreTotal == other.__isset.ScoreTotal) && ((!__isset.ScoreTotal) || (global::System.Object.Equals(ScoreTotal, other.ScoreTotal)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.ScoreNeed) + { + hashcode = (hashcode * 397) + ScoreNeed.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + if(__isset.ScoreTotal) + { + hashcode = (hashcode * 397) + ScoreTotal.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("MileStoneRewardItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.ScoreNeed) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ScoreNeed: "); + ScoreNeed.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + if(__isset.ScoreTotal) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ScoreTotal: "); + ScoreTotal.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneRewardItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneRewardItem.cs.meta new file mode 100644 index 0000000..2651868 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MileStoneRewardItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9773529a31578e54788d319ddbaa75fd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningReward.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningReward.Extensions.cs new file mode 100644 index 0000000..cc4d98e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningReward.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class MiningRewardExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningReward.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningReward.Extensions.cs.meta new file mode 100644 index 0000000..029e331 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningReward.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f406e726cc7a9f948bf3610ac8c22cc0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningReward.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningReward.cs new file mode 100644 index 0000000..1e7f59a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningReward.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MiningReward : TBase + { + private Dictionary _miningrewards; + + [DataMember(Order = 0)] + public Dictionary Miningrewards + { + get + { + return _miningrewards; + } + set + { + __isset.@miningrewards = true; + this._miningrewards = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @miningrewards; + } + + #region XmlSerializer support + + public bool ShouldSerializeMiningrewards() + { + return __isset.@miningrewards; + } + + #endregion XmlSerializer support + + public MiningReward() + { + } + + public MiningReward DeepCopy() + { + var tmp5 = new MiningReward(); + if((Miningrewards != null) && __isset.@miningrewards) + { + tmp5.Miningrewards = this.Miningrewards.DeepCopy(); + } + tmp5.__isset.@miningrewards = this.__isset.@miningrewards; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Miningrewards = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.MiningRewardItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.MiningRewardItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Miningrewards[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("MiningReward"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Miningrewards != null) && __isset.@miningrewards) + { + tmp11.Name = "miningrewards"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Miningrewards.Count), cancellationToken); + foreach (int _iter12 in Miningrewards.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Miningrewards[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MiningReward other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@miningrewards == other.__isset.@miningrewards) && ((!__isset.@miningrewards) || (TCollections.Equals(Miningrewards, other.Miningrewards)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Miningrewards != null) && __isset.@miningrewards) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Miningrewards); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("MiningReward("); + int tmp14 = 0; + if((Miningrewards != null) && __isset.@miningrewards) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Miningrewards: "); + Miningrewards.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningReward.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningReward.cs.meta new file mode 100644 index 0000000..d6bf28e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3d64b87a7ed085b4c8fdf647364be138 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningRewardItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningRewardItem.cs new file mode 100644 index 0000000..917ccdc --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningRewardItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MiningRewardItem : TBase + { + private int _Id; + private int _Level; + private string _Gem; + private string _Size; + private string _Reward; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Level + { + get + { + return _Level; + } + set + { + __isset.Level = true; + this._Level = value; + } + } + + [DataMember(Order = 0)] + public string Gem + { + get + { + return _Gem; + } + set + { + __isset.Gem = true; + this._Gem = value; + } + } + + [DataMember(Order = 0)] + public string Size + { + get + { + return _Size; + } + set + { + __isset.Size = true; + this._Size = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Level; + [DataMember] + public bool Gem; + [DataMember] + public bool Size; + [DataMember] + public bool Reward; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeLevel() + { + return __isset.Level; + } + + public bool ShouldSerializeGem() + { + return __isset.Gem; + } + + public bool ShouldSerializeSize() + { + return __isset.Size; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + #endregion XmlSerializer support + + public MiningRewardItem() + { + } + + public MiningRewardItem DeepCopy() + { + var tmp0 = new MiningRewardItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Level) + { + tmp0.Level = this.Level; + } + tmp0.__isset.Level = this.__isset.Level; + if((Gem != null) && __isset.Gem) + { + tmp0.Gem = this.Gem; + } + tmp0.__isset.Gem = this.__isset.Gem; + if((Size != null) && __isset.Size) + { + tmp0.Size = this.Size; + } + tmp0.__isset.Size = this.__isset.Size; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Level = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Gem = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Size = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("MiningRewardItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Level) + { + tmp2.Name = "Level"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Level, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Gem != null) && __isset.Gem) + { + tmp2.Name = "Gem"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Gem, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Size != null) && __isset.Size) + { + tmp2.Name = "Size"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Size, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MiningRewardItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Level == other.__isset.Level) && ((!__isset.Level) || (global::System.Object.Equals(Level, other.Level)))) + && ((__isset.Gem == other.__isset.Gem) && ((!__isset.Gem) || (global::System.Object.Equals(Gem, other.Gem)))) + && ((__isset.Size == other.__isset.Size) && ((!__isset.Size) || (global::System.Object.Equals(Size, other.Size)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Level) + { + hashcode = (hashcode * 397) + Level.GetHashCode(); + } + if((Gem != null) && __isset.Gem) + { + hashcode = (hashcode * 397) + Gem.GetHashCode(); + } + if((Size != null) && __isset.Size) + { + hashcode = (hashcode * 397) + Size.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("MiningRewardItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Level) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Level: "); + Level.ToString(tmp3); + } + if((Gem != null) && __isset.Gem) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Gem: "); + Gem.ToString(tmp3); + } + if((Size != null) && __isset.Size) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Size: "); + Size.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningRewardItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningRewardItem.cs.meta new file mode 100644 index 0000000..e99d000 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MiningRewardItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8a63c6b0aea895e40b9ddf527bbf56ed +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResource.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResource.Extensions.cs new file mode 100644 index 0000000..afd6260 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResource.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class MultiLanguageResourceExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResource.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResource.Extensions.cs.meta new file mode 100644 index 0000000..7488124 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResource.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1aefd028da0e5a94f9b72ce6f411e247 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResource.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResource.cs new file mode 100644 index 0000000..69d89c0 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResource.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MultiLanguageResource : TBase + { + private Dictionary _multilanguageresources; + + [DataMember(Order = 0)] + public Dictionary Multilanguageresources + { + get + { + return _multilanguageresources; + } + set + { + __isset.@multilanguageresources = true; + this._multilanguageresources = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @multilanguageresources; + } + + #region XmlSerializer support + + public bool ShouldSerializeMultilanguageresources() + { + return __isset.@multilanguageresources; + } + + #endregion XmlSerializer support + + public MultiLanguageResource() + { + } + + public MultiLanguageResource DeepCopy() + { + var tmp5 = new MultiLanguageResource(); + if((Multilanguageresources != null) && __isset.@multilanguageresources) + { + tmp5.Multilanguageresources = this.Multilanguageresources.DeepCopy(); + } + tmp5.__isset.@multilanguageresources = this.__isset.@multilanguageresources; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Multilanguageresources = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.MultiLanguageResourceItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.MultiLanguageResourceItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Multilanguageresources[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("MultiLanguageResource"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Multilanguageresources != null) && __isset.@multilanguageresources) + { + tmp11.Name = "multilanguageresources"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Multilanguageresources.Count), cancellationToken); + foreach (int _iter12 in Multilanguageresources.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Multilanguageresources[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MultiLanguageResource other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@multilanguageresources == other.__isset.@multilanguageresources) && ((!__isset.@multilanguageresources) || (TCollections.Equals(Multilanguageresources, other.Multilanguageresources)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Multilanguageresources != null) && __isset.@multilanguageresources) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Multilanguageresources); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("MultiLanguageResource("); + int tmp14 = 0; + if((Multilanguageresources != null) && __isset.@multilanguageresources) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Multilanguageresources: "); + Multilanguageresources.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResource.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResource.cs.meta new file mode 100644 index 0000000..365e9fe --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResource.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f953506a9b78d5947a95b5e22b184edb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResourceItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResourceItem.cs new file mode 100644 index 0000000..ffb4aca --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResourceItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MultiLanguageResourceItem : TBase + { + private int _Id; + private string _Key; + private string _English; + private string _ChineseSimplified; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Key + { + get + { + return _Key; + } + set + { + __isset.Key = true; + this._Key = value; + } + } + + [DataMember(Order = 0)] + public string English + { + get + { + return _English; + } + set + { + __isset.English = true; + this._English = value; + } + } + + [DataMember(Order = 0)] + public string ChineseSimplified + { + get + { + return _ChineseSimplified; + } + set + { + __isset.ChineseSimplified = true; + this._ChineseSimplified = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Key; + [DataMember] + public bool English; + [DataMember] + public bool ChineseSimplified; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeKey() + { + return __isset.Key; + } + + public bool ShouldSerializeEnglish() + { + return __isset.English; + } + + public bool ShouldSerializeChineseSimplified() + { + return __isset.ChineseSimplified; + } + + #endregion XmlSerializer support + + public MultiLanguageResourceItem() + { + } + + public MultiLanguageResourceItem DeepCopy() + { + var tmp0 = new MultiLanguageResourceItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Key != null) && __isset.Key) + { + tmp0.Key = this.Key; + } + tmp0.__isset.Key = this.__isset.Key; + if((English != null) && __isset.English) + { + tmp0.English = this.English; + } + tmp0.__isset.English = this.__isset.English; + if((ChineseSimplified != null) && __isset.ChineseSimplified) + { + tmp0.ChineseSimplified = this.ChineseSimplified; + } + tmp0.__isset.ChineseSimplified = this.__isset.ChineseSimplified; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Key = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + English = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + ChineseSimplified = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("MultiLanguageResourceItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Key != null) && __isset.Key) + { + tmp2.Name = "Key"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Key, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((English != null) && __isset.English) + { + tmp2.Name = "English"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(English, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ChineseSimplified != null) && __isset.ChineseSimplified) + { + tmp2.Name = "ChineseSimplified"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ChineseSimplified, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MultiLanguageResourceItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Key == other.__isset.Key) && ((!__isset.Key) || (global::System.Object.Equals(Key, other.Key)))) + && ((__isset.English == other.__isset.English) && ((!__isset.English) || (global::System.Object.Equals(English, other.English)))) + && ((__isset.ChineseSimplified == other.__isset.ChineseSimplified) && ((!__isset.ChineseSimplified) || (global::System.Object.Equals(ChineseSimplified, other.ChineseSimplified)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Key != null) && __isset.Key) + { + hashcode = (hashcode * 397) + Key.GetHashCode(); + } + if((English != null) && __isset.English) + { + hashcode = (hashcode * 397) + English.GetHashCode(); + } + if((ChineseSimplified != null) && __isset.ChineseSimplified) + { + hashcode = (hashcode * 397) + ChineseSimplified.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("MultiLanguageResourceItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Key != null) && __isset.Key) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Key: "); + Key.ToString(tmp3); + } + if((English != null) && __isset.English) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("English: "); + English.ToString(tmp3); + } + if((ChineseSimplified != null) && __isset.ChineseSimplified) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ChineseSimplified: "); + ChineseSimplified.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResourceItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResourceItem.cs.meta new file mode 100644 index 0000000..9e52495 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MultiLanguageResourceItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bccf051b39b1aa44db5f47d3e418859a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Music.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Music.Extensions.cs new file mode 100644 index 0000000..723d3b1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Music.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class MusicExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Music.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Music.Extensions.cs.meta new file mode 100644 index 0000000..a785433 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Music.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 026279de54cae76409b4b39614632d4c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Music.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Music.cs new file mode 100644 index 0000000..92f5644 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Music.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class Music : TBase + { + private Dictionary _musics; + + [DataMember(Order = 0)] + public Dictionary Musics + { + get + { + return _musics; + } + set + { + __isset.@musics = true; + this._musics = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @musics; + } + + #region XmlSerializer support + + public bool ShouldSerializeMusics() + { + return __isset.@musics; + } + + #endregion XmlSerializer support + + public Music() + { + } + + public Music DeepCopy() + { + var tmp5 = new Music(); + if((Musics != null) && __isset.@musics) + { + tmp5.Musics = this.Musics.DeepCopy(); + } + tmp5.__isset.@musics = this.__isset.@musics; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Musics = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.MusicItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.MusicItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Musics[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("Music"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Musics != null) && __isset.@musics) + { + tmp11.Name = "musics"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Musics.Count), cancellationToken); + foreach (int _iter12 in Musics.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Musics[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is Music other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@musics == other.__isset.@musics) && ((!__isset.@musics) || (TCollections.Equals(Musics, other.Musics)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Musics != null) && __isset.@musics) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Musics); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("Music("); + int tmp14 = 0; + if((Musics != null) && __isset.@musics) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Musics: "); + Musics.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Music.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Music.cs.meta new file mode 100644 index 0000000..6f3fc9f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Music.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2125cba1ec55b0044b648932b172f877 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MusicItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MusicItem.cs new file mode 100644 index 0000000..67736f7 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MusicItem.cs @@ -0,0 +1,252 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class MusicItem : TBase + { + private int _Id; + private string _AssetName; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string AssetName + { + get + { + return _AssetName; + } + set + { + __isset.AssetName = true; + this._AssetName = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool AssetName; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeAssetName() + { + return __isset.AssetName; + } + + #endregion XmlSerializer support + + public MusicItem() + { + } + + public MusicItem DeepCopy() + { + var tmp0 = new MusicItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((AssetName != null) && __isset.AssetName) + { + tmp0.AssetName = this.AssetName; + } + tmp0.__isset.AssetName = this.__isset.AssetName; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + AssetName = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("MusicItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((AssetName != null) && __isset.AssetName) + { + tmp2.Name = "AssetName"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(AssetName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is MusicItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.AssetName == other.__isset.AssetName) && ((!__isset.AssetName) || (global::System.Object.Equals(AssetName, other.AssetName)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((AssetName != null) && __isset.AssetName) + { + hashcode = (hashcode * 397) + AssetName.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("MusicItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((AssetName != null) && __isset.AssetName) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("AssetName: "); + AssetName.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MusicItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MusicItem.cs.meta new file mode 100644 index 0000000..6a70296 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/MusicItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 99f99f3469493314787356a249aeca8d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsData.Extensions.cs new file mode 100644 index 0000000..96430dd --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class NPCFriendsDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsData.Extensions.cs.meta new file mode 100644 index 0000000..947e57b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 723132b899c927147b0616fe8dce88df +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsData.cs new file mode 100644 index 0000000..0137e58 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class NPCFriendsData : TBase + { + private Dictionary _npcfriendsdatas; + + [DataMember(Order = 0)] + public Dictionary Npcfriendsdatas + { + get + { + return _npcfriendsdatas; + } + set + { + __isset.@npcfriendsdatas = true; + this._npcfriendsdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @npcfriendsdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeNpcfriendsdatas() + { + return __isset.@npcfriendsdatas; + } + + #endregion XmlSerializer support + + public NPCFriendsData() + { + } + + public NPCFriendsData DeepCopy() + { + var tmp5 = new NPCFriendsData(); + if((Npcfriendsdatas != null) && __isset.@npcfriendsdatas) + { + tmp5.Npcfriendsdatas = this.Npcfriendsdatas.DeepCopy(); + } + tmp5.__isset.@npcfriendsdatas = this.__isset.@npcfriendsdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Npcfriendsdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.NPCFriendsDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.NPCFriendsDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Npcfriendsdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("NPCFriendsData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Npcfriendsdatas != null) && __isset.@npcfriendsdatas) + { + tmp11.Name = "npcfriendsdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Npcfriendsdatas.Count), cancellationToken); + foreach (int _iter12 in Npcfriendsdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Npcfriendsdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is NPCFriendsData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@npcfriendsdatas == other.__isset.@npcfriendsdatas) && ((!__isset.@npcfriendsdatas) || (TCollections.Equals(Npcfriendsdatas, other.Npcfriendsdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Npcfriendsdatas != null) && __isset.@npcfriendsdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Npcfriendsdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("NPCFriendsData("); + int tmp14 = 0; + if((Npcfriendsdatas != null) && __isset.@npcfriendsdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Npcfriendsdatas: "); + Npcfriendsdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsData.cs.meta new file mode 100644 index 0000000..c955d7e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 701ec00a495d1af4f9a0ec4b84c38017 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsDataItem.cs new file mode 100644 index 0000000..f46353e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsDataItem.cs @@ -0,0 +1,708 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class NPCFriendsDataItem : TBase + { + private int _Id; + private string _Name; + private string _NameCN; + private string _NamePr; + private int _Level; + private int _Head; + private int _Greeting; + private int _Happy; + private int _Taunt; + private int _Fail; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Name + { + get + { + return _Name; + } + set + { + __isset.Name = true; + this._Name = value; + } + } + + [DataMember(Order = 0)] + public string NameCN + { + get + { + return _NameCN; + } + set + { + __isset.NameCN = true; + this._NameCN = value; + } + } + + [DataMember(Order = 0)] + public string NamePr + { + get + { + return _NamePr; + } + set + { + __isset.NamePr = true; + this._NamePr = value; + } + } + + [DataMember(Order = 0)] + public int Level + { + get + { + return _Level; + } + set + { + __isset.Level = true; + this._Level = value; + } + } + + [DataMember(Order = 0)] + public int Head + { + get + { + return _Head; + } + set + { + __isset.Head = true; + this._Head = value; + } + } + + [DataMember(Order = 0)] + public int Greeting + { + get + { + return _Greeting; + } + set + { + __isset.Greeting = true; + this._Greeting = value; + } + } + + [DataMember(Order = 0)] + public int Happy + { + get + { + return _Happy; + } + set + { + __isset.Happy = true; + this._Happy = value; + } + } + + [DataMember(Order = 0)] + public int Taunt + { + get + { + return _Taunt; + } + set + { + __isset.Taunt = true; + this._Taunt = value; + } + } + + [DataMember(Order = 0)] + public int Fail + { + get + { + return _Fail; + } + set + { + __isset.Fail = true; + this._Fail = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Name; + [DataMember] + public bool NameCN; + [DataMember] + public bool NamePr; + [DataMember] + public bool Level; + [DataMember] + public bool Head; + [DataMember] + public bool Greeting; + [DataMember] + public bool Happy; + [DataMember] + public bool Taunt; + [DataMember] + public bool Fail; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeName() + { + return __isset.Name; + } + + public bool ShouldSerializeNameCN() + { + return __isset.NameCN; + } + + public bool ShouldSerializeNamePr() + { + return __isset.NamePr; + } + + public bool ShouldSerializeLevel() + { + return __isset.Level; + } + + public bool ShouldSerializeHead() + { + return __isset.Head; + } + + public bool ShouldSerializeGreeting() + { + return __isset.Greeting; + } + + public bool ShouldSerializeHappy() + { + return __isset.Happy; + } + + public bool ShouldSerializeTaunt() + { + return __isset.Taunt; + } + + public bool ShouldSerializeFail() + { + return __isset.Fail; + } + + #endregion XmlSerializer support + + public NPCFriendsDataItem() + { + } + + public NPCFriendsDataItem DeepCopy() + { + var tmp0 = new NPCFriendsDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Name != null) && __isset.Name) + { + tmp0.Name = this.Name; + } + tmp0.__isset.Name = this.__isset.Name; + if((NameCN != null) && __isset.NameCN) + { + tmp0.NameCN = this.NameCN; + } + tmp0.__isset.NameCN = this.__isset.NameCN; + if((NamePr != null) && __isset.NamePr) + { + tmp0.NamePr = this.NamePr; + } + tmp0.__isset.NamePr = this.__isset.NamePr; + if(__isset.Level) + { + tmp0.Level = this.Level; + } + tmp0.__isset.Level = this.__isset.Level; + if(__isset.Head) + { + tmp0.Head = this.Head; + } + tmp0.__isset.Head = this.__isset.Head; + if(__isset.Greeting) + { + tmp0.Greeting = this.Greeting; + } + tmp0.__isset.Greeting = this.__isset.Greeting; + if(__isset.Happy) + { + tmp0.Happy = this.Happy; + } + tmp0.__isset.Happy = this.__isset.Happy; + if(__isset.Taunt) + { + tmp0.Taunt = this.Taunt; + } + tmp0.__isset.Taunt = this.__isset.Taunt; + if(__isset.Fail) + { + tmp0.Fail = this.Fail; + } + tmp0.__isset.Fail = this.__isset.Fail; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Name = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + NameCN = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + NamePr = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + Level = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I32) + { + Head = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.I32) + { + Greeting = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.I32) + { + Happy = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I32) + { + Taunt = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.I32) + { + Fail = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("NPCFriendsDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Name != null) && __isset.Name) + { + tmp2.Name = "Name"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((NameCN != null) && __isset.NameCN) + { + tmp2.Name = "NameCN"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(NameCN, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((NamePr != null) && __isset.NamePr) + { + tmp2.Name = "NamePr"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(NamePr, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Level) + { + tmp2.Name = "Level"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Level, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Head) + { + tmp2.Name = "Head"; + tmp2.Type = TType.I32; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Head, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Greeting) + { + tmp2.Name = "Greeting"; + tmp2.Type = TType.I32; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Greeting, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Happy) + { + tmp2.Name = "Happy"; + tmp2.Type = TType.I32; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Happy, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Taunt) + { + tmp2.Name = "Taunt"; + tmp2.Type = TType.I32; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Taunt, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Fail) + { + tmp2.Name = "Fail"; + tmp2.Type = TType.I32; + tmp2.ID = 10; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Fail, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is NPCFriendsDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Name == other.__isset.Name) && ((!__isset.Name) || (global::System.Object.Equals(Name, other.Name)))) + && ((__isset.NameCN == other.__isset.NameCN) && ((!__isset.NameCN) || (global::System.Object.Equals(NameCN, other.NameCN)))) + && ((__isset.NamePr == other.__isset.NamePr) && ((!__isset.NamePr) || (global::System.Object.Equals(NamePr, other.NamePr)))) + && ((__isset.Level == other.__isset.Level) && ((!__isset.Level) || (global::System.Object.Equals(Level, other.Level)))) + && ((__isset.Head == other.__isset.Head) && ((!__isset.Head) || (global::System.Object.Equals(Head, other.Head)))) + && ((__isset.Greeting == other.__isset.Greeting) && ((!__isset.Greeting) || (global::System.Object.Equals(Greeting, other.Greeting)))) + && ((__isset.Happy == other.__isset.Happy) && ((!__isset.Happy) || (global::System.Object.Equals(Happy, other.Happy)))) + && ((__isset.Taunt == other.__isset.Taunt) && ((!__isset.Taunt) || (global::System.Object.Equals(Taunt, other.Taunt)))) + && ((__isset.Fail == other.__isset.Fail) && ((!__isset.Fail) || (global::System.Object.Equals(Fail, other.Fail)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Name != null) && __isset.Name) + { + hashcode = (hashcode * 397) + Name.GetHashCode(); + } + if((NameCN != null) && __isset.NameCN) + { + hashcode = (hashcode * 397) + NameCN.GetHashCode(); + } + if((NamePr != null) && __isset.NamePr) + { + hashcode = (hashcode * 397) + NamePr.GetHashCode(); + } + if(__isset.Level) + { + hashcode = (hashcode * 397) + Level.GetHashCode(); + } + if(__isset.Head) + { + hashcode = (hashcode * 397) + Head.GetHashCode(); + } + if(__isset.Greeting) + { + hashcode = (hashcode * 397) + Greeting.GetHashCode(); + } + if(__isset.Happy) + { + hashcode = (hashcode * 397) + Happy.GetHashCode(); + } + if(__isset.Taunt) + { + hashcode = (hashcode * 397) + Taunt.GetHashCode(); + } + if(__isset.Fail) + { + hashcode = (hashcode * 397) + Fail.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("NPCFriendsDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Name != null) && __isset.Name) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Name: "); + Name.ToString(tmp3); + } + if((NameCN != null) && __isset.NameCN) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NameCN: "); + NameCN.ToString(tmp3); + } + if((NamePr != null) && __isset.NamePr) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NamePr: "); + NamePr.ToString(tmp3); + } + if(__isset.Level) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Level: "); + Level.ToString(tmp3); + } + if(__isset.Head) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Head: "); + Head.ToString(tmp3); + } + if(__isset.Greeting) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Greeting: "); + Greeting.ToString(tmp3); + } + if(__isset.Happy) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Happy: "); + Happy.ToString(tmp3); + } + if(__isset.Taunt) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Taunt: "); + Taunt.ToString(tmp3); + } + if(__isset.Fail) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Fail: "); + Fail.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsDataItem.cs.meta new file mode 100644 index 0000000..c322ebc --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NPCFriendsDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 905cc2357deb67a4988792e32c873968 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetData.Extensions.cs new file mode 100644 index 0000000..58bc1cf --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class NetAssetDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetData.Extensions.cs.meta new file mode 100644 index 0000000..2c8e76f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c7588b8c0578cf54b8d09f31f146a04f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetData.cs new file mode 100644 index 0000000..3d735ca --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class NetAssetData : TBase + { + private Dictionary _netassetdatas; + + [DataMember(Order = 0)] + public Dictionary Netassetdatas + { + get + { + return _netassetdatas; + } + set + { + __isset.@netassetdatas = true; + this._netassetdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @netassetdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeNetassetdatas() + { + return __isset.@netassetdatas; + } + + #endregion XmlSerializer support + + public NetAssetData() + { + } + + public NetAssetData DeepCopy() + { + var tmp5 = new NetAssetData(); + if((Netassetdatas != null) && __isset.@netassetdatas) + { + tmp5.Netassetdatas = this.Netassetdatas.DeepCopy(); + } + tmp5.__isset.@netassetdatas = this.__isset.@netassetdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Netassetdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.NetAssetDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.NetAssetDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Netassetdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("NetAssetData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Netassetdatas != null) && __isset.@netassetdatas) + { + tmp11.Name = "netassetdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Netassetdatas.Count), cancellationToken); + foreach (int _iter12 in Netassetdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Netassetdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is NetAssetData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@netassetdatas == other.__isset.@netassetdatas) && ((!__isset.@netassetdatas) || (TCollections.Equals(Netassetdatas, other.Netassetdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Netassetdatas != null) && __isset.@netassetdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Netassetdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("NetAssetData("); + int tmp14 = 0; + if((Netassetdatas != null) && __isset.@netassetdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Netassetdatas: "); + Netassetdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetData.cs.meta new file mode 100644 index 0000000..32fe30e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 15dcc67788414fa488a9a90d89a3bf63 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetDataItem.cs new file mode 100644 index 0000000..14448f6 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetDataItem.cs @@ -0,0 +1,708 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class NetAssetDataItem : TBase + { + private int _Id; + private int _Lv; + private int _Exp; + private string _Reward; + private string _Unlock_1; + private string _Next_1; + private string _Remark_1; + private string _Unlock_2; + private string _Next_2; + private string _Remark_2; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Lv + { + get + { + return _Lv; + } + set + { + __isset.Lv = true; + this._Lv = value; + } + } + + [DataMember(Order = 0)] + public int Exp + { + get + { + return _Exp; + } + set + { + __isset.Exp = true; + this._Exp = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + [DataMember(Order = 0)] + public string Unlock_1 + { + get + { + return _Unlock_1; + } + set + { + __isset.Unlock_1 = true; + this._Unlock_1 = value; + } + } + + [DataMember(Order = 0)] + public string Next_1 + { + get + { + return _Next_1; + } + set + { + __isset.Next_1 = true; + this._Next_1 = value; + } + } + + [DataMember(Order = 0)] + public string Remark_1 + { + get + { + return _Remark_1; + } + set + { + __isset.Remark_1 = true; + this._Remark_1 = value; + } + } + + [DataMember(Order = 0)] + public string Unlock_2 + { + get + { + return _Unlock_2; + } + set + { + __isset.Unlock_2 = true; + this._Unlock_2 = value; + } + } + + [DataMember(Order = 0)] + public string Next_2 + { + get + { + return _Next_2; + } + set + { + __isset.Next_2 = true; + this._Next_2 = value; + } + } + + [DataMember(Order = 0)] + public string Remark_2 + { + get + { + return _Remark_2; + } + set + { + __isset.Remark_2 = true; + this._Remark_2 = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Lv; + [DataMember] + public bool Exp; + [DataMember] + public bool Reward; + [DataMember] + public bool Unlock_1; + [DataMember] + public bool Next_1; + [DataMember] + public bool Remark_1; + [DataMember] + public bool Unlock_2; + [DataMember] + public bool Next_2; + [DataMember] + public bool Remark_2; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeLv() + { + return __isset.Lv; + } + + public bool ShouldSerializeExp() + { + return __isset.Exp; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + public bool ShouldSerializeUnlock_1() + { + return __isset.Unlock_1; + } + + public bool ShouldSerializeNext_1() + { + return __isset.Next_1; + } + + public bool ShouldSerializeRemark_1() + { + return __isset.Remark_1; + } + + public bool ShouldSerializeUnlock_2() + { + return __isset.Unlock_2; + } + + public bool ShouldSerializeNext_2() + { + return __isset.Next_2; + } + + public bool ShouldSerializeRemark_2() + { + return __isset.Remark_2; + } + + #endregion XmlSerializer support + + public NetAssetDataItem() + { + } + + public NetAssetDataItem DeepCopy() + { + var tmp0 = new NetAssetDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Lv) + { + tmp0.Lv = this.Lv; + } + tmp0.__isset.Lv = this.__isset.Lv; + if(__isset.Exp) + { + tmp0.Exp = this.Exp; + } + tmp0.__isset.Exp = this.__isset.Exp; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + if((Unlock_1 != null) && __isset.Unlock_1) + { + tmp0.Unlock_1 = this.Unlock_1; + } + tmp0.__isset.Unlock_1 = this.__isset.Unlock_1; + if((Next_1 != null) && __isset.Next_1) + { + tmp0.Next_1 = this.Next_1; + } + tmp0.__isset.Next_1 = this.__isset.Next_1; + if((Remark_1 != null) && __isset.Remark_1) + { + tmp0.Remark_1 = this.Remark_1; + } + tmp0.__isset.Remark_1 = this.__isset.Remark_1; + if((Unlock_2 != null) && __isset.Unlock_2) + { + tmp0.Unlock_2 = this.Unlock_2; + } + tmp0.__isset.Unlock_2 = this.__isset.Unlock_2; + if((Next_2 != null) && __isset.Next_2) + { + tmp0.Next_2 = this.Next_2; + } + tmp0.__isset.Next_2 = this.__isset.Next_2; + if((Remark_2 != null) && __isset.Remark_2) + { + tmp0.Remark_2 = this.Remark_2; + } + tmp0.__isset.Remark_2 = this.__isset.Remark_2; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Lv = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Exp = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Unlock_1 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + Next_1 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Remark_1 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + Unlock_2 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.String) + { + Next_2 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.String) + { + Remark_2 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("NetAssetDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Lv) + { + tmp2.Name = "Lv"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Lv, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Exp) + { + tmp2.Name = "Exp"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Exp, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Unlock_1 != null) && __isset.Unlock_1) + { + tmp2.Name = "Unlock_1"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Unlock_1, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Next_1 != null) && __isset.Next_1) + { + tmp2.Name = "Next_1"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Next_1, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Remark_1 != null) && __isset.Remark_1) + { + tmp2.Name = "Remark_1"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Remark_1, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Unlock_2 != null) && __isset.Unlock_2) + { + tmp2.Name = "Unlock_2"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Unlock_2, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Next_2 != null) && __isset.Next_2) + { + tmp2.Name = "Next_2"; + tmp2.Type = TType.String; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Next_2, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Remark_2 != null) && __isset.Remark_2) + { + tmp2.Name = "Remark_2"; + tmp2.Type = TType.String; + tmp2.ID = 10; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Remark_2, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is NetAssetDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Lv == other.__isset.Lv) && ((!__isset.Lv) || (global::System.Object.Equals(Lv, other.Lv)))) + && ((__isset.Exp == other.__isset.Exp) && ((!__isset.Exp) || (global::System.Object.Equals(Exp, other.Exp)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))) + && ((__isset.Unlock_1 == other.__isset.Unlock_1) && ((!__isset.Unlock_1) || (global::System.Object.Equals(Unlock_1, other.Unlock_1)))) + && ((__isset.Next_1 == other.__isset.Next_1) && ((!__isset.Next_1) || (global::System.Object.Equals(Next_1, other.Next_1)))) + && ((__isset.Remark_1 == other.__isset.Remark_1) && ((!__isset.Remark_1) || (global::System.Object.Equals(Remark_1, other.Remark_1)))) + && ((__isset.Unlock_2 == other.__isset.Unlock_2) && ((!__isset.Unlock_2) || (global::System.Object.Equals(Unlock_2, other.Unlock_2)))) + && ((__isset.Next_2 == other.__isset.Next_2) && ((!__isset.Next_2) || (global::System.Object.Equals(Next_2, other.Next_2)))) + && ((__isset.Remark_2 == other.__isset.Remark_2) && ((!__isset.Remark_2) || (global::System.Object.Equals(Remark_2, other.Remark_2)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Lv) + { + hashcode = (hashcode * 397) + Lv.GetHashCode(); + } + if(__isset.Exp) + { + hashcode = (hashcode * 397) + Exp.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + if((Unlock_1 != null) && __isset.Unlock_1) + { + hashcode = (hashcode * 397) + Unlock_1.GetHashCode(); + } + if((Next_1 != null) && __isset.Next_1) + { + hashcode = (hashcode * 397) + Next_1.GetHashCode(); + } + if((Remark_1 != null) && __isset.Remark_1) + { + hashcode = (hashcode * 397) + Remark_1.GetHashCode(); + } + if((Unlock_2 != null) && __isset.Unlock_2) + { + hashcode = (hashcode * 397) + Unlock_2.GetHashCode(); + } + if((Next_2 != null) && __isset.Next_2) + { + hashcode = (hashcode * 397) + Next_2.GetHashCode(); + } + if((Remark_2 != null) && __isset.Remark_2) + { + hashcode = (hashcode * 397) + Remark_2.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("NetAssetDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Lv) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Lv: "); + Lv.ToString(tmp3); + } + if(__isset.Exp) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Exp: "); + Exp.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + if((Unlock_1 != null) && __isset.Unlock_1) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Unlock_1: "); + Unlock_1.ToString(tmp3); + } + if((Next_1 != null) && __isset.Next_1) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Next_1: "); + Next_1.ToString(tmp3); + } + if((Remark_1 != null) && __isset.Remark_1) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Remark_1: "); + Remark_1.ToString(tmp3); + } + if((Unlock_2 != null) && __isset.Unlock_2) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Unlock_2: "); + Unlock_2.ToString(tmp3); + } + if((Next_2 != null) && __isset.Next_2) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Next_2: "); + Next_2.ToString(tmp3); + } + if((Remark_2 != null) && __isset.Remark_2) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Remark_2: "); + Remark_2.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetDataItem.cs.meta new file mode 100644 index 0000000..5a4a34e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetAssetDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2f6fcfdeddb1a7447827c8b257c52d1e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemData.Extensions.cs new file mode 100644 index 0000000..d58bfff --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class NetworkItemDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemData.Extensions.cs.meta new file mode 100644 index 0000000..4b9b2ad --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 35b844c9181f9d845921ce48bbc771e3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemData.cs new file mode 100644 index 0000000..d07e9f3 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class NetworkItemData : TBase + { + private Dictionary _networkitemdatas; + + [DataMember(Order = 0)] + public Dictionary Networkitemdatas + { + get + { + return _networkitemdatas; + } + set + { + __isset.@networkitemdatas = true; + this._networkitemdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @networkitemdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeNetworkitemdatas() + { + return __isset.@networkitemdatas; + } + + #endregion XmlSerializer support + + public NetworkItemData() + { + } + + public NetworkItemData DeepCopy() + { + var tmp5 = new NetworkItemData(); + if((Networkitemdatas != null) && __isset.@networkitemdatas) + { + tmp5.Networkitemdatas = this.Networkitemdatas.DeepCopy(); + } + tmp5.__isset.@networkitemdatas = this.__isset.@networkitemdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Networkitemdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.NetworkItemDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.NetworkItemDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Networkitemdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("NetworkItemData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Networkitemdatas != null) && __isset.@networkitemdatas) + { + tmp11.Name = "networkitemdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Networkitemdatas.Count), cancellationToken); + foreach (int _iter12 in Networkitemdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Networkitemdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is NetworkItemData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@networkitemdatas == other.__isset.@networkitemdatas) && ((!__isset.@networkitemdatas) || (TCollections.Equals(Networkitemdatas, other.Networkitemdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Networkitemdatas != null) && __isset.@networkitemdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Networkitemdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("NetworkItemData("); + int tmp14 = 0; + if((Networkitemdatas != null) && __isset.@networkitemdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Networkitemdatas: "); + Networkitemdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemData.cs.meta new file mode 100644 index 0000000..fd2a9b0 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7cf52899045f21f47892a60516744a9a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemDataItem.cs new file mode 100644 index 0000000..4650c12 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemDataItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class NetworkItemDataItem : TBase + { + private int _Id; + private string _Name; + private int _IType; + private string _Effect; + private string _Res; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Name + { + get + { + return _Name; + } + set + { + __isset.Name = true; + this._Name = value; + } + } + + [DataMember(Order = 0)] + public int IType + { + get + { + return _IType; + } + set + { + __isset.IType = true; + this._IType = value; + } + } + + [DataMember(Order = 0)] + public string Effect + { + get + { + return _Effect; + } + set + { + __isset.Effect = true; + this._Effect = value; + } + } + + [DataMember(Order = 0)] + public string Res + { + get + { + return _Res; + } + set + { + __isset.Res = true; + this._Res = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Name; + [DataMember] + public bool IType; + [DataMember] + public bool Effect; + [DataMember] + public bool Res; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeName() + { + return __isset.Name; + } + + public bool ShouldSerializeIType() + { + return __isset.IType; + } + + public bool ShouldSerializeEffect() + { + return __isset.Effect; + } + + public bool ShouldSerializeRes() + { + return __isset.Res; + } + + #endregion XmlSerializer support + + public NetworkItemDataItem() + { + } + + public NetworkItemDataItem DeepCopy() + { + var tmp0 = new NetworkItemDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Name != null) && __isset.Name) + { + tmp0.Name = this.Name; + } + tmp0.__isset.Name = this.__isset.Name; + if(__isset.IType) + { + tmp0.IType = this.IType; + } + tmp0.__isset.IType = this.__isset.IType; + if((Effect != null) && __isset.Effect) + { + tmp0.Effect = this.Effect; + } + tmp0.__isset.Effect = this.__isset.Effect; + if((Res != null) && __isset.Res) + { + tmp0.Res = this.Res; + } + tmp0.__isset.Res = this.__isset.Res; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Name = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + IType = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Effect = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Res = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("NetworkItemDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Name != null) && __isset.Name) + { + tmp2.Name = "Name"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.IType) + { + tmp2.Name = "IType"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(IType, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Effect != null) && __isset.Effect) + { + tmp2.Name = "Effect"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Effect, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Res != null) && __isset.Res) + { + tmp2.Name = "Res"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Res, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is NetworkItemDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Name == other.__isset.Name) && ((!__isset.Name) || (global::System.Object.Equals(Name, other.Name)))) + && ((__isset.IType == other.__isset.IType) && ((!__isset.IType) || (global::System.Object.Equals(IType, other.IType)))) + && ((__isset.Effect == other.__isset.Effect) && ((!__isset.Effect) || (global::System.Object.Equals(Effect, other.Effect)))) + && ((__isset.Res == other.__isset.Res) && ((!__isset.Res) || (global::System.Object.Equals(Res, other.Res)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Name != null) && __isset.Name) + { + hashcode = (hashcode * 397) + Name.GetHashCode(); + } + if(__isset.IType) + { + hashcode = (hashcode * 397) + IType.GetHashCode(); + } + if((Effect != null) && __isset.Effect) + { + hashcode = (hashcode * 397) + Effect.GetHashCode(); + } + if((Res != null) && __isset.Res) + { + hashcode = (hashcode * 397) + Res.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("NetworkItemDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Name != null) && __isset.Name) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Name: "); + Name.ToString(tmp3); + } + if(__isset.IType) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("IType: "); + IType.ToString(tmp3); + } + if((Effect != null) && __isset.Effect) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Effect: "); + Effect.ToString(tmp3); + } + if((Res != null) && __isset.Res) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Res: "); + Res.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemDataItem.cs.meta new file mode 100644 index 0000000..e57cbbb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NetworkItemDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9b6ba222ea3e54740bf6fbd0748c86a3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfg.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfg.Extensions.cs new file mode 100644 index 0000000..46598e0 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfg.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class NewbieDailyTaskCfgExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfg.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfg.Extensions.cs.meta new file mode 100644 index 0000000..4fb46f3 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfg.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2c7e6d7b26a0c164aae33bd834d78426 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfg.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfg.cs new file mode 100644 index 0000000..488434a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfg.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class NewbieDailyTaskCfg : TBase + { + private Dictionary _newbiedailytaskcfgs; + + [DataMember(Order = 0)] + public Dictionary Newbiedailytaskcfgs + { + get + { + return _newbiedailytaskcfgs; + } + set + { + __isset.@newbiedailytaskcfgs = true; + this._newbiedailytaskcfgs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @newbiedailytaskcfgs; + } + + #region XmlSerializer support + + public bool ShouldSerializeNewbiedailytaskcfgs() + { + return __isset.@newbiedailytaskcfgs; + } + + #endregion XmlSerializer support + + public NewbieDailyTaskCfg() + { + } + + public NewbieDailyTaskCfg DeepCopy() + { + var tmp5 = new NewbieDailyTaskCfg(); + if((Newbiedailytaskcfgs != null) && __isset.@newbiedailytaskcfgs) + { + tmp5.Newbiedailytaskcfgs = this.Newbiedailytaskcfgs.DeepCopy(); + } + tmp5.__isset.@newbiedailytaskcfgs = this.__isset.@newbiedailytaskcfgs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Newbiedailytaskcfgs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.NewbieDailyTaskCfgItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.NewbieDailyTaskCfgItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Newbiedailytaskcfgs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("NewbieDailyTaskCfg"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Newbiedailytaskcfgs != null) && __isset.@newbiedailytaskcfgs) + { + tmp11.Name = "newbiedailytaskcfgs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Newbiedailytaskcfgs.Count), cancellationToken); + foreach (int _iter12 in Newbiedailytaskcfgs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Newbiedailytaskcfgs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is NewbieDailyTaskCfg other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@newbiedailytaskcfgs == other.__isset.@newbiedailytaskcfgs) && ((!__isset.@newbiedailytaskcfgs) || (TCollections.Equals(Newbiedailytaskcfgs, other.Newbiedailytaskcfgs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Newbiedailytaskcfgs != null) && __isset.@newbiedailytaskcfgs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Newbiedailytaskcfgs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("NewbieDailyTaskCfg("); + int tmp14 = 0; + if((Newbiedailytaskcfgs != null) && __isset.@newbiedailytaskcfgs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Newbiedailytaskcfgs: "); + Newbiedailytaskcfgs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfg.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfg.cs.meta new file mode 100644 index 0000000..812fe28 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 41d1dea5bad8d04408571cc5133d59b2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfgItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfgItem.cs new file mode 100644 index 0000000..78a06e1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfgItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class NewbieDailyTaskCfgItem : TBase + { + private int _Id; + private int _Type; + private int _AllCnt; + private string _Icon; + private int _Score; + private string _Reward; + private string _LangID; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Type + { + get + { + return _Type; + } + set + { + __isset.Type = true; + this._Type = value; + } + } + + [DataMember(Order = 0)] + public int AllCnt + { + get + { + return _AllCnt; + } + set + { + __isset.AllCnt = true; + this._AllCnt = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public int Score + { + get + { + return _Score; + } + set + { + __isset.Score = true; + this._Score = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + [DataMember(Order = 0)] + public string LangID + { + get + { + return _LangID; + } + set + { + __isset.LangID = true; + this._LangID = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Type; + [DataMember] + public bool AllCnt; + [DataMember] + public bool Icon; + [DataMember] + public bool Score; + [DataMember] + public bool Reward; + [DataMember] + public bool LangID; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeType() + { + return __isset.Type; + } + + public bool ShouldSerializeAllCnt() + { + return __isset.AllCnt; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeScore() + { + return __isset.Score; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + public bool ShouldSerializeLangID() + { + return __isset.LangID; + } + + #endregion XmlSerializer support + + public NewbieDailyTaskCfgItem() + { + } + + public NewbieDailyTaskCfgItem DeepCopy() + { + var tmp0 = new NewbieDailyTaskCfgItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Type) + { + tmp0.Type = this.Type; + } + tmp0.__isset.Type = this.__isset.Type; + if(__isset.AllCnt) + { + tmp0.AllCnt = this.AllCnt; + } + tmp0.__isset.AllCnt = this.__isset.AllCnt; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if(__isset.Score) + { + tmp0.Score = this.Score; + } + tmp0.__isset.Score = this.__isset.Score; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + if((LangID != null) && __isset.LangID) + { + tmp0.LangID = this.LangID; + } + tmp0.__isset.LangID = this.__isset.LangID; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Type = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + AllCnt = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + Score = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + LangID = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("NewbieDailyTaskCfgItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Type) + { + tmp2.Name = "Type"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.AllCnt) + { + tmp2.Name = "AllCnt"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(AllCnt, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Score) + { + tmp2.Name = "Score"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Score, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((LangID != null) && __isset.LangID) + { + tmp2.Name = "LangID"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(LangID, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is NewbieDailyTaskCfgItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Type == other.__isset.Type) && ((!__isset.Type) || (global::System.Object.Equals(Type, other.Type)))) + && ((__isset.AllCnt == other.__isset.AllCnt) && ((!__isset.AllCnt) || (global::System.Object.Equals(AllCnt, other.AllCnt)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Score == other.__isset.Score) && ((!__isset.Score) || (global::System.Object.Equals(Score, other.Score)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))) + && ((__isset.LangID == other.__isset.LangID) && ((!__isset.LangID) || (global::System.Object.Equals(LangID, other.LangID)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Type) + { + hashcode = (hashcode * 397) + Type.GetHashCode(); + } + if(__isset.AllCnt) + { + hashcode = (hashcode * 397) + AllCnt.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if(__isset.Score) + { + hashcode = (hashcode * 397) + Score.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + if((LangID != null) && __isset.LangID) + { + hashcode = (hashcode * 397) + LangID.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("NewbieDailyTaskCfgItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Type) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Type: "); + Type.ToString(tmp3); + } + if(__isset.AllCnt) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("AllCnt: "); + AllCnt.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if(__isset.Score) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Score: "); + Score.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + if((LangID != null) && __isset.LangID) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("LangID: "); + LangID.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfgItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfgItem.cs.meta new file mode 100644 index 0000000..67b8468 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieDailyTaskCfgItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a8f7c5acfaafee3478fddc8ef0ace67b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfg.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfg.Extensions.cs new file mode 100644 index 0000000..b514bb9 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfg.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class NewbieScoreCfgExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfg.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfg.Extensions.cs.meta new file mode 100644 index 0000000..0a3d1b8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfg.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4d32310199c7c5046891b7928f84312c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfg.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfg.cs new file mode 100644 index 0000000..e82813d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfg.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class NewbieScoreCfg : TBase + { + private Dictionary _newbiescorecfgs; + + [DataMember(Order = 0)] + public Dictionary Newbiescorecfgs + { + get + { + return _newbiescorecfgs; + } + set + { + __isset.@newbiescorecfgs = true; + this._newbiescorecfgs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @newbiescorecfgs; + } + + #region XmlSerializer support + + public bool ShouldSerializeNewbiescorecfgs() + { + return __isset.@newbiescorecfgs; + } + + #endregion XmlSerializer support + + public NewbieScoreCfg() + { + } + + public NewbieScoreCfg DeepCopy() + { + var tmp5 = new NewbieScoreCfg(); + if((Newbiescorecfgs != null) && __isset.@newbiescorecfgs) + { + tmp5.Newbiescorecfgs = this.Newbiescorecfgs.DeepCopy(); + } + tmp5.__isset.@newbiescorecfgs = this.__isset.@newbiescorecfgs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Newbiescorecfgs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.NewbieScoreCfgItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.NewbieScoreCfgItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Newbiescorecfgs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("NewbieScoreCfg"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Newbiescorecfgs != null) && __isset.@newbiescorecfgs) + { + tmp11.Name = "newbiescorecfgs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Newbiescorecfgs.Count), cancellationToken); + foreach (int _iter12 in Newbiescorecfgs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Newbiescorecfgs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is NewbieScoreCfg other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@newbiescorecfgs == other.__isset.@newbiescorecfgs) && ((!__isset.@newbiescorecfgs) || (TCollections.Equals(Newbiescorecfgs, other.Newbiescorecfgs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Newbiescorecfgs != null) && __isset.@newbiescorecfgs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Newbiescorecfgs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("NewbieScoreCfg("); + int tmp14 = 0; + if((Newbiescorecfgs != null) && __isset.@newbiescorecfgs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Newbiescorecfgs: "); + Newbiescorecfgs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfg.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfg.cs.meta new file mode 100644 index 0000000..ece2247 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8a033da5f793ae04da8a0230a8b04ee1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfgItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfgItem.cs new file mode 100644 index 0000000..297b0eb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfgItem.cs @@ -0,0 +1,309 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class NewbieScoreCfgItem : TBase + { + private int _Id; + private int _Score; + private string _Reward; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Score + { + get + { + return _Score; + } + set + { + __isset.Score = true; + this._Score = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Score; + [DataMember] + public bool Reward; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeScore() + { + return __isset.Score; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + #endregion XmlSerializer support + + public NewbieScoreCfgItem() + { + } + + public NewbieScoreCfgItem DeepCopy() + { + var tmp0 = new NewbieScoreCfgItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Score) + { + tmp0.Score = this.Score; + } + tmp0.__isset.Score = this.__isset.Score; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Score = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("NewbieScoreCfgItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Score) + { + tmp2.Name = "Score"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Score, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is NewbieScoreCfgItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Score == other.__isset.Score) && ((!__isset.Score) || (global::System.Object.Equals(Score, other.Score)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Score) + { + hashcode = (hashcode * 397) + Score.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("NewbieScoreCfgItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Score) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Score: "); + Score.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfgItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfgItem.cs.meta new file mode 100644 index 0000000..743168e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NewbieScoreCfgItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 23be0a7690e755b408dc35d8e32d81cc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomData.Extensions.cs new file mode 100644 index 0000000..fb3064d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class NickNameRandomDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomData.Extensions.cs.meta new file mode 100644 index 0000000..c58e6d1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 38ddd9f4936290e489da8a09b6c4362f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomData.cs new file mode 100644 index 0000000..48b8f66 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class NickNameRandomData : TBase + { + private Dictionary _nicknamerandomdatas; + + [DataMember(Order = 0)] + public Dictionary Nicknamerandomdatas + { + get + { + return _nicknamerandomdatas; + } + set + { + __isset.@nicknamerandomdatas = true; + this._nicknamerandomdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @nicknamerandomdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeNicknamerandomdatas() + { + return __isset.@nicknamerandomdatas; + } + + #endregion XmlSerializer support + + public NickNameRandomData() + { + } + + public NickNameRandomData DeepCopy() + { + var tmp5 = new NickNameRandomData(); + if((Nicknamerandomdatas != null) && __isset.@nicknamerandomdatas) + { + tmp5.Nicknamerandomdatas = this.Nicknamerandomdatas.DeepCopy(); + } + tmp5.__isset.@nicknamerandomdatas = this.__isset.@nicknamerandomdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Nicknamerandomdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.NickNameRandomDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.NickNameRandomDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Nicknamerandomdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("NickNameRandomData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Nicknamerandomdatas != null) && __isset.@nicknamerandomdatas) + { + tmp11.Name = "nicknamerandomdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Nicknamerandomdatas.Count), cancellationToken); + foreach (int _iter12 in Nicknamerandomdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Nicknamerandomdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is NickNameRandomData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@nicknamerandomdatas == other.__isset.@nicknamerandomdatas) && ((!__isset.@nicknamerandomdatas) || (TCollections.Equals(Nicknamerandomdatas, other.Nicknamerandomdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Nicknamerandomdatas != null) && __isset.@nicknamerandomdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Nicknamerandomdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("NickNameRandomData("); + int tmp14 = 0; + if((Nicknamerandomdatas != null) && __isset.@nicknamerandomdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Nicknamerandomdatas: "); + Nicknamerandomdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomData.cs.meta new file mode 100644 index 0000000..d5dfbe8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 12e5a996be7fa2a47a5e247f52021a96 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomDataItem.cs new file mode 100644 index 0000000..3d77320 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomDataItem.cs @@ -0,0 +1,594 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class NickNameRandomDataItem : TBase + { + private int _Id; + private string _EnglishAdjective; + private string _EnglishNoun; + private string _ChineseAdjective; + private string _ChineseNoun; + private string _ChineseAdjective2; + private string _PortugueseAdjective; + private string _PortugueseNoun; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string EnglishAdjective + { + get + { + return _EnglishAdjective; + } + set + { + __isset.EnglishAdjective = true; + this._EnglishAdjective = value; + } + } + + [DataMember(Order = 0)] + public string EnglishNoun + { + get + { + return _EnglishNoun; + } + set + { + __isset.EnglishNoun = true; + this._EnglishNoun = value; + } + } + + [DataMember(Order = 0)] + public string ChineseAdjective + { + get + { + return _ChineseAdjective; + } + set + { + __isset.ChineseAdjective = true; + this._ChineseAdjective = value; + } + } + + [DataMember(Order = 0)] + public string ChineseNoun + { + get + { + return _ChineseNoun; + } + set + { + __isset.ChineseNoun = true; + this._ChineseNoun = value; + } + } + + [DataMember(Order = 0)] + public string ChineseAdjective2 + { + get + { + return _ChineseAdjective2; + } + set + { + __isset.ChineseAdjective2 = true; + this._ChineseAdjective2 = value; + } + } + + [DataMember(Order = 0)] + public string PortugueseAdjective + { + get + { + return _PortugueseAdjective; + } + set + { + __isset.PortugueseAdjective = true; + this._PortugueseAdjective = value; + } + } + + [DataMember(Order = 0)] + public string PortugueseNoun + { + get + { + return _PortugueseNoun; + } + set + { + __isset.PortugueseNoun = true; + this._PortugueseNoun = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool EnglishAdjective; + [DataMember] + public bool EnglishNoun; + [DataMember] + public bool ChineseAdjective; + [DataMember] + public bool ChineseNoun; + [DataMember] + public bool ChineseAdjective2; + [DataMember] + public bool PortugueseAdjective; + [DataMember] + public bool PortugueseNoun; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeEnglishAdjective() + { + return __isset.EnglishAdjective; + } + + public bool ShouldSerializeEnglishNoun() + { + return __isset.EnglishNoun; + } + + public bool ShouldSerializeChineseAdjective() + { + return __isset.ChineseAdjective; + } + + public bool ShouldSerializeChineseNoun() + { + return __isset.ChineseNoun; + } + + public bool ShouldSerializeChineseAdjective2() + { + return __isset.ChineseAdjective2; + } + + public bool ShouldSerializePortugueseAdjective() + { + return __isset.PortugueseAdjective; + } + + public bool ShouldSerializePortugueseNoun() + { + return __isset.PortugueseNoun; + } + + #endregion XmlSerializer support + + public NickNameRandomDataItem() + { + } + + public NickNameRandomDataItem DeepCopy() + { + var tmp0 = new NickNameRandomDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((EnglishAdjective != null) && __isset.EnglishAdjective) + { + tmp0.EnglishAdjective = this.EnglishAdjective; + } + tmp0.__isset.EnglishAdjective = this.__isset.EnglishAdjective; + if((EnglishNoun != null) && __isset.EnglishNoun) + { + tmp0.EnglishNoun = this.EnglishNoun; + } + tmp0.__isset.EnglishNoun = this.__isset.EnglishNoun; + if((ChineseAdjective != null) && __isset.ChineseAdjective) + { + tmp0.ChineseAdjective = this.ChineseAdjective; + } + tmp0.__isset.ChineseAdjective = this.__isset.ChineseAdjective; + if((ChineseNoun != null) && __isset.ChineseNoun) + { + tmp0.ChineseNoun = this.ChineseNoun; + } + tmp0.__isset.ChineseNoun = this.__isset.ChineseNoun; + if((ChineseAdjective2 != null) && __isset.ChineseAdjective2) + { + tmp0.ChineseAdjective2 = this.ChineseAdjective2; + } + tmp0.__isset.ChineseAdjective2 = this.__isset.ChineseAdjective2; + if((PortugueseAdjective != null) && __isset.PortugueseAdjective) + { + tmp0.PortugueseAdjective = this.PortugueseAdjective; + } + tmp0.__isset.PortugueseAdjective = this.__isset.PortugueseAdjective; + if((PortugueseNoun != null) && __isset.PortugueseNoun) + { + tmp0.PortugueseNoun = this.PortugueseNoun; + } + tmp0.__isset.PortugueseNoun = this.__isset.PortugueseNoun; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + EnglishAdjective = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + EnglishNoun = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + ChineseAdjective = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + ChineseNoun = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + ChineseAdjective2 = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + PortugueseAdjective = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + PortugueseNoun = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("NickNameRandomDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((EnglishAdjective != null) && __isset.EnglishAdjective) + { + tmp2.Name = "EnglishAdjective"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(EnglishAdjective, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((EnglishNoun != null) && __isset.EnglishNoun) + { + tmp2.Name = "EnglishNoun"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(EnglishNoun, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ChineseAdjective != null) && __isset.ChineseAdjective) + { + tmp2.Name = "ChineseAdjective"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ChineseAdjective, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ChineseNoun != null) && __isset.ChineseNoun) + { + tmp2.Name = "ChineseNoun"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ChineseNoun, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ChineseAdjective2 != null) && __isset.ChineseAdjective2) + { + tmp2.Name = "ChineseAdjective2"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ChineseAdjective2, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PortugueseAdjective != null) && __isset.PortugueseAdjective) + { + tmp2.Name = "PortugueseAdjective"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(PortugueseAdjective, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PortugueseNoun != null) && __isset.PortugueseNoun) + { + tmp2.Name = "PortugueseNoun"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(PortugueseNoun, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is NickNameRandomDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.EnglishAdjective == other.__isset.EnglishAdjective) && ((!__isset.EnglishAdjective) || (global::System.Object.Equals(EnglishAdjective, other.EnglishAdjective)))) + && ((__isset.EnglishNoun == other.__isset.EnglishNoun) && ((!__isset.EnglishNoun) || (global::System.Object.Equals(EnglishNoun, other.EnglishNoun)))) + && ((__isset.ChineseAdjective == other.__isset.ChineseAdjective) && ((!__isset.ChineseAdjective) || (global::System.Object.Equals(ChineseAdjective, other.ChineseAdjective)))) + && ((__isset.ChineseNoun == other.__isset.ChineseNoun) && ((!__isset.ChineseNoun) || (global::System.Object.Equals(ChineseNoun, other.ChineseNoun)))) + && ((__isset.ChineseAdjective2 == other.__isset.ChineseAdjective2) && ((!__isset.ChineseAdjective2) || (global::System.Object.Equals(ChineseAdjective2, other.ChineseAdjective2)))) + && ((__isset.PortugueseAdjective == other.__isset.PortugueseAdjective) && ((!__isset.PortugueseAdjective) || (global::System.Object.Equals(PortugueseAdjective, other.PortugueseAdjective)))) + && ((__isset.PortugueseNoun == other.__isset.PortugueseNoun) && ((!__isset.PortugueseNoun) || (global::System.Object.Equals(PortugueseNoun, other.PortugueseNoun)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((EnglishAdjective != null) && __isset.EnglishAdjective) + { + hashcode = (hashcode * 397) + EnglishAdjective.GetHashCode(); + } + if((EnglishNoun != null) && __isset.EnglishNoun) + { + hashcode = (hashcode * 397) + EnglishNoun.GetHashCode(); + } + if((ChineseAdjective != null) && __isset.ChineseAdjective) + { + hashcode = (hashcode * 397) + ChineseAdjective.GetHashCode(); + } + if((ChineseNoun != null) && __isset.ChineseNoun) + { + hashcode = (hashcode * 397) + ChineseNoun.GetHashCode(); + } + if((ChineseAdjective2 != null) && __isset.ChineseAdjective2) + { + hashcode = (hashcode * 397) + ChineseAdjective2.GetHashCode(); + } + if((PortugueseAdjective != null) && __isset.PortugueseAdjective) + { + hashcode = (hashcode * 397) + PortugueseAdjective.GetHashCode(); + } + if((PortugueseNoun != null) && __isset.PortugueseNoun) + { + hashcode = (hashcode * 397) + PortugueseNoun.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("NickNameRandomDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((EnglishAdjective != null) && __isset.EnglishAdjective) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("EnglishAdjective: "); + EnglishAdjective.ToString(tmp3); + } + if((EnglishNoun != null) && __isset.EnglishNoun) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("EnglishNoun: "); + EnglishNoun.ToString(tmp3); + } + if((ChineseAdjective != null) && __isset.ChineseAdjective) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ChineseAdjective: "); + ChineseAdjective.ToString(tmp3); + } + if((ChineseNoun != null) && __isset.ChineseNoun) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ChineseNoun: "); + ChineseNoun.ToString(tmp3); + } + if((ChineseAdjective2 != null) && __isset.ChineseAdjective2) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ChineseAdjective2: "); + ChineseAdjective2.ToString(tmp3); + } + if((PortugueseAdjective != null) && __isset.PortugueseAdjective) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PortugueseAdjective: "); + PortugueseAdjective.ToString(tmp3); + } + if((PortugueseNoun != null) && __isset.PortugueseNoun) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PortugueseNoun: "); + PortugueseNoun.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomDataItem.cs.meta new file mode 100644 index 0000000..a26d41c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/NickNameRandomDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 958763fdea7840940b19dc2980fc79a6 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOne.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOne.Extensions.cs new file mode 100644 index 0000000..b795b5a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOne.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PassOneExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOne.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOne.Extensions.cs.meta new file mode 100644 index 0000000..1847191 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOne.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f944786265091894aa3bd4f752b0c346 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOne.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOne.cs new file mode 100644 index 0000000..5f9fa4c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOne.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PassOne : TBase + { + private Dictionary _passones; + + [DataMember(Order = 0)] + public Dictionary Passones + { + get + { + return _passones; + } + set + { + __isset.@passones = true; + this._passones = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @passones; + } + + #region XmlSerializer support + + public bool ShouldSerializePassones() + { + return __isset.@passones; + } + + #endregion XmlSerializer support + + public PassOne() + { + } + + public PassOne DeepCopy() + { + var tmp5 = new PassOne(); + if((Passones != null) && __isset.@passones) + { + tmp5.Passones = this.Passones.DeepCopy(); + } + tmp5.__isset.@passones = this.__isset.@passones; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Passones = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PassOneItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PassOneItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Passones[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PassOne"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Passones != null) && __isset.@passones) + { + tmp11.Name = "passones"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Passones.Count), cancellationToken); + foreach (int _iter12 in Passones.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Passones[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PassOne other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@passones == other.__isset.@passones) && ((!__isset.@passones) || (TCollections.Equals(Passones, other.Passones)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Passones != null) && __isset.@passones) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Passones); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PassOne("); + int tmp14 = 0; + if((Passones != null) && __isset.@passones) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Passones: "); + Passones.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOne.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOne.cs.meta new file mode 100644 index 0000000..a52f49c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOne.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 28523b4f847641c4a8b1d34cc79eb124 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOneItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOneItem.cs new file mode 100644 index 0000000..f8a75b1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOneItem.cs @@ -0,0 +1,594 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PassOneItem : TBase + { + private int _Id; + private int _Lv; + private string _FreeReward; + private string _PayReward; + private int _UpgradeGap; + private double _Price_Old; + private double _Price_New; + private int _Hour; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Lv + { + get + { + return _Lv; + } + set + { + __isset.Lv = true; + this._Lv = value; + } + } + + [DataMember(Order = 0)] + public string FreeReward + { + get + { + return _FreeReward; + } + set + { + __isset.FreeReward = true; + this._FreeReward = value; + } + } + + [DataMember(Order = 0)] + public string PayReward + { + get + { + return _PayReward; + } + set + { + __isset.PayReward = true; + this._PayReward = value; + } + } + + [DataMember(Order = 0)] + public int UpgradeGap + { + get + { + return _UpgradeGap; + } + set + { + __isset.UpgradeGap = true; + this._UpgradeGap = value; + } + } + + [DataMember(Order = 0)] + public double Price_Old + { + get + { + return _Price_Old; + } + set + { + __isset.Price_Old = true; + this._Price_Old = value; + } + } + + [DataMember(Order = 0)] + public double Price_New + { + get + { + return _Price_New; + } + set + { + __isset.Price_New = true; + this._Price_New = value; + } + } + + [DataMember(Order = 0)] + public int Hour + { + get + { + return _Hour; + } + set + { + __isset.Hour = true; + this._Hour = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Lv; + [DataMember] + public bool FreeReward; + [DataMember] + public bool PayReward; + [DataMember] + public bool UpgradeGap; + [DataMember] + public bool Price_Old; + [DataMember] + public bool Price_New; + [DataMember] + public bool Hour; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeLv() + { + return __isset.Lv; + } + + public bool ShouldSerializeFreeReward() + { + return __isset.FreeReward; + } + + public bool ShouldSerializePayReward() + { + return __isset.PayReward; + } + + public bool ShouldSerializeUpgradeGap() + { + return __isset.UpgradeGap; + } + + public bool ShouldSerializePrice_Old() + { + return __isset.Price_Old; + } + + public bool ShouldSerializePrice_New() + { + return __isset.Price_New; + } + + public bool ShouldSerializeHour() + { + return __isset.Hour; + } + + #endregion XmlSerializer support + + public PassOneItem() + { + } + + public PassOneItem DeepCopy() + { + var tmp0 = new PassOneItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Lv) + { + tmp0.Lv = this.Lv; + } + tmp0.__isset.Lv = this.__isset.Lv; + if((FreeReward != null) && __isset.FreeReward) + { + tmp0.FreeReward = this.FreeReward; + } + tmp0.__isset.FreeReward = this.__isset.FreeReward; + if((PayReward != null) && __isset.PayReward) + { + tmp0.PayReward = this.PayReward; + } + tmp0.__isset.PayReward = this.__isset.PayReward; + if(__isset.UpgradeGap) + { + tmp0.UpgradeGap = this.UpgradeGap; + } + tmp0.__isset.UpgradeGap = this.__isset.UpgradeGap; + if(__isset.Price_Old) + { + tmp0.Price_Old = this.Price_Old; + } + tmp0.__isset.Price_Old = this.__isset.Price_Old; + if(__isset.Price_New) + { + tmp0.Price_New = this.Price_New; + } + tmp0.__isset.Price_New = this.__isset.Price_New; + if(__isset.Hour) + { + tmp0.Hour = this.Hour; + } + tmp0.__isset.Hour = this.__isset.Hour; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Lv = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + FreeReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + PayReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + UpgradeGap = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.Double) + { + Price_Old = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.Double) + { + Price_New = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.I32) + { + Hour = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PassOneItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Lv) + { + tmp2.Name = "Lv"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Lv, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((FreeReward != null) && __isset.FreeReward) + { + tmp2.Name = "FreeReward"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(FreeReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PayReward != null) && __isset.PayReward) + { + tmp2.Name = "PayReward"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(PayReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.UpgradeGap) + { + tmp2.Name = "UpgradeGap"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(UpgradeGap, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price_Old) + { + tmp2.Name = "Price_Old"; + tmp2.Type = TType.Double; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price_Old, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price_New) + { + tmp2.Name = "Price_New"; + tmp2.Type = TType.Double; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price_New, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Hour) + { + tmp2.Name = "Hour"; + tmp2.Type = TType.I32; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Hour, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PassOneItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Lv == other.__isset.Lv) && ((!__isset.Lv) || (global::System.Object.Equals(Lv, other.Lv)))) + && ((__isset.FreeReward == other.__isset.FreeReward) && ((!__isset.FreeReward) || (global::System.Object.Equals(FreeReward, other.FreeReward)))) + && ((__isset.PayReward == other.__isset.PayReward) && ((!__isset.PayReward) || (global::System.Object.Equals(PayReward, other.PayReward)))) + && ((__isset.UpgradeGap == other.__isset.UpgradeGap) && ((!__isset.UpgradeGap) || (global::System.Object.Equals(UpgradeGap, other.UpgradeGap)))) + && ((__isset.Price_Old == other.__isset.Price_Old) && ((!__isset.Price_Old) || (global::System.Object.Equals(Price_Old, other.Price_Old)))) + && ((__isset.Price_New == other.__isset.Price_New) && ((!__isset.Price_New) || (global::System.Object.Equals(Price_New, other.Price_New)))) + && ((__isset.Hour == other.__isset.Hour) && ((!__isset.Hour) || (global::System.Object.Equals(Hour, other.Hour)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Lv) + { + hashcode = (hashcode * 397) + Lv.GetHashCode(); + } + if((FreeReward != null) && __isset.FreeReward) + { + hashcode = (hashcode * 397) + FreeReward.GetHashCode(); + } + if((PayReward != null) && __isset.PayReward) + { + hashcode = (hashcode * 397) + PayReward.GetHashCode(); + } + if(__isset.UpgradeGap) + { + hashcode = (hashcode * 397) + UpgradeGap.GetHashCode(); + } + if(__isset.Price_Old) + { + hashcode = (hashcode * 397) + Price_Old.GetHashCode(); + } + if(__isset.Price_New) + { + hashcode = (hashcode * 397) + Price_New.GetHashCode(); + } + if(__isset.Hour) + { + hashcode = (hashcode * 397) + Hour.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PassOneItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Lv) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Lv: "); + Lv.ToString(tmp3); + } + if((FreeReward != null) && __isset.FreeReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("FreeReward: "); + FreeReward.ToString(tmp3); + } + if((PayReward != null) && __isset.PayReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PayReward: "); + PayReward.ToString(tmp3); + } + if(__isset.UpgradeGap) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("UpgradeGap: "); + UpgradeGap.ToString(tmp3); + } + if(__isset.Price_Old) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price_Old: "); + Price_Old.ToString(tmp3); + } + if(__isset.Price_New) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price_New: "); + Price_New.ToString(tmp3); + } + if(__isset.Hour) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Hour: "); + Hour.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOneItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOneItem.cs.meta new file mode 100644 index 0000000..cf136a8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PassOneItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a4fa82fba7673cb48a76708de34e450e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGift.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGift.Extensions.cs new file mode 100644 index 0000000..b0b8c58 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGift.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PetAdWorkGiftExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGift.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGift.Extensions.cs.meta new file mode 100644 index 0000000..0294252 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGift.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8f3d63e827e276b4f800b3d2cea9680f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGift.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGift.cs new file mode 100644 index 0000000..e03b319 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGift.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetAdWorkGift : TBase + { + private Dictionary _petadworkgifts; + + [DataMember(Order = 0)] + public Dictionary Petadworkgifts + { + get + { + return _petadworkgifts; + } + set + { + __isset.@petadworkgifts = true; + this._petadworkgifts = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @petadworkgifts; + } + + #region XmlSerializer support + + public bool ShouldSerializePetadworkgifts() + { + return __isset.@petadworkgifts; + } + + #endregion XmlSerializer support + + public PetAdWorkGift() + { + } + + public PetAdWorkGift DeepCopy() + { + var tmp5 = new PetAdWorkGift(); + if((Petadworkgifts != null) && __isset.@petadworkgifts) + { + tmp5.Petadworkgifts = this.Petadworkgifts.DeepCopy(); + } + tmp5.__isset.@petadworkgifts = this.__isset.@petadworkgifts; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Petadworkgifts = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PetAdWorkGiftItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PetAdWorkGiftItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Petadworkgifts[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PetAdWorkGift"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Petadworkgifts != null) && __isset.@petadworkgifts) + { + tmp11.Name = "petadworkgifts"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Petadworkgifts.Count), cancellationToken); + foreach (int _iter12 in Petadworkgifts.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Petadworkgifts[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetAdWorkGift other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@petadworkgifts == other.__isset.@petadworkgifts) && ((!__isset.@petadworkgifts) || (TCollections.Equals(Petadworkgifts, other.Petadworkgifts)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Petadworkgifts != null) && __isset.@petadworkgifts) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Petadworkgifts); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PetAdWorkGift("); + int tmp14 = 0; + if((Petadworkgifts != null) && __isset.@petadworkgifts) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Petadworkgifts: "); + Petadworkgifts.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGift.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGift.cs.meta new file mode 100644 index 0000000..d440f92 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGift.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d6ba0ef597c7b7f4eafd7f255b047b22 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGiftItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGiftItem.cs new file mode 100644 index 0000000..8996381 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGiftItem.cs @@ -0,0 +1,594 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetAdWorkGiftItem : TBase + { + private int _Id; + private string _Reward; + private double _Price_New; + private double _Price_Old; + private int _Duration; + private int _Limit; + private double _Discount; + private int _ChargeId; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + [DataMember(Order = 0)] + public double Price_New + { + get + { + return _Price_New; + } + set + { + __isset.Price_New = true; + this._Price_New = value; + } + } + + [DataMember(Order = 0)] + public double Price_Old + { + get + { + return _Price_Old; + } + set + { + __isset.Price_Old = true; + this._Price_Old = value; + } + } + + [DataMember(Order = 0)] + public int Duration + { + get + { + return _Duration; + } + set + { + __isset.Duration = true; + this._Duration = value; + } + } + + [DataMember(Order = 0)] + public int Limit + { + get + { + return _Limit; + } + set + { + __isset.Limit = true; + this._Limit = value; + } + } + + [DataMember(Order = 0)] + public double Discount + { + get + { + return _Discount; + } + set + { + __isset.Discount = true; + this._Discount = value; + } + } + + [DataMember(Order = 0)] + public int ChargeId + { + get + { + return _ChargeId; + } + set + { + __isset.ChargeId = true; + this._ChargeId = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Reward; + [DataMember] + public bool Price_New; + [DataMember] + public bool Price_Old; + [DataMember] + public bool Duration; + [DataMember] + public bool Limit; + [DataMember] + public bool Discount; + [DataMember] + public bool ChargeId; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + public bool ShouldSerializePrice_New() + { + return __isset.Price_New; + } + + public bool ShouldSerializePrice_Old() + { + return __isset.Price_Old; + } + + public bool ShouldSerializeDuration() + { + return __isset.Duration; + } + + public bool ShouldSerializeLimit() + { + return __isset.Limit; + } + + public bool ShouldSerializeDiscount() + { + return __isset.Discount; + } + + public bool ShouldSerializeChargeId() + { + return __isset.ChargeId; + } + + #endregion XmlSerializer support + + public PetAdWorkGiftItem() + { + } + + public PetAdWorkGiftItem DeepCopy() + { + var tmp0 = new PetAdWorkGiftItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + if(__isset.Price_New) + { + tmp0.Price_New = this.Price_New; + } + tmp0.__isset.Price_New = this.__isset.Price_New; + if(__isset.Price_Old) + { + tmp0.Price_Old = this.Price_Old; + } + tmp0.__isset.Price_Old = this.__isset.Price_Old; + if(__isset.Duration) + { + tmp0.Duration = this.Duration; + } + tmp0.__isset.Duration = this.__isset.Duration; + if(__isset.Limit) + { + tmp0.Limit = this.Limit; + } + tmp0.__isset.Limit = this.__isset.Limit; + if(__isset.Discount) + { + tmp0.Discount = this.Discount; + } + tmp0.__isset.Discount = this.__isset.Discount; + if(__isset.ChargeId) + { + tmp0.ChargeId = this.ChargeId; + } + tmp0.__isset.ChargeId = this.__isset.ChargeId; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.Double) + { + Price_New = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.Double) + { + Price_Old = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + Duration = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I32) + { + Limit = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.Double) + { + Discount = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.I32) + { + ChargeId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PetAdWorkGiftItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price_New) + { + tmp2.Name = "Price_New"; + tmp2.Type = TType.Double; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price_New, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price_Old) + { + tmp2.Name = "Price_Old"; + tmp2.Type = TType.Double; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price_Old, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Duration) + { + tmp2.Name = "Duration"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Duration, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Limit) + { + tmp2.Name = "Limit"; + tmp2.Type = TType.I32; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Limit, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Discount) + { + tmp2.Name = "Discount"; + tmp2.Type = TType.Double; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Discount, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ChargeId) + { + tmp2.Name = "ChargeId"; + tmp2.Type = TType.I32; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ChargeId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetAdWorkGiftItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))) + && ((__isset.Price_New == other.__isset.Price_New) && ((!__isset.Price_New) || (global::System.Object.Equals(Price_New, other.Price_New)))) + && ((__isset.Price_Old == other.__isset.Price_Old) && ((!__isset.Price_Old) || (global::System.Object.Equals(Price_Old, other.Price_Old)))) + && ((__isset.Duration == other.__isset.Duration) && ((!__isset.Duration) || (global::System.Object.Equals(Duration, other.Duration)))) + && ((__isset.Limit == other.__isset.Limit) && ((!__isset.Limit) || (global::System.Object.Equals(Limit, other.Limit)))) + && ((__isset.Discount == other.__isset.Discount) && ((!__isset.Discount) || (global::System.Object.Equals(Discount, other.Discount)))) + && ((__isset.ChargeId == other.__isset.ChargeId) && ((!__isset.ChargeId) || (global::System.Object.Equals(ChargeId, other.ChargeId)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + if(__isset.Price_New) + { + hashcode = (hashcode * 397) + Price_New.GetHashCode(); + } + if(__isset.Price_Old) + { + hashcode = (hashcode * 397) + Price_Old.GetHashCode(); + } + if(__isset.Duration) + { + hashcode = (hashcode * 397) + Duration.GetHashCode(); + } + if(__isset.Limit) + { + hashcode = (hashcode * 397) + Limit.GetHashCode(); + } + if(__isset.Discount) + { + hashcode = (hashcode * 397) + Discount.GetHashCode(); + } + if(__isset.ChargeId) + { + hashcode = (hashcode * 397) + ChargeId.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PetAdWorkGiftItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + if(__isset.Price_New) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price_New: "); + Price_New.ToString(tmp3); + } + if(__isset.Price_Old) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price_Old: "); + Price_Old.ToString(tmp3); + } + if(__isset.Duration) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Duration: "); + Duration.ToString(tmp3); + } + if(__isset.Limit) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Limit: "); + Limit.ToString(tmp3); + } + if(__isset.Discount) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Discount: "); + Discount.ToString(tmp3); + } + if(__isset.ChargeId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ChargeId: "); + ChargeId.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGiftItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGiftItem.cs.meta new file mode 100644 index 0000000..be767c8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAdWorkGiftItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: def75ffd2c597804caaba9895c457dd8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItem.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItem.Extensions.cs new file mode 100644 index 0000000..9674b50 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItem.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PetAirItemExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItem.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItem.Extensions.cs.meta new file mode 100644 index 0000000..99017b4 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItem.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a28da02fd155a2d4d99e10fc34ad77ca +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItem.cs new file mode 100644 index 0000000..595f5f4 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItem.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetAirItem : TBase + { + private Dictionary _petairitems; + + [DataMember(Order = 0)] + public Dictionary Petairitems + { + get + { + return _petairitems; + } + set + { + __isset.@petairitems = true; + this._petairitems = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @petairitems; + } + + #region XmlSerializer support + + public bool ShouldSerializePetairitems() + { + return __isset.@petairitems; + } + + #endregion XmlSerializer support + + public PetAirItem() + { + } + + public PetAirItem DeepCopy() + { + var tmp5 = new PetAirItem(); + if((Petairitems != null) && __isset.@petairitems) + { + tmp5.Petairitems = this.Petairitems.DeepCopy(); + } + tmp5.__isset.@petairitems = this.__isset.@petairitems; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Petairitems = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PetAirItemItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PetAirItemItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Petairitems[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PetAirItem"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Petairitems != null) && __isset.@petairitems) + { + tmp11.Name = "petairitems"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Petairitems.Count), cancellationToken); + foreach (int _iter12 in Petairitems.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Petairitems[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetAirItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@petairitems == other.__isset.@petairitems) && ((!__isset.@petairitems) || (TCollections.Equals(Petairitems, other.Petairitems)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Petairitems != null) && __isset.@petairitems) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Petairitems); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PetAirItem("); + int tmp14 = 0; + if((Petairitems != null) && __isset.@petairitems) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Petairitems: "); + Petairitems.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItem.cs.meta new file mode 100644 index 0000000..42d6527 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c6315f76fc52ae34ab1c03b962af8039 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItemItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItemItem.cs new file mode 100644 index 0000000..71c1ff3 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItemItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetAirItemItem : TBase + { + private int _Id; + private int _GroupId; + private int _ItemId; + private string _Icon; + private string _Model; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int GroupId + { + get + { + return _GroupId; + } + set + { + __isset.GroupId = true; + this._GroupId = value; + } + } + + [DataMember(Order = 0)] + public int ItemId + { + get + { + return _ItemId; + } + set + { + __isset.ItemId = true; + this._ItemId = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string Model + { + get + { + return _Model; + } + set + { + __isset.Model = true; + this._Model = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool GroupId; + [DataMember] + public bool ItemId; + [DataMember] + public bool Icon; + [DataMember] + public bool Model; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeGroupId() + { + return __isset.GroupId; + } + + public bool ShouldSerializeItemId() + { + return __isset.ItemId; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeModel() + { + return __isset.Model; + } + + #endregion XmlSerializer support + + public PetAirItemItem() + { + } + + public PetAirItemItem DeepCopy() + { + var tmp0 = new PetAirItemItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.GroupId) + { + tmp0.GroupId = this.GroupId; + } + tmp0.__isset.GroupId = this.__isset.GroupId; + if(__isset.ItemId) + { + tmp0.ItemId = this.ItemId; + } + tmp0.__isset.ItemId = this.__isset.ItemId; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((Model != null) && __isset.Model) + { + tmp0.Model = this.Model; + } + tmp0.__isset.Model = this.__isset.Model; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + GroupId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + ItemId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Model = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PetAirItemItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.GroupId) + { + tmp2.Name = "GroupId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(GroupId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ItemId) + { + tmp2.Name = "ItemId"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ItemId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Model != null) && __isset.Model) + { + tmp2.Name = "Model"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Model, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetAirItemItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.GroupId == other.__isset.GroupId) && ((!__isset.GroupId) || (global::System.Object.Equals(GroupId, other.GroupId)))) + && ((__isset.ItemId == other.__isset.ItemId) && ((!__isset.ItemId) || (global::System.Object.Equals(ItemId, other.ItemId)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Model == other.__isset.Model) && ((!__isset.Model) || (global::System.Object.Equals(Model, other.Model)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.GroupId) + { + hashcode = (hashcode * 397) + GroupId.GetHashCode(); + } + if(__isset.ItemId) + { + hashcode = (hashcode * 397) + ItemId.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((Model != null) && __isset.Model) + { + hashcode = (hashcode * 397) + Model.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PetAirItemItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.GroupId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GroupId: "); + GroupId.ToString(tmp3); + } + if(__isset.ItemId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemId: "); + ItemId.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((Model != null) && __isset.Model) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Model: "); + Model.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItemItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItemItem.cs.meta new file mode 100644 index 0000000..554d2dd --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetAirItemItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: e8e82adca4726954888fb7899c821909 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItem.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItem.Extensions.cs new file mode 100644 index 0000000..36ce684 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItem.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PetCareItemExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItem.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItem.Extensions.cs.meta new file mode 100644 index 0000000..42b8544 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItem.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 4021af18ab99f2744a3056671e0fcd98 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItem.cs new file mode 100644 index 0000000..3d4e9fc --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItem.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetCareItem : TBase + { + private Dictionary _petcareitems; + + [DataMember(Order = 0)] + public Dictionary Petcareitems + { + get + { + return _petcareitems; + } + set + { + __isset.@petcareitems = true; + this._petcareitems = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @petcareitems; + } + + #region XmlSerializer support + + public bool ShouldSerializePetcareitems() + { + return __isset.@petcareitems; + } + + #endregion XmlSerializer support + + public PetCareItem() + { + } + + public PetCareItem DeepCopy() + { + var tmp5 = new PetCareItem(); + if((Petcareitems != null) && __isset.@petcareitems) + { + tmp5.Petcareitems = this.Petcareitems.DeepCopy(); + } + tmp5.__isset.@petcareitems = this.__isset.@petcareitems; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Petcareitems = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PetCareItemItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PetCareItemItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Petcareitems[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PetCareItem"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Petcareitems != null) && __isset.@petcareitems) + { + tmp11.Name = "petcareitems"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Petcareitems.Count), cancellationToken); + foreach (int _iter12 in Petcareitems.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Petcareitems[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetCareItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@petcareitems == other.__isset.@petcareitems) && ((!__isset.@petcareitems) || (TCollections.Equals(Petcareitems, other.Petcareitems)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Petcareitems != null) && __isset.@petcareitems) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Petcareitems); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PetCareItem("); + int tmp14 = 0; + if((Petcareitems != null) && __isset.@petcareitems) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Petcareitems: "); + Petcareitems.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItem.cs.meta new file mode 100644 index 0000000..0b8a99d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3d6cfaf16125a6b4fa31239422b6acd7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItemItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItemItem.cs new file mode 100644 index 0000000..79790ef --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItemItem.cs @@ -0,0 +1,993 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetCareItemItem : TBase + { + private int _Id; + private int _GroupId; + private int _ItemId; + private string _Icon; + private string _Model; + private double _Scale; + private string _Angle; + private string _GetFrom; + private int _Price; + private string _Res; + private int _ReqId; + private int _Exp; + private int _Sort; + private string _Tex2D; + private string _Name; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int GroupId + { + get + { + return _GroupId; + } + set + { + __isset.GroupId = true; + this._GroupId = value; + } + } + + [DataMember(Order = 0)] + public int ItemId + { + get + { + return _ItemId; + } + set + { + __isset.ItemId = true; + this._ItemId = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string Model + { + get + { + return _Model; + } + set + { + __isset.Model = true; + this._Model = value; + } + } + + [DataMember(Order = 0)] + public double Scale + { + get + { + return _Scale; + } + set + { + __isset.Scale = true; + this._Scale = value; + } + } + + [DataMember(Order = 0)] + public string Angle + { + get + { + return _Angle; + } + set + { + __isset.Angle = true; + this._Angle = value; + } + } + + [DataMember(Order = 0)] + public string GetFrom + { + get + { + return _GetFrom; + } + set + { + __isset.GetFrom = true; + this._GetFrom = value; + } + } + + [DataMember(Order = 0)] + public int Price + { + get + { + return _Price; + } + set + { + __isset.Price = true; + this._Price = value; + } + } + + [DataMember(Order = 0)] + public string Res + { + get + { + return _Res; + } + set + { + __isset.Res = true; + this._Res = value; + } + } + + [DataMember(Order = 0)] + public int ReqId + { + get + { + return _ReqId; + } + set + { + __isset.ReqId = true; + this._ReqId = value; + } + } + + [DataMember(Order = 0)] + public int Exp + { + get + { + return _Exp; + } + set + { + __isset.Exp = true; + this._Exp = value; + } + } + + [DataMember(Order = 0)] + public int Sort + { + get + { + return _Sort; + } + set + { + __isset.Sort = true; + this._Sort = value; + } + } + + [DataMember(Order = 0)] + public string Tex2D + { + get + { + return _Tex2D; + } + set + { + __isset.Tex2D = true; + this._Tex2D = value; + } + } + + [DataMember(Order = 0)] + public string Name + { + get + { + return _Name; + } + set + { + __isset.Name = true; + this._Name = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool GroupId; + [DataMember] + public bool ItemId; + [DataMember] + public bool Icon; + [DataMember] + public bool Model; + [DataMember] + public bool Scale; + [DataMember] + public bool Angle; + [DataMember] + public bool GetFrom; + [DataMember] + public bool Price; + [DataMember] + public bool Res; + [DataMember] + public bool ReqId; + [DataMember] + public bool Exp; + [DataMember] + public bool Sort; + [DataMember] + public bool Tex2D; + [DataMember] + public bool Name; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeGroupId() + { + return __isset.GroupId; + } + + public bool ShouldSerializeItemId() + { + return __isset.ItemId; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeModel() + { + return __isset.Model; + } + + public bool ShouldSerializeScale() + { + return __isset.Scale; + } + + public bool ShouldSerializeAngle() + { + return __isset.Angle; + } + + public bool ShouldSerializeGetFrom() + { + return __isset.GetFrom; + } + + public bool ShouldSerializePrice() + { + return __isset.Price; + } + + public bool ShouldSerializeRes() + { + return __isset.Res; + } + + public bool ShouldSerializeReqId() + { + return __isset.ReqId; + } + + public bool ShouldSerializeExp() + { + return __isset.Exp; + } + + public bool ShouldSerializeSort() + { + return __isset.Sort; + } + + public bool ShouldSerializeTex2D() + { + return __isset.Tex2D; + } + + public bool ShouldSerializeName() + { + return __isset.Name; + } + + #endregion XmlSerializer support + + public PetCareItemItem() + { + } + + public PetCareItemItem DeepCopy() + { + var tmp0 = new PetCareItemItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.GroupId) + { + tmp0.GroupId = this.GroupId; + } + tmp0.__isset.GroupId = this.__isset.GroupId; + if(__isset.ItemId) + { + tmp0.ItemId = this.ItemId; + } + tmp0.__isset.ItemId = this.__isset.ItemId; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((Model != null) && __isset.Model) + { + tmp0.Model = this.Model; + } + tmp0.__isset.Model = this.__isset.Model; + if(__isset.Scale) + { + tmp0.Scale = this.Scale; + } + tmp0.__isset.Scale = this.__isset.Scale; + if((Angle != null) && __isset.Angle) + { + tmp0.Angle = this.Angle; + } + tmp0.__isset.Angle = this.__isset.Angle; + if((GetFrom != null) && __isset.GetFrom) + { + tmp0.GetFrom = this.GetFrom; + } + tmp0.__isset.GetFrom = this.__isset.GetFrom; + if(__isset.Price) + { + tmp0.Price = this.Price; + } + tmp0.__isset.Price = this.__isset.Price; + if((Res != null) && __isset.Res) + { + tmp0.Res = this.Res; + } + tmp0.__isset.Res = this.__isset.Res; + if(__isset.ReqId) + { + tmp0.ReqId = this.ReqId; + } + tmp0.__isset.ReqId = this.__isset.ReqId; + if(__isset.Exp) + { + tmp0.Exp = this.Exp; + } + tmp0.__isset.Exp = this.__isset.Exp; + if(__isset.Sort) + { + tmp0.Sort = this.Sort; + } + tmp0.__isset.Sort = this.__isset.Sort; + if((Tex2D != null) && __isset.Tex2D) + { + tmp0.Tex2D = this.Tex2D; + } + tmp0.__isset.Tex2D = this.__isset.Tex2D; + if((Name != null) && __isset.Name) + { + tmp0.Name = this.Name; + } + tmp0.__isset.Name = this.__isset.Name; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + GroupId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + ItemId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Model = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.Double) + { + Scale = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Angle = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + GetFrom = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I32) + { + Price = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.String) + { + Res = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 11: + if (field.Type == TType.I32) + { + ReqId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 12: + if (field.Type == TType.I32) + { + Exp = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 13: + if (field.Type == TType.I32) + { + Sort = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 14: + if (field.Type == TType.String) + { + Tex2D = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 15: + if (field.Type == TType.String) + { + Name = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PetCareItemItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.GroupId) + { + tmp2.Name = "GroupId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(GroupId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ItemId) + { + tmp2.Name = "ItemId"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ItemId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Model != null) && __isset.Model) + { + tmp2.Name = "Model"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Model, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Scale) + { + tmp2.Name = "Scale"; + tmp2.Type = TType.Double; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Scale, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Angle != null) && __isset.Angle) + { + tmp2.Name = "Angle"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Angle, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((GetFrom != null) && __isset.GetFrom) + { + tmp2.Name = "GetFrom"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(GetFrom, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price) + { + tmp2.Name = "Price"; + tmp2.Type = TType.I32; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Price, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Res != null) && __isset.Res) + { + tmp2.Name = "Res"; + tmp2.Type = TType.String; + tmp2.ID = 10; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Res, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ReqId) + { + tmp2.Name = "ReqId"; + tmp2.Type = TType.I32; + tmp2.ID = 11; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ReqId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Exp) + { + tmp2.Name = "Exp"; + tmp2.Type = TType.I32; + tmp2.ID = 12; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Exp, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Sort) + { + tmp2.Name = "Sort"; + tmp2.Type = TType.I32; + tmp2.ID = 13; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Sort, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Tex2D != null) && __isset.Tex2D) + { + tmp2.Name = "Tex2D"; + tmp2.Type = TType.String; + tmp2.ID = 14; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Tex2D, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Name != null) && __isset.Name) + { + tmp2.Name = "Name"; + tmp2.Type = TType.String; + tmp2.ID = 15; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetCareItemItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.GroupId == other.__isset.GroupId) && ((!__isset.GroupId) || (global::System.Object.Equals(GroupId, other.GroupId)))) + && ((__isset.ItemId == other.__isset.ItemId) && ((!__isset.ItemId) || (global::System.Object.Equals(ItemId, other.ItemId)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Model == other.__isset.Model) && ((!__isset.Model) || (global::System.Object.Equals(Model, other.Model)))) + && ((__isset.Scale == other.__isset.Scale) && ((!__isset.Scale) || (global::System.Object.Equals(Scale, other.Scale)))) + && ((__isset.Angle == other.__isset.Angle) && ((!__isset.Angle) || (global::System.Object.Equals(Angle, other.Angle)))) + && ((__isset.GetFrom == other.__isset.GetFrom) && ((!__isset.GetFrom) || (global::System.Object.Equals(GetFrom, other.GetFrom)))) + && ((__isset.Price == other.__isset.Price) && ((!__isset.Price) || (global::System.Object.Equals(Price, other.Price)))) + && ((__isset.Res == other.__isset.Res) && ((!__isset.Res) || (global::System.Object.Equals(Res, other.Res)))) + && ((__isset.ReqId == other.__isset.ReqId) && ((!__isset.ReqId) || (global::System.Object.Equals(ReqId, other.ReqId)))) + && ((__isset.Exp == other.__isset.Exp) && ((!__isset.Exp) || (global::System.Object.Equals(Exp, other.Exp)))) + && ((__isset.Sort == other.__isset.Sort) && ((!__isset.Sort) || (global::System.Object.Equals(Sort, other.Sort)))) + && ((__isset.Tex2D == other.__isset.Tex2D) && ((!__isset.Tex2D) || (global::System.Object.Equals(Tex2D, other.Tex2D)))) + && ((__isset.Name == other.__isset.Name) && ((!__isset.Name) || (global::System.Object.Equals(Name, other.Name)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.GroupId) + { + hashcode = (hashcode * 397) + GroupId.GetHashCode(); + } + if(__isset.ItemId) + { + hashcode = (hashcode * 397) + ItemId.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((Model != null) && __isset.Model) + { + hashcode = (hashcode * 397) + Model.GetHashCode(); + } + if(__isset.Scale) + { + hashcode = (hashcode * 397) + Scale.GetHashCode(); + } + if((Angle != null) && __isset.Angle) + { + hashcode = (hashcode * 397) + Angle.GetHashCode(); + } + if((GetFrom != null) && __isset.GetFrom) + { + hashcode = (hashcode * 397) + GetFrom.GetHashCode(); + } + if(__isset.Price) + { + hashcode = (hashcode * 397) + Price.GetHashCode(); + } + if((Res != null) && __isset.Res) + { + hashcode = (hashcode * 397) + Res.GetHashCode(); + } + if(__isset.ReqId) + { + hashcode = (hashcode * 397) + ReqId.GetHashCode(); + } + if(__isset.Exp) + { + hashcode = (hashcode * 397) + Exp.GetHashCode(); + } + if(__isset.Sort) + { + hashcode = (hashcode * 397) + Sort.GetHashCode(); + } + if((Tex2D != null) && __isset.Tex2D) + { + hashcode = (hashcode * 397) + Tex2D.GetHashCode(); + } + if((Name != null) && __isset.Name) + { + hashcode = (hashcode * 397) + Name.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PetCareItemItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.GroupId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GroupId: "); + GroupId.ToString(tmp3); + } + if(__isset.ItemId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemId: "); + ItemId.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((Model != null) && __isset.Model) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Model: "); + Model.ToString(tmp3); + } + if(__isset.Scale) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Scale: "); + Scale.ToString(tmp3); + } + if((Angle != null) && __isset.Angle) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Angle: "); + Angle.ToString(tmp3); + } + if((GetFrom != null) && __isset.GetFrom) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GetFrom: "); + GetFrom.ToString(tmp3); + } + if(__isset.Price) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price: "); + Price.ToString(tmp3); + } + if((Res != null) && __isset.Res) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Res: "); + Res.ToString(tmp3); + } + if(__isset.ReqId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ReqId: "); + ReqId.ToString(tmp3); + } + if(__isset.Exp) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Exp: "); + Exp.ToString(tmp3); + } + if(__isset.Sort) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Sort: "); + Sort.ToString(tmp3); + } + if((Tex2D != null) && __isset.Tex2D) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Tex2D: "); + Tex2D.ToString(tmp3); + } + if((Name != null) && __isset.Name) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Name: "); + Name.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItemItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItemItem.cs.meta new file mode 100644 index 0000000..33d0af1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCareItemItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1ff133152e7f4cd41a092c5149b941f3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGift.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGift.Extensions.cs new file mode 100644 index 0000000..d320ff7 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGift.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PetCoinGiftExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGift.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGift.Extensions.cs.meta new file mode 100644 index 0000000..23f2e96 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGift.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7b7aae96f6d015044b33c8b147be49a3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGift.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGift.cs new file mode 100644 index 0000000..5a19437 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGift.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetCoinGift : TBase + { + private Dictionary _petcoingifts; + + [DataMember(Order = 0)] + public Dictionary Petcoingifts + { + get + { + return _petcoingifts; + } + set + { + __isset.@petcoingifts = true; + this._petcoingifts = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @petcoingifts; + } + + #region XmlSerializer support + + public bool ShouldSerializePetcoingifts() + { + return __isset.@petcoingifts; + } + + #endregion XmlSerializer support + + public PetCoinGift() + { + } + + public PetCoinGift DeepCopy() + { + var tmp5 = new PetCoinGift(); + if((Petcoingifts != null) && __isset.@petcoingifts) + { + tmp5.Petcoingifts = this.Petcoingifts.DeepCopy(); + } + tmp5.__isset.@petcoingifts = this.__isset.@petcoingifts; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Petcoingifts = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PetCoinGiftItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PetCoinGiftItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Petcoingifts[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PetCoinGift"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Petcoingifts != null) && __isset.@petcoingifts) + { + tmp11.Name = "petcoingifts"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Petcoingifts.Count), cancellationToken); + foreach (int _iter12 in Petcoingifts.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Petcoingifts[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetCoinGift other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@petcoingifts == other.__isset.@petcoingifts) && ((!__isset.@petcoingifts) || (TCollections.Equals(Petcoingifts, other.Petcoingifts)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Petcoingifts != null) && __isset.@petcoingifts) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Petcoingifts); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PetCoinGift("); + int tmp14 = 0; + if((Petcoingifts != null) && __isset.@petcoingifts) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Petcoingifts: "); + Petcoingifts.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGift.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGift.cs.meta new file mode 100644 index 0000000..c1a4316 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGift.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: bd487906d09a1d448bccd648dad59180 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGiftItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGiftItem.cs new file mode 100644 index 0000000..8d54ccf --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGiftItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetCoinGiftItem : TBase + { + private int _Id; + private string _Reward; + private double _Price_New; + private double _Price_Old; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + [DataMember(Order = 0)] + public double Price_New + { + get + { + return _Price_New; + } + set + { + __isset.Price_New = true; + this._Price_New = value; + } + } + + [DataMember(Order = 0)] + public double Price_Old + { + get + { + return _Price_Old; + } + set + { + __isset.Price_Old = true; + this._Price_Old = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Reward; + [DataMember] + public bool Price_New; + [DataMember] + public bool Price_Old; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + public bool ShouldSerializePrice_New() + { + return __isset.Price_New; + } + + public bool ShouldSerializePrice_Old() + { + return __isset.Price_Old; + } + + #endregion XmlSerializer support + + public PetCoinGiftItem() + { + } + + public PetCoinGiftItem DeepCopy() + { + var tmp0 = new PetCoinGiftItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + if(__isset.Price_New) + { + tmp0.Price_New = this.Price_New; + } + tmp0.__isset.Price_New = this.__isset.Price_New; + if(__isset.Price_Old) + { + tmp0.Price_Old = this.Price_Old; + } + tmp0.__isset.Price_Old = this.__isset.Price_Old; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.Double) + { + Price_New = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.Double) + { + Price_Old = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PetCoinGiftItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price_New) + { + tmp2.Name = "Price_New"; + tmp2.Type = TType.Double; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price_New, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price_Old) + { + tmp2.Name = "Price_Old"; + tmp2.Type = TType.Double; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price_Old, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetCoinGiftItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))) + && ((__isset.Price_New == other.__isset.Price_New) && ((!__isset.Price_New) || (global::System.Object.Equals(Price_New, other.Price_New)))) + && ((__isset.Price_Old == other.__isset.Price_Old) && ((!__isset.Price_Old) || (global::System.Object.Equals(Price_Old, other.Price_Old)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + if(__isset.Price_New) + { + hashcode = (hashcode * 397) + Price_New.GetHashCode(); + } + if(__isset.Price_Old) + { + hashcode = (hashcode * 397) + Price_Old.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PetCoinGiftItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + if(__isset.Price_New) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price_New: "); + Price_New.ToString(tmp3); + } + if(__isset.Price_Old) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price_Old: "); + Price_Old.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGiftItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGiftItem.cs.meta new file mode 100644 index 0000000..d6c97bb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetCoinGiftItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 084895240b63b3d47a5ab6c8bbab57d7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfg.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfg.Extensions.cs new file mode 100644 index 0000000..2738a67 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfg.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PetDailyTaskCfgExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfg.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfg.Extensions.cs.meta new file mode 100644 index 0000000..48a6eb1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfg.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6986aef9ad7b42849985259b6517ae51 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfg.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfg.cs new file mode 100644 index 0000000..a27923f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfg.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetDailyTaskCfg : TBase + { + private Dictionary _petdailytaskcfgs; + + [DataMember(Order = 0)] + public Dictionary Petdailytaskcfgs + { + get + { + return _petdailytaskcfgs; + } + set + { + __isset.@petdailytaskcfgs = true; + this._petdailytaskcfgs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @petdailytaskcfgs; + } + + #region XmlSerializer support + + public bool ShouldSerializePetdailytaskcfgs() + { + return __isset.@petdailytaskcfgs; + } + + #endregion XmlSerializer support + + public PetDailyTaskCfg() + { + } + + public PetDailyTaskCfg DeepCopy() + { + var tmp5 = new PetDailyTaskCfg(); + if((Petdailytaskcfgs != null) && __isset.@petdailytaskcfgs) + { + tmp5.Petdailytaskcfgs = this.Petdailytaskcfgs.DeepCopy(); + } + tmp5.__isset.@petdailytaskcfgs = this.__isset.@petdailytaskcfgs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Petdailytaskcfgs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PetDailyTaskCfgItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PetDailyTaskCfgItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Petdailytaskcfgs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PetDailyTaskCfg"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Petdailytaskcfgs != null) && __isset.@petdailytaskcfgs) + { + tmp11.Name = "petdailytaskcfgs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Petdailytaskcfgs.Count), cancellationToken); + foreach (int _iter12 in Petdailytaskcfgs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Petdailytaskcfgs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetDailyTaskCfg other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@petdailytaskcfgs == other.__isset.@petdailytaskcfgs) && ((!__isset.@petdailytaskcfgs) || (TCollections.Equals(Petdailytaskcfgs, other.Petdailytaskcfgs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Petdailytaskcfgs != null) && __isset.@petdailytaskcfgs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Petdailytaskcfgs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PetDailyTaskCfg("); + int tmp14 = 0; + if((Petdailytaskcfgs != null) && __isset.@petdailytaskcfgs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Petdailytaskcfgs: "); + Petdailytaskcfgs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfg.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfg.cs.meta new file mode 100644 index 0000000..5ca7d87 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 76b205f7046e9214697afac3ee68e3da +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfgItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfgItem.cs new file mode 100644 index 0000000..bd878e8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfgItem.cs @@ -0,0 +1,480 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetDailyTaskCfgItem : TBase + { + private int _Id; + private int _Type; + private string _Task; + private string _Icon; + private string _LangID; + private int _GoTo; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Type + { + get + { + return _Type; + } + set + { + __isset.Type = true; + this._Type = value; + } + } + + [DataMember(Order = 0)] + public string Task + { + get + { + return _Task; + } + set + { + __isset.Task = true; + this._Task = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string LangID + { + get + { + return _LangID; + } + set + { + __isset.LangID = true; + this._LangID = value; + } + } + + [DataMember(Order = 0)] + public int GoTo + { + get + { + return _GoTo; + } + set + { + __isset.@GoTo = true; + this._GoTo = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Type; + [DataMember] + public bool Task; + [DataMember] + public bool Icon; + [DataMember] + public bool LangID; + [DataMember] + public bool @GoTo; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeType() + { + return __isset.Type; + } + + public bool ShouldSerializeTask() + { + return __isset.Task; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeLangID() + { + return __isset.LangID; + } + + public bool ShouldSerializeGoTo() + { + return __isset.@GoTo; + } + + #endregion XmlSerializer support + + public PetDailyTaskCfgItem() + { + } + + public PetDailyTaskCfgItem DeepCopy() + { + var tmp0 = new PetDailyTaskCfgItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Type) + { + tmp0.Type = this.Type; + } + tmp0.__isset.Type = this.__isset.Type; + if((Task != null) && __isset.Task) + { + tmp0.Task = this.Task; + } + tmp0.__isset.Task = this.__isset.Task; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((LangID != null) && __isset.LangID) + { + tmp0.LangID = this.LangID; + } + tmp0.__isset.LangID = this.__isset.LangID; + if(__isset.@GoTo) + { + tmp0.GoTo = this.GoTo; + } + tmp0.__isset.@GoTo = this.__isset.@GoTo; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Type = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Task = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + LangID = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I32) + { + GoTo = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PetDailyTaskCfgItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Type) + { + tmp2.Name = "Type"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Task != null) && __isset.Task) + { + tmp2.Name = "Task"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Task, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((LangID != null) && __isset.LangID) + { + tmp2.Name = "LangID"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(LangID, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.@GoTo) + { + tmp2.Name = "GoTo"; + tmp2.Type = TType.I32; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(GoTo, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetDailyTaskCfgItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Type == other.__isset.Type) && ((!__isset.Type) || (global::System.Object.Equals(Type, other.Type)))) + && ((__isset.Task == other.__isset.Task) && ((!__isset.Task) || (global::System.Object.Equals(Task, other.Task)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.LangID == other.__isset.LangID) && ((!__isset.LangID) || (global::System.Object.Equals(LangID, other.LangID)))) + && ((__isset.@GoTo == other.__isset.@GoTo) && ((!__isset.@GoTo) || (global::System.Object.Equals(GoTo, other.GoTo)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Type) + { + hashcode = (hashcode * 397) + Type.GetHashCode(); + } + if((Task != null) && __isset.Task) + { + hashcode = (hashcode * 397) + Task.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((LangID != null) && __isset.LangID) + { + hashcode = (hashcode * 397) + LangID.GetHashCode(); + } + if(__isset.@GoTo) + { + hashcode = (hashcode * 397) + GoTo.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PetDailyTaskCfgItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Type) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Type: "); + Type.ToString(tmp3); + } + if((Task != null) && __isset.Task) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Task: "); + Task.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((LangID != null) && __isset.LangID) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("LangID: "); + LangID.ToString(tmp3); + } + if(__isset.@GoTo) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GoTo: "); + GoTo.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfgItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfgItem.cs.meta new file mode 100644 index 0000000..b2173a9 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDailyTaskCfgItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: de774110e8377ef498ae509c9f007226 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItem.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItem.Extensions.cs new file mode 100644 index 0000000..28537e8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItem.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PetDressItemExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItem.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItem.Extensions.cs.meta new file mode 100644 index 0000000..4daa5bb --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItem.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9f43b198bcbc94843b406d2e4dc479e9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItem.cs new file mode 100644 index 0000000..55be64b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItem.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetDressItem : TBase + { + private Dictionary _petdressitems; + + [DataMember(Order = 0)] + public Dictionary Petdressitems + { + get + { + return _petdressitems; + } + set + { + __isset.@petdressitems = true; + this._petdressitems = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @petdressitems; + } + + #region XmlSerializer support + + public bool ShouldSerializePetdressitems() + { + return __isset.@petdressitems; + } + + #endregion XmlSerializer support + + public PetDressItem() + { + } + + public PetDressItem DeepCopy() + { + var tmp5 = new PetDressItem(); + if((Petdressitems != null) && __isset.@petdressitems) + { + tmp5.Petdressitems = this.Petdressitems.DeepCopy(); + } + tmp5.__isset.@petdressitems = this.__isset.@petdressitems; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Petdressitems = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PetDressItemItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PetDressItemItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Petdressitems[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PetDressItem"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Petdressitems != null) && __isset.@petdressitems) + { + tmp11.Name = "petdressitems"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Petdressitems.Count), cancellationToken); + foreach (int _iter12 in Petdressitems.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Petdressitems[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetDressItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@petdressitems == other.__isset.@petdressitems) && ((!__isset.@petdressitems) || (TCollections.Equals(Petdressitems, other.Petdressitems)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Petdressitems != null) && __isset.@petdressitems) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Petdressitems); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PetDressItem("); + int tmp14 = 0; + if((Petdressitems != null) && __isset.@petdressitems) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Petdressitems: "); + Petdressitems.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItem.cs.meta new file mode 100644 index 0000000..ea35225 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ad9defb78c0f39f47ad878fa2dd6a89f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItemItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItemItem.cs new file mode 100644 index 0000000..87d4663 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItemItem.cs @@ -0,0 +1,651 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetDressItemItem : TBase + { + private int _Id; + private int _GroupId; + private string _Icon; + private string _PetModel; + private string _PartModel; + private string _Part; + private string _Texture; + private string _Mutex; + private int _Show; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int GroupId + { + get + { + return _GroupId; + } + set + { + __isset.GroupId = true; + this._GroupId = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string PetModel + { + get + { + return _PetModel; + } + set + { + __isset.PetModel = true; + this._PetModel = value; + } + } + + [DataMember(Order = 0)] + public string PartModel + { + get + { + return _PartModel; + } + set + { + __isset.PartModel = true; + this._PartModel = value; + } + } + + [DataMember(Order = 0)] + public string Part + { + get + { + return _Part; + } + set + { + __isset.Part = true; + this._Part = value; + } + } + + [DataMember(Order = 0)] + public string Texture + { + get + { + return _Texture; + } + set + { + __isset.Texture = true; + this._Texture = value; + } + } + + [DataMember(Order = 0)] + public string Mutex + { + get + { + return _Mutex; + } + set + { + __isset.Mutex = true; + this._Mutex = value; + } + } + + [DataMember(Order = 0)] + public int Show + { + get + { + return _Show; + } + set + { + __isset.Show = true; + this._Show = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool GroupId; + [DataMember] + public bool Icon; + [DataMember] + public bool PetModel; + [DataMember] + public bool PartModel; + [DataMember] + public bool Part; + [DataMember] + public bool Texture; + [DataMember] + public bool Mutex; + [DataMember] + public bool Show; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeGroupId() + { + return __isset.GroupId; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializePetModel() + { + return __isset.PetModel; + } + + public bool ShouldSerializePartModel() + { + return __isset.PartModel; + } + + public bool ShouldSerializePart() + { + return __isset.Part; + } + + public bool ShouldSerializeTexture() + { + return __isset.Texture; + } + + public bool ShouldSerializeMutex() + { + return __isset.Mutex; + } + + public bool ShouldSerializeShow() + { + return __isset.Show; + } + + #endregion XmlSerializer support + + public PetDressItemItem() + { + } + + public PetDressItemItem DeepCopy() + { + var tmp0 = new PetDressItemItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.GroupId) + { + tmp0.GroupId = this.GroupId; + } + tmp0.__isset.GroupId = this.__isset.GroupId; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((PetModel != null) && __isset.PetModel) + { + tmp0.PetModel = this.PetModel; + } + tmp0.__isset.PetModel = this.__isset.PetModel; + if((PartModel != null) && __isset.PartModel) + { + tmp0.PartModel = this.PartModel; + } + tmp0.__isset.PartModel = this.__isset.PartModel; + if((Part != null) && __isset.Part) + { + tmp0.Part = this.Part; + } + tmp0.__isset.Part = this.__isset.Part; + if((Texture != null) && __isset.Texture) + { + tmp0.Texture = this.Texture; + } + tmp0.__isset.Texture = this.__isset.Texture; + if((Mutex != null) && __isset.Mutex) + { + tmp0.Mutex = this.Mutex; + } + tmp0.__isset.Mutex = this.__isset.Mutex; + if(__isset.Show) + { + tmp0.Show = this.Show; + } + tmp0.__isset.Show = this.__isset.Show; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + GroupId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + PetModel = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + PartModel = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + Part = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Texture = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + Mutex = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I32) + { + Show = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PetDressItemItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.GroupId) + { + tmp2.Name = "GroupId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(GroupId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PetModel != null) && __isset.PetModel) + { + tmp2.Name = "PetModel"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(PetModel, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((PartModel != null) && __isset.PartModel) + { + tmp2.Name = "PartModel"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(PartModel, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Part != null) && __isset.Part) + { + tmp2.Name = "Part"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Part, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Texture != null) && __isset.Texture) + { + tmp2.Name = "Texture"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Texture, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Mutex != null) && __isset.Mutex) + { + tmp2.Name = "Mutex"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Mutex, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Show) + { + tmp2.Name = "Show"; + tmp2.Type = TType.I32; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Show, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetDressItemItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.GroupId == other.__isset.GroupId) && ((!__isset.GroupId) || (global::System.Object.Equals(GroupId, other.GroupId)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.PetModel == other.__isset.PetModel) && ((!__isset.PetModel) || (global::System.Object.Equals(PetModel, other.PetModel)))) + && ((__isset.PartModel == other.__isset.PartModel) && ((!__isset.PartModel) || (global::System.Object.Equals(PartModel, other.PartModel)))) + && ((__isset.Part == other.__isset.Part) && ((!__isset.Part) || (global::System.Object.Equals(Part, other.Part)))) + && ((__isset.Texture == other.__isset.Texture) && ((!__isset.Texture) || (global::System.Object.Equals(Texture, other.Texture)))) + && ((__isset.Mutex == other.__isset.Mutex) && ((!__isset.Mutex) || (global::System.Object.Equals(Mutex, other.Mutex)))) + && ((__isset.Show == other.__isset.Show) && ((!__isset.Show) || (global::System.Object.Equals(Show, other.Show)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.GroupId) + { + hashcode = (hashcode * 397) + GroupId.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((PetModel != null) && __isset.PetModel) + { + hashcode = (hashcode * 397) + PetModel.GetHashCode(); + } + if((PartModel != null) && __isset.PartModel) + { + hashcode = (hashcode * 397) + PartModel.GetHashCode(); + } + if((Part != null) && __isset.Part) + { + hashcode = (hashcode * 397) + Part.GetHashCode(); + } + if((Texture != null) && __isset.Texture) + { + hashcode = (hashcode * 397) + Texture.GetHashCode(); + } + if((Mutex != null) && __isset.Mutex) + { + hashcode = (hashcode * 397) + Mutex.GetHashCode(); + } + if(__isset.Show) + { + hashcode = (hashcode * 397) + Show.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PetDressItemItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.GroupId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GroupId: "); + GroupId.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((PetModel != null) && __isset.PetModel) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PetModel: "); + PetModel.ToString(tmp3); + } + if((PartModel != null) && __isset.PartModel) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PartModel: "); + PartModel.ToString(tmp3); + } + if((Part != null) && __isset.Part) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Part: "); + Part.ToString(tmp3); + } + if((Texture != null) && __isset.Texture) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Texture: "); + Texture.ToString(tmp3); + } + if((Mutex != null) && __isset.Mutex) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Mutex: "); + Mutex.ToString(tmp3); + } + if(__isset.Show) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Show: "); + Show.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItemItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItemItem.cs.meta new file mode 100644 index 0000000..13919c6 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetDressItemItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b42b3a32dfdba754693b48766e83975d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateList.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateList.Extensions.cs new file mode 100644 index 0000000..85c65ee --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateList.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PetHomeDecorateListExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateList.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateList.Extensions.cs.meta new file mode 100644 index 0000000..370c99b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateList.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 011da776d168fdd4384e53d0b7218f78 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateList.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateList.cs new file mode 100644 index 0000000..1fc9ffc --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateList.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetHomeDecorateList : TBase + { + private Dictionary _pethomedecoratelists; + + [DataMember(Order = 0)] + public Dictionary Pethomedecoratelists + { + get + { + return _pethomedecoratelists; + } + set + { + __isset.@pethomedecoratelists = true; + this._pethomedecoratelists = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @pethomedecoratelists; + } + + #region XmlSerializer support + + public bool ShouldSerializePethomedecoratelists() + { + return __isset.@pethomedecoratelists; + } + + #endregion XmlSerializer support + + public PetHomeDecorateList() + { + } + + public PetHomeDecorateList DeepCopy() + { + var tmp5 = new PetHomeDecorateList(); + if((Pethomedecoratelists != null) && __isset.@pethomedecoratelists) + { + tmp5.Pethomedecoratelists = this.Pethomedecoratelists.DeepCopy(); + } + tmp5.__isset.@pethomedecoratelists = this.__isset.@pethomedecoratelists; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Pethomedecoratelists = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PetHomeDecorateListItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PetHomeDecorateListItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Pethomedecoratelists[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PetHomeDecorateList"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Pethomedecoratelists != null) && __isset.@pethomedecoratelists) + { + tmp11.Name = "pethomedecoratelists"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Pethomedecoratelists.Count), cancellationToken); + foreach (int _iter12 in Pethomedecoratelists.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Pethomedecoratelists[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetHomeDecorateList other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@pethomedecoratelists == other.__isset.@pethomedecoratelists) && ((!__isset.@pethomedecoratelists) || (TCollections.Equals(Pethomedecoratelists, other.Pethomedecoratelists)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Pethomedecoratelists != null) && __isset.@pethomedecoratelists) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Pethomedecoratelists); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PetHomeDecorateList("); + int tmp14 = 0; + if((Pethomedecoratelists != null) && __isset.@pethomedecoratelists) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Pethomedecoratelists: "); + Pethomedecoratelists.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateList.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateList.cs.meta new file mode 100644 index 0000000..1de70b7 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateList.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0ac28f52d8293b44db1203aa528a1014 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateListItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateListItem.cs new file mode 100644 index 0000000..c99b719 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateListItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetHomeDecorateListItem : TBase + { + private int _Id; + private int _TypeEnum; + private int _Category; + private string _Icon; + private string _ResPrefix; + private string _English; + private string _Chinese; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int TypeEnum + { + get + { + return _TypeEnum; + } + set + { + __isset.TypeEnum = true; + this._TypeEnum = value; + } + } + + [DataMember(Order = 0)] + public int Category + { + get + { + return _Category; + } + set + { + __isset.Category = true; + this._Category = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string ResPrefix + { + get + { + return _ResPrefix; + } + set + { + __isset.ResPrefix = true; + this._ResPrefix = value; + } + } + + [DataMember(Order = 0)] + public string English + { + get + { + return _English; + } + set + { + __isset.English = true; + this._English = value; + } + } + + [DataMember(Order = 0)] + public string Chinese + { + get + { + return _Chinese; + } + set + { + __isset.Chinese = true; + this._Chinese = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool TypeEnum; + [DataMember] + public bool Category; + [DataMember] + public bool Icon; + [DataMember] + public bool ResPrefix; + [DataMember] + public bool English; + [DataMember] + public bool Chinese; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeTypeEnum() + { + return __isset.TypeEnum; + } + + public bool ShouldSerializeCategory() + { + return __isset.Category; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeResPrefix() + { + return __isset.ResPrefix; + } + + public bool ShouldSerializeEnglish() + { + return __isset.English; + } + + public bool ShouldSerializeChinese() + { + return __isset.Chinese; + } + + #endregion XmlSerializer support + + public PetHomeDecorateListItem() + { + } + + public PetHomeDecorateListItem DeepCopy() + { + var tmp0 = new PetHomeDecorateListItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.TypeEnum) + { + tmp0.TypeEnum = this.TypeEnum; + } + tmp0.__isset.TypeEnum = this.__isset.TypeEnum; + if(__isset.Category) + { + tmp0.Category = this.Category; + } + tmp0.__isset.Category = this.__isset.Category; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((ResPrefix != null) && __isset.ResPrefix) + { + tmp0.ResPrefix = this.ResPrefix; + } + tmp0.__isset.ResPrefix = this.__isset.ResPrefix; + if((English != null) && __isset.English) + { + tmp0.English = this.English; + } + tmp0.__isset.English = this.__isset.English; + if((Chinese != null) && __isset.Chinese) + { + tmp0.Chinese = this.Chinese; + } + tmp0.__isset.Chinese = this.__isset.Chinese; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + TypeEnum = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Category = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + ResPrefix = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + English = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Chinese = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PetHomeDecorateListItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.TypeEnum) + { + tmp2.Name = "TypeEnum"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(TypeEnum, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Category) + { + tmp2.Name = "Category"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Category, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ResPrefix != null) && __isset.ResPrefix) + { + tmp2.Name = "ResPrefix"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ResPrefix, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((English != null) && __isset.English) + { + tmp2.Name = "English"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(English, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Chinese != null) && __isset.Chinese) + { + tmp2.Name = "Chinese"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Chinese, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetHomeDecorateListItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.TypeEnum == other.__isset.TypeEnum) && ((!__isset.TypeEnum) || (global::System.Object.Equals(TypeEnum, other.TypeEnum)))) + && ((__isset.Category == other.__isset.Category) && ((!__isset.Category) || (global::System.Object.Equals(Category, other.Category)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.ResPrefix == other.__isset.ResPrefix) && ((!__isset.ResPrefix) || (global::System.Object.Equals(ResPrefix, other.ResPrefix)))) + && ((__isset.English == other.__isset.English) && ((!__isset.English) || (global::System.Object.Equals(English, other.English)))) + && ((__isset.Chinese == other.__isset.Chinese) && ((!__isset.Chinese) || (global::System.Object.Equals(Chinese, other.Chinese)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.TypeEnum) + { + hashcode = (hashcode * 397) + TypeEnum.GetHashCode(); + } + if(__isset.Category) + { + hashcode = (hashcode * 397) + Category.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((ResPrefix != null) && __isset.ResPrefix) + { + hashcode = (hashcode * 397) + ResPrefix.GetHashCode(); + } + if((English != null) && __isset.English) + { + hashcode = (hashcode * 397) + English.GetHashCode(); + } + if((Chinese != null) && __isset.Chinese) + { + hashcode = (hashcode * 397) + Chinese.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PetHomeDecorateListItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.TypeEnum) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TypeEnum: "); + TypeEnum.ToString(tmp3); + } + if(__isset.Category) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Category: "); + Category.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((ResPrefix != null) && __isset.ResPrefix) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ResPrefix: "); + ResPrefix.ToString(tmp3); + } + if((English != null) && __isset.English) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("English: "); + English.ToString(tmp3); + } + if((Chinese != null) && __isset.Chinese) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Chinese: "); + Chinese.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateListItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateListItem.cs.meta new file mode 100644 index 0000000..d4ef941 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetHomeDecorateListItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 131cd5cf41e7bad49a2fe34840d43d28 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItem.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItem.Extensions.cs new file mode 100644 index 0000000..202d815 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItem.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PetPlayJoyItemExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItem.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItem.Extensions.cs.meta new file mode 100644 index 0000000..e959524 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItem.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c31ebbde8861e7242a0aad198c7168cc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItem.cs new file mode 100644 index 0000000..16345e1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItem.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetPlayJoyItem : TBase + { + private Dictionary _petplayjoyitems; + + [DataMember(Order = 0)] + public Dictionary Petplayjoyitems + { + get + { + return _petplayjoyitems; + } + set + { + __isset.@petplayjoyitems = true; + this._petplayjoyitems = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @petplayjoyitems; + } + + #region XmlSerializer support + + public bool ShouldSerializePetplayjoyitems() + { + return __isset.@petplayjoyitems; + } + + #endregion XmlSerializer support + + public PetPlayJoyItem() + { + } + + public PetPlayJoyItem DeepCopy() + { + var tmp5 = new PetPlayJoyItem(); + if((Petplayjoyitems != null) && __isset.@petplayjoyitems) + { + tmp5.Petplayjoyitems = this.Petplayjoyitems.DeepCopy(); + } + tmp5.__isset.@petplayjoyitems = this.__isset.@petplayjoyitems; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Petplayjoyitems = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PetPlayJoyItemItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PetPlayJoyItemItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Petplayjoyitems[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PetPlayJoyItem"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Petplayjoyitems != null) && __isset.@petplayjoyitems) + { + tmp11.Name = "petplayjoyitems"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Petplayjoyitems.Count), cancellationToken); + foreach (int _iter12 in Petplayjoyitems.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Petplayjoyitems[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetPlayJoyItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@petplayjoyitems == other.__isset.@petplayjoyitems) && ((!__isset.@petplayjoyitems) || (TCollections.Equals(Petplayjoyitems, other.Petplayjoyitems)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Petplayjoyitems != null) && __isset.@petplayjoyitems) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Petplayjoyitems); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PetPlayJoyItem("); + int tmp14 = 0; + if((Petplayjoyitems != null) && __isset.@petplayjoyitems) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Petplayjoyitems: "); + Petplayjoyitems.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItem.cs.meta new file mode 100644 index 0000000..29f21a4 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d489e7be28a77d24da5a28aed39906a7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItemItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItemItem.cs new file mode 100644 index 0000000..5686d66 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItemItem.cs @@ -0,0 +1,936 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetPlayJoyItemItem : TBase + { + private int _Id; + private int _GroupId; + private int _ItemId; + private string _Icon; + private string _Model; + private double _Scale; + private string _Angle; + private string _GetFrom; + private int _Price; + private int _ReqId; + private int _Exp; + private int _Sort; + private string _Tex2D; + private string _Name; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int GroupId + { + get + { + return _GroupId; + } + set + { + __isset.GroupId = true; + this._GroupId = value; + } + } + + [DataMember(Order = 0)] + public int ItemId + { + get + { + return _ItemId; + } + set + { + __isset.ItemId = true; + this._ItemId = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string Model + { + get + { + return _Model; + } + set + { + __isset.Model = true; + this._Model = value; + } + } + + [DataMember(Order = 0)] + public double Scale + { + get + { + return _Scale; + } + set + { + __isset.Scale = true; + this._Scale = value; + } + } + + [DataMember(Order = 0)] + public string Angle + { + get + { + return _Angle; + } + set + { + __isset.Angle = true; + this._Angle = value; + } + } + + [DataMember(Order = 0)] + public string GetFrom + { + get + { + return _GetFrom; + } + set + { + __isset.GetFrom = true; + this._GetFrom = value; + } + } + + [DataMember(Order = 0)] + public int Price + { + get + { + return _Price; + } + set + { + __isset.Price = true; + this._Price = value; + } + } + + [DataMember(Order = 0)] + public int ReqId + { + get + { + return _ReqId; + } + set + { + __isset.ReqId = true; + this._ReqId = value; + } + } + + [DataMember(Order = 0)] + public int Exp + { + get + { + return _Exp; + } + set + { + __isset.Exp = true; + this._Exp = value; + } + } + + [DataMember(Order = 0)] + public int Sort + { + get + { + return _Sort; + } + set + { + __isset.Sort = true; + this._Sort = value; + } + } + + [DataMember(Order = 0)] + public string Tex2D + { + get + { + return _Tex2D; + } + set + { + __isset.Tex2D = true; + this._Tex2D = value; + } + } + + [DataMember(Order = 0)] + public string Name + { + get + { + return _Name; + } + set + { + __isset.Name = true; + this._Name = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool GroupId; + [DataMember] + public bool ItemId; + [DataMember] + public bool Icon; + [DataMember] + public bool Model; + [DataMember] + public bool Scale; + [DataMember] + public bool Angle; + [DataMember] + public bool GetFrom; + [DataMember] + public bool Price; + [DataMember] + public bool ReqId; + [DataMember] + public bool Exp; + [DataMember] + public bool Sort; + [DataMember] + public bool Tex2D; + [DataMember] + public bool Name; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeGroupId() + { + return __isset.GroupId; + } + + public bool ShouldSerializeItemId() + { + return __isset.ItemId; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeModel() + { + return __isset.Model; + } + + public bool ShouldSerializeScale() + { + return __isset.Scale; + } + + public bool ShouldSerializeAngle() + { + return __isset.Angle; + } + + public bool ShouldSerializeGetFrom() + { + return __isset.GetFrom; + } + + public bool ShouldSerializePrice() + { + return __isset.Price; + } + + public bool ShouldSerializeReqId() + { + return __isset.ReqId; + } + + public bool ShouldSerializeExp() + { + return __isset.Exp; + } + + public bool ShouldSerializeSort() + { + return __isset.Sort; + } + + public bool ShouldSerializeTex2D() + { + return __isset.Tex2D; + } + + public bool ShouldSerializeName() + { + return __isset.Name; + } + + #endregion XmlSerializer support + + public PetPlayJoyItemItem() + { + } + + public PetPlayJoyItemItem DeepCopy() + { + var tmp0 = new PetPlayJoyItemItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.GroupId) + { + tmp0.GroupId = this.GroupId; + } + tmp0.__isset.GroupId = this.__isset.GroupId; + if(__isset.ItemId) + { + tmp0.ItemId = this.ItemId; + } + tmp0.__isset.ItemId = this.__isset.ItemId; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((Model != null) && __isset.Model) + { + tmp0.Model = this.Model; + } + tmp0.__isset.Model = this.__isset.Model; + if(__isset.Scale) + { + tmp0.Scale = this.Scale; + } + tmp0.__isset.Scale = this.__isset.Scale; + if((Angle != null) && __isset.Angle) + { + tmp0.Angle = this.Angle; + } + tmp0.__isset.Angle = this.__isset.Angle; + if((GetFrom != null) && __isset.GetFrom) + { + tmp0.GetFrom = this.GetFrom; + } + tmp0.__isset.GetFrom = this.__isset.GetFrom; + if(__isset.Price) + { + tmp0.Price = this.Price; + } + tmp0.__isset.Price = this.__isset.Price; + if(__isset.ReqId) + { + tmp0.ReqId = this.ReqId; + } + tmp0.__isset.ReqId = this.__isset.ReqId; + if(__isset.Exp) + { + tmp0.Exp = this.Exp; + } + tmp0.__isset.Exp = this.__isset.Exp; + if(__isset.Sort) + { + tmp0.Sort = this.Sort; + } + tmp0.__isset.Sort = this.__isset.Sort; + if((Tex2D != null) && __isset.Tex2D) + { + tmp0.Tex2D = this.Tex2D; + } + tmp0.__isset.Tex2D = this.__isset.Tex2D; + if((Name != null) && __isset.Name) + { + tmp0.Name = this.Name; + } + tmp0.__isset.Name = this.__isset.Name; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + GroupId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + ItemId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Model = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.Double) + { + Scale = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Angle = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + GetFrom = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I32) + { + Price = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.I32) + { + ReqId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 11: + if (field.Type == TType.I32) + { + Exp = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 12: + if (field.Type == TType.I32) + { + Sort = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 13: + if (field.Type == TType.String) + { + Tex2D = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 14: + if (field.Type == TType.String) + { + Name = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PetPlayJoyItemItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.GroupId) + { + tmp2.Name = "GroupId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(GroupId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ItemId) + { + tmp2.Name = "ItemId"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ItemId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Model != null) && __isset.Model) + { + tmp2.Name = "Model"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Model, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Scale) + { + tmp2.Name = "Scale"; + tmp2.Type = TType.Double; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Scale, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Angle != null) && __isset.Angle) + { + tmp2.Name = "Angle"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Angle, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((GetFrom != null) && __isset.GetFrom) + { + tmp2.Name = "GetFrom"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(GetFrom, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price) + { + tmp2.Name = "Price"; + tmp2.Type = TType.I32; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Price, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ReqId) + { + tmp2.Name = "ReqId"; + tmp2.Type = TType.I32; + tmp2.ID = 10; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ReqId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Exp) + { + tmp2.Name = "Exp"; + tmp2.Type = TType.I32; + tmp2.ID = 11; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Exp, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Sort) + { + tmp2.Name = "Sort"; + tmp2.Type = TType.I32; + tmp2.ID = 12; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Sort, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Tex2D != null) && __isset.Tex2D) + { + tmp2.Name = "Tex2D"; + tmp2.Type = TType.String; + tmp2.ID = 13; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Tex2D, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Name != null) && __isset.Name) + { + tmp2.Name = "Name"; + tmp2.Type = TType.String; + tmp2.ID = 14; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetPlayJoyItemItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.GroupId == other.__isset.GroupId) && ((!__isset.GroupId) || (global::System.Object.Equals(GroupId, other.GroupId)))) + && ((__isset.ItemId == other.__isset.ItemId) && ((!__isset.ItemId) || (global::System.Object.Equals(ItemId, other.ItemId)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Model == other.__isset.Model) && ((!__isset.Model) || (global::System.Object.Equals(Model, other.Model)))) + && ((__isset.Scale == other.__isset.Scale) && ((!__isset.Scale) || (global::System.Object.Equals(Scale, other.Scale)))) + && ((__isset.Angle == other.__isset.Angle) && ((!__isset.Angle) || (global::System.Object.Equals(Angle, other.Angle)))) + && ((__isset.GetFrom == other.__isset.GetFrom) && ((!__isset.GetFrom) || (global::System.Object.Equals(GetFrom, other.GetFrom)))) + && ((__isset.Price == other.__isset.Price) && ((!__isset.Price) || (global::System.Object.Equals(Price, other.Price)))) + && ((__isset.ReqId == other.__isset.ReqId) && ((!__isset.ReqId) || (global::System.Object.Equals(ReqId, other.ReqId)))) + && ((__isset.Exp == other.__isset.Exp) && ((!__isset.Exp) || (global::System.Object.Equals(Exp, other.Exp)))) + && ((__isset.Sort == other.__isset.Sort) && ((!__isset.Sort) || (global::System.Object.Equals(Sort, other.Sort)))) + && ((__isset.Tex2D == other.__isset.Tex2D) && ((!__isset.Tex2D) || (global::System.Object.Equals(Tex2D, other.Tex2D)))) + && ((__isset.Name == other.__isset.Name) && ((!__isset.Name) || (global::System.Object.Equals(Name, other.Name)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.GroupId) + { + hashcode = (hashcode * 397) + GroupId.GetHashCode(); + } + if(__isset.ItemId) + { + hashcode = (hashcode * 397) + ItemId.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((Model != null) && __isset.Model) + { + hashcode = (hashcode * 397) + Model.GetHashCode(); + } + if(__isset.Scale) + { + hashcode = (hashcode * 397) + Scale.GetHashCode(); + } + if((Angle != null) && __isset.Angle) + { + hashcode = (hashcode * 397) + Angle.GetHashCode(); + } + if((GetFrom != null) && __isset.GetFrom) + { + hashcode = (hashcode * 397) + GetFrom.GetHashCode(); + } + if(__isset.Price) + { + hashcode = (hashcode * 397) + Price.GetHashCode(); + } + if(__isset.ReqId) + { + hashcode = (hashcode * 397) + ReqId.GetHashCode(); + } + if(__isset.Exp) + { + hashcode = (hashcode * 397) + Exp.GetHashCode(); + } + if(__isset.Sort) + { + hashcode = (hashcode * 397) + Sort.GetHashCode(); + } + if((Tex2D != null) && __isset.Tex2D) + { + hashcode = (hashcode * 397) + Tex2D.GetHashCode(); + } + if((Name != null) && __isset.Name) + { + hashcode = (hashcode * 397) + Name.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PetPlayJoyItemItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.GroupId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GroupId: "); + GroupId.ToString(tmp3); + } + if(__isset.ItemId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemId: "); + ItemId.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((Model != null) && __isset.Model) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Model: "); + Model.ToString(tmp3); + } + if(__isset.Scale) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Scale: "); + Scale.ToString(tmp3); + } + if((Angle != null) && __isset.Angle) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Angle: "); + Angle.ToString(tmp3); + } + if((GetFrom != null) && __isset.GetFrom) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GetFrom: "); + GetFrom.ToString(tmp3); + } + if(__isset.Price) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price: "); + Price.ToString(tmp3); + } + if(__isset.ReqId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ReqId: "); + ReqId.ToString(tmp3); + } + if(__isset.Exp) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Exp: "); + Exp.ToString(tmp3); + } + if(__isset.Sort) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Sort: "); + Sort.ToString(tmp3); + } + if((Tex2D != null) && __isset.Tex2D) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Tex2D: "); + Tex2D.ToString(tmp3); + } + if((Name != null) && __isset.Name) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Name: "); + Name.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItemItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItemItem.cs.meta new file mode 100644 index 0000000..9c87158 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetPlayJoyItemItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a3e2805d03fd867468fc23ca49a28512 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfg.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfg.Extensions.cs new file mode 100644 index 0000000..d49f405 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfg.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PetRoomUnlockCfgExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfg.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfg.Extensions.cs.meta new file mode 100644 index 0000000..8c10eed --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfg.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 99c18ed952b8ea342b9c5fed540913eb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfg.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfg.cs new file mode 100644 index 0000000..2d84ab1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfg.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetRoomUnlockCfg : TBase + { + private Dictionary _petroomunlockcfgs; + + [DataMember(Order = 0)] + public Dictionary Petroomunlockcfgs + { + get + { + return _petroomunlockcfgs; + } + set + { + __isset.@petroomunlockcfgs = true; + this._petroomunlockcfgs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @petroomunlockcfgs; + } + + #region XmlSerializer support + + public bool ShouldSerializePetroomunlockcfgs() + { + return __isset.@petroomunlockcfgs; + } + + #endregion XmlSerializer support + + public PetRoomUnlockCfg() + { + } + + public PetRoomUnlockCfg DeepCopy() + { + var tmp5 = new PetRoomUnlockCfg(); + if((Petroomunlockcfgs != null) && __isset.@petroomunlockcfgs) + { + tmp5.Petroomunlockcfgs = this.Petroomunlockcfgs.DeepCopy(); + } + tmp5.__isset.@petroomunlockcfgs = this.__isset.@petroomunlockcfgs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Petroomunlockcfgs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PetRoomUnlockCfgItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PetRoomUnlockCfgItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Petroomunlockcfgs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PetRoomUnlockCfg"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Petroomunlockcfgs != null) && __isset.@petroomunlockcfgs) + { + tmp11.Name = "petroomunlockcfgs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Petroomunlockcfgs.Count), cancellationToken); + foreach (int _iter12 in Petroomunlockcfgs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Petroomunlockcfgs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetRoomUnlockCfg other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@petroomunlockcfgs == other.__isset.@petroomunlockcfgs) && ((!__isset.@petroomunlockcfgs) || (TCollections.Equals(Petroomunlockcfgs, other.Petroomunlockcfgs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Petroomunlockcfgs != null) && __isset.@petroomunlockcfgs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Petroomunlockcfgs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PetRoomUnlockCfg("); + int tmp14 = 0; + if((Petroomunlockcfgs != null) && __isset.@petroomunlockcfgs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Petroomunlockcfgs: "); + Petroomunlockcfgs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfg.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfg.cs.meta new file mode 100644 index 0000000..d920fae --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 13bc1eb3dfaca434b866af684eb82b73 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfgItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfgItem.cs new file mode 100644 index 0000000..8403afc --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfgItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetRoomUnlockCfgItem : TBase + { + private int _Id; + private int _UnlockPoint; + private string _Icon; + private string _Title; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int UnlockPoint + { + get + { + return _UnlockPoint; + } + set + { + __isset.UnlockPoint = true; + this._UnlockPoint = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string Title + { + get + { + return _Title; + } + set + { + __isset.Title = true; + this._Title = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool UnlockPoint; + [DataMember] + public bool Icon; + [DataMember] + public bool Title; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeUnlockPoint() + { + return __isset.UnlockPoint; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeTitle() + { + return __isset.Title; + } + + #endregion XmlSerializer support + + public PetRoomUnlockCfgItem() + { + } + + public PetRoomUnlockCfgItem DeepCopy() + { + var tmp0 = new PetRoomUnlockCfgItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.UnlockPoint) + { + tmp0.UnlockPoint = this.UnlockPoint; + } + tmp0.__isset.UnlockPoint = this.__isset.UnlockPoint; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((Title != null) && __isset.Title) + { + tmp0.Title = this.Title; + } + tmp0.__isset.Title = this.__isset.Title; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + UnlockPoint = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Title = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PetRoomUnlockCfgItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.UnlockPoint) + { + tmp2.Name = "UnlockPoint"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(UnlockPoint, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Title != null) && __isset.Title) + { + tmp2.Name = "Title"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Title, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetRoomUnlockCfgItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.UnlockPoint == other.__isset.UnlockPoint) && ((!__isset.UnlockPoint) || (global::System.Object.Equals(UnlockPoint, other.UnlockPoint)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.Title == other.__isset.Title) && ((!__isset.Title) || (global::System.Object.Equals(Title, other.Title)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.UnlockPoint) + { + hashcode = (hashcode * 397) + UnlockPoint.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((Title != null) && __isset.Title) + { + hashcode = (hashcode * 397) + Title.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PetRoomUnlockCfgItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.UnlockPoint) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("UnlockPoint: "); + UnlockPoint.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((Title != null) && __isset.Title) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Title: "); + Title.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfgItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfgItem.cs.meta new file mode 100644 index 0000000..87f39bf --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetRoomUnlockCfgItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 825375fa9c768a2469909072f70be562 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItem.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItem.Extensions.cs new file mode 100644 index 0000000..c3fa82c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItem.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PetShopItemExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItem.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItem.Extensions.cs.meta new file mode 100644 index 0000000..cb52a00 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItem.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 7a64f98ccec226b4f8b7a2dffbeeae64 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItem.cs new file mode 100644 index 0000000..9a8ecbe --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItem.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetShopItem : TBase + { + private Dictionary _petshopitems; + + [DataMember(Order = 0)] + public Dictionary Petshopitems + { + get + { + return _petshopitems; + } + set + { + __isset.@petshopitems = true; + this._petshopitems = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @petshopitems; + } + + #region XmlSerializer support + + public bool ShouldSerializePetshopitems() + { + return __isset.@petshopitems; + } + + #endregion XmlSerializer support + + public PetShopItem() + { + } + + public PetShopItem DeepCopy() + { + var tmp5 = new PetShopItem(); + if((Petshopitems != null) && __isset.@petshopitems) + { + tmp5.Petshopitems = this.Petshopitems.DeepCopy(); + } + tmp5.__isset.@petshopitems = this.__isset.@petshopitems; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Petshopitems = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PetShopItemItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PetShopItemItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Petshopitems[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PetShopItem"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Petshopitems != null) && __isset.@petshopitems) + { + tmp11.Name = "petshopitems"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Petshopitems.Count), cancellationToken); + foreach (int _iter12 in Petshopitems.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Petshopitems[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetShopItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@petshopitems == other.__isset.@petshopitems) && ((!__isset.@petshopitems) || (TCollections.Equals(Petshopitems, other.Petshopitems)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Petshopitems != null) && __isset.@petshopitems) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Petshopitems); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PetShopItem("); + int tmp14 = 0; + if((Petshopitems != null) && __isset.@petshopitems) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Petshopitems: "); + Petshopitems.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItem.cs.meta new file mode 100644 index 0000000..f479fd9 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: aa638dd2aedb74b4cb818a684fa6eeff +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItemItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItemItem.cs new file mode 100644 index 0000000..496737e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItemItem.cs @@ -0,0 +1,1164 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PetShopItemItem : TBase + { + private int _Id; + private int _GroupId; + private int _Page; + private int _ItemId; + private string _Icon; + private int _ReqId; + private int _Level; + private string _SellType; + private int _SellPrice; + private int _Mood; + private string _BagItem; + private string _Animation; + private string _MouthPos; + private string _BubbleRes; + private int _Exp; + private int _Cooldown; + private int _Dailystorage; + private string _Name; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int GroupId + { + get + { + return _GroupId; + } + set + { + __isset.GroupId = true; + this._GroupId = value; + } + } + + [DataMember(Order = 0)] + public int Page + { + get + { + return _Page; + } + set + { + __isset.Page = true; + this._Page = value; + } + } + + [DataMember(Order = 0)] + public int ItemId + { + get + { + return _ItemId; + } + set + { + __isset.ItemId = true; + this._ItemId = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public int ReqId + { + get + { + return _ReqId; + } + set + { + __isset.ReqId = true; + this._ReqId = value; + } + } + + [DataMember(Order = 0)] + public int Level + { + get + { + return _Level; + } + set + { + __isset.Level = true; + this._Level = value; + } + } + + [DataMember(Order = 0)] + public string SellType + { + get + { + return _SellType; + } + set + { + __isset.SellType = true; + this._SellType = value; + } + } + + [DataMember(Order = 0)] + public int SellPrice + { + get + { + return _SellPrice; + } + set + { + __isset.SellPrice = true; + this._SellPrice = value; + } + } + + [DataMember(Order = 0)] + public int Mood + { + get + { + return _Mood; + } + set + { + __isset.Mood = true; + this._Mood = value; + } + } + + [DataMember(Order = 0)] + public string BagItem + { + get + { + return _BagItem; + } + set + { + __isset.BagItem = true; + this._BagItem = value; + } + } + + [DataMember(Order = 0)] + public string Animation + { + get + { + return _Animation; + } + set + { + __isset.Animation = true; + this._Animation = value; + } + } + + [DataMember(Order = 0)] + public string MouthPos + { + get + { + return _MouthPos; + } + set + { + __isset.MouthPos = true; + this._MouthPos = value; + } + } + + [DataMember(Order = 0)] + public string BubbleRes + { + get + { + return _BubbleRes; + } + set + { + __isset.BubbleRes = true; + this._BubbleRes = value; + } + } + + [DataMember(Order = 0)] + public int Exp + { + get + { + return _Exp; + } + set + { + __isset.Exp = true; + this._Exp = value; + } + } + + [DataMember(Order = 0)] + public int Cooldown + { + get + { + return _Cooldown; + } + set + { + __isset.Cooldown = true; + this._Cooldown = value; + } + } + + [DataMember(Order = 0)] + public int Dailystorage + { + get + { + return _Dailystorage; + } + set + { + __isset.Dailystorage = true; + this._Dailystorage = value; + } + } + + [DataMember(Order = 0)] + public string Name + { + get + { + return _Name; + } + set + { + __isset.Name = true; + this._Name = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool GroupId; + [DataMember] + public bool Page; + [DataMember] + public bool ItemId; + [DataMember] + public bool Icon; + [DataMember] + public bool ReqId; + [DataMember] + public bool Level; + [DataMember] + public bool SellType; + [DataMember] + public bool SellPrice; + [DataMember] + public bool Mood; + [DataMember] + public bool BagItem; + [DataMember] + public bool Animation; + [DataMember] + public bool MouthPos; + [DataMember] + public bool BubbleRes; + [DataMember] + public bool Exp; + [DataMember] + public bool Cooldown; + [DataMember] + public bool Dailystorage; + [DataMember] + public bool Name; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeGroupId() + { + return __isset.GroupId; + } + + public bool ShouldSerializePage() + { + return __isset.Page; + } + + public bool ShouldSerializeItemId() + { + return __isset.ItemId; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeReqId() + { + return __isset.ReqId; + } + + public bool ShouldSerializeLevel() + { + return __isset.Level; + } + + public bool ShouldSerializeSellType() + { + return __isset.SellType; + } + + public bool ShouldSerializeSellPrice() + { + return __isset.SellPrice; + } + + public bool ShouldSerializeMood() + { + return __isset.Mood; + } + + public bool ShouldSerializeBagItem() + { + return __isset.BagItem; + } + + public bool ShouldSerializeAnimation() + { + return __isset.Animation; + } + + public bool ShouldSerializeMouthPos() + { + return __isset.MouthPos; + } + + public bool ShouldSerializeBubbleRes() + { + return __isset.BubbleRes; + } + + public bool ShouldSerializeExp() + { + return __isset.Exp; + } + + public bool ShouldSerializeCooldown() + { + return __isset.Cooldown; + } + + public bool ShouldSerializeDailystorage() + { + return __isset.Dailystorage; + } + + public bool ShouldSerializeName() + { + return __isset.Name; + } + + #endregion XmlSerializer support + + public PetShopItemItem() + { + } + + public PetShopItemItem DeepCopy() + { + var tmp0 = new PetShopItemItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.GroupId) + { + tmp0.GroupId = this.GroupId; + } + tmp0.__isset.GroupId = this.__isset.GroupId; + if(__isset.Page) + { + tmp0.Page = this.Page; + } + tmp0.__isset.Page = this.__isset.Page; + if(__isset.ItemId) + { + tmp0.ItemId = this.ItemId; + } + tmp0.__isset.ItemId = this.__isset.ItemId; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if(__isset.ReqId) + { + tmp0.ReqId = this.ReqId; + } + tmp0.__isset.ReqId = this.__isset.ReqId; + if(__isset.Level) + { + tmp0.Level = this.Level; + } + tmp0.__isset.Level = this.__isset.Level; + if((SellType != null) && __isset.SellType) + { + tmp0.SellType = this.SellType; + } + tmp0.__isset.SellType = this.__isset.SellType; + if(__isset.SellPrice) + { + tmp0.SellPrice = this.SellPrice; + } + tmp0.__isset.SellPrice = this.__isset.SellPrice; + if(__isset.Mood) + { + tmp0.Mood = this.Mood; + } + tmp0.__isset.Mood = this.__isset.Mood; + if((BagItem != null) && __isset.BagItem) + { + tmp0.BagItem = this.BagItem; + } + tmp0.__isset.BagItem = this.__isset.BagItem; + if((Animation != null) && __isset.Animation) + { + tmp0.Animation = this.Animation; + } + tmp0.__isset.Animation = this.__isset.Animation; + if((MouthPos != null) && __isset.MouthPos) + { + tmp0.MouthPos = this.MouthPos; + } + tmp0.__isset.MouthPos = this.__isset.MouthPos; + if((BubbleRes != null) && __isset.BubbleRes) + { + tmp0.BubbleRes = this.BubbleRes; + } + tmp0.__isset.BubbleRes = this.__isset.BubbleRes; + if(__isset.Exp) + { + tmp0.Exp = this.Exp; + } + tmp0.__isset.Exp = this.__isset.Exp; + if(__isset.Cooldown) + { + tmp0.Cooldown = this.Cooldown; + } + tmp0.__isset.Cooldown = this.__isset.Cooldown; + if(__isset.Dailystorage) + { + tmp0.Dailystorage = this.Dailystorage; + } + tmp0.__isset.Dailystorage = this.__isset.Dailystorage; + if((Name != null) && __isset.Name) + { + tmp0.Name = this.Name; + } + tmp0.__isset.Name = this.__isset.Name; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + GroupId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Page = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + ItemId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I32) + { + ReqId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.I32) + { + Level = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + SellType = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.I32) + { + SellPrice = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.I32) + { + Mood = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 11: + if (field.Type == TType.String) + { + BagItem = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 12: + if (field.Type == TType.String) + { + Animation = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 13: + if (field.Type == TType.String) + { + MouthPos = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 14: + if (field.Type == TType.String) + { + BubbleRes = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 15: + if (field.Type == TType.I32) + { + Exp = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 16: + if (field.Type == TType.I32) + { + Cooldown = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 17: + if (field.Type == TType.I32) + { + Dailystorage = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 18: + if (field.Type == TType.String) + { + Name = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PetShopItemItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.GroupId) + { + tmp2.Name = "GroupId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(GroupId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Page) + { + tmp2.Name = "Page"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Page, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ItemId) + { + tmp2.Name = "ItemId"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ItemId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.ReqId) + { + tmp2.Name = "ReqId"; + tmp2.Type = TType.I32; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(ReqId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Level) + { + tmp2.Name = "Level"; + tmp2.Type = TType.I32; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Level, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((SellType != null) && __isset.SellType) + { + tmp2.Name = "SellType"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(SellType, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SellPrice) + { + tmp2.Name = "SellPrice"; + tmp2.Type = TType.I32; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SellPrice, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Mood) + { + tmp2.Name = "Mood"; + tmp2.Type = TType.I32; + tmp2.ID = 10; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Mood, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((BagItem != null) && __isset.BagItem) + { + tmp2.Name = "BagItem"; + tmp2.Type = TType.String; + tmp2.ID = 11; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(BagItem, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Animation != null) && __isset.Animation) + { + tmp2.Name = "Animation"; + tmp2.Type = TType.String; + tmp2.ID = 12; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Animation, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MouthPos != null) && __isset.MouthPos) + { + tmp2.Name = "MouthPos"; + tmp2.Type = TType.String; + tmp2.ID = 13; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(MouthPos, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((BubbleRes != null) && __isset.BubbleRes) + { + tmp2.Name = "BubbleRes"; + tmp2.Type = TType.String; + tmp2.ID = 14; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(BubbleRes, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Exp) + { + tmp2.Name = "Exp"; + tmp2.Type = TType.I32; + tmp2.ID = 15; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Exp, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Cooldown) + { + tmp2.Name = "Cooldown"; + tmp2.Type = TType.I32; + tmp2.ID = 16; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Cooldown, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Dailystorage) + { + tmp2.Name = "Dailystorage"; + tmp2.Type = TType.I32; + tmp2.ID = 17; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Dailystorage, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Name != null) && __isset.Name) + { + tmp2.Name = "Name"; + tmp2.Type = TType.String; + tmp2.ID = 18; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Name, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PetShopItemItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.GroupId == other.__isset.GroupId) && ((!__isset.GroupId) || (global::System.Object.Equals(GroupId, other.GroupId)))) + && ((__isset.Page == other.__isset.Page) && ((!__isset.Page) || (global::System.Object.Equals(Page, other.Page)))) + && ((__isset.ItemId == other.__isset.ItemId) && ((!__isset.ItemId) || (global::System.Object.Equals(ItemId, other.ItemId)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.ReqId == other.__isset.ReqId) && ((!__isset.ReqId) || (global::System.Object.Equals(ReqId, other.ReqId)))) + && ((__isset.Level == other.__isset.Level) && ((!__isset.Level) || (global::System.Object.Equals(Level, other.Level)))) + && ((__isset.SellType == other.__isset.SellType) && ((!__isset.SellType) || (global::System.Object.Equals(SellType, other.SellType)))) + && ((__isset.SellPrice == other.__isset.SellPrice) && ((!__isset.SellPrice) || (global::System.Object.Equals(SellPrice, other.SellPrice)))) + && ((__isset.Mood == other.__isset.Mood) && ((!__isset.Mood) || (global::System.Object.Equals(Mood, other.Mood)))) + && ((__isset.BagItem == other.__isset.BagItem) && ((!__isset.BagItem) || (global::System.Object.Equals(BagItem, other.BagItem)))) + && ((__isset.Animation == other.__isset.Animation) && ((!__isset.Animation) || (global::System.Object.Equals(Animation, other.Animation)))) + && ((__isset.MouthPos == other.__isset.MouthPos) && ((!__isset.MouthPos) || (global::System.Object.Equals(MouthPos, other.MouthPos)))) + && ((__isset.BubbleRes == other.__isset.BubbleRes) && ((!__isset.BubbleRes) || (global::System.Object.Equals(BubbleRes, other.BubbleRes)))) + && ((__isset.Exp == other.__isset.Exp) && ((!__isset.Exp) || (global::System.Object.Equals(Exp, other.Exp)))) + && ((__isset.Cooldown == other.__isset.Cooldown) && ((!__isset.Cooldown) || (global::System.Object.Equals(Cooldown, other.Cooldown)))) + && ((__isset.Dailystorage == other.__isset.Dailystorage) && ((!__isset.Dailystorage) || (global::System.Object.Equals(Dailystorage, other.Dailystorage)))) + && ((__isset.Name == other.__isset.Name) && ((!__isset.Name) || (global::System.Object.Equals(Name, other.Name)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.GroupId) + { + hashcode = (hashcode * 397) + GroupId.GetHashCode(); + } + if(__isset.Page) + { + hashcode = (hashcode * 397) + Page.GetHashCode(); + } + if(__isset.ItemId) + { + hashcode = (hashcode * 397) + ItemId.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if(__isset.ReqId) + { + hashcode = (hashcode * 397) + ReqId.GetHashCode(); + } + if(__isset.Level) + { + hashcode = (hashcode * 397) + Level.GetHashCode(); + } + if((SellType != null) && __isset.SellType) + { + hashcode = (hashcode * 397) + SellType.GetHashCode(); + } + if(__isset.SellPrice) + { + hashcode = (hashcode * 397) + SellPrice.GetHashCode(); + } + if(__isset.Mood) + { + hashcode = (hashcode * 397) + Mood.GetHashCode(); + } + if((BagItem != null) && __isset.BagItem) + { + hashcode = (hashcode * 397) + BagItem.GetHashCode(); + } + if((Animation != null) && __isset.Animation) + { + hashcode = (hashcode * 397) + Animation.GetHashCode(); + } + if((MouthPos != null) && __isset.MouthPos) + { + hashcode = (hashcode * 397) + MouthPos.GetHashCode(); + } + if((BubbleRes != null) && __isset.BubbleRes) + { + hashcode = (hashcode * 397) + BubbleRes.GetHashCode(); + } + if(__isset.Exp) + { + hashcode = (hashcode * 397) + Exp.GetHashCode(); + } + if(__isset.Cooldown) + { + hashcode = (hashcode * 397) + Cooldown.GetHashCode(); + } + if(__isset.Dailystorage) + { + hashcode = (hashcode * 397) + Dailystorage.GetHashCode(); + } + if((Name != null) && __isset.Name) + { + hashcode = (hashcode * 397) + Name.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PetShopItemItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.GroupId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GroupId: "); + GroupId.ToString(tmp3); + } + if(__isset.Page) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Page: "); + Page.ToString(tmp3); + } + if(__isset.ItemId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemId: "); + ItemId.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if(__isset.ReqId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ReqId: "); + ReqId.ToString(tmp3); + } + if(__isset.Level) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Level: "); + Level.ToString(tmp3); + } + if((SellType != null) && __isset.SellType) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SellType: "); + SellType.ToString(tmp3); + } + if(__isset.SellPrice) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SellPrice: "); + SellPrice.ToString(tmp3); + } + if(__isset.Mood) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Mood: "); + Mood.ToString(tmp3); + } + if((BagItem != null) && __isset.BagItem) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("BagItem: "); + BagItem.ToString(tmp3); + } + if((Animation != null) && __isset.Animation) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Animation: "); + Animation.ToString(tmp3); + } + if((MouthPos != null) && __isset.MouthPos) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MouthPos: "); + MouthPos.ToString(tmp3); + } + if((BubbleRes != null) && __isset.BubbleRes) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("BubbleRes: "); + BubbleRes.ToString(tmp3); + } + if(__isset.Exp) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Exp: "); + Exp.ToString(tmp3); + } + if(__isset.Cooldown) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Cooldown: "); + Cooldown.ToString(tmp3); + } + if(__isset.Dailystorage) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Dailystorage: "); + Dailystorage.ToString(tmp3); + } + if((Name != null) && __isset.Name) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Name: "); + Name.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItemItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItemItem.cs.meta new file mode 100644 index 0000000..bef2be2 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PetShopItemItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0455a41e2f3f86b4399a9f0873c9917b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfg.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfg.Extensions.cs new file mode 100644 index 0000000..0fa3210 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfg.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PlayHomeDecorateCfgExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfg.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfg.Extensions.cs.meta new file mode 100644 index 0000000..be63c2d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfg.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b431eb20108b9224ea7ca3ef38dddf6a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfg.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfg.cs new file mode 100644 index 0000000..d967730 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfg.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PlayHomeDecorateCfg : TBase + { + private Dictionary _playhomedecoratecfgs; + + [DataMember(Order = 0)] + public Dictionary Playhomedecoratecfgs + { + get + { + return _playhomedecoratecfgs; + } + set + { + __isset.@playhomedecoratecfgs = true; + this._playhomedecoratecfgs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @playhomedecoratecfgs; + } + + #region XmlSerializer support + + public bool ShouldSerializePlayhomedecoratecfgs() + { + return __isset.@playhomedecoratecfgs; + } + + #endregion XmlSerializer support + + public PlayHomeDecorateCfg() + { + } + + public PlayHomeDecorateCfg DeepCopy() + { + var tmp5 = new PlayHomeDecorateCfg(); + if((Playhomedecoratecfgs != null) && __isset.@playhomedecoratecfgs) + { + tmp5.Playhomedecoratecfgs = this.Playhomedecoratecfgs.DeepCopy(); + } + tmp5.__isset.@playhomedecoratecfgs = this.__isset.@playhomedecoratecfgs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Playhomedecoratecfgs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PlayHomeDecorateCfgItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PlayHomeDecorateCfgItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Playhomedecoratecfgs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PlayHomeDecorateCfg"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Playhomedecoratecfgs != null) && __isset.@playhomedecoratecfgs) + { + tmp11.Name = "playhomedecoratecfgs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Playhomedecoratecfgs.Count), cancellationToken); + foreach (int _iter12 in Playhomedecoratecfgs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Playhomedecoratecfgs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PlayHomeDecorateCfg other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@playhomedecoratecfgs == other.__isset.@playhomedecoratecfgs) && ((!__isset.@playhomedecoratecfgs) || (TCollections.Equals(Playhomedecoratecfgs, other.Playhomedecoratecfgs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Playhomedecoratecfgs != null) && __isset.@playhomedecoratecfgs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Playhomedecoratecfgs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PlayHomeDecorateCfg("); + int tmp14 = 0; + if((Playhomedecoratecfgs != null) && __isset.@playhomedecoratecfgs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Playhomedecoratecfgs: "); + Playhomedecoratecfgs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfg.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfg.cs.meta new file mode 100644 index 0000000..372e077 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8d84e31928b84ce4ebe5c767e747673c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfgItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfgItem.cs new file mode 100644 index 0000000..fafa5e8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfgItem.cs @@ -0,0 +1,879 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PlayHomeDecorateCfgItem : TBase + { + private int _Id; + private int _TypeEnum; + private int _Category; + private string _Icon; + private string _ResPrefix; + private string _English; + private string _Chinese; + private int _Extra; + private double _SizeScale; + private int _Init; + private string _Tijiaoxian; + private double _TPosY; + private string _GoName; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int TypeEnum + { + get + { + return _TypeEnum; + } + set + { + __isset.TypeEnum = true; + this._TypeEnum = value; + } + } + + [DataMember(Order = 0)] + public int Category + { + get + { + return _Category; + } + set + { + __isset.Category = true; + this._Category = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string ResPrefix + { + get + { + return _ResPrefix; + } + set + { + __isset.ResPrefix = true; + this._ResPrefix = value; + } + } + + [DataMember(Order = 0)] + public string English + { + get + { + return _English; + } + set + { + __isset.English = true; + this._English = value; + } + } + + [DataMember(Order = 0)] + public string Chinese + { + get + { + return _Chinese; + } + set + { + __isset.Chinese = true; + this._Chinese = value; + } + } + + [DataMember(Order = 0)] + public int Extra + { + get + { + return _Extra; + } + set + { + __isset.Extra = true; + this._Extra = value; + } + } + + [DataMember(Order = 0)] + public double SizeScale + { + get + { + return _SizeScale; + } + set + { + __isset.SizeScale = true; + this._SizeScale = value; + } + } + + [DataMember(Order = 0)] + public int Init + { + get + { + return _Init; + } + set + { + __isset.Init = true; + this._Init = value; + } + } + + [DataMember(Order = 0)] + public string Tijiaoxian + { + get + { + return _Tijiaoxian; + } + set + { + __isset.Tijiaoxian = true; + this._Tijiaoxian = value; + } + } + + [DataMember(Order = 0)] + public double TPosY + { + get + { + return _TPosY; + } + set + { + __isset.TPosY = true; + this._TPosY = value; + } + } + + [DataMember(Order = 0)] + public string GoName + { + get + { + return _GoName; + } + set + { + __isset.GoName = true; + this._GoName = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool TypeEnum; + [DataMember] + public bool Category; + [DataMember] + public bool Icon; + [DataMember] + public bool ResPrefix; + [DataMember] + public bool English; + [DataMember] + public bool Chinese; + [DataMember] + public bool Extra; + [DataMember] + public bool SizeScale; + [DataMember] + public bool Init; + [DataMember] + public bool Tijiaoxian; + [DataMember] + public bool TPosY; + [DataMember] + public bool GoName; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeTypeEnum() + { + return __isset.TypeEnum; + } + + public bool ShouldSerializeCategory() + { + return __isset.Category; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeResPrefix() + { + return __isset.ResPrefix; + } + + public bool ShouldSerializeEnglish() + { + return __isset.English; + } + + public bool ShouldSerializeChinese() + { + return __isset.Chinese; + } + + public bool ShouldSerializeExtra() + { + return __isset.Extra; + } + + public bool ShouldSerializeSizeScale() + { + return __isset.SizeScale; + } + + public bool ShouldSerializeInit() + { + return __isset.Init; + } + + public bool ShouldSerializeTijiaoxian() + { + return __isset.Tijiaoxian; + } + + public bool ShouldSerializeTPosY() + { + return __isset.TPosY; + } + + public bool ShouldSerializeGoName() + { + return __isset.GoName; + } + + #endregion XmlSerializer support + + public PlayHomeDecorateCfgItem() + { + } + + public PlayHomeDecorateCfgItem DeepCopy() + { + var tmp0 = new PlayHomeDecorateCfgItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.TypeEnum) + { + tmp0.TypeEnum = this.TypeEnum; + } + tmp0.__isset.TypeEnum = this.__isset.TypeEnum; + if(__isset.Category) + { + tmp0.Category = this.Category; + } + tmp0.__isset.Category = this.__isset.Category; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((ResPrefix != null) && __isset.ResPrefix) + { + tmp0.ResPrefix = this.ResPrefix; + } + tmp0.__isset.ResPrefix = this.__isset.ResPrefix; + if((English != null) && __isset.English) + { + tmp0.English = this.English; + } + tmp0.__isset.English = this.__isset.English; + if((Chinese != null) && __isset.Chinese) + { + tmp0.Chinese = this.Chinese; + } + tmp0.__isset.Chinese = this.__isset.Chinese; + if(__isset.Extra) + { + tmp0.Extra = this.Extra; + } + tmp0.__isset.Extra = this.__isset.Extra; + if(__isset.SizeScale) + { + tmp0.SizeScale = this.SizeScale; + } + tmp0.__isset.SizeScale = this.__isset.SizeScale; + if(__isset.Init) + { + tmp0.Init = this.Init; + } + tmp0.__isset.Init = this.__isset.Init; + if((Tijiaoxian != null) && __isset.Tijiaoxian) + { + tmp0.Tijiaoxian = this.Tijiaoxian; + } + tmp0.__isset.Tijiaoxian = this.__isset.Tijiaoxian; + if(__isset.TPosY) + { + tmp0.TPosY = this.TPosY; + } + tmp0.__isset.TPosY = this.__isset.TPosY; + if((GoName != null) && __isset.GoName) + { + tmp0.GoName = this.GoName; + } + tmp0.__isset.GoName = this.__isset.GoName; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + TypeEnum = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Category = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + ResPrefix = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + English = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Chinese = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.I32) + { + Extra = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 9: + if (field.Type == TType.Double) + { + SizeScale = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 10: + if (field.Type == TType.I32) + { + Init = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 11: + if (field.Type == TType.String) + { + Tijiaoxian = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 12: + if (field.Type == TType.Double) + { + TPosY = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 13: + if (field.Type == TType.String) + { + GoName = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PlayHomeDecorateCfgItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.TypeEnum) + { + tmp2.Name = "TypeEnum"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(TypeEnum, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Category) + { + tmp2.Name = "Category"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Category, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ResPrefix != null) && __isset.ResPrefix) + { + tmp2.Name = "ResPrefix"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ResPrefix, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((English != null) && __isset.English) + { + tmp2.Name = "English"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(English, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Chinese != null) && __isset.Chinese) + { + tmp2.Name = "Chinese"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Chinese, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Extra) + { + tmp2.Name = "Extra"; + tmp2.Type = TType.I32; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Extra, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SizeScale) + { + tmp2.Name = "SizeScale"; + tmp2.Type = TType.Double; + tmp2.ID = 9; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(SizeScale, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Init) + { + tmp2.Name = "Init"; + tmp2.Type = TType.I32; + tmp2.ID = 10; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Init, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Tijiaoxian != null) && __isset.Tijiaoxian) + { + tmp2.Name = "Tijiaoxian"; + tmp2.Type = TType.String; + tmp2.ID = 11; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Tijiaoxian, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.TPosY) + { + tmp2.Name = "TPosY"; + tmp2.Type = TType.Double; + tmp2.ID = 12; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(TPosY, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((GoName != null) && __isset.GoName) + { + tmp2.Name = "GoName"; + tmp2.Type = TType.String; + tmp2.ID = 13; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(GoName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PlayHomeDecorateCfgItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.TypeEnum == other.__isset.TypeEnum) && ((!__isset.TypeEnum) || (global::System.Object.Equals(TypeEnum, other.TypeEnum)))) + && ((__isset.Category == other.__isset.Category) && ((!__isset.Category) || (global::System.Object.Equals(Category, other.Category)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.ResPrefix == other.__isset.ResPrefix) && ((!__isset.ResPrefix) || (global::System.Object.Equals(ResPrefix, other.ResPrefix)))) + && ((__isset.English == other.__isset.English) && ((!__isset.English) || (global::System.Object.Equals(English, other.English)))) + && ((__isset.Chinese == other.__isset.Chinese) && ((!__isset.Chinese) || (global::System.Object.Equals(Chinese, other.Chinese)))) + && ((__isset.Extra == other.__isset.Extra) && ((!__isset.Extra) || (global::System.Object.Equals(Extra, other.Extra)))) + && ((__isset.SizeScale == other.__isset.SizeScale) && ((!__isset.SizeScale) || (global::System.Object.Equals(SizeScale, other.SizeScale)))) + && ((__isset.Init == other.__isset.Init) && ((!__isset.Init) || (global::System.Object.Equals(Init, other.Init)))) + && ((__isset.Tijiaoxian == other.__isset.Tijiaoxian) && ((!__isset.Tijiaoxian) || (global::System.Object.Equals(Tijiaoxian, other.Tijiaoxian)))) + && ((__isset.TPosY == other.__isset.TPosY) && ((!__isset.TPosY) || (global::System.Object.Equals(TPosY, other.TPosY)))) + && ((__isset.GoName == other.__isset.GoName) && ((!__isset.GoName) || (global::System.Object.Equals(GoName, other.GoName)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.TypeEnum) + { + hashcode = (hashcode * 397) + TypeEnum.GetHashCode(); + } + if(__isset.Category) + { + hashcode = (hashcode * 397) + Category.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((ResPrefix != null) && __isset.ResPrefix) + { + hashcode = (hashcode * 397) + ResPrefix.GetHashCode(); + } + if((English != null) && __isset.English) + { + hashcode = (hashcode * 397) + English.GetHashCode(); + } + if((Chinese != null) && __isset.Chinese) + { + hashcode = (hashcode * 397) + Chinese.GetHashCode(); + } + if(__isset.Extra) + { + hashcode = (hashcode * 397) + Extra.GetHashCode(); + } + if(__isset.SizeScale) + { + hashcode = (hashcode * 397) + SizeScale.GetHashCode(); + } + if(__isset.Init) + { + hashcode = (hashcode * 397) + Init.GetHashCode(); + } + if((Tijiaoxian != null) && __isset.Tijiaoxian) + { + hashcode = (hashcode * 397) + Tijiaoxian.GetHashCode(); + } + if(__isset.TPosY) + { + hashcode = (hashcode * 397) + TPosY.GetHashCode(); + } + if((GoName != null) && __isset.GoName) + { + hashcode = (hashcode * 397) + GoName.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PlayHomeDecorateCfgItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.TypeEnum) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TypeEnum: "); + TypeEnum.ToString(tmp3); + } + if(__isset.Category) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Category: "); + Category.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((ResPrefix != null) && __isset.ResPrefix) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ResPrefix: "); + ResPrefix.ToString(tmp3); + } + if((English != null) && __isset.English) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("English: "); + English.ToString(tmp3); + } + if((Chinese != null) && __isset.Chinese) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Chinese: "); + Chinese.ToString(tmp3); + } + if(__isset.Extra) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Extra: "); + Extra.ToString(tmp3); + } + if(__isset.SizeScale) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SizeScale: "); + SizeScale.ToString(tmp3); + } + if(__isset.Init) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Init: "); + Init.ToString(tmp3); + } + if((Tijiaoxian != null) && __isset.Tijiaoxian) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Tijiaoxian: "); + Tijiaoxian.ToString(tmp3); + } + if(__isset.TPosY) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TPosY: "); + TPosY.ToString(tmp3); + } + if((GoName != null) && __isset.GoName) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("GoName: "); + GoName.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfgItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfgItem.cs.meta new file mode 100644 index 0000000..2b403e4 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PlayHomeDecorateCfgItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: cfee46edc8d6e434a945995a4cfe7084 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPack.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPack.Extensions.cs new file mode 100644 index 0000000..973185c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPack.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class PromotionPackExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPack.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPack.Extensions.cs.meta new file mode 100644 index 0000000..5bc7aff --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPack.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 37dee1f2c1f96564b83ccb26b88765c3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPack.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPack.cs new file mode 100644 index 0000000..e456256 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPack.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PromotionPack : TBase + { + private Dictionary _promotionpacks; + + [DataMember(Order = 0)] + public Dictionary Promotionpacks + { + get + { + return _promotionpacks; + } + set + { + __isset.@promotionpacks = true; + this._promotionpacks = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @promotionpacks; + } + + #region XmlSerializer support + + public bool ShouldSerializePromotionpacks() + { + return __isset.@promotionpacks; + } + + #endregion XmlSerializer support + + public PromotionPack() + { + } + + public PromotionPack DeepCopy() + { + var tmp5 = new PromotionPack(); + if((Promotionpacks != null) && __isset.@promotionpacks) + { + tmp5.Promotionpacks = this.Promotionpacks.DeepCopy(); + } + tmp5.__isset.@promotionpacks = this.__isset.@promotionpacks; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Promotionpacks = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.PromotionPackItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.PromotionPackItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Promotionpacks[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("PromotionPack"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Promotionpacks != null) && __isset.@promotionpacks) + { + tmp11.Name = "promotionpacks"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Promotionpacks.Count), cancellationToken); + foreach (int _iter12 in Promotionpacks.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Promotionpacks[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PromotionPack other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@promotionpacks == other.__isset.@promotionpacks) && ((!__isset.@promotionpacks) || (TCollections.Equals(Promotionpacks, other.Promotionpacks)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Promotionpacks != null) && __isset.@promotionpacks) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Promotionpacks); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("PromotionPack("); + int tmp14 = 0; + if((Promotionpacks != null) && __isset.@promotionpacks) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Promotionpacks: "); + Promotionpacks.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPack.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPack.cs.meta new file mode 100644 index 0000000..6b7f0e6 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPack.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b74f50084adaf71418f869c9918664a2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPackItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPackItem.cs new file mode 100644 index 0000000..3aa9e38 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPackItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class PromotionPackItem : TBase + { + private int _Id; + private string _Bg; + private string _Title; + private string _Tip; + private string _Content; + private double _Price_New; + private double _Price_Old; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Bg + { + get + { + return _Bg; + } + set + { + __isset.Bg = true; + this._Bg = value; + } + } + + [DataMember(Order = 0)] + public string Title + { + get + { + return _Title; + } + set + { + __isset.Title = true; + this._Title = value; + } + } + + [DataMember(Order = 0)] + public string Tip + { + get + { + return _Tip; + } + set + { + __isset.Tip = true; + this._Tip = value; + } + } + + [DataMember(Order = 0)] + public string Content + { + get + { + return _Content; + } + set + { + __isset.Content = true; + this._Content = value; + } + } + + [DataMember(Order = 0)] + public double Price_New + { + get + { + return _Price_New; + } + set + { + __isset.Price_New = true; + this._Price_New = value; + } + } + + [DataMember(Order = 0)] + public double Price_Old + { + get + { + return _Price_Old; + } + set + { + __isset.Price_Old = true; + this._Price_Old = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Bg; + [DataMember] + public bool Title; + [DataMember] + public bool Tip; + [DataMember] + public bool Content; + [DataMember] + public bool Price_New; + [DataMember] + public bool Price_Old; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeBg() + { + return __isset.Bg; + } + + public bool ShouldSerializeTitle() + { + return __isset.Title; + } + + public bool ShouldSerializeTip() + { + return __isset.Tip; + } + + public bool ShouldSerializeContent() + { + return __isset.Content; + } + + public bool ShouldSerializePrice_New() + { + return __isset.Price_New; + } + + public bool ShouldSerializePrice_Old() + { + return __isset.Price_Old; + } + + #endregion XmlSerializer support + + public PromotionPackItem() + { + } + + public PromotionPackItem DeepCopy() + { + var tmp0 = new PromotionPackItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Bg != null) && __isset.Bg) + { + tmp0.Bg = this.Bg; + } + tmp0.__isset.Bg = this.__isset.Bg; + if((Title != null) && __isset.Title) + { + tmp0.Title = this.Title; + } + tmp0.__isset.Title = this.__isset.Title; + if((Tip != null) && __isset.Tip) + { + tmp0.Tip = this.Tip; + } + tmp0.__isset.Tip = this.__isset.Tip; + if((Content != null) && __isset.Content) + { + tmp0.Content = this.Content; + } + tmp0.__isset.Content = this.__isset.Content; + if(__isset.Price_New) + { + tmp0.Price_New = this.Price_New; + } + tmp0.__isset.Price_New = this.__isset.Price_New; + if(__isset.Price_Old) + { + tmp0.Price_Old = this.Price_Old; + } + tmp0.__isset.Price_Old = this.__isset.Price_Old; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Bg = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Title = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Tip = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Content = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.Double) + { + Price_New = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.Double) + { + Price_Old = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("PromotionPackItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Bg != null) && __isset.Bg) + { + tmp2.Name = "Bg"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Bg, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Title != null) && __isset.Title) + { + tmp2.Name = "Title"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Title, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Tip != null) && __isset.Tip) + { + tmp2.Name = "Tip"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Tip, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Content != null) && __isset.Content) + { + tmp2.Name = "Content"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Content, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price_New) + { + tmp2.Name = "Price_New"; + tmp2.Type = TType.Double; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price_New, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price_Old) + { + tmp2.Name = "Price_Old"; + tmp2.Type = TType.Double; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price_Old, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is PromotionPackItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Bg == other.__isset.Bg) && ((!__isset.Bg) || (global::System.Object.Equals(Bg, other.Bg)))) + && ((__isset.Title == other.__isset.Title) && ((!__isset.Title) || (global::System.Object.Equals(Title, other.Title)))) + && ((__isset.Tip == other.__isset.Tip) && ((!__isset.Tip) || (global::System.Object.Equals(Tip, other.Tip)))) + && ((__isset.Content == other.__isset.Content) && ((!__isset.Content) || (global::System.Object.Equals(Content, other.Content)))) + && ((__isset.Price_New == other.__isset.Price_New) && ((!__isset.Price_New) || (global::System.Object.Equals(Price_New, other.Price_New)))) + && ((__isset.Price_Old == other.__isset.Price_Old) && ((!__isset.Price_Old) || (global::System.Object.Equals(Price_Old, other.Price_Old)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Bg != null) && __isset.Bg) + { + hashcode = (hashcode * 397) + Bg.GetHashCode(); + } + if((Title != null) && __isset.Title) + { + hashcode = (hashcode * 397) + Title.GetHashCode(); + } + if((Tip != null) && __isset.Tip) + { + hashcode = (hashcode * 397) + Tip.GetHashCode(); + } + if((Content != null) && __isset.Content) + { + hashcode = (hashcode * 397) + Content.GetHashCode(); + } + if(__isset.Price_New) + { + hashcode = (hashcode * 397) + Price_New.GetHashCode(); + } + if(__isset.Price_Old) + { + hashcode = (hashcode * 397) + Price_Old.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("PromotionPackItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Bg != null) && __isset.Bg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Bg: "); + Bg.ToString(tmp3); + } + if((Title != null) && __isset.Title) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Title: "); + Title.ToString(tmp3); + } + if((Tip != null) && __isset.Tip) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Tip: "); + Tip.ToString(tmp3); + } + if((Content != null) && __isset.Content) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Content: "); + Content.ToString(tmp3); + } + if(__isset.Price_New) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price_New: "); + Price_New.ToString(tmp3); + } + if(__isset.Price_Old) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price_Old: "); + Price_Old.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPackItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPackItem.cs.meta new file mode 100644 index 0000000..b56bbd4 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/PromotionPackItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 636979608d7a2ca4c81051677a4635e5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceReward.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceReward.Extensions.cs new file mode 100644 index 0000000..64e297a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceReward.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class RaceRewardExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceReward.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceReward.Extensions.cs.meta new file mode 100644 index 0000000..50ab670 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceReward.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f8afd3dc62047f04aafc8f585dfd3df7 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceReward.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceReward.cs new file mode 100644 index 0000000..fe1da5e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceReward.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class RaceReward : TBase + { + private Dictionary _racerewards; + + [DataMember(Order = 0)] + public Dictionary Racerewards + { + get + { + return _racerewards; + } + set + { + __isset.@racerewards = true; + this._racerewards = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @racerewards; + } + + #region XmlSerializer support + + public bool ShouldSerializeRacerewards() + { + return __isset.@racerewards; + } + + #endregion XmlSerializer support + + public RaceReward() + { + } + + public RaceReward DeepCopy() + { + var tmp5 = new RaceReward(); + if((Racerewards != null) && __isset.@racerewards) + { + tmp5.Racerewards = this.Racerewards.DeepCopy(); + } + tmp5.__isset.@racerewards = this.__isset.@racerewards; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Racerewards = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.RaceRewardItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.RaceRewardItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Racerewards[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("RaceReward"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Racerewards != null) && __isset.@racerewards) + { + tmp11.Name = "racerewards"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Racerewards.Count), cancellationToken); + foreach (int _iter12 in Racerewards.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Racerewards[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is RaceReward other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@racerewards == other.__isset.@racerewards) && ((!__isset.@racerewards) || (TCollections.Equals(Racerewards, other.Racerewards)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Racerewards != null) && __isset.@racerewards) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Racerewards); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("RaceReward("); + int tmp14 = 0; + if((Racerewards != null) && __isset.@racerewards) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Racerewards: "); + Racerewards.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceReward.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceReward.cs.meta new file mode 100644 index 0000000..04f5d36 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: d61250a24f3af0e498958c47097acc3a +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceRewardItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceRewardItem.cs new file mode 100644 index 0000000..a96e448 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceRewardItem.cs @@ -0,0 +1,480 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class RaceRewardItem : TBase + { + private int _Id; + private int _Level; + private int _Way; + private int _Score; + private string _Reward; + private string _LimitReward; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Level + { + get + { + return _Level; + } + set + { + __isset.Level = true; + this._Level = value; + } + } + + [DataMember(Order = 0)] + public int Way + { + get + { + return _Way; + } + set + { + __isset.Way = true; + this._Way = value; + } + } + + [DataMember(Order = 0)] + public int Score + { + get + { + return _Score; + } + set + { + __isset.Score = true; + this._Score = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + [DataMember(Order = 0)] + public string LimitReward + { + get + { + return _LimitReward; + } + set + { + __isset.LimitReward = true; + this._LimitReward = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Level; + [DataMember] + public bool Way; + [DataMember] + public bool Score; + [DataMember] + public bool Reward; + [DataMember] + public bool LimitReward; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeLevel() + { + return __isset.Level; + } + + public bool ShouldSerializeWay() + { + return __isset.Way; + } + + public bool ShouldSerializeScore() + { + return __isset.Score; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + public bool ShouldSerializeLimitReward() + { + return __isset.LimitReward; + } + + #endregion XmlSerializer support + + public RaceRewardItem() + { + } + + public RaceRewardItem DeepCopy() + { + var tmp0 = new RaceRewardItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Level) + { + tmp0.Level = this.Level; + } + tmp0.__isset.Level = this.__isset.Level; + if(__isset.Way) + { + tmp0.Way = this.Way; + } + tmp0.__isset.Way = this.__isset.Way; + if(__isset.Score) + { + tmp0.Score = this.Score; + } + tmp0.__isset.Score = this.__isset.Score; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + if((LimitReward != null) && __isset.LimitReward) + { + tmp0.LimitReward = this.LimitReward; + } + tmp0.__isset.LimitReward = this.__isset.LimitReward; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Level = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Way = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + Score = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + LimitReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("RaceRewardItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Level) + { + tmp2.Name = "Level"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Level, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Way) + { + tmp2.Name = "Way"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Way, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Score) + { + tmp2.Name = "Score"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Score, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((LimitReward != null) && __isset.LimitReward) + { + tmp2.Name = "LimitReward"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(LimitReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is RaceRewardItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Level == other.__isset.Level) && ((!__isset.Level) || (global::System.Object.Equals(Level, other.Level)))) + && ((__isset.Way == other.__isset.Way) && ((!__isset.Way) || (global::System.Object.Equals(Way, other.Way)))) + && ((__isset.Score == other.__isset.Score) && ((!__isset.Score) || (global::System.Object.Equals(Score, other.Score)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))) + && ((__isset.LimitReward == other.__isset.LimitReward) && ((!__isset.LimitReward) || (global::System.Object.Equals(LimitReward, other.LimitReward)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Level) + { + hashcode = (hashcode * 397) + Level.GetHashCode(); + } + if(__isset.Way) + { + hashcode = (hashcode * 397) + Way.GetHashCode(); + } + if(__isset.Score) + { + hashcode = (hashcode * 397) + Score.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + if((LimitReward != null) && __isset.LimitReward) + { + hashcode = (hashcode * 397) + LimitReward.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("RaceRewardItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Level) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Level: "); + Level.ToString(tmp3); + } + if(__isset.Way) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Way: "); + Way.ToString(tmp3); + } + if(__isset.Score) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Score: "); + Score.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + if((LimitReward != null) && __isset.LimitReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("LimitReward: "); + LimitReward.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceRewardItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceRewardItem.cs.meta new file mode 100644 index 0000000..e418d45 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RaceRewardItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 52f44d6327acfd747bc92959e3116540 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankData.Extensions.cs new file mode 100644 index 0000000..1c92ef6 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class RankDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankData.Extensions.cs.meta new file mode 100644 index 0000000..aece371 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 388a6b5fcc4357d48a6545537e01884f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankData.cs new file mode 100644 index 0000000..4164d27 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class RankData : TBase + { + private Dictionary _rankdatas; + + [DataMember(Order = 0)] + public Dictionary Rankdatas + { + get + { + return _rankdatas; + } + set + { + __isset.@rankdatas = true; + this._rankdatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @rankdatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeRankdatas() + { + return __isset.@rankdatas; + } + + #endregion XmlSerializer support + + public RankData() + { + } + + public RankData DeepCopy() + { + var tmp5 = new RankData(); + if((Rankdatas != null) && __isset.@rankdatas) + { + tmp5.Rankdatas = this.Rankdatas.DeepCopy(); + } + tmp5.__isset.@rankdatas = this.__isset.@rankdatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Rankdatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.RankDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.RankDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Rankdatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("RankData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Rankdatas != null) && __isset.@rankdatas) + { + tmp11.Name = "rankdatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Rankdatas.Count), cancellationToken); + foreach (int _iter12 in Rankdatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Rankdatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is RankData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@rankdatas == other.__isset.@rankdatas) && ((!__isset.@rankdatas) || (TCollections.Equals(Rankdatas, other.Rankdatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Rankdatas != null) && __isset.@rankdatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Rankdatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("RankData("); + int tmp14 = 0; + if((Rankdatas != null) && __isset.@rankdatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Rankdatas: "); + Rankdatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankData.cs.meta new file mode 100644 index 0000000..25406d7 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: da45b42abd9aa9c488e556fc994dade1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankDataItem.cs new file mode 100644 index 0000000..819c54a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankDataItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class RankDataItem : TBase + { + private int _Id; + private int _Lv; + private int _Exp; + private string _Reward; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Lv + { + get + { + return _Lv; + } + set + { + __isset.Lv = true; + this._Lv = value; + } + } + + [DataMember(Order = 0)] + public int Exp + { + get + { + return _Exp; + } + set + { + __isset.Exp = true; + this._Exp = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Lv; + [DataMember] + public bool Exp; + [DataMember] + public bool Reward; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeLv() + { + return __isset.Lv; + } + + public bool ShouldSerializeExp() + { + return __isset.Exp; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + #endregion XmlSerializer support + + public RankDataItem() + { + } + + public RankDataItem DeepCopy() + { + var tmp0 = new RankDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Lv) + { + tmp0.Lv = this.Lv; + } + tmp0.__isset.Lv = this.__isset.Lv; + if(__isset.Exp) + { + tmp0.Exp = this.Exp; + } + tmp0.__isset.Exp = this.__isset.Exp; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Lv = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Exp = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("RankDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Lv) + { + tmp2.Name = "Lv"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Lv, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Exp) + { + tmp2.Name = "Exp"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Exp, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is RankDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Lv == other.__isset.Lv) && ((!__isset.Lv) || (global::System.Object.Equals(Lv, other.Lv)))) + && ((__isset.Exp == other.__isset.Exp) && ((!__isset.Exp) || (global::System.Object.Equals(Exp, other.Exp)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Lv) + { + hashcode = (hashcode * 397) + Lv.GetHashCode(); + } + if(__isset.Exp) + { + hashcode = (hashcode * 397) + Exp.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("RankDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Lv) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Lv: "); + Lv.ToString(tmp3); + } + if(__isset.Exp) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Exp: "); + Exp.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankDataItem.cs.meta new file mode 100644 index 0000000..18f513d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RankDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6b9efcc1b3ffe3343aeedcf4d67ac838 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionData.Extensions.cs new file mode 100644 index 0000000..196607b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class RegionDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionData.Extensions.cs.meta new file mode 100644 index 0000000..5aad59f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2f5db6faede41da4ea06cce9571a415e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionData.cs new file mode 100644 index 0000000..93665df --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class RegionData : TBase + { + private Dictionary _regiondatas; + + [DataMember(Order = 0)] + public Dictionary Regiondatas + { + get + { + return _regiondatas; + } + set + { + __isset.@regiondatas = true; + this._regiondatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @regiondatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeRegiondatas() + { + return __isset.@regiondatas; + } + + #endregion XmlSerializer support + + public RegionData() + { + } + + public RegionData DeepCopy() + { + var tmp5 = new RegionData(); + if((Regiondatas != null) && __isset.@regiondatas) + { + tmp5.Regiondatas = this.Regiondatas.DeepCopy(); + } + tmp5.__isset.@regiondatas = this.__isset.@regiondatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Regiondatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.RegionDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.RegionDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Regiondatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("RegionData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Regiondatas != null) && __isset.@regiondatas) + { + tmp11.Name = "regiondatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Regiondatas.Count), cancellationToken); + foreach (int _iter12 in Regiondatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Regiondatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is RegionData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@regiondatas == other.__isset.@regiondatas) && ((!__isset.@regiondatas) || (TCollections.Equals(Regiondatas, other.Regiondatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Regiondatas != null) && __isset.@regiondatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Regiondatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("RegionData("); + int tmp14 = 0; + if((Regiondatas != null) && __isset.@regiondatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Regiondatas: "); + Regiondatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionData.cs.meta new file mode 100644 index 0000000..4c38148 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5ef8970869d7c454f8d91262e2ded4b1 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionDataItem.cs new file mode 100644 index 0000000..8c9c53d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionDataItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class RegionDataItem : TBase + { + private int _Id; + private string _EnglishName; + private string _ChineseName; + private string _CountryCode; + private int _PhoneCode; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string EnglishName + { + get + { + return _EnglishName; + } + set + { + __isset.EnglishName = true; + this._EnglishName = value; + } + } + + [DataMember(Order = 0)] + public string ChineseName + { + get + { + return _ChineseName; + } + set + { + __isset.ChineseName = true; + this._ChineseName = value; + } + } + + [DataMember(Order = 0)] + public string CountryCode + { + get + { + return _CountryCode; + } + set + { + __isset.CountryCode = true; + this._CountryCode = value; + } + } + + [DataMember(Order = 0)] + public int PhoneCode + { + get + { + return _PhoneCode; + } + set + { + __isset.PhoneCode = true; + this._PhoneCode = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool EnglishName; + [DataMember] + public bool ChineseName; + [DataMember] + public bool CountryCode; + [DataMember] + public bool PhoneCode; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeEnglishName() + { + return __isset.EnglishName; + } + + public bool ShouldSerializeChineseName() + { + return __isset.ChineseName; + } + + public bool ShouldSerializeCountryCode() + { + return __isset.CountryCode; + } + + public bool ShouldSerializePhoneCode() + { + return __isset.PhoneCode; + } + + #endregion XmlSerializer support + + public RegionDataItem() + { + } + + public RegionDataItem DeepCopy() + { + var tmp0 = new RegionDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((EnglishName != null) && __isset.EnglishName) + { + tmp0.EnglishName = this.EnglishName; + } + tmp0.__isset.EnglishName = this.__isset.EnglishName; + if((ChineseName != null) && __isset.ChineseName) + { + tmp0.ChineseName = this.ChineseName; + } + tmp0.__isset.ChineseName = this.__isset.ChineseName; + if((CountryCode != null) && __isset.CountryCode) + { + tmp0.CountryCode = this.CountryCode; + } + tmp0.__isset.CountryCode = this.__isset.CountryCode; + if(__isset.PhoneCode) + { + tmp0.PhoneCode = this.PhoneCode; + } + tmp0.__isset.PhoneCode = this.__isset.PhoneCode; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + EnglishName = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + ChineseName = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + CountryCode = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + PhoneCode = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("RegionDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((EnglishName != null) && __isset.EnglishName) + { + tmp2.Name = "EnglishName"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(EnglishName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ChineseName != null) && __isset.ChineseName) + { + tmp2.Name = "ChineseName"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ChineseName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((CountryCode != null) && __isset.CountryCode) + { + tmp2.Name = "CountryCode"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(CountryCode, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.PhoneCode) + { + tmp2.Name = "PhoneCode"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(PhoneCode, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is RegionDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.EnglishName == other.__isset.EnglishName) && ((!__isset.EnglishName) || (global::System.Object.Equals(EnglishName, other.EnglishName)))) + && ((__isset.ChineseName == other.__isset.ChineseName) && ((!__isset.ChineseName) || (global::System.Object.Equals(ChineseName, other.ChineseName)))) + && ((__isset.CountryCode == other.__isset.CountryCode) && ((!__isset.CountryCode) || (global::System.Object.Equals(CountryCode, other.CountryCode)))) + && ((__isset.PhoneCode == other.__isset.PhoneCode) && ((!__isset.PhoneCode) || (global::System.Object.Equals(PhoneCode, other.PhoneCode)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((EnglishName != null) && __isset.EnglishName) + { + hashcode = (hashcode * 397) + EnglishName.GetHashCode(); + } + if((ChineseName != null) && __isset.ChineseName) + { + hashcode = (hashcode * 397) + ChineseName.GetHashCode(); + } + if((CountryCode != null) && __isset.CountryCode) + { + hashcode = (hashcode * 397) + CountryCode.GetHashCode(); + } + if(__isset.PhoneCode) + { + hashcode = (hashcode * 397) + PhoneCode.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("RegionDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((EnglishName != null) && __isset.EnglishName) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("EnglishName: "); + EnglishName.ToString(tmp3); + } + if((ChineseName != null) && __isset.ChineseName) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ChineseName: "); + ChineseName.ToString(tmp3); + } + if((CountryCode != null) && __isset.CountryCode) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("CountryCode: "); + CountryCode.ToString(tmp3); + } + if(__isset.PhoneCode) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PhoneCode: "); + PhoneCode.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionDataItem.cs.meta new file mode 100644 index 0000000..7301fc8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/RegionDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 814c97f8d5d35764e849483eacd613b9 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneData.Extensions.cs new file mode 100644 index 0000000..efbbc59 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class SceneDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneData.Extensions.cs.meta new file mode 100644 index 0000000..57a5e9c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3fd1249bbbd8d6842aedce6cf9064322 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneData.cs new file mode 100644 index 0000000..082a039 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class SceneData : TBase + { + private Dictionary _scenedatas; + + [DataMember(Order = 0)] + public Dictionary Scenedatas + { + get + { + return _scenedatas; + } + set + { + __isset.@scenedatas = true; + this._scenedatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @scenedatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeScenedatas() + { + return __isset.@scenedatas; + } + + #endregion XmlSerializer support + + public SceneData() + { + } + + public SceneData DeepCopy() + { + var tmp5 = new SceneData(); + if((Scenedatas != null) && __isset.@scenedatas) + { + tmp5.Scenedatas = this.Scenedatas.DeepCopy(); + } + tmp5.__isset.@scenedatas = this.__isset.@scenedatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Scenedatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.SceneDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.SceneDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Scenedatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("SceneData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Scenedatas != null) && __isset.@scenedatas) + { + tmp11.Name = "scenedatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Scenedatas.Count), cancellationToken); + foreach (int _iter12 in Scenedatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Scenedatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is SceneData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@scenedatas == other.__isset.@scenedatas) && ((!__isset.@scenedatas) || (TCollections.Equals(Scenedatas, other.Scenedatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Scenedatas != null) && __isset.@scenedatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Scenedatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("SceneData("); + int tmp14 = 0; + if((Scenedatas != null) && __isset.@scenedatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Scenedatas: "); + Scenedatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneData.cs.meta new file mode 100644 index 0000000..90fa679 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5fe73425c22df2c4bb2c43f726bad58f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneDataItem.cs new file mode 100644 index 0000000..cdfeb5f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneDataItem.cs @@ -0,0 +1,480 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class SceneDataItem : TBase + { + private int _Id; + private int _SceneId; + private int _AreaId; + private string _Title; + private string _Icon; + private string _IconGray; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int SceneId + { + get + { + return _SceneId; + } + set + { + __isset.SceneId = true; + this._SceneId = value; + } + } + + [DataMember(Order = 0)] + public int AreaId + { + get + { + return _AreaId; + } + set + { + __isset.AreaId = true; + this._AreaId = value; + } + } + + [DataMember(Order = 0)] + public string Title + { + get + { + return _Title; + } + set + { + __isset.Title = true; + this._Title = value; + } + } + + [DataMember(Order = 0)] + public string Icon + { + get + { + return _Icon; + } + set + { + __isset.Icon = true; + this._Icon = value; + } + } + + [DataMember(Order = 0)] + public string IconGray + { + get + { + return _IconGray; + } + set + { + __isset.IconGray = true; + this._IconGray = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool SceneId; + [DataMember] + public bool AreaId; + [DataMember] + public bool Title; + [DataMember] + public bool Icon; + [DataMember] + public bool IconGray; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeSceneId() + { + return __isset.SceneId; + } + + public bool ShouldSerializeAreaId() + { + return __isset.AreaId; + } + + public bool ShouldSerializeTitle() + { + return __isset.Title; + } + + public bool ShouldSerializeIcon() + { + return __isset.Icon; + } + + public bool ShouldSerializeIconGray() + { + return __isset.IconGray; + } + + #endregion XmlSerializer support + + public SceneDataItem() + { + } + + public SceneDataItem DeepCopy() + { + var tmp0 = new SceneDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.SceneId) + { + tmp0.SceneId = this.SceneId; + } + tmp0.__isset.SceneId = this.__isset.SceneId; + if(__isset.AreaId) + { + tmp0.AreaId = this.AreaId; + } + tmp0.__isset.AreaId = this.__isset.AreaId; + if((Title != null) && __isset.Title) + { + tmp0.Title = this.Title; + } + tmp0.__isset.Title = this.__isset.Title; + if((Icon != null) && __isset.Icon) + { + tmp0.Icon = this.Icon; + } + tmp0.__isset.Icon = this.__isset.Icon; + if((IconGray != null) && __isset.IconGray) + { + tmp0.IconGray = this.IconGray; + } + tmp0.__isset.IconGray = this.__isset.IconGray; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + SceneId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + AreaId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Title = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.String) + { + Icon = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + IconGray = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("SceneDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SceneId) + { + tmp2.Name = "SceneId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SceneId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.AreaId) + { + tmp2.Name = "AreaId"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(AreaId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Title != null) && __isset.Title) + { + tmp2.Name = "Title"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Title, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Icon != null) && __isset.Icon) + { + tmp2.Name = "Icon"; + tmp2.Type = TType.String; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Icon, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((IconGray != null) && __isset.IconGray) + { + tmp2.Name = "IconGray"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(IconGray, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is SceneDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.SceneId == other.__isset.SceneId) && ((!__isset.SceneId) || (global::System.Object.Equals(SceneId, other.SceneId)))) + && ((__isset.AreaId == other.__isset.AreaId) && ((!__isset.AreaId) || (global::System.Object.Equals(AreaId, other.AreaId)))) + && ((__isset.Title == other.__isset.Title) && ((!__isset.Title) || (global::System.Object.Equals(Title, other.Title)))) + && ((__isset.Icon == other.__isset.Icon) && ((!__isset.Icon) || (global::System.Object.Equals(Icon, other.Icon)))) + && ((__isset.IconGray == other.__isset.IconGray) && ((!__isset.IconGray) || (global::System.Object.Equals(IconGray, other.IconGray)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.SceneId) + { + hashcode = (hashcode * 397) + SceneId.GetHashCode(); + } + if(__isset.AreaId) + { + hashcode = (hashcode * 397) + AreaId.GetHashCode(); + } + if((Title != null) && __isset.Title) + { + hashcode = (hashcode * 397) + Title.GetHashCode(); + } + if((Icon != null) && __isset.Icon) + { + hashcode = (hashcode * 397) + Icon.GetHashCode(); + } + if((IconGray != null) && __isset.IconGray) + { + hashcode = (hashcode * 397) + IconGray.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("SceneDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.SceneId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SceneId: "); + SceneId.ToString(tmp3); + } + if(__isset.AreaId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("AreaId: "); + AreaId.ToString(tmp3); + } + if((Title != null) && __isset.Title) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Title: "); + Title.ToString(tmp3); + } + if((Icon != null) && __isset.Icon) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Icon: "); + Icon.ToString(tmp3); + } + if((IconGray != null) && __isset.IconGray) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("IconGray: "); + IconGray.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneDataItem.cs.meta new file mode 100644 index 0000000..6b33a28 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SceneDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 343d51b78f4bdae438b07832cd7c3577 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfg.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfg.Extensions.cs new file mode 100644 index 0000000..c770b3a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfg.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class SevenLoginCfgExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfg.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfg.Extensions.cs.meta new file mode 100644 index 0000000..29e89dc --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfg.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c0810a712c85cbf48bf3b008030db4c5 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfg.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfg.cs new file mode 100644 index 0000000..a2dbf27 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfg.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class SevenLoginCfg : TBase + { + private Dictionary _sevenlogincfgs; + + [DataMember(Order = 0)] + public Dictionary Sevenlogincfgs + { + get + { + return _sevenlogincfgs; + } + set + { + __isset.@sevenlogincfgs = true; + this._sevenlogincfgs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @sevenlogincfgs; + } + + #region XmlSerializer support + + public bool ShouldSerializeSevenlogincfgs() + { + return __isset.@sevenlogincfgs; + } + + #endregion XmlSerializer support + + public SevenLoginCfg() + { + } + + public SevenLoginCfg DeepCopy() + { + var tmp5 = new SevenLoginCfg(); + if((Sevenlogincfgs != null) && __isset.@sevenlogincfgs) + { + tmp5.Sevenlogincfgs = this.Sevenlogincfgs.DeepCopy(); + } + tmp5.__isset.@sevenlogincfgs = this.__isset.@sevenlogincfgs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Sevenlogincfgs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.SevenLoginCfgItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.SevenLoginCfgItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Sevenlogincfgs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("SevenLoginCfg"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Sevenlogincfgs != null) && __isset.@sevenlogincfgs) + { + tmp11.Name = "sevenlogincfgs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Sevenlogincfgs.Count), cancellationToken); + foreach (int _iter12 in Sevenlogincfgs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Sevenlogincfgs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is SevenLoginCfg other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@sevenlogincfgs == other.__isset.@sevenlogincfgs) && ((!__isset.@sevenlogincfgs) || (TCollections.Equals(Sevenlogincfgs, other.Sevenlogincfgs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Sevenlogincfgs != null) && __isset.@sevenlogincfgs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Sevenlogincfgs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("SevenLoginCfg("); + int tmp14 = 0; + if((Sevenlogincfgs != null) && __isset.@sevenlogincfgs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Sevenlogincfgs: "); + Sevenlogincfgs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfg.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfg.cs.meta new file mode 100644 index 0000000..d4137b6 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5842832a8f258ff4695d37d0f4434ecd +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfgItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfgItem.cs new file mode 100644 index 0000000..c06dcb7 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfgItem.cs @@ -0,0 +1,309 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class SevenLoginCfgItem : TBase + { + private int _Id; + private string _RewardIds; + private string _RewardCnt; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string RewardIds + { + get + { + return _RewardIds; + } + set + { + __isset.RewardIds = true; + this._RewardIds = value; + } + } + + [DataMember(Order = 0)] + public string RewardCnt + { + get + { + return _RewardCnt; + } + set + { + __isset.RewardCnt = true; + this._RewardCnt = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool RewardIds; + [DataMember] + public bool RewardCnt; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeRewardIds() + { + return __isset.RewardIds; + } + + public bool ShouldSerializeRewardCnt() + { + return __isset.RewardCnt; + } + + #endregion XmlSerializer support + + public SevenLoginCfgItem() + { + } + + public SevenLoginCfgItem DeepCopy() + { + var tmp0 = new SevenLoginCfgItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((RewardIds != null) && __isset.RewardIds) + { + tmp0.RewardIds = this.RewardIds; + } + tmp0.__isset.RewardIds = this.__isset.RewardIds; + if((RewardCnt != null) && __isset.RewardCnt) + { + tmp0.RewardCnt = this.RewardCnt; + } + tmp0.__isset.RewardCnt = this.__isset.RewardCnt; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + RewardIds = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + RewardCnt = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("SevenLoginCfgItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardIds != null) && __isset.RewardIds) + { + tmp2.Name = "RewardIds"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardIds, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + tmp2.Name = "RewardCnt"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardCnt, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is SevenLoginCfgItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.RewardIds == other.__isset.RewardIds) && ((!__isset.RewardIds) || (global::System.Object.Equals(RewardIds, other.RewardIds)))) + && ((__isset.RewardCnt == other.__isset.RewardCnt) && ((!__isset.RewardCnt) || (global::System.Object.Equals(RewardCnt, other.RewardCnt)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((RewardIds != null) && __isset.RewardIds) + { + hashcode = (hashcode * 397) + RewardIds.GetHashCode(); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + hashcode = (hashcode * 397) + RewardCnt.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("SevenLoginCfgItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((RewardIds != null) && __isset.RewardIds) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardIds: "); + RewardIds.ToString(tmp3); + } + if((RewardCnt != null) && __isset.RewardCnt) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardCnt: "); + RewardCnt.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfgItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfgItem.cs.meta new file mode 100644 index 0000000..496c3ae --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SevenLoginCfgItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8947eb7718ea0cb41a90b51b887f7060 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItem.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItem.Extensions.cs new file mode 100644 index 0000000..fbadc9b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItem.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class ShopItemExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItem.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItem.Extensions.cs.meta new file mode 100644 index 0000000..be85fe7 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItem.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2d58466784df1804a875bc4a67b1a80f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItem.cs new file mode 100644 index 0000000..aea9b60 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItem.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ShopItem : TBase + { + private Dictionary _shopitems; + + [DataMember(Order = 0)] + public Dictionary Shopitems + { + get + { + return _shopitems; + } + set + { + __isset.@shopitems = true; + this._shopitems = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @shopitems; + } + + #region XmlSerializer support + + public bool ShouldSerializeShopitems() + { + return __isset.@shopitems; + } + + #endregion XmlSerializer support + + public ShopItem() + { + } + + public ShopItem DeepCopy() + { + var tmp5 = new ShopItem(); + if((Shopitems != null) && __isset.@shopitems) + { + tmp5.Shopitems = this.Shopitems.DeepCopy(); + } + tmp5.__isset.@shopitems = this.__isset.@shopitems; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Shopitems = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.ShopItemItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.ShopItemItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Shopitems[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("ShopItem"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Shopitems != null) && __isset.@shopitems) + { + tmp11.Name = "shopitems"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Shopitems.Count), cancellationToken); + foreach (int _iter12 in Shopitems.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Shopitems[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ShopItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@shopitems == other.__isset.@shopitems) && ((!__isset.@shopitems) || (TCollections.Equals(Shopitems, other.Shopitems)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Shopitems != null) && __isset.@shopitems) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Shopitems); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("ShopItem("); + int tmp14 = 0; + if((Shopitems != null) && __isset.@shopitems) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Shopitems: "); + Shopitems.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItem.cs.meta new file mode 100644 index 0000000..272f963 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b2cbf016540f5d64d857e5b0a29d27be +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItemItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItemItem.cs new file mode 100644 index 0000000..46f1ce1 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItemItem.cs @@ -0,0 +1,594 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ShopItemItem : TBase + { + private int _Id; + private string _Group; + private string _ObjId; + private string _SellType; + private double _SellPrice; + private int _TotalCount; + private int _MoreCount; + private string _MoreTip; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Group + { + get + { + return _Group; + } + set + { + __isset.@Group = true; + this._Group = value; + } + } + + [DataMember(Order = 0)] + public string ObjId + { + get + { + return _ObjId; + } + set + { + __isset.ObjId = true; + this._ObjId = value; + } + } + + [DataMember(Order = 0)] + public string SellType + { + get + { + return _SellType; + } + set + { + __isset.SellType = true; + this._SellType = value; + } + } + + [DataMember(Order = 0)] + public double SellPrice + { + get + { + return _SellPrice; + } + set + { + __isset.SellPrice = true; + this._SellPrice = value; + } + } + + [DataMember(Order = 0)] + public int TotalCount + { + get + { + return _TotalCount; + } + set + { + __isset.TotalCount = true; + this._TotalCount = value; + } + } + + [DataMember(Order = 0)] + public int MoreCount + { + get + { + return _MoreCount; + } + set + { + __isset.MoreCount = true; + this._MoreCount = value; + } + } + + [DataMember(Order = 0)] + public string MoreTip + { + get + { + return _MoreTip; + } + set + { + __isset.MoreTip = true; + this._MoreTip = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool @Group; + [DataMember] + public bool ObjId; + [DataMember] + public bool SellType; + [DataMember] + public bool SellPrice; + [DataMember] + public bool TotalCount; + [DataMember] + public bool MoreCount; + [DataMember] + public bool MoreTip; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeGroup() + { + return __isset.@Group; + } + + public bool ShouldSerializeObjId() + { + return __isset.ObjId; + } + + public bool ShouldSerializeSellType() + { + return __isset.SellType; + } + + public bool ShouldSerializeSellPrice() + { + return __isset.SellPrice; + } + + public bool ShouldSerializeTotalCount() + { + return __isset.TotalCount; + } + + public bool ShouldSerializeMoreCount() + { + return __isset.MoreCount; + } + + public bool ShouldSerializeMoreTip() + { + return __isset.MoreTip; + } + + #endregion XmlSerializer support + + public ShopItemItem() + { + } + + public ShopItemItem DeepCopy() + { + var tmp0 = new ShopItemItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Group != null) && __isset.@Group) + { + tmp0.Group = this.Group; + } + tmp0.__isset.@Group = this.__isset.@Group; + if((ObjId != null) && __isset.ObjId) + { + tmp0.ObjId = this.ObjId; + } + tmp0.__isset.ObjId = this.__isset.ObjId; + if((SellType != null) && __isset.SellType) + { + tmp0.SellType = this.SellType; + } + tmp0.__isset.SellType = this.__isset.SellType; + if(__isset.SellPrice) + { + tmp0.SellPrice = this.SellPrice; + } + tmp0.__isset.SellPrice = this.__isset.SellPrice; + if(__isset.TotalCount) + { + tmp0.TotalCount = this.TotalCount; + } + tmp0.__isset.TotalCount = this.__isset.TotalCount; + if(__isset.MoreCount) + { + tmp0.MoreCount = this.MoreCount; + } + tmp0.__isset.MoreCount = this.__isset.MoreCount; + if((MoreTip != null) && __isset.MoreTip) + { + tmp0.MoreTip = this.MoreTip; + } + tmp0.__isset.MoreTip = this.__isset.MoreTip; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Group = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + ObjId = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + SellType = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.Double) + { + SellPrice = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I32) + { + TotalCount = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.I32) + { + MoreCount = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 8: + if (field.Type == TType.String) + { + MoreTip = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("ShopItemItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Group != null) && __isset.@Group) + { + tmp2.Name = "Group"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Group, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ObjId != null) && __isset.ObjId) + { + tmp2.Name = "ObjId"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ObjId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((SellType != null) && __isset.SellType) + { + tmp2.Name = "SellType"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(SellType, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SellPrice) + { + tmp2.Name = "SellPrice"; + tmp2.Type = TType.Double; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(SellPrice, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.TotalCount) + { + tmp2.Name = "TotalCount"; + tmp2.Type = TType.I32; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(TotalCount, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.MoreCount) + { + tmp2.Name = "MoreCount"; + tmp2.Type = TType.I32; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(MoreCount, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((MoreTip != null) && __isset.MoreTip) + { + tmp2.Name = "MoreTip"; + tmp2.Type = TType.String; + tmp2.ID = 8; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(MoreTip, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ShopItemItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.@Group == other.__isset.@Group) && ((!__isset.@Group) || (global::System.Object.Equals(Group, other.Group)))) + && ((__isset.ObjId == other.__isset.ObjId) && ((!__isset.ObjId) || (global::System.Object.Equals(ObjId, other.ObjId)))) + && ((__isset.SellType == other.__isset.SellType) && ((!__isset.SellType) || (global::System.Object.Equals(SellType, other.SellType)))) + && ((__isset.SellPrice == other.__isset.SellPrice) && ((!__isset.SellPrice) || (global::System.Object.Equals(SellPrice, other.SellPrice)))) + && ((__isset.TotalCount == other.__isset.TotalCount) && ((!__isset.TotalCount) || (global::System.Object.Equals(TotalCount, other.TotalCount)))) + && ((__isset.MoreCount == other.__isset.MoreCount) && ((!__isset.MoreCount) || (global::System.Object.Equals(MoreCount, other.MoreCount)))) + && ((__isset.MoreTip == other.__isset.MoreTip) && ((!__isset.MoreTip) || (global::System.Object.Equals(MoreTip, other.MoreTip)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Group != null) && __isset.@Group) + { + hashcode = (hashcode * 397) + Group.GetHashCode(); + } + if((ObjId != null) && __isset.ObjId) + { + hashcode = (hashcode * 397) + ObjId.GetHashCode(); + } + if((SellType != null) && __isset.SellType) + { + hashcode = (hashcode * 397) + SellType.GetHashCode(); + } + if(__isset.SellPrice) + { + hashcode = (hashcode * 397) + SellPrice.GetHashCode(); + } + if(__isset.TotalCount) + { + hashcode = (hashcode * 397) + TotalCount.GetHashCode(); + } + if(__isset.MoreCount) + { + hashcode = (hashcode * 397) + MoreCount.GetHashCode(); + } + if((MoreTip != null) && __isset.MoreTip) + { + hashcode = (hashcode * 397) + MoreTip.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("ShopItemItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Group != null) && __isset.@Group) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Group: "); + Group.ToString(tmp3); + } + if((ObjId != null) && __isset.ObjId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ObjId: "); + ObjId.ToString(tmp3); + } + if((SellType != null) && __isset.SellType) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SellType: "); + SellType.ToString(tmp3); + } + if(__isset.SellPrice) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SellPrice: "); + SellPrice.ToString(tmp3); + } + if(__isset.TotalCount) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TotalCount: "); + TotalCount.ToString(tmp3); + } + if(__isset.MoreCount) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MoreCount: "); + MoreCount.ToString(tmp3); + } + if((MoreTip != null) && __isset.MoreTip) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MoreTip: "); + MoreTip.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItemItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItemItem.cs.meta new file mode 100644 index 0000000..6b9000d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopItemItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 74af365795fb3994abdb994c96848b61 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPack.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPack.Extensions.cs new file mode 100644 index 0000000..8a836f0 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPack.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class ShopPackExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPack.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPack.Extensions.cs.meta new file mode 100644 index 0000000..2a4564e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPack.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: af99717833397194687c5f97cc83cb6f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPack.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPack.cs new file mode 100644 index 0000000..ff16c64 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPack.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ShopPack : TBase + { + private Dictionary _shoppacks; + + [DataMember(Order = 0)] + public Dictionary Shoppacks + { + get + { + return _shoppacks; + } + set + { + __isset.@shoppacks = true; + this._shoppacks = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @shoppacks; + } + + #region XmlSerializer support + + public bool ShouldSerializeShoppacks() + { + return __isset.@shoppacks; + } + + #endregion XmlSerializer support + + public ShopPack() + { + } + + public ShopPack DeepCopy() + { + var tmp5 = new ShopPack(); + if((Shoppacks != null) && __isset.@shoppacks) + { + tmp5.Shoppacks = this.Shoppacks.DeepCopy(); + } + tmp5.__isset.@shoppacks = this.__isset.@shoppacks; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Shoppacks = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.ShopPackItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.ShopPackItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Shoppacks[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("ShopPack"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Shoppacks != null) && __isset.@shoppacks) + { + tmp11.Name = "shoppacks"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Shoppacks.Count), cancellationToken); + foreach (int _iter12 in Shoppacks.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Shoppacks[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ShopPack other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@shoppacks == other.__isset.@shoppacks) && ((!__isset.@shoppacks) || (TCollections.Equals(Shoppacks, other.Shoppacks)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Shoppacks != null) && __isset.@shoppacks) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Shoppacks); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("ShopPack("); + int tmp14 = 0; + if((Shoppacks != null) && __isset.@shoppacks) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Shoppacks: "); + Shoppacks.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPack.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPack.cs.meta new file mode 100644 index 0000000..723ffca --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPack.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8ec2f9e5b41b6714e83ebbd0502f385b +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPackItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPackItem.cs new file mode 100644 index 0000000..888e2d9 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPackItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ShopPackItem : TBase + { + private int _Id; + private string _Title; + private string _Content; + private double _Price_Old; + private double _Price_New; + private double _Discount; + private int _TotalCount; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Title + { + get + { + return _Title; + } + set + { + __isset.Title = true; + this._Title = value; + } + } + + [DataMember(Order = 0)] + public string Content + { + get + { + return _Content; + } + set + { + __isset.Content = true; + this._Content = value; + } + } + + [DataMember(Order = 0)] + public double Price_Old + { + get + { + return _Price_Old; + } + set + { + __isset.Price_Old = true; + this._Price_Old = value; + } + } + + [DataMember(Order = 0)] + public double Price_New + { + get + { + return _Price_New; + } + set + { + __isset.Price_New = true; + this._Price_New = value; + } + } + + [DataMember(Order = 0)] + public double Discount + { + get + { + return _Discount; + } + set + { + __isset.Discount = true; + this._Discount = value; + } + } + + [DataMember(Order = 0)] + public int TotalCount + { + get + { + return _TotalCount; + } + set + { + __isset.TotalCount = true; + this._TotalCount = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Title; + [DataMember] + public bool Content; + [DataMember] + public bool Price_Old; + [DataMember] + public bool Price_New; + [DataMember] + public bool Discount; + [DataMember] + public bool TotalCount; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeTitle() + { + return __isset.Title; + } + + public bool ShouldSerializeContent() + { + return __isset.Content; + } + + public bool ShouldSerializePrice_Old() + { + return __isset.Price_Old; + } + + public bool ShouldSerializePrice_New() + { + return __isset.Price_New; + } + + public bool ShouldSerializeDiscount() + { + return __isset.Discount; + } + + public bool ShouldSerializeTotalCount() + { + return __isset.TotalCount; + } + + #endregion XmlSerializer support + + public ShopPackItem() + { + } + + public ShopPackItem DeepCopy() + { + var tmp0 = new ShopPackItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Title != null) && __isset.Title) + { + tmp0.Title = this.Title; + } + tmp0.__isset.Title = this.__isset.Title; + if((Content != null) && __isset.Content) + { + tmp0.Content = this.Content; + } + tmp0.__isset.Content = this.__isset.Content; + if(__isset.Price_Old) + { + tmp0.Price_Old = this.Price_Old; + } + tmp0.__isset.Price_Old = this.__isset.Price_Old; + if(__isset.Price_New) + { + tmp0.Price_New = this.Price_New; + } + tmp0.__isset.Price_New = this.__isset.Price_New; + if(__isset.Discount) + { + tmp0.Discount = this.Discount; + } + tmp0.__isset.Discount = this.__isset.Discount; + if(__isset.TotalCount) + { + tmp0.TotalCount = this.TotalCount; + } + tmp0.__isset.TotalCount = this.__isset.TotalCount; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Title = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + Content = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.Double) + { + Price_Old = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.Double) + { + Price_New = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.Double) + { + Discount = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.I32) + { + TotalCount = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("ShopPackItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Title != null) && __isset.Title) + { + tmp2.Name = "Title"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Title, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Content != null) && __isset.Content) + { + tmp2.Name = "Content"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Content, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price_Old) + { + tmp2.Name = "Price_Old"; + tmp2.Type = TType.Double; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price_Old, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Price_New) + { + tmp2.Name = "Price_New"; + tmp2.Type = TType.Double; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Price_New, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Discount) + { + tmp2.Name = "Discount"; + tmp2.Type = TType.Double; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Discount, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.TotalCount) + { + tmp2.Name = "TotalCount"; + tmp2.Type = TType.I32; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(TotalCount, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ShopPackItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Title == other.__isset.Title) && ((!__isset.Title) || (global::System.Object.Equals(Title, other.Title)))) + && ((__isset.Content == other.__isset.Content) && ((!__isset.Content) || (global::System.Object.Equals(Content, other.Content)))) + && ((__isset.Price_Old == other.__isset.Price_Old) && ((!__isset.Price_Old) || (global::System.Object.Equals(Price_Old, other.Price_Old)))) + && ((__isset.Price_New == other.__isset.Price_New) && ((!__isset.Price_New) || (global::System.Object.Equals(Price_New, other.Price_New)))) + && ((__isset.Discount == other.__isset.Discount) && ((!__isset.Discount) || (global::System.Object.Equals(Discount, other.Discount)))) + && ((__isset.TotalCount == other.__isset.TotalCount) && ((!__isset.TotalCount) || (global::System.Object.Equals(TotalCount, other.TotalCount)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Title != null) && __isset.Title) + { + hashcode = (hashcode * 397) + Title.GetHashCode(); + } + if((Content != null) && __isset.Content) + { + hashcode = (hashcode * 397) + Content.GetHashCode(); + } + if(__isset.Price_Old) + { + hashcode = (hashcode * 397) + Price_Old.GetHashCode(); + } + if(__isset.Price_New) + { + hashcode = (hashcode * 397) + Price_New.GetHashCode(); + } + if(__isset.Discount) + { + hashcode = (hashcode * 397) + Discount.GetHashCode(); + } + if(__isset.TotalCount) + { + hashcode = (hashcode * 397) + TotalCount.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("ShopPackItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Title != null) && __isset.Title) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Title: "); + Title.ToString(tmp3); + } + if((Content != null) && __isset.Content) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Content: "); + Content.ToString(tmp3); + } + if(__isset.Price_Old) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price_Old: "); + Price_Old.ToString(tmp3); + } + if(__isset.Price_New) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Price_New: "); + Price_New.ToString(tmp3); + } + if(__isset.Discount) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Discount: "); + Discount.ToString(tmp3); + } + if(__isset.TotalCount) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("TotalCount: "); + TotalCount.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPackItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPackItem.cs.meta new file mode 100644 index 0000000..5a07aa0 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopPackItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f0e1125eb27cb03438680dbc05d6d72f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecial.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecial.Extensions.cs new file mode 100644 index 0000000..cd9f0c9 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecial.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class ShopSpecialExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecial.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecial.Extensions.cs.meta new file mode 100644 index 0000000..c3d7c1d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecial.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 5bac052e061764047bc1573c5d6b92ba +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecial.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecial.cs new file mode 100644 index 0000000..fb44a02 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecial.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ShopSpecial : TBase + { + private Dictionary _shopspecials; + + [DataMember(Order = 0)] + public Dictionary Shopspecials + { + get + { + return _shopspecials; + } + set + { + __isset.@shopspecials = true; + this._shopspecials = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @shopspecials; + } + + #region XmlSerializer support + + public bool ShouldSerializeShopspecials() + { + return __isset.@shopspecials; + } + + #endregion XmlSerializer support + + public ShopSpecial() + { + } + + public ShopSpecial DeepCopy() + { + var tmp5 = new ShopSpecial(); + if((Shopspecials != null) && __isset.@shopspecials) + { + tmp5.Shopspecials = this.Shopspecials.DeepCopy(); + } + tmp5.__isset.@shopspecials = this.__isset.@shopspecials; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Shopspecials = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.ShopSpecialItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.ShopSpecialItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Shopspecials[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("ShopSpecial"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Shopspecials != null) && __isset.@shopspecials) + { + tmp11.Name = "shopspecials"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Shopspecials.Count), cancellationToken); + foreach (int _iter12 in Shopspecials.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Shopspecials[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ShopSpecial other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@shopspecials == other.__isset.@shopspecials) && ((!__isset.@shopspecials) || (TCollections.Equals(Shopspecials, other.Shopspecials)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Shopspecials != null) && __isset.@shopspecials) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Shopspecials); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("ShopSpecial("); + int tmp14 = 0; + if((Shopspecials != null) && __isset.@shopspecials) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Shopspecials: "); + Shopspecials.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecial.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecial.cs.meta new file mode 100644 index 0000000..894e285 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecial.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1985244c6d7350247933cd9c74f5e1c0 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecialItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecialItem.cs new file mode 100644 index 0000000..c1cedc4 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecialItem.cs @@ -0,0 +1,423 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class ShopSpecialItem : TBase + { + private int _Id; + private int _Type; + private int _SortId; + private string _ItemReward; + private double _PayPrice; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int Type + { + get + { + return _Type; + } + set + { + __isset.Type = true; + this._Type = value; + } + } + + [DataMember(Order = 0)] + public int SortId + { + get + { + return _SortId; + } + set + { + __isset.SortId = true; + this._SortId = value; + } + } + + [DataMember(Order = 0)] + public string ItemReward + { + get + { + return _ItemReward; + } + set + { + __isset.ItemReward = true; + this._ItemReward = value; + } + } + + [DataMember(Order = 0)] + public double PayPrice + { + get + { + return _PayPrice; + } + set + { + __isset.PayPrice = true; + this._PayPrice = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Type; + [DataMember] + public bool SortId; + [DataMember] + public bool ItemReward; + [DataMember] + public bool PayPrice; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeType() + { + return __isset.Type; + } + + public bool ShouldSerializeSortId() + { + return __isset.SortId; + } + + public bool ShouldSerializeItemReward() + { + return __isset.ItemReward; + } + + public bool ShouldSerializePayPrice() + { + return __isset.PayPrice; + } + + #endregion XmlSerializer support + + public ShopSpecialItem() + { + } + + public ShopSpecialItem DeepCopy() + { + var tmp0 = new ShopSpecialItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.Type) + { + tmp0.Type = this.Type; + } + tmp0.__isset.Type = this.__isset.Type; + if(__isset.SortId) + { + tmp0.SortId = this.SortId; + } + tmp0.__isset.SortId = this.__isset.SortId; + if((ItemReward != null) && __isset.ItemReward) + { + tmp0.ItemReward = this.ItemReward; + } + tmp0.__isset.ItemReward = this.__isset.ItemReward; + if(__isset.PayPrice) + { + tmp0.PayPrice = this.PayPrice; + } + tmp0.__isset.PayPrice = this.__isset.PayPrice; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + Type = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + SortId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + ItemReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.Double) + { + PayPrice = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("ShopSpecialItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Type) + { + tmp2.Name = "Type"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Type, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SortId) + { + tmp2.Name = "SortId"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SortId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemReward != null) && __isset.ItemReward) + { + tmp2.Name = "ItemReward"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.PayPrice) + { + tmp2.Name = "PayPrice"; + tmp2.Type = TType.Double; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(PayPrice, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is ShopSpecialItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Type == other.__isset.Type) && ((!__isset.Type) || (global::System.Object.Equals(Type, other.Type)))) + && ((__isset.SortId == other.__isset.SortId) && ((!__isset.SortId) || (global::System.Object.Equals(SortId, other.SortId)))) + && ((__isset.ItemReward == other.__isset.ItemReward) && ((!__isset.ItemReward) || (global::System.Object.Equals(ItemReward, other.ItemReward)))) + && ((__isset.PayPrice == other.__isset.PayPrice) && ((!__isset.PayPrice) || (global::System.Object.Equals(PayPrice, other.PayPrice)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.Type) + { + hashcode = (hashcode * 397) + Type.GetHashCode(); + } + if(__isset.SortId) + { + hashcode = (hashcode * 397) + SortId.GetHashCode(); + } + if((ItemReward != null) && __isset.ItemReward) + { + hashcode = (hashcode * 397) + ItemReward.GetHashCode(); + } + if(__isset.PayPrice) + { + hashcode = (hashcode * 397) + PayPrice.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("ShopSpecialItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.Type) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Type: "); + Type.ToString(tmp3); + } + if(__isset.SortId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SortId: "); + SortId.ToString(tmp3); + } + if((ItemReward != null) && __isset.ItemReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemReward: "); + ItemReward.ToString(tmp3); + } + if(__isset.PayPrice) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PayPrice: "); + PayPrice.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecialItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecialItem.cs.meta new file mode 100644 index 0000000..384fecf --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/ShopSpecialItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 9728ba54636027f4abcac81be199fe12 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInData.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInData.Extensions.cs new file mode 100644 index 0000000..e73b089 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInData.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class SignInDataExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInData.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInData.Extensions.cs.meta new file mode 100644 index 0000000..3ae49e8 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInData.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a8a080e42fca60a4aa31c98915917c76 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInData.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInData.cs new file mode 100644 index 0000000..1ab8566 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInData.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class SignInData : TBase + { + private Dictionary _signindatas; + + [DataMember(Order = 0)] + public Dictionary Signindatas + { + get + { + return _signindatas; + } + set + { + __isset.@signindatas = true; + this._signindatas = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @signindatas; + } + + #region XmlSerializer support + + public bool ShouldSerializeSignindatas() + { + return __isset.@signindatas; + } + + #endregion XmlSerializer support + + public SignInData() + { + } + + public SignInData DeepCopy() + { + var tmp5 = new SignInData(); + if((Signindatas != null) && __isset.@signindatas) + { + tmp5.Signindatas = this.Signindatas.DeepCopy(); + } + tmp5.__isset.@signindatas = this.__isset.@signindatas; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Signindatas = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.SignInDataItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.SignInDataItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Signindatas[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("SignInData"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Signindatas != null) && __isset.@signindatas) + { + tmp11.Name = "signindatas"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Signindatas.Count), cancellationToken); + foreach (int _iter12 in Signindatas.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Signindatas[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is SignInData other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@signindatas == other.__isset.@signindatas) && ((!__isset.@signindatas) || (TCollections.Equals(Signindatas, other.Signindatas)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Signindatas != null) && __isset.@signindatas) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Signindatas); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("SignInData("); + int tmp14 = 0; + if((Signindatas != null) && __isset.@signindatas) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Signindatas: "); + Signindatas.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInData.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInData.cs.meta new file mode 100644 index 0000000..f38386c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInData.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 2660b3503b9673f4885113848e4ccf97 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInDataItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInDataItem.cs new file mode 100644 index 0000000..bb36aae --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInDataItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class SignInDataItem : TBase + { + private int _Id; + private int _RewardLv; + private int _SortId; + private string _Reward; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int RewardLv + { + get + { + return _RewardLv; + } + set + { + __isset.RewardLv = true; + this._RewardLv = value; + } + } + + [DataMember(Order = 0)] + public int SortId + { + get + { + return _SortId; + } + set + { + __isset.SortId = true; + this._SortId = value; + } + } + + [DataMember(Order = 0)] + public string Reward + { + get + { + return _Reward; + } + set + { + __isset.Reward = true; + this._Reward = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool RewardLv; + [DataMember] + public bool SortId; + [DataMember] + public bool Reward; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeRewardLv() + { + return __isset.RewardLv; + } + + public bool ShouldSerializeSortId() + { + return __isset.SortId; + } + + public bool ShouldSerializeReward() + { + return __isset.Reward; + } + + #endregion XmlSerializer support + + public SignInDataItem() + { + } + + public SignInDataItem DeepCopy() + { + var tmp0 = new SignInDataItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.RewardLv) + { + tmp0.RewardLv = this.RewardLv; + } + tmp0.__isset.RewardLv = this.__isset.RewardLv; + if(__isset.SortId) + { + tmp0.SortId = this.SortId; + } + tmp0.__isset.SortId = this.__isset.SortId; + if((Reward != null) && __isset.Reward) + { + tmp0.Reward = this.Reward; + } + tmp0.__isset.Reward = this.__isset.Reward; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + RewardLv = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + SortId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Reward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("SignInDataItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.RewardLv) + { + tmp2.Name = "RewardLv"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(RewardLv, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SortId) + { + tmp2.Name = "SortId"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(SortId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Reward != null) && __isset.Reward) + { + tmp2.Name = "Reward"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Reward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is SignInDataItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.RewardLv == other.__isset.RewardLv) && ((!__isset.RewardLv) || (global::System.Object.Equals(RewardLv, other.RewardLv)))) + && ((__isset.SortId == other.__isset.SortId) && ((!__isset.SortId) || (global::System.Object.Equals(SortId, other.SortId)))) + && ((__isset.Reward == other.__isset.Reward) && ((!__isset.Reward) || (global::System.Object.Equals(Reward, other.Reward)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.RewardLv) + { + hashcode = (hashcode * 397) + RewardLv.GetHashCode(); + } + if(__isset.SortId) + { + hashcode = (hashcode * 397) + SortId.GetHashCode(); + } + if((Reward != null) && __isset.Reward) + { + hashcode = (hashcode * 397) + Reward.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("SignInDataItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.RewardLv) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardLv: "); + RewardLv.ToString(tmp3); + } + if(__isset.SortId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SortId: "); + SortId.ToString(tmp3); + } + if((Reward != null) && __isset.Reward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Reward: "); + Reward.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInDataItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInDataItem.cs.meta new file mode 100644 index 0000000..ba0b789 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SignInDataItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: a5ea65c0ab0be3948880fe85e746b8f3 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Sound.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Sound.Extensions.cs new file mode 100644 index 0000000..aba9f9d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Sound.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class SoundExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Sound.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Sound.Extensions.cs.meta new file mode 100644 index 0000000..15badab --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Sound.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0f1c4477be6264c44bc10824f4671d6c +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Sound.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Sound.cs new file mode 100644 index 0000000..ca25a5c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Sound.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class Sound : TBase + { + private Dictionary _sounds; + + [DataMember(Order = 0)] + public Dictionary Sounds + { + get + { + return _sounds; + } + set + { + __isset.@sounds = true; + this._sounds = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @sounds; + } + + #region XmlSerializer support + + public bool ShouldSerializeSounds() + { + return __isset.@sounds; + } + + #endregion XmlSerializer support + + public Sound() + { + } + + public Sound DeepCopy() + { + var tmp5 = new Sound(); + if((Sounds != null) && __isset.@sounds) + { + tmp5.Sounds = this.Sounds.DeepCopy(); + } + tmp5.__isset.@sounds = this.__isset.@sounds; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Sounds = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.SoundItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.SoundItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Sounds[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("Sound"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Sounds != null) && __isset.@sounds) + { + tmp11.Name = "sounds"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Sounds.Count), cancellationToken); + foreach (int _iter12 in Sounds.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Sounds[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is Sound other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@sounds == other.__isset.@sounds) && ((!__isset.@sounds) || (TCollections.Equals(Sounds, other.Sounds)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Sounds != null) && __isset.@sounds) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Sounds); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("Sound("); + int tmp14 = 0; + if((Sounds != null) && __isset.@sounds) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Sounds: "); + Sounds.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Sound.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Sound.cs.meta new file mode 100644 index 0000000..1ffd0bf --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/Sound.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 72def32eac5776242a2ced23bae38491 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SoundItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SoundItem.cs new file mode 100644 index 0000000..9424f43 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SoundItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class SoundItem : TBase + { + private int _Id; + private string _AssetName; + private int _Priority; + private bool _Loop; + private double _Volume; + private double _SpatialBlend; + private double _MaxDistance; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string AssetName + { + get + { + return _AssetName; + } + set + { + __isset.AssetName = true; + this._AssetName = value; + } + } + + [DataMember(Order = 0)] + public int Priority + { + get + { + return _Priority; + } + set + { + __isset.Priority = true; + this._Priority = value; + } + } + + [DataMember(Order = 0)] + public bool Loop + { + get + { + return _Loop; + } + set + { + __isset.Loop = true; + this._Loop = value; + } + } + + [DataMember(Order = 0)] + public double Volume + { + get + { + return _Volume; + } + set + { + __isset.Volume = true; + this._Volume = value; + } + } + + [DataMember(Order = 0)] + public double SpatialBlend + { + get + { + return _SpatialBlend; + } + set + { + __isset.SpatialBlend = true; + this._SpatialBlend = value; + } + } + + [DataMember(Order = 0)] + public double MaxDistance + { + get + { + return _MaxDistance; + } + set + { + __isset.MaxDistance = true; + this._MaxDistance = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool AssetName; + [DataMember] + public bool Priority; + [DataMember] + public bool Loop; + [DataMember] + public bool Volume; + [DataMember] + public bool SpatialBlend; + [DataMember] + public bool MaxDistance; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeAssetName() + { + return __isset.AssetName; + } + + public bool ShouldSerializePriority() + { + return __isset.Priority; + } + + public bool ShouldSerializeLoop() + { + return __isset.Loop; + } + + public bool ShouldSerializeVolume() + { + return __isset.Volume; + } + + public bool ShouldSerializeSpatialBlend() + { + return __isset.SpatialBlend; + } + + public bool ShouldSerializeMaxDistance() + { + return __isset.MaxDistance; + } + + #endregion XmlSerializer support + + public SoundItem() + { + } + + public SoundItem DeepCopy() + { + var tmp0 = new SoundItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((AssetName != null) && __isset.AssetName) + { + tmp0.AssetName = this.AssetName; + } + tmp0.__isset.AssetName = this.__isset.AssetName; + if(__isset.Priority) + { + tmp0.Priority = this.Priority; + } + tmp0.__isset.Priority = this.__isset.Priority; + if(__isset.Loop) + { + tmp0.Loop = this.Loop; + } + tmp0.__isset.Loop = this.__isset.Loop; + if(__isset.Volume) + { + tmp0.Volume = this.Volume; + } + tmp0.__isset.Volume = this.__isset.Volume; + if(__isset.SpatialBlend) + { + tmp0.SpatialBlend = this.SpatialBlend; + } + tmp0.__isset.SpatialBlend = this.__isset.SpatialBlend; + if(__isset.MaxDistance) + { + tmp0.MaxDistance = this.MaxDistance; + } + tmp0.__isset.MaxDistance = this.__isset.MaxDistance; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + AssetName = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Priority = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.Bool) + { + Loop = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.Double) + { + Volume = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.Double) + { + SpatialBlend = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.Double) + { + MaxDistance = await iprot.ReadDoubleAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("SoundItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((AssetName != null) && __isset.AssetName) + { + tmp2.Name = "AssetName"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(AssetName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Priority) + { + tmp2.Name = "Priority"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Priority, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Loop) + { + tmp2.Name = "Loop"; + tmp2.Type = TType.Bool; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteBoolAsync(Loop, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Volume) + { + tmp2.Name = "Volume"; + tmp2.Type = TType.Double; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(Volume, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.SpatialBlend) + { + tmp2.Name = "SpatialBlend"; + tmp2.Type = TType.Double; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(SpatialBlend, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.MaxDistance) + { + tmp2.Name = "MaxDistance"; + tmp2.Type = TType.Double; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteDoubleAsync(MaxDistance, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is SoundItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.AssetName == other.__isset.AssetName) && ((!__isset.AssetName) || (global::System.Object.Equals(AssetName, other.AssetName)))) + && ((__isset.Priority == other.__isset.Priority) && ((!__isset.Priority) || (global::System.Object.Equals(Priority, other.Priority)))) + && ((__isset.Loop == other.__isset.Loop) && ((!__isset.Loop) || (global::System.Object.Equals(Loop, other.Loop)))) + && ((__isset.Volume == other.__isset.Volume) && ((!__isset.Volume) || (global::System.Object.Equals(Volume, other.Volume)))) + && ((__isset.SpatialBlend == other.__isset.SpatialBlend) && ((!__isset.SpatialBlend) || (global::System.Object.Equals(SpatialBlend, other.SpatialBlend)))) + && ((__isset.MaxDistance == other.__isset.MaxDistance) && ((!__isset.MaxDistance) || (global::System.Object.Equals(MaxDistance, other.MaxDistance)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((AssetName != null) && __isset.AssetName) + { + hashcode = (hashcode * 397) + AssetName.GetHashCode(); + } + if(__isset.Priority) + { + hashcode = (hashcode * 397) + Priority.GetHashCode(); + } + if(__isset.Loop) + { + hashcode = (hashcode * 397) + Loop.GetHashCode(); + } + if(__isset.Volume) + { + hashcode = (hashcode * 397) + Volume.GetHashCode(); + } + if(__isset.SpatialBlend) + { + hashcode = (hashcode * 397) + SpatialBlend.GetHashCode(); + } + if(__isset.MaxDistance) + { + hashcode = (hashcode * 397) + MaxDistance.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("SoundItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((AssetName != null) && __isset.AssetName) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("AssetName: "); + AssetName.ToString(tmp3); + } + if(__isset.Priority) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Priority: "); + Priority.ToString(tmp3); + } + if(__isset.Loop) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Loop: "); + Loop.ToString(tmp3); + } + if(__isset.Volume) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Volume: "); + Volume.ToString(tmp3); + } + if(__isset.SpatialBlend) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("SpatialBlend: "); + SpatialBlend.ToString(tmp3); + } + if(__isset.MaxDistance) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MaxDistance: "); + MaxDistance.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SoundItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SoundItem.cs.meta new file mode 100644 index 0000000..6dd91da --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/SoundItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6474b5d6b868f654da32bdaf4d6e8ed2 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMerge.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMerge.Extensions.cs new file mode 100644 index 0000000..24f5062 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMerge.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class StartMergeExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMerge.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMerge.Extensions.cs.meta new file mode 100644 index 0000000..9236564 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMerge.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: c27970fd2cdbc084b9bcce8ddb5503c8 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMerge.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMerge.cs new file mode 100644 index 0000000..02aabb4 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMerge.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class StartMerge : TBase + { + private Dictionary _startmerges; + + [DataMember(Order = 0)] + public Dictionary Startmerges + { + get + { + return _startmerges; + } + set + { + __isset.@startmerges = true; + this._startmerges = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @startmerges; + } + + #region XmlSerializer support + + public bool ShouldSerializeStartmerges() + { + return __isset.@startmerges; + } + + #endregion XmlSerializer support + + public StartMerge() + { + } + + public StartMerge DeepCopy() + { + var tmp5 = new StartMerge(); + if((Startmerges != null) && __isset.@startmerges) + { + tmp5.Startmerges = this.Startmerges.DeepCopy(); + } + tmp5.__isset.@startmerges = this.__isset.@startmerges; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Startmerges = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.StartMergeItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.StartMergeItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Startmerges[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("StartMerge"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Startmerges != null) && __isset.@startmerges) + { + tmp11.Name = "startmerges"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Startmerges.Count), cancellationToken); + foreach (int _iter12 in Startmerges.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Startmerges[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is StartMerge other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@startmerges == other.__isset.@startmerges) && ((!__isset.@startmerges) || (TCollections.Equals(Startmerges, other.Startmerges)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Startmerges != null) && __isset.@startmerges) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Startmerges); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("StartMerge("); + int tmp14 = 0; + if((Startmerges != null) && __isset.@startmerges) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Startmerges: "); + Startmerges.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMerge.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMerge.cs.meta new file mode 100644 index 0000000..fbf9593 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMerge.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: ea20b08e83cb4d64692573f1e2df0e00 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMergeItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMergeItem.cs new file mode 100644 index 0000000..f89f9b5 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMergeItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class StartMergeItem : TBase + { + private int _Id; + private int _MergeId; + private int _Row; + private int _Line; + private int _Lock; + private int _UnlockLv; + private string _Remark; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int MergeId + { + get + { + return _MergeId; + } + set + { + __isset.MergeId = true; + this._MergeId = value; + } + } + + [DataMember(Order = 0)] + public int Row + { + get + { + return _Row; + } + set + { + __isset.Row = true; + this._Row = value; + } + } + + [DataMember(Order = 0)] + public int Line + { + get + { + return _Line; + } + set + { + __isset.Line = true; + this._Line = value; + } + } + + [DataMember(Order = 0)] + public int Lock + { + get + { + return _Lock; + } + set + { + __isset.@Lock = true; + this._Lock = value; + } + } + + [DataMember(Order = 0)] + public int UnlockLv + { + get + { + return _UnlockLv; + } + set + { + __isset.UnlockLv = true; + this._UnlockLv = value; + } + } + + [DataMember(Order = 0)] + public string Remark + { + get + { + return _Remark; + } + set + { + __isset.Remark = true; + this._Remark = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool MergeId; + [DataMember] + public bool Row; + [DataMember] + public bool Line; + [DataMember] + public bool @Lock; + [DataMember] + public bool UnlockLv; + [DataMember] + public bool Remark; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeMergeId() + { + return __isset.MergeId; + } + + public bool ShouldSerializeRow() + { + return __isset.Row; + } + + public bool ShouldSerializeLine() + { + return __isset.Line; + } + + public bool ShouldSerializeLock() + { + return __isset.@Lock; + } + + public bool ShouldSerializeUnlockLv() + { + return __isset.UnlockLv; + } + + public bool ShouldSerializeRemark() + { + return __isset.Remark; + } + + #endregion XmlSerializer support + + public StartMergeItem() + { + } + + public StartMergeItem DeepCopy() + { + var tmp0 = new StartMergeItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.MergeId) + { + tmp0.MergeId = this.MergeId; + } + tmp0.__isset.MergeId = this.__isset.MergeId; + if(__isset.Row) + { + tmp0.Row = this.Row; + } + tmp0.__isset.Row = this.__isset.Row; + if(__isset.Line) + { + tmp0.Line = this.Line; + } + tmp0.__isset.Line = this.__isset.Line; + if(__isset.@Lock) + { + tmp0.Lock = this.Lock; + } + tmp0.__isset.@Lock = this.__isset.@Lock; + if(__isset.UnlockLv) + { + tmp0.UnlockLv = this.UnlockLv; + } + tmp0.__isset.UnlockLv = this.__isset.UnlockLv; + if((Remark != null) && __isset.Remark) + { + tmp0.Remark = this.Remark; + } + tmp0.__isset.Remark = this.__isset.Remark; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + MergeId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Row = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + Line = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + Lock = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I32) + { + UnlockLv = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.String) + { + Remark = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("StartMergeItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.MergeId) + { + tmp2.Name = "MergeId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(MergeId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Row) + { + tmp2.Name = "Row"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Row, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Line) + { + tmp2.Name = "Line"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Line, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.@Lock) + { + tmp2.Name = "Lock"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Lock, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.UnlockLv) + { + tmp2.Name = "UnlockLv"; + tmp2.Type = TType.I32; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(UnlockLv, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Remark != null) && __isset.Remark) + { + tmp2.Name = "Remark"; + tmp2.Type = TType.String; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Remark, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is StartMergeItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.MergeId == other.__isset.MergeId) && ((!__isset.MergeId) || (global::System.Object.Equals(MergeId, other.MergeId)))) + && ((__isset.Row == other.__isset.Row) && ((!__isset.Row) || (global::System.Object.Equals(Row, other.Row)))) + && ((__isset.Line == other.__isset.Line) && ((!__isset.Line) || (global::System.Object.Equals(Line, other.Line)))) + && ((__isset.@Lock == other.__isset.@Lock) && ((!__isset.@Lock) || (global::System.Object.Equals(Lock, other.Lock)))) + && ((__isset.UnlockLv == other.__isset.UnlockLv) && ((!__isset.UnlockLv) || (global::System.Object.Equals(UnlockLv, other.UnlockLv)))) + && ((__isset.Remark == other.__isset.Remark) && ((!__isset.Remark) || (global::System.Object.Equals(Remark, other.Remark)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.MergeId) + { + hashcode = (hashcode * 397) + MergeId.GetHashCode(); + } + if(__isset.Row) + { + hashcode = (hashcode * 397) + Row.GetHashCode(); + } + if(__isset.Line) + { + hashcode = (hashcode * 397) + Line.GetHashCode(); + } + if(__isset.@Lock) + { + hashcode = (hashcode * 397) + Lock.GetHashCode(); + } + if(__isset.UnlockLv) + { + hashcode = (hashcode * 397) + UnlockLv.GetHashCode(); + } + if((Remark != null) && __isset.Remark) + { + hashcode = (hashcode * 397) + Remark.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("StartMergeItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.MergeId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MergeId: "); + MergeId.ToString(tmp3); + } + if(__isset.Row) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Row: "); + Row.ToString(tmp3); + } + if(__isset.Line) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Line: "); + Line.ToString(tmp3); + } + if(__isset.@Lock) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Lock: "); + Lock.ToString(tmp3); + } + if(__isset.UnlockLv) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("UnlockLv: "); + UnlockLv.ToString(tmp3); + } + if((Remark != null) && __isset.Remark) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Remark: "); + Remark.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMergeItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMergeItem.cs.meta new file mode 100644 index 0000000..1c52e3e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartMergeItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: b8df4801ec469ca47a01b1fd502bf5fb +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrder.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrder.Extensions.cs new file mode 100644 index 0000000..a76fb68 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrder.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class StartOrderExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrder.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrder.Extensions.cs.meta new file mode 100644 index 0000000..a478e1d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrder.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1bf56032a7971c54fae3a79959145095 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrder.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrder.cs new file mode 100644 index 0000000..95faa09 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrder.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class StartOrder : TBase + { + private Dictionary _startorders; + + [DataMember(Order = 0)] + public Dictionary Startorders + { + get + { + return _startorders; + } + set + { + __isset.@startorders = true; + this._startorders = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @startorders; + } + + #region XmlSerializer support + + public bool ShouldSerializeStartorders() + { + return __isset.@startorders; + } + + #endregion XmlSerializer support + + public StartOrder() + { + } + + public StartOrder DeepCopy() + { + var tmp5 = new StartOrder(); + if((Startorders != null) && __isset.@startorders) + { + tmp5.Startorders = this.Startorders.DeepCopy(); + } + tmp5.__isset.@startorders = this.__isset.@startorders; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Startorders = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.StartOrderItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.StartOrderItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Startorders[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("StartOrder"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Startorders != null) && __isset.@startorders) + { + tmp11.Name = "startorders"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Startorders.Count), cancellationToken); + foreach (int _iter12 in Startorders.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Startorders[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is StartOrder other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@startorders == other.__isset.@startorders) && ((!__isset.@startorders) || (TCollections.Equals(Startorders, other.Startorders)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Startorders != null) && __isset.@startorders) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Startorders); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("StartOrder("); + int tmp14 = 0; + if((Startorders != null) && __isset.@startorders) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Startorders: "); + Startorders.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrder.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrder.cs.meta new file mode 100644 index 0000000..e76a10d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrder.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: f9f6a840772c4704f88ab09f7d41577d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrderItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrderItem.cs new file mode 100644 index 0000000..33d9fae --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrderItem.cs @@ -0,0 +1,366 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class StartOrderItem : TBase + { + private int _Id; + private string _Merge_id_list; + private int _FillCount; + private string _Break; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string Merge_id_list + { + get + { + return _Merge_id_list; + } + set + { + __isset.Merge_id_list = true; + this._Merge_id_list = value; + } + } + + [DataMember(Order = 0)] + public int FillCount + { + get + { + return _FillCount; + } + set + { + __isset.FillCount = true; + this._FillCount = value; + } + } + + [DataMember(Order = 0)] + public string Break + { + get + { + return _Break; + } + set + { + __isset.@Break = true; + this._Break = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool Merge_id_list; + [DataMember] + public bool FillCount; + [DataMember] + public bool @Break; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeMerge_id_list() + { + return __isset.Merge_id_list; + } + + public bool ShouldSerializeFillCount() + { + return __isset.FillCount; + } + + public bool ShouldSerializeBreak() + { + return __isset.@Break; + } + + #endregion XmlSerializer support + + public StartOrderItem() + { + } + + public StartOrderItem DeepCopy() + { + var tmp0 = new StartOrderItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((Merge_id_list != null) && __isset.Merge_id_list) + { + tmp0.Merge_id_list = this.Merge_id_list; + } + tmp0.__isset.Merge_id_list = this.__isset.Merge_id_list; + if(__isset.FillCount) + { + tmp0.FillCount = this.FillCount; + } + tmp0.__isset.FillCount = this.__isset.FillCount; + if((Break != null) && __isset.@Break) + { + tmp0.Break = this.Break; + } + tmp0.__isset.@Break = this.__isset.@Break; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + Merge_id_list = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + FillCount = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.String) + { + Break = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("StartOrderItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Merge_id_list != null) && __isset.Merge_id_list) + { + tmp2.Name = "Merge_id_list"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Merge_id_list, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.FillCount) + { + tmp2.Name = "FillCount"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(FillCount, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Break != null) && __isset.@Break) + { + tmp2.Name = "Break"; + tmp2.Type = TType.String; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Break, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is StartOrderItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.Merge_id_list == other.__isset.Merge_id_list) && ((!__isset.Merge_id_list) || (global::System.Object.Equals(Merge_id_list, other.Merge_id_list)))) + && ((__isset.FillCount == other.__isset.FillCount) && ((!__isset.FillCount) || (global::System.Object.Equals(FillCount, other.FillCount)))) + && ((__isset.@Break == other.__isset.@Break) && ((!__isset.@Break) || (global::System.Object.Equals(Break, other.Break)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((Merge_id_list != null) && __isset.Merge_id_list) + { + hashcode = (hashcode * 397) + Merge_id_list.GetHashCode(); + } + if(__isset.FillCount) + { + hashcode = (hashcode * 397) + FillCount.GetHashCode(); + } + if((Break != null) && __isset.@Break) + { + hashcode = (hashcode * 397) + Break.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("StartOrderItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((Merge_id_list != null) && __isset.Merge_id_list) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Merge_id_list: "); + Merge_id_list.ToString(tmp3); + } + if(__isset.FillCount) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("FillCount: "); + FillCount.ToString(tmp3); + } + if((Break != null) && __isset.@Break) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Break: "); + Break.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrderItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrderItem.cs.meta new file mode 100644 index 0000000..b5fc27f --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/StartOrderItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0ad5b5a720d57194d84d80c3d7211c1e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfg.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfg.Extensions.cs new file mode 100644 index 0000000..ef6d042 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfg.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class TurnTableCfgExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfg.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfg.Extensions.cs.meta new file mode 100644 index 0000000..377c629 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfg.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 264f80bb5f77fbc4ea853d0d7d56811e +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfg.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfg.cs new file mode 100644 index 0000000..b35e6a4 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfg.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class TurnTableCfg : TBase + { + private Dictionary _turntablecfgs; + + [DataMember(Order = 0)] + public Dictionary Turntablecfgs + { + get + { + return _turntablecfgs; + } + set + { + __isset.@turntablecfgs = true; + this._turntablecfgs = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @turntablecfgs; + } + + #region XmlSerializer support + + public bool ShouldSerializeTurntablecfgs() + { + return __isset.@turntablecfgs; + } + + #endregion XmlSerializer support + + public TurnTableCfg() + { + } + + public TurnTableCfg DeepCopy() + { + var tmp5 = new TurnTableCfg(); + if((Turntablecfgs != null) && __isset.@turntablecfgs) + { + tmp5.Turntablecfgs = this.Turntablecfgs.DeepCopy(); + } + tmp5.__isset.@turntablecfgs = this.__isset.@turntablecfgs; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Turntablecfgs = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.TurnTableCfgItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.TurnTableCfgItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Turntablecfgs[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("TurnTableCfg"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Turntablecfgs != null) && __isset.@turntablecfgs) + { + tmp11.Name = "turntablecfgs"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Turntablecfgs.Count), cancellationToken); + foreach (int _iter12 in Turntablecfgs.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Turntablecfgs[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is TurnTableCfg other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@turntablecfgs == other.__isset.@turntablecfgs) && ((!__isset.@turntablecfgs) || (TCollections.Equals(Turntablecfgs, other.Turntablecfgs)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Turntablecfgs != null) && __isset.@turntablecfgs) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Turntablecfgs); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("TurnTableCfg("); + int tmp14 = 0; + if((Turntablecfgs != null) && __isset.@turntablecfgs) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Turntablecfgs: "); + Turntablecfgs.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfg.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfg.cs.meta new file mode 100644 index 0000000..82e4fbc --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfg.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3324d17348a6a1641881885218dd9cc4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfgItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfgItem.cs new file mode 100644 index 0000000..d229a7e --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfgItem.cs @@ -0,0 +1,252 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class TurnTableCfgItem : TBase + { + private int _Id; + private string _RewardInfo; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string RewardInfo + { + get + { + return _RewardInfo; + } + set + { + __isset.RewardInfo = true; + this._RewardInfo = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool RewardInfo; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeRewardInfo() + { + return __isset.RewardInfo; + } + + #endregion XmlSerializer support + + public TurnTableCfgItem() + { + } + + public TurnTableCfgItem DeepCopy() + { + var tmp0 = new TurnTableCfgItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((RewardInfo != null) && __isset.RewardInfo) + { + tmp0.RewardInfo = this.RewardInfo; + } + tmp0.__isset.RewardInfo = this.__isset.RewardInfo; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + RewardInfo = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("TurnTableCfgItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((RewardInfo != null) && __isset.RewardInfo) + { + tmp2.Name = "RewardInfo"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(RewardInfo, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is TurnTableCfgItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.RewardInfo == other.__isset.RewardInfo) && ((!__isset.RewardInfo) || (global::System.Object.Equals(RewardInfo, other.RewardInfo)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((RewardInfo != null) && __isset.RewardInfo) + { + hashcode = (hashcode * 397) + RewardInfo.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("TurnTableCfgItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((RewardInfo != null) && __isset.RewardInfo) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("RewardInfo: "); + RewardInfo.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfgItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfgItem.cs.meta new file mode 100644 index 0000000..35de97d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/TurnTableCfgItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 72e63f302b2fc1648b90a6d6118db702 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIForm.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIForm.Extensions.cs new file mode 100644 index 0000000..eab5067 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIForm.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class UIFormExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIForm.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIForm.Extensions.cs.meta new file mode 100644 index 0000000..efd0a44 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIForm.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6ee098d98da98cc459a5a71df4723f22 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIForm.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIForm.cs new file mode 100644 index 0000000..55a640d --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIForm.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class UIForm : TBase + { + private Dictionary _uiforms; + + [DataMember(Order = 0)] + public Dictionary Uiforms + { + get + { + return _uiforms; + } + set + { + __isset.@uiforms = true; + this._uiforms = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @uiforms; + } + + #region XmlSerializer support + + public bool ShouldSerializeUiforms() + { + return __isset.@uiforms; + } + + #endregion XmlSerializer support + + public UIForm() + { + } + + public UIForm DeepCopy() + { + var tmp5 = new UIForm(); + if((Uiforms != null) && __isset.@uiforms) + { + tmp5.Uiforms = this.Uiforms.DeepCopy(); + } + tmp5.__isset.@uiforms = this.__isset.@uiforms; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Uiforms = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.UIFormItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.UIFormItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Uiforms[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("UIForm"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Uiforms != null) && __isset.@uiforms) + { + tmp11.Name = "uiforms"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Uiforms.Count), cancellationToken); + foreach (int _iter12 in Uiforms.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Uiforms[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is UIForm other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@uiforms == other.__isset.@uiforms) && ((!__isset.@uiforms) || (TCollections.Equals(Uiforms, other.Uiforms)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Uiforms != null) && __isset.@uiforms) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Uiforms); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("UIForm("); + int tmp14 = 0; + if((Uiforms != null) && __isset.@uiforms) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Uiforms: "); + Uiforms.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIForm.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIForm.cs.meta new file mode 100644 index 0000000..8615005 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIForm.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 08a83f5aa043f6e4dbd875ad57bc587d +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIFormItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIFormItem.cs new file mode 100644 index 0000000..76a2fe4 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIFormItem.cs @@ -0,0 +1,537 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class UIFormItem : TBase + { + private int _Id; + private string _AssetName; + private string _UIGroupName; + private bool _AllowMultiInstance; + private bool _PauseCoveredUIForm; + private int _PopUpEffect; + private int _AddBg; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string AssetName + { + get + { + return _AssetName; + } + set + { + __isset.AssetName = true; + this._AssetName = value; + } + } + + [DataMember(Order = 0)] + public string UIGroupName + { + get + { + return _UIGroupName; + } + set + { + __isset.UIGroupName = true; + this._UIGroupName = value; + } + } + + [DataMember(Order = 0)] + public bool AllowMultiInstance + { + get + { + return _AllowMultiInstance; + } + set + { + __isset.AllowMultiInstance = true; + this._AllowMultiInstance = value; + } + } + + [DataMember(Order = 0)] + public bool PauseCoveredUIForm + { + get + { + return _PauseCoveredUIForm; + } + set + { + __isset.PauseCoveredUIForm = true; + this._PauseCoveredUIForm = value; + } + } + + [DataMember(Order = 0)] + public int PopUpEffect + { + get + { + return _PopUpEffect; + } + set + { + __isset.PopUpEffect = true; + this._PopUpEffect = value; + } + } + + [DataMember(Order = 0)] + public int AddBg + { + get + { + return _AddBg; + } + set + { + __isset.AddBg = true; + this._AddBg = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool AssetName; + [DataMember] + public bool UIGroupName; + [DataMember] + public bool AllowMultiInstance; + [DataMember] + public bool PauseCoveredUIForm; + [DataMember] + public bool PopUpEffect; + [DataMember] + public bool AddBg; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeAssetName() + { + return __isset.AssetName; + } + + public bool ShouldSerializeUIGroupName() + { + return __isset.UIGroupName; + } + + public bool ShouldSerializeAllowMultiInstance() + { + return __isset.AllowMultiInstance; + } + + public bool ShouldSerializePauseCoveredUIForm() + { + return __isset.PauseCoveredUIForm; + } + + public bool ShouldSerializePopUpEffect() + { + return __isset.PopUpEffect; + } + + public bool ShouldSerializeAddBg() + { + return __isset.AddBg; + } + + #endregion XmlSerializer support + + public UIFormItem() + { + } + + public UIFormItem DeepCopy() + { + var tmp0 = new UIFormItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((AssetName != null) && __isset.AssetName) + { + tmp0.AssetName = this.AssetName; + } + tmp0.__isset.AssetName = this.__isset.AssetName; + if((UIGroupName != null) && __isset.UIGroupName) + { + tmp0.UIGroupName = this.UIGroupName; + } + tmp0.__isset.UIGroupName = this.__isset.UIGroupName; + if(__isset.AllowMultiInstance) + { + tmp0.AllowMultiInstance = this.AllowMultiInstance; + } + tmp0.__isset.AllowMultiInstance = this.__isset.AllowMultiInstance; + if(__isset.PauseCoveredUIForm) + { + tmp0.PauseCoveredUIForm = this.PauseCoveredUIForm; + } + tmp0.__isset.PauseCoveredUIForm = this.__isset.PauseCoveredUIForm; + if(__isset.PopUpEffect) + { + tmp0.PopUpEffect = this.PopUpEffect; + } + tmp0.__isset.PopUpEffect = this.__isset.PopUpEffect; + if(__isset.AddBg) + { + tmp0.AddBg = this.AddBg; + } + tmp0.__isset.AddBg = this.__isset.AddBg; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + AssetName = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.String) + { + UIGroupName = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.Bool) + { + AllowMultiInstance = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.Bool) + { + PauseCoveredUIForm = await iprot.ReadBoolAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.I32) + { + PopUpEffect = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 7: + if (field.Type == TType.I32) + { + AddBg = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("UIFormItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((AssetName != null) && __isset.AssetName) + { + tmp2.Name = "AssetName"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(AssetName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((UIGroupName != null) && __isset.UIGroupName) + { + tmp2.Name = "UIGroupName"; + tmp2.Type = TType.String; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(UIGroupName, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.AllowMultiInstance) + { + tmp2.Name = "AllowMultiInstance"; + tmp2.Type = TType.Bool; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteBoolAsync(AllowMultiInstance, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.PauseCoveredUIForm) + { + tmp2.Name = "PauseCoveredUIForm"; + tmp2.Type = TType.Bool; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteBoolAsync(PauseCoveredUIForm, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.PopUpEffect) + { + tmp2.Name = "PopUpEffect"; + tmp2.Type = TType.I32; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(PopUpEffect, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.AddBg) + { + tmp2.Name = "AddBg"; + tmp2.Type = TType.I32; + tmp2.ID = 7; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(AddBg, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is UIFormItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.AssetName == other.__isset.AssetName) && ((!__isset.AssetName) || (global::System.Object.Equals(AssetName, other.AssetName)))) + && ((__isset.UIGroupName == other.__isset.UIGroupName) && ((!__isset.UIGroupName) || (global::System.Object.Equals(UIGroupName, other.UIGroupName)))) + && ((__isset.AllowMultiInstance == other.__isset.AllowMultiInstance) && ((!__isset.AllowMultiInstance) || (global::System.Object.Equals(AllowMultiInstance, other.AllowMultiInstance)))) + && ((__isset.PauseCoveredUIForm == other.__isset.PauseCoveredUIForm) && ((!__isset.PauseCoveredUIForm) || (global::System.Object.Equals(PauseCoveredUIForm, other.PauseCoveredUIForm)))) + && ((__isset.PopUpEffect == other.__isset.PopUpEffect) && ((!__isset.PopUpEffect) || (global::System.Object.Equals(PopUpEffect, other.PopUpEffect)))) + && ((__isset.AddBg == other.__isset.AddBg) && ((!__isset.AddBg) || (global::System.Object.Equals(AddBg, other.AddBg)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((AssetName != null) && __isset.AssetName) + { + hashcode = (hashcode * 397) + AssetName.GetHashCode(); + } + if((UIGroupName != null) && __isset.UIGroupName) + { + hashcode = (hashcode * 397) + UIGroupName.GetHashCode(); + } + if(__isset.AllowMultiInstance) + { + hashcode = (hashcode * 397) + AllowMultiInstance.GetHashCode(); + } + if(__isset.PauseCoveredUIForm) + { + hashcode = (hashcode * 397) + PauseCoveredUIForm.GetHashCode(); + } + if(__isset.PopUpEffect) + { + hashcode = (hashcode * 397) + PopUpEffect.GetHashCode(); + } + if(__isset.AddBg) + { + hashcode = (hashcode * 397) + AddBg.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("UIFormItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((AssetName != null) && __isset.AssetName) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("AssetName: "); + AssetName.ToString(tmp3); + } + if((UIGroupName != null) && __isset.UIGroupName) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("UIGroupName: "); + UIGroupName.ToString(tmp3); + } + if(__isset.AllowMultiInstance) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("AllowMultiInstance: "); + AllowMultiInstance.ToString(tmp3); + } + if(__isset.PauseCoveredUIForm) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PauseCoveredUIForm: "); + PauseCoveredUIForm.ToString(tmp3); + } + if(__isset.PopUpEffect) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("PopUpEffect: "); + PopUpEffect.ToString(tmp3); + } + if(__isset.AddBg) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("AddBg: "); + AddBg.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIFormItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIFormItem.cs.meta new file mode 100644 index 0000000..ff5a4da --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/UIFormItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 3fa761986c601954cbe8e8d77579b860 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMerge.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMerge.Extensions.cs new file mode 100644 index 0000000..264c411 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMerge.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class WashStartMergeExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMerge.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMerge.Extensions.cs.meta new file mode 100644 index 0000000..6e3958a --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMerge.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 0ed3fc601ebd9254a8d67ac15ae4abd4 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMerge.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMerge.cs new file mode 100644 index 0000000..45bdbfa --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMerge.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class WashStartMerge : TBase + { + private Dictionary _washstartmerges; + + [DataMember(Order = 0)] + public Dictionary Washstartmerges + { + get + { + return _washstartmerges; + } + set + { + __isset.@washstartmerges = true; + this._washstartmerges = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @washstartmerges; + } + + #region XmlSerializer support + + public bool ShouldSerializeWashstartmerges() + { + return __isset.@washstartmerges; + } + + #endregion XmlSerializer support + + public WashStartMerge() + { + } + + public WashStartMerge DeepCopy() + { + var tmp5 = new WashStartMerge(); + if((Washstartmerges != null) && __isset.@washstartmerges) + { + tmp5.Washstartmerges = this.Washstartmerges.DeepCopy(); + } + tmp5.__isset.@washstartmerges = this.__isset.@washstartmerges; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Washstartmerges = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.WashStartMergeItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.WashStartMergeItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Washstartmerges[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("WashStartMerge"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Washstartmerges != null) && __isset.@washstartmerges) + { + tmp11.Name = "washstartmerges"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Washstartmerges.Count), cancellationToken); + foreach (int _iter12 in Washstartmerges.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Washstartmerges[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is WashStartMerge other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@washstartmerges == other.__isset.@washstartmerges) && ((!__isset.@washstartmerges) || (TCollections.Equals(Washstartmerges, other.Washstartmerges)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Washstartmerges != null) && __isset.@washstartmerges) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Washstartmerges); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("WashStartMerge("); + int tmp14 = 0; + if((Washstartmerges != null) && __isset.@washstartmerges) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Washstartmerges: "); + Washstartmerges.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMerge.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMerge.cs.meta new file mode 100644 index 0000000..38d0265 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMerge.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 6e00a7cf7a9a80c4f83066ab2284a573 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMergeItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMergeItem.cs new file mode 100644 index 0000000..f459f2c --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMergeItem.cs @@ -0,0 +1,480 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class WashStartMergeItem : TBase + { + private int _Id; + private int _MergeId; + private int _Row; + private int _Line; + private int _Lock; + private string _Remark; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public int MergeId + { + get + { + return _MergeId; + } + set + { + __isset.MergeId = true; + this._MergeId = value; + } + } + + [DataMember(Order = 0)] + public int Row + { + get + { + return _Row; + } + set + { + __isset.Row = true; + this._Row = value; + } + } + + [DataMember(Order = 0)] + public int Line + { + get + { + return _Line; + } + set + { + __isset.Line = true; + this._Line = value; + } + } + + [DataMember(Order = 0)] + public int Lock + { + get + { + return _Lock; + } + set + { + __isset.@Lock = true; + this._Lock = value; + } + } + + [DataMember(Order = 0)] + public string Remark + { + get + { + return _Remark; + } + set + { + __isset.Remark = true; + this._Remark = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool MergeId; + [DataMember] + public bool Row; + [DataMember] + public bool Line; + [DataMember] + public bool @Lock; + [DataMember] + public bool Remark; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeMergeId() + { + return __isset.MergeId; + } + + public bool ShouldSerializeRow() + { + return __isset.Row; + } + + public bool ShouldSerializeLine() + { + return __isset.Line; + } + + public bool ShouldSerializeLock() + { + return __isset.@Lock; + } + + public bool ShouldSerializeRemark() + { + return __isset.Remark; + } + + #endregion XmlSerializer support + + public WashStartMergeItem() + { + } + + public WashStartMergeItem DeepCopy() + { + var tmp0 = new WashStartMergeItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if(__isset.MergeId) + { + tmp0.MergeId = this.MergeId; + } + tmp0.__isset.MergeId = this.__isset.MergeId; + if(__isset.Row) + { + tmp0.Row = this.Row; + } + tmp0.__isset.Row = this.__isset.Row; + if(__isset.Line) + { + tmp0.Line = this.Line; + } + tmp0.__isset.Line = this.__isset.Line; + if(__isset.@Lock) + { + tmp0.Lock = this.Lock; + } + tmp0.__isset.@Lock = this.__isset.@Lock; + if((Remark != null) && __isset.Remark) + { + tmp0.Remark = this.Remark; + } + tmp0.__isset.Remark = this.__isset.Remark; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.I32) + { + MergeId = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + Row = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 4: + if (field.Type == TType.I32) + { + Line = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 5: + if (field.Type == TType.I32) + { + Lock = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 6: + if (field.Type == TType.String) + { + Remark = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("WashStartMergeItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.MergeId) + { + tmp2.Name = "MergeId"; + tmp2.Type = TType.I32; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(MergeId, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Row) + { + tmp2.Name = "Row"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Row, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.Line) + { + tmp2.Name = "Line"; + tmp2.Type = TType.I32; + tmp2.ID = 4; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Line, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.@Lock) + { + tmp2.Name = "Lock"; + tmp2.Type = TType.I32; + tmp2.ID = 5; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Lock, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((Remark != null) && __isset.Remark) + { + tmp2.Name = "Remark"; + tmp2.Type = TType.String; + tmp2.ID = 6; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(Remark, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is WashStartMergeItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.MergeId == other.__isset.MergeId) && ((!__isset.MergeId) || (global::System.Object.Equals(MergeId, other.MergeId)))) + && ((__isset.Row == other.__isset.Row) && ((!__isset.Row) || (global::System.Object.Equals(Row, other.Row)))) + && ((__isset.Line == other.__isset.Line) && ((!__isset.Line) || (global::System.Object.Equals(Line, other.Line)))) + && ((__isset.@Lock == other.__isset.@Lock) && ((!__isset.@Lock) || (global::System.Object.Equals(Lock, other.Lock)))) + && ((__isset.Remark == other.__isset.Remark) && ((!__isset.Remark) || (global::System.Object.Equals(Remark, other.Remark)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if(__isset.MergeId) + { + hashcode = (hashcode * 397) + MergeId.GetHashCode(); + } + if(__isset.Row) + { + hashcode = (hashcode * 397) + Row.GetHashCode(); + } + if(__isset.Line) + { + hashcode = (hashcode * 397) + Line.GetHashCode(); + } + if(__isset.@Lock) + { + hashcode = (hashcode * 397) + Lock.GetHashCode(); + } + if((Remark != null) && __isset.Remark) + { + hashcode = (hashcode * 397) + Remark.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("WashStartMergeItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if(__isset.MergeId) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("MergeId: "); + MergeId.ToString(tmp3); + } + if(__isset.Row) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Row: "); + Row.ToString(tmp3); + } + if(__isset.Line) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Line: "); + Line.ToString(tmp3); + } + if(__isset.@Lock) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Lock: "); + Lock.ToString(tmp3); + } + if((Remark != null) && __isset.Remark) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Remark: "); + Remark.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMergeItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMergeItem.cs.meta new file mode 100644 index 0000000..060120b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WashStartMergeItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 35b6ef9e3e580f742b027f5cbd2827dc +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskReward.Extensions.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskReward.Extensions.cs new file mode 100644 index 0000000..9d9cd78 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskReward.Extensions.cs @@ -0,0 +1,65 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + public static class WeekTaskRewardExtensions + { + public static bool Equals(this Dictionary instance, object that) + { + if (!(that is Dictionary other)) return false; + if (ReferenceEquals(instance, other)) return true; + + return TCollections.Equals(instance, other); + } + + + public static int GetHashCode(this Dictionary instance) + { + return TCollections.GetHashCode(instance); + } + + + public static Dictionary DeepCopy(this Dictionary source) + { + if (source == null) + return null; + + var tmp15 = new Dictionary(source.Count); + foreach (var pair in source) + tmp15.Add(pair.Key, (pair.Value != null) ? pair.Value.DeepCopy() : null); + return tmp15; + } + + + } +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskReward.Extensions.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskReward.Extensions.cs.meta new file mode 100644 index 0000000..b0b4413 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskReward.Extensions.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 583cf290eb6746049b726cea3a27a566 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskReward.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskReward.cs new file mode 100644 index 0000000..680f498 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskReward.cs @@ -0,0 +1,214 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class WeekTaskReward : TBase + { + private Dictionary _weektaskrewards; + + [DataMember(Order = 0)] + public Dictionary Weektaskrewards + { + get + { + return _weektaskrewards; + } + set + { + __isset.@weektaskrewards = true; + this._weektaskrewards = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool @weektaskrewards; + } + + #region XmlSerializer support + + public bool ShouldSerializeWeektaskrewards() + { + return __isset.@weektaskrewards; + } + + #endregion XmlSerializer support + + public WeekTaskReward() + { + } + + public WeekTaskReward DeepCopy() + { + var tmp5 = new WeekTaskReward(); + if((Weektaskrewards != null) && __isset.@weektaskrewards) + { + tmp5.Weektaskrewards = this.Weektaskrewards.DeepCopy(); + } + tmp5.__isset.@weektaskrewards = this.__isset.@weektaskrewards; + return tmp5; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.Map) + { + { + var _map6 = await iprot.ReadMapBeginAsync(cancellationToken); + Weektaskrewards = new Dictionary(_map6.Count); + for(int _i7 = 0; _i7 < _map6.Count; ++_i7) + { + int _key8; + global::Byway.Thrift.Data.WeekTaskRewardItem _val9; + _key8 = await iprot.ReadI32Async(cancellationToken); + _val9 = new global::Byway.Thrift.Data.WeekTaskRewardItem(); + await _val9.ReadAsync(iprot, cancellationToken); + Weektaskrewards[_key8] = _val9; + } + await iprot.ReadMapEndAsync(cancellationToken); + } + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp10 = new TStruct("WeekTaskReward"); + await oprot.WriteStructBeginAsync(tmp10, cancellationToken); + var tmp11 = new TField(); + if((Weektaskrewards != null) && __isset.@weektaskrewards) + { + tmp11.Name = "weektaskrewards"; + tmp11.Type = TType.Map; + tmp11.ID = 1; + await oprot.WriteFieldBeginAsync(tmp11, cancellationToken); + await oprot.WriteMapBeginAsync(new TMap(TType.I32, TType.Struct, Weektaskrewards.Count), cancellationToken); + foreach (int _iter12 in Weektaskrewards.Keys) + { + await oprot.WriteI32Async(_iter12, cancellationToken); + await Weektaskrewards[_iter12].WriteAsync(oprot, cancellationToken); + } + await oprot.WriteMapEndAsync(cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is WeekTaskReward other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.@weektaskrewards == other.__isset.@weektaskrewards) && ((!__isset.@weektaskrewards) || (TCollections.Equals(Weektaskrewards, other.Weektaskrewards)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if((Weektaskrewards != null) && __isset.@weektaskrewards) + { + hashcode = (hashcode * 397) + TCollections.GetHashCode(Weektaskrewards); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp13 = new StringBuilder("WeekTaskReward("); + int tmp14 = 0; + if((Weektaskrewards != null) && __isset.@weektaskrewards) + { + if(0 < tmp14++) { tmp13.Append(", "); } + tmp13.Append("Weektaskrewards: "); + Weektaskrewards.ToString(tmp13); + } + tmp13.Append(')'); + return tmp13.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskReward.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskReward.cs.meta new file mode 100644 index 0000000..1f69506 --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskReward.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 1db1bbbb05c058449898fb807ee6cc1f +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskRewardItem.cs b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskRewardItem.cs new file mode 100644 index 0000000..a9884dd --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskRewardItem.cs @@ -0,0 +1,309 @@ +/** + * + * Autogenerated by Thrift Compiler (0.22.0) + * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING + * + */ +using System; +using System.Collections; +using System.Collections.Generic; +using System.Text; +using System.IO; +using System.Linq; +using System.Threading; +using System.Threading.Tasks; +using Thrift; +using Thrift.Collections; +using System.Runtime.Serialization; +using Thrift.Protocol; +using Thrift.Protocol.Entities; +using Thrift.Protocol.Utilities; +using Thrift.Transport; +using Thrift.Transport.Client; + + +#pragma warning disable IDE0079 // remove unnecessary pragmas +#pragma warning disable IDE0017 // object init can be simplified +#pragma warning disable IDE0028 // collection init can be simplified +#pragma warning disable IDE0305 // collection init can be simplified +#pragma warning disable IDE0034 // simplify default expression +#pragma warning disable IDE0066 // use switch expression +#pragma warning disable IDE0090 // simplify new expression +#pragma warning disable IDE0290 // use primary CTOR +#pragma warning disable IDE1006 // parts of the code use IDL spelling +#pragma warning disable CA1822 // empty DeepCopy() methods still non-static +#pragma warning disable IDE0083 // pattern matching "that is not SomeType" requires net5.0 but we still support earlier versions + +namespace Byway.Thrift.Data +{ + + [DataContract(Namespace="")] + public partial class WeekTaskRewardItem : TBase + { + private int _Id; + private string _ItemReward; + private int _NeedActive; + + [DataMember(Order = 0)] + public int Id + { + get + { + return _Id; + } + set + { + __isset.Id = true; + this._Id = value; + } + } + + [DataMember(Order = 0)] + public string ItemReward + { + get + { + return _ItemReward; + } + set + { + __isset.ItemReward = true; + this._ItemReward = value; + } + } + + [DataMember(Order = 0)] + public int NeedActive + { + get + { + return _NeedActive; + } + set + { + __isset.NeedActive = true; + this._NeedActive = value; + } + } + + + [DataMember(Order = 1)] + public Isset __isset; + [DataContract] + public struct Isset + { + [DataMember] + public bool Id; + [DataMember] + public bool ItemReward; + [DataMember] + public bool NeedActive; + } + + #region XmlSerializer support + + public bool ShouldSerializeId() + { + return __isset.Id; + } + + public bool ShouldSerializeItemReward() + { + return __isset.ItemReward; + } + + public bool ShouldSerializeNeedActive() + { + return __isset.NeedActive; + } + + #endregion XmlSerializer support + + public WeekTaskRewardItem() + { + } + + public WeekTaskRewardItem DeepCopy() + { + var tmp0 = new WeekTaskRewardItem(); + if(__isset.Id) + { + tmp0.Id = this.Id; + } + tmp0.__isset.Id = this.__isset.Id; + if((ItemReward != null) && __isset.ItemReward) + { + tmp0.ItemReward = this.ItemReward; + } + tmp0.__isset.ItemReward = this.__isset.ItemReward; + if(__isset.NeedActive) + { + tmp0.NeedActive = this.NeedActive; + } + tmp0.__isset.NeedActive = this.__isset.NeedActive; + return tmp0; + } + + public async global::System.Threading.Tasks.Task ReadAsync(TProtocol iprot, CancellationToken cancellationToken) + { + iprot.IncrementRecursionDepth(); + try + { + TField field; + await iprot.ReadStructBeginAsync(cancellationToken); + while (true) + { + field = await iprot.ReadFieldBeginAsync(cancellationToken); + if (field.Type == TType.Stop) + { + break; + } + + switch (field.ID) + { + case 1: + if (field.Type == TType.I32) + { + Id = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 2: + if (field.Type == TType.String) + { + ItemReward = await iprot.ReadStringAsync(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + case 3: + if (field.Type == TType.I32) + { + NeedActive = await iprot.ReadI32Async(cancellationToken); + } + else + { + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + } + break; + default: + await TProtocolUtil.SkipAsync(iprot, field.Type, cancellationToken); + break; + } + + await iprot.ReadFieldEndAsync(cancellationToken); + } + + await iprot.ReadStructEndAsync(cancellationToken); + } + finally + { + iprot.DecrementRecursionDepth(); + } + } + + public async global::System.Threading.Tasks.Task WriteAsync(TProtocol oprot, CancellationToken cancellationToken) + { + oprot.IncrementRecursionDepth(); + try + { + var tmp1 = new TStruct("WeekTaskRewardItem"); + await oprot.WriteStructBeginAsync(tmp1, cancellationToken); + var tmp2 = new TField(); + if(__isset.Id) + { + tmp2.Name = "Id"; + tmp2.Type = TType.I32; + tmp2.ID = 1; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(Id, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if((ItemReward != null) && __isset.ItemReward) + { + tmp2.Name = "ItemReward"; + tmp2.Type = TType.String; + tmp2.ID = 2; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteStringAsync(ItemReward, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + if(__isset.NeedActive) + { + tmp2.Name = "NeedActive"; + tmp2.Type = TType.I32; + tmp2.ID = 3; + await oprot.WriteFieldBeginAsync(tmp2, cancellationToken); + await oprot.WriteI32Async(NeedActive, cancellationToken); + await oprot.WriteFieldEndAsync(cancellationToken); + } + await oprot.WriteFieldStopAsync(cancellationToken); + await oprot.WriteStructEndAsync(cancellationToken); + } + finally + { + oprot.DecrementRecursionDepth(); + } + } + + public override bool Equals(object that) + { + if (!(that is WeekTaskRewardItem other)) return false; + if (ReferenceEquals(this, other)) return true; + return ((__isset.Id == other.__isset.Id) && ((!__isset.Id) || (global::System.Object.Equals(Id, other.Id)))) + && ((__isset.ItemReward == other.__isset.ItemReward) && ((!__isset.ItemReward) || (global::System.Object.Equals(ItemReward, other.ItemReward)))) + && ((__isset.NeedActive == other.__isset.NeedActive) && ((!__isset.NeedActive) || (global::System.Object.Equals(NeedActive, other.NeedActive)))); + } + + public override int GetHashCode() { + int hashcode = 157; + unchecked { + if(__isset.Id) + { + hashcode = (hashcode * 397) + Id.GetHashCode(); + } + if((ItemReward != null) && __isset.ItemReward) + { + hashcode = (hashcode * 397) + ItemReward.GetHashCode(); + } + if(__isset.NeedActive) + { + hashcode = (hashcode * 397) + NeedActive.GetHashCode(); + } + } + return hashcode; + } + + public override string ToString() + { + var tmp3 = new StringBuilder("WeekTaskRewardItem("); + int tmp4 = 0; + if(__isset.Id) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("Id: "); + Id.ToString(tmp3); + } + if((ItemReward != null) && __isset.ItemReward) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("ItemReward: "); + ItemReward.ToString(tmp3); + } + if(__isset.NeedActive) + { + if(0 < tmp4++) { tmp3.Append(", "); } + tmp3.Append("NeedActive: "); + NeedActive.ToString(tmp3); + } + tmp3.Append(')'); + return tmp3.ToString(); + } + } + +} diff --git a/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskRewardItem.cs.meta b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskRewardItem.cs.meta new file mode 100644 index 0000000..e27f36b --- /dev/null +++ b/Scripts/thrift/gen-netstd/Byway/Thrift/Data/WeekTaskRewardItem.cs.meta @@ -0,0 +1,11 @@ +fileFormatVersion: 2 +guid: 8c81810431427fe44a0d3e5745e65b69 +MonoImporter: + externalObjects: {} + serializedVersion: 2 + defaultReferences: [] + executionOrder: 0 + icon: {instanceID: 0} + userData: + assetBundleName: + assetBundleVariant: