diff --git a/SCHALE.Common/Crypto/TableService.cs b/SCHALE.Common/Crypto/TableService.cs index f163d1a..211c0a7 100644 --- a/SCHALE.Common/Crypto/TableService.cs +++ b/SCHALE.Common/Crypto/TableService.cs @@ -40,7 +40,7 @@ namespace SCHALE.Common.Crypto { foreach (var type in Assembly.GetAssembly(typeof(AcademyFavorScheduleExcelTable))!.GetTypes().Where(t => t.IsAssignableTo(typeof(IFlatbufferObject)) && t.Name.EndsWith("ExcelTable"))) { - var bytesFilePath = Path.Join(bytesDir, $"{type.Name.ToLower()}.bytes"); + var bytesFilePath = Path.Join(bytesDir, $"{type.Name}.bytes"); if (!File.Exists(bytesFilePath)) { Console.WriteLine($"bytes files for {type.Name} not found. skipping..."); @@ -50,10 +50,18 @@ namespace SCHALE.Common.Crypto var bytes = File.ReadAllBytes(bytesFilePath); TableEncryptionService.XOR(type.Name, bytes); var inst = type.GetMethod($"GetRootAs{type.Name}", BindingFlags.Static | BindingFlags.Public, [typeof(ByteBuffer)])!.Invoke(null, [new ByteBuffer(bytes)]); + try + { + var obj = type.GetMethod("UnPack", BindingFlags.Instance | BindingFlags.Public)!.Invoke(inst, null); + File.WriteAllText(Path.Join(destDir, $"{type.Name}.json"), JsonConvert.SerializeObject(obj, Formatting.Indented, new StringEnumConverter())); + Console.WriteLine($"Dumped {type.Name} successfully"); + } + + catch (Exception e) + { + Console.WriteLine($"Error dumping ${type.Name}"); + } - var obj = type.GetMethod("UnPack", BindingFlags.Instance | BindingFlags.Public)!.Invoke(inst, null); - File.WriteAllText(Path.Join(destDir, $"{type.Name}.json"), JsonConvert.SerializeObject(obj, Formatting.Indented, new StringEnumConverter())); - Console.WriteLine($"Dumped {type.Name} successfully"); } } #endif diff --git a/SCHALE.Common/Database/DataModels.cs b/SCHALE.Common/Database/DataModels.cs index 2f2d3ea..37abdc7 100644 --- a/SCHALE.Common/Database/DataModels.cs +++ b/SCHALE.Common/Database/DataModels.cs @@ -45,6 +45,26 @@ namespace SCHALE.Common.Database [JsonIgnore] public virtual ICollection Furnitures { get; } + [JsonIgnore] + public virtual ICollection ScenarioGroups { get; } + + [JsonIgnore] + public virtual ICollection Currencies { get; } + + [JsonIgnore] + public virtual ICollection MultiFloorRaids { get; } + + [JsonIgnore] + public virtual ICollection WeekDungeonStageHistories { get; } + + [JsonIgnore] + public virtual ICollection SchoolDungeonStageHistories { get; } + + [JsonIgnore] + public virtual ICollection CampaignStageHistories { get; } + + [JsonIgnore] + public virtual ICollection Mails { get; } [JsonIgnore] public virtual RaidInfo RaidInfo { get; set; } @@ -62,6 +82,13 @@ namespace SCHALE.Common.Database Scenarios = new List(); Cafes = new List(); Furnitures = new List(); + ScenarioGroups = new List(); + Currencies = new List(); + MultiFloorRaids = new List(); + WeekDungeonStageHistories = new List(); + SchoolDungeonStageHistories = new List(); + CampaignStageHistories = new List(); + Mails = new List(); } public AccountDB(long publisherAccountId) : this() @@ -324,6 +351,24 @@ namespace SCHALE.Common.Database public DateTime ClearDateTime { get; set; } } + public class ScenarioGroupHistoryDB + { + [JsonIgnore] + public virtual AccountDB Account { get; set; } + + [JsonIgnore] + public long AccountServerId { get; set; } + + [Key] + public long ServerId { get; set; } + + public long ScenarioGroupUqniueId { get; set; } + public long ScenarioType { get; set; } + public Nullable EventContentId { get; set; } + public DateTime ClearDateTime { get; set; } + public bool IsReturn { get; set; } + } + public class EchelonDB { [Key] @@ -369,6 +414,16 @@ namespace SCHALE.Common.Database public int[] CombatStyleIndex { get; set; } = []; } + public class CampaignSubStageSaveDB : ContentSaveDB + { + public override ContentType ContentType { get => ContentType.CampaignSubStage; } + } + + public class CampaignTutorialStageSaveDB : ContentSaveDB + { + public override ContentType ContentType { get => ContentType.CampaignTutorialStage; } + } + public class CafeDB { [JsonIgnore] @@ -379,7 +434,6 @@ namespace SCHALE.Common.Database [Key] public long CafeDBId { get; set; } - public long CafeId { get; set; } public long AccountId { get; set; } public int CafeRank { get; set; } @@ -440,8 +494,15 @@ namespace SCHALE.Common.Database public class CampaignStageHistoryDB { + [JsonIgnore] + public virtual AccountDB Account { get; set; } + + [JsonIgnore] public long AccountServerId { get; set; } + [Key] + public long ServerId { get; set; } + public long StoryUniqueId { get; set; } public long ChapterUniqueId { get; set; } public long StageUniqueId { get; set; } @@ -464,6 +525,32 @@ namespace SCHALE.Common.Database public long TodayPlayCountForUI { get; } } + public class MailDB + { + [JsonIgnore] + public virtual AccountDB Account { get; set; } + + [Key] + public long ServerId { get; set; } + + [JsonIgnore] + public long AccountServerId { get; set; } + + public MailType Type { get; set; } + public long UniqueId { get; set; } + public string Sender { get; set; } + public string Comment { get; set; } + public DateTime SendDate { get; set; } + public Nullable ReceiptDate { get; set; } + public Nullable ExpireDate { get; set; } + + [NotMapped] // TODO: implement storing these two with ef core, this is very nessary since these parcel infos are the items given in the mail, must be stored + public List ParcelInfos { get; set; } // remove [NotMapped] if implemented storing + + [NotMapped] + public List RemainParcelInfos { get; set; } + } + public class CampaignChapterClearRewardHistoryDB { public long AccountServerId { get; set; } @@ -473,6 +560,101 @@ namespace SCHALE.Common.Database public DateTime ReceiveDate { get; set; } } + public class AccountCurrencyDB + { + [JsonIgnore] + public virtual AccountDB Account { get; set; } + + [JsonIgnore] + public long AccountServerId { get; set; } + + [Key] + public long ServerId { get; set; } + + public long AccountLevel { get; set; } + public long AcademyLocationRankSum { get; set; } + public Dictionary CurrencyDict { get; set; } + public Dictionary UpdateTimeDict { get; set; } + } + + public class MultiFloorRaidDB + { + [JsonIgnore] + public virtual AccountDB Account { get; set; } + + [JsonIgnore] + public long AccountServerId { get; set; } + + [Key] + public long ServerId { get; set; } + + public long SeasonId { get; set; } + public int ClearedDifficulty { get; set; } + public DateTime LastClearDate { get; set; } + public int RewardDifficulty { get; set; } + public DateTime LastRewardDate { get; set; } + public int ClearBattleFrame { get; set; } + + [JsonIgnore] + public bool AllCleared { get; } = false; + + [JsonIgnore] + public bool HasReceivableRewards { get; } = false; + + [JsonIgnore] + public List TotalReceivableRewards { get; } = new List(); + + [JsonIgnore] + public List TotalReceivedRewards { get; } = new List(); + } + + public class WeekDungeonStageHistoryDB + { + [JsonIgnore] + public virtual AccountDB Account { get; set; } + + [Key] + public long ServerId { get; set; } + [JsonIgnore] + public long AccountServerId { get; set; } + + public long StageUniqueId { get; set; } + public Dictionary StarGoalRecord { get; set; } + + [JsonIgnore] + public bool IsCleardEver { get; } + } + + public class SchoolDungeonStageHistoryDB + { + [JsonIgnore] + public virtual AccountDB Account { get; set; } + + [JsonIgnore] + public long AccountServerId { get; set; } + + [Key] + public long ServerId { get; set; } + + public long StageUniqueId { get; set; } + + [JsonIgnore] + public long BestStarRecord { get; } + public bool[] StarFlags { get; set; } + + [JsonIgnore] + public bool Star1Flag { get; } + + [JsonIgnore] + public bool Star2Flag { get; } + + [JsonIgnore] + public bool Star3Flag { get; } + + [JsonIgnore] + public bool IsClearedEver { get; } + } + [Serializable] public struct BasisPoint : IEquatable, IComparable { diff --git a/SCHALE.Common/Database/SCHALEContext.cs b/SCHALE.Common/Database/SCHALEContext.cs index 42a9746..c4ef6b9 100644 --- a/SCHALE.Common/Database/SCHALEContext.cs +++ b/SCHALE.Common/Database/SCHALEContext.cs @@ -27,6 +27,13 @@ namespace SCHALE.Common.Database public DbSet Cafes { get; set; } public DbSet Furnitures { get; set; } + public DbSet Currencies { get; set; } + public DbSet MultiFloorRaids { get; set; } + public DbSet WeekDungeonStageHistories { get; set; } + public DbSet SchoolDungeonStageHistories { get; set; } + public DbSet CampaignStageHistories { get; set; } + public DbSet Mails { get; set; } + public static SCHALEContext Create(string connectionString) => new(new DbContextOptionsBuilder() .UseSqlServer(connectionString) @@ -122,6 +129,22 @@ namespace SCHALE.Common.Database modelBuilder.Entity().Property(x => x.ServerId).ValueGeneratedOnAdd(); modelBuilder.Entity().Property(x => x.ProgressParameters).HasJsonConversion(); + + modelBuilder.Entity().Property(x => x.ServerId).ValueGeneratedOnAdd(); + modelBuilder.Entity().Property(x => x.CurrencyDict).HasJsonConversion(); + modelBuilder.Entity().Property(x => x.UpdateTimeDict).HasJsonConversion(); + + modelBuilder.Entity().Property(x => x.ServerId).ValueGeneratedOnAdd(); + modelBuilder.Entity().Property(x => x.TotalReceivableRewards).HasJsonConversion(); + modelBuilder.Entity().Property(x => x.TotalReceivedRewards).HasJsonConversion(); + + modelBuilder.Entity().Property(x => x.ServerId).ValueGeneratedOnAdd(); + modelBuilder.Entity().Property(x => x.StarGoalRecord).HasJsonConversion(); + + modelBuilder.Entity().Property(x => x.ServerId).ValueGeneratedOnAdd(); + modelBuilder.Entity().Property(x => x.ServerId).ValueGeneratedOnAdd(); + modelBuilder.Entity().Property(x => x.ServerId).ValueGeneratedOnAdd(); + modelBuilder.Entity().Property(x => x.ServerId).ValueGeneratedOnAdd(); } } diff --git a/SCHALE.Common/Database/dbs.cs b/SCHALE.Common/Database/dbs.cs index 5361ebb..bab4705 100644 --- a/SCHALE.Common/Database/dbs.cs +++ b/SCHALE.Common/Database/dbs.cs @@ -11,7 +11,122 @@ using SCHALE.Common.NetworkProtocol; namespace SCHALE.Common.Database { - public class AcademyLocationDB + + public abstract class HexaCommand + { + public long CommandId { get; set; } + public virtual HexaCommandType Type { get; } + } + + public enum HexaCommandType + { + None = 0, + UnitSpawn = 1, + PlayScenario = 2, + StrategySpawn = 3, + TileSpawn = 4, + TileHide = 5, + EndBattle = 6, + WaitTurn = 7, + StrategyHide = 8, + UnitDie = 9, + UnitMove = 10, + CharacterEmoji = 11, + } + + public abstract class HexaCondition + { + public long ConditionId { get; set; } + public abstract HexaConditionType Type { get; } + public abstract bool Resuable { get; } + public bool AlreadyTriggered { get; set; } + } + + public enum HexaConditionType + { + None = 0, + StartCampaign = 1, + TurnBeginEnd = 2, + UnitDead = 3, + PlayerArrivedInTileFirstTime = 4, + AnyEnemyDead = 5, + EveryTurn = 6, + EnemyArrivedInTileFirstTime = 7, + SpecificEnemyArrivedInTileFirstTime = 8, + } + + public class HexaEvent + { + public string EventName { get; set; } + public long EventId { get; set; } + public IList HexaConditions { get; } + public MultipleConditionCheckType MultipleConditionCheckType { get; set; } + public IList HexaCommands { get; } + } + + public class HexaTileMap + { + public static readonly float XOffset; + public static readonly float YOffset; + public static readonly float EmptyOffset; + public static readonly float Up; + public int LastEntityId; + public bool IsBig; + private List events; + public List hexaTileList; + public List hexaUnitList; + public List hexaStrageyList; + [JsonIgnore] + public Dictionary TileLocationMap; + } + + public class CampaignStageInfo + { + public long UniqueId { get; set; } + public string DevName { get; set; } + public long ChapterNumber { get; set; } + public string StageNumber { get; set; } + public long TutorialStageNumber { get; set; } + public long[] PrerequisiteScenarioIds { get; set; } + public int RecommandLevel { get; set; } + public string StrategyMap { get; set; } + public string BackgroundBG { get; set; } + public long StoryUniqueId { get; set; } + public long ChapterUniqueId { get; set; } + public long DailyPlayCountLimit { get; } + public StageTopography StageTopography { get; set; } + public int StageEnterCostAmount { get; set; } + public int MaxTurn { get; set; } + public int MaxEchelonCount { get; set; } + public StageDifficulty StageDifficulty { get; set; } + public HashSet PrerequisiteStageUniqueIds { get; set; } + public long DailyPlayLimit { get; set; } + public TimeSpan PlayTimeLimit { get; set; } + public long PlayTurnLimit { get; set; } + public ParcelCost EnterCost { get; } + public ParcelCost PurchasePlayCountHardStageCost { get; set; } + public HexaTileMap HexaTileMap { get; set; } + public long StarConditionTurnCount { get; set; } + public long StarConditionSTacticRackCount { get; set; } + public long RewardUniqueId { get; set; } + public long TacticRewardPlayerExp { get; set; } + public long TacticRewardExp { get; set; } + public virtual bool ShowClearDeckButton { get; } + public List> StageReward { get; set; } + public List> DisplayReward { get; set; } + public StrategyEnvironment StrategyEnvironment { get; set; } + public ContentType ContentType { get; set; } + public long GroundId { get; set; } + public int StrategySkipGroundId { get; } + public long BattleDuration { get; set; } + public long BGMId { get; set; } + public long FixedEchelonId { get; set; } + public bool IsEventContent { get; } + public ParcelInfo EnterParcelInfo { get; set; } + public bool IsDeprecated { get; set; } + public EchelonExtensionType EchelonExtensionType { get; set; } + } + public class AcademyLocationDB { public long LocationId { get; set; } public long Rank { get; set; } @@ -58,14 +173,6 @@ namespace SCHALE.Common.Database public long EmblemUniqueId { get; set; } } - public class AccountCurrencyDB - { - public long AccountLevel { get; set; } - public long AcademyLocationRankSum { get; set; } - public Dictionary CurrencyDict { get; set; } - public Dictionary UpdateTimeDict { get; set; } - } - public class AccountRestrictionsDB { public bool NicknameRestriction { get; set; } @@ -299,7 +406,7 @@ namespace SCHALE.Common.Database public class CampaignMainStageSaveDB : ContentSaveDB { - public override ContentType ContentType { get; } + public override ContentType ContentType { get => ContentType.CampaignMainStage; } public CampaignState CampaignState { get; set; } public int CurrentTurn { get; set; } public int EnemyClearCount { get; set; } @@ -324,11 +431,6 @@ namespace SCHALE.Common.Database public Dictionary ResetCount { get; set; } } - public class CampaignSubStageSaveDB : ContentSaveDB - { - public override ContentType ContentType { get; } - } - public class CampaignExtraStageSaveDB : ContentSaveDB { public override ContentType ContentType { get; } @@ -349,11 +451,6 @@ namespace SCHALE.Common.Database public override ContentType ContentType { get; } } - public class CampaignTutorialStageSaveDB : ContentSaveDB - { - public override ContentType ContentType { get; } - } - public class CardShopElementDB { public long EventContentId { get; set; } @@ -1170,21 +1267,6 @@ namespace SCHALE.Common.Database public string Subject { get; set; } } - public class MailDB - { - public long ServerId { get; set; } - public long AccountServerId { get; set; } - public MailType Type { get; set; } - public long UniqueId { get; set; } - public string Sender { get; set; } - public string Comment { get; set; } - public DateTime SendDate { get; set; } - public Nullable ReceiptDate { get; set; } - public Nullable ExpireDate { get; set; } - public List ParcelInfos { get; set; } - public List RemainParcelInfos { get; set; } - } - public class MiniGameDefenseStageHistoryDB { public long StageId { get; set; } @@ -1308,28 +1390,6 @@ namespace SCHALE.Common.Database public ProductTagType ProductTagType { get; } } - public class MultiFloorRaidDB - { - public long SeasonId { get; set; } - public int ClearedDifficulty { get; set; } - public DateTime LastClearDate { get; set; } - public int RewardDifficulty { get; set; } - public DateTime LastRewardDate { get; set; } - public int ClearBattleFrame { get; set; } - - [JsonIgnore] - public bool AllCleared { get; } - - [JsonIgnore] - public bool HasReceivableRewards { get; } - - [JsonIgnore] - public List TotalReceivableRewards { get; } - - [JsonIgnore] - public List TotalReceivedRewards { get; } - } - public class MultiSweepPresetDB { public long PresetId { get; set; } @@ -1657,37 +1717,6 @@ namespace SCHALE.Common.Database public DateTime ReceiveDate { get; set; } } - public class ScenarioGroupHistoryDB - { - public long AccountServerId { get; set; } - public long ScenarioGroupUqniueId { get; set; } - public long ScenarioType { get; set; } - public Nullable EventContentId { get; set; } - public DateTime ClearDateTime { get; set; } - public bool IsReturn { get; set; } - } - - public sealed class SchoolDungeonStageHistoryDB - { - public long StageUniqueId { get; set; } - - [JsonIgnore] - public long BestStarRecord { get; } - public bool[] StarFlags { get; set; } - - [JsonIgnore] - public bool Star1Flag { get; } - - [JsonIgnore] - public bool Star2Flag { get; } - - [JsonIgnore] - public bool Star3Flag { get; } - - [JsonIgnore] - public bool IsClearedEver { get; } - } - public class SchoolDungeonStageSaveDB : ContentSaveDB { public override ContentType ContentType { get; } @@ -1888,16 +1917,6 @@ namespace SCHALE.Common.Database public int Sequence { get; set; } } - public class WeekDungeonStageHistoryDB - { - public long AccountServerId { get; set; } - public long StageUniqueId { get; set; } - public Dictionary StarGoalRecord { get; set; } - - [JsonIgnore] - public bool IsCleardEver { get; } - } - public class WorldRaidSnapshot { public List WorldRaidLocalBossDBs { get; set; } @@ -2092,8 +2111,8 @@ namespace SCHALE.Common.Database public bool IsPlayerWin { get; } public BattleEndType EndType { get; set; } public int EndFrame { get; set; } - //public GroupSummary Group01Summary { get; set; } - //public GroupSummary Group02Summary { get; set; } + public GroupSummary Group01Summary { get; set; } + public GroupSummary Group02Summary { get; set; } public WeekDungeonSummary WeekDungeonSummary { get; set; } public RaidSummary RaidSummary { get; set; } public ArenaSummary ArenaSummary { get; set; } @@ -2932,10 +2951,12 @@ namespace SCHALE.Common.Database [JsonIgnore] public long LeaderCharacterId { get; } - public KeyedCollection Heroes { get; set; } - public KeyedCollection Supporters { get; set; } - - [JsonIgnore] + + // Thanks https://github.com/suna-aquatope + public List/*KeyedCollection*/ Heroes { get; set; } + public List/*KeyedCollection*/ Supporters { get; set; } + + [JsonIgnore] public int AliveCount { get; } public bool UseAutoSkill { get; set; } public long TSSInteractionServerId { get; set; } diff --git a/SCHALE.Common/FlatData/AcademyFavorScheduleExcel.cs b/SCHALE.Common/FlatData/AcademyFavorScheduleExcel.cs index c5c697b..1a5f768 100644 --- a/SCHALE.Common/FlatData/AcademyFavorScheduleExcel.cs +++ b/SCHALE.Common/FlatData/AcademyFavorScheduleExcel.cs @@ -61,31 +61,31 @@ public struct AcademyFavorScheduleExcel : IFlatbufferObject public long[] GetRewardAmountArray() { return __p.__vector_as_array(26); } public static Offset CreateAcademyFavorScheduleExcel(FlatBufferBuilder builder, - long id = 0, - long character_id = 0, - long schedule_group_id = 0, - long order_in_group = 0, - StringOffset locationOffset = default(StringOffset), - uint localize_scenario_id = 0, - long favor_rank = 0, - long secret_stone_amount = 0, - long scenario_sript_group_id = 0, - VectorOffset reward_parcel_typeOffset = default(VectorOffset), - VectorOffset reward_parcel_idOffset = default(VectorOffset), - VectorOffset reward_amountOffset = default(VectorOffset)) { + long Id = 0, + long CharacterId = 0, + long ScheduleGroupId = 0, + long OrderInGroup = 0, + StringOffset LocationOffset = default(StringOffset), + uint LocalizeScenarioId = 0, + long FavorRank = 0, + long SecretStoneAmount = 0, + long ScenarioSriptGroupId = 0, + VectorOffset RewardParcelTypeOffset = default(VectorOffset), + VectorOffset RewardParcelIdOffset = default(VectorOffset), + VectorOffset RewardAmountOffset = default(VectorOffset)) { builder.StartTable(12); - AcademyFavorScheduleExcel.AddScenarioSriptGroupId(builder, scenario_sript_group_id); - AcademyFavorScheduleExcel.AddSecretStoneAmount(builder, secret_stone_amount); - AcademyFavorScheduleExcel.AddFavorRank(builder, favor_rank); - AcademyFavorScheduleExcel.AddOrderInGroup(builder, order_in_group); - AcademyFavorScheduleExcel.AddScheduleGroupId(builder, schedule_group_id); - AcademyFavorScheduleExcel.AddCharacterId(builder, character_id); - AcademyFavorScheduleExcel.AddId(builder, id); - AcademyFavorScheduleExcel.AddRewardAmount(builder, reward_amountOffset); - AcademyFavorScheduleExcel.AddRewardParcelId(builder, reward_parcel_idOffset); - AcademyFavorScheduleExcel.AddRewardParcelType(builder, reward_parcel_typeOffset); - AcademyFavorScheduleExcel.AddLocalizeScenarioId(builder, localize_scenario_id); - AcademyFavorScheduleExcel.AddLocation(builder, locationOffset); + AcademyFavorScheduleExcel.AddScenarioSriptGroupId(builder, ScenarioSriptGroupId); + AcademyFavorScheduleExcel.AddSecretStoneAmount(builder, SecretStoneAmount); + AcademyFavorScheduleExcel.AddFavorRank(builder, FavorRank); + AcademyFavorScheduleExcel.AddOrderInGroup(builder, OrderInGroup); + AcademyFavorScheduleExcel.AddScheduleGroupId(builder, ScheduleGroupId); + AcademyFavorScheduleExcel.AddCharacterId(builder, CharacterId); + AcademyFavorScheduleExcel.AddId(builder, Id); + AcademyFavorScheduleExcel.AddRewardAmount(builder, RewardAmountOffset); + AcademyFavorScheduleExcel.AddRewardParcelId(builder, RewardParcelIdOffset); + AcademyFavorScheduleExcel.AddRewardParcelType(builder, RewardParcelTypeOffset); + AcademyFavorScheduleExcel.AddLocalizeScenarioId(builder, LocalizeScenarioId); + AcademyFavorScheduleExcel.AddLocation(builder, LocationOffset); return AcademyFavorScheduleExcel.EndAcademyFavorScheduleExcel(builder); } @@ -146,21 +146,21 @@ public struct AcademyFavorScheduleExcel : IFlatbufferObject } public static Offset Pack(FlatBufferBuilder builder, AcademyFavorScheduleExcelT _o) { if (_o == null) return default(Offset); - var _location = _o.Location == null ? default(StringOffset) : builder.CreateString(_o.Location); - var _reward_parcel_type = default(VectorOffset); + var _Location = _o.Location == null ? default(StringOffset) : builder.CreateString(_o.Location); + var _RewardParcelType = default(VectorOffset); if (_o.RewardParcelType != null) { - var __reward_parcel_type = _o.RewardParcelType.ToArray(); - _reward_parcel_type = CreateRewardParcelTypeVector(builder, __reward_parcel_type); + var __RewardParcelType = _o.RewardParcelType.ToArray(); + _RewardParcelType = CreateRewardParcelTypeVector(builder, __RewardParcelType); } - var _reward_parcel_id = default(VectorOffset); + var _RewardParcelId = default(VectorOffset); if (_o.RewardParcelId != null) { - var __reward_parcel_id = _o.RewardParcelId.ToArray(); - _reward_parcel_id = CreateRewardParcelIdVector(builder, __reward_parcel_id); + var __RewardParcelId = _o.RewardParcelId.ToArray(); + _RewardParcelId = CreateRewardParcelIdVector(builder, __RewardParcelId); } - var _reward_amount = default(VectorOffset); + var _RewardAmount = default(VectorOffset); if (_o.RewardAmount != null) { - var __reward_amount = _o.RewardAmount.ToArray(); - _reward_amount = CreateRewardAmountVector(builder, __reward_amount); + var __RewardAmount = _o.RewardAmount.ToArray(); + _RewardAmount = CreateRewardAmountVector(builder, __RewardAmount); } return CreateAcademyFavorScheduleExcel( builder, @@ -168,14 +168,14 @@ public struct AcademyFavorScheduleExcel : IFlatbufferObject _o.CharacterId, _o.ScheduleGroupId, _o.OrderInGroup, - _location, + _Location, _o.LocalizeScenarioId, _o.FavorRank, _o.SecretStoneAmount, _o.ScenarioSriptGroupId, - _reward_parcel_type, - _reward_parcel_id, - _reward_amount); + _RewardParcelType, + _RewardParcelId, + _RewardAmount); } } diff --git a/SCHALE.Common/FlatData/AcademyFavorScheduleExcelTable.cs b/SCHALE.Common/FlatData/AcademyFavorScheduleExcelTable.cs index a05ee2c..784b281 100644 --- a/SCHALE.Common/FlatData/AcademyFavorScheduleExcelTable.cs +++ b/SCHALE.Common/FlatData/AcademyFavorScheduleExcelTable.cs @@ -24,9 +24,9 @@ public struct AcademyFavorScheduleExcelTable : IFlatbufferObject public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } public static Offset CreateAcademyFavorScheduleExcelTable(FlatBufferBuilder builder, - VectorOffset data_listOffset = default(VectorOffset)) { + VectorOffset DataListOffset = default(VectorOffset)) { builder.StartTable(1); - AcademyFavorScheduleExcelTable.AddDataList(builder, data_listOffset); + AcademyFavorScheduleExcelTable.AddDataList(builder, DataListOffset); return AcademyFavorScheduleExcelTable.EndAcademyFavorScheduleExcelTable(builder); } @@ -53,15 +53,15 @@ public struct AcademyFavorScheduleExcelTable : IFlatbufferObject } public static Offset Pack(FlatBufferBuilder builder, AcademyFavorScheduleExcelTableT _o) { if (_o == null) return default(Offset); - var _data_list = default(VectorOffset); + var _DataList = default(VectorOffset); if (_o.DataList != null) { - var __data_list = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __data_list.Length; ++_j) { __data_list[_j] = SCHALE.Common.FlatData.AcademyFavorScheduleExcel.Pack(builder, _o.DataList[_j]); } - _data_list = CreateDataListVector(builder, __data_list); + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AcademyFavorScheduleExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); } return CreateAcademyFavorScheduleExcelTable( builder, - _data_list); + _DataList); } } diff --git a/SCHALE.Common/FlatData/AcademyLocationExcel.cs b/SCHALE.Common/FlatData/AcademyLocationExcel.cs index cb327cc..ecccf2e 100644 --- a/SCHALE.Common/FlatData/AcademyLocationExcel.cs +++ b/SCHALE.Common/FlatData/AcademyLocationExcel.cs @@ -52,7 +52,7 @@ public struct AcademyLocationExcel : IFlatbufferObject public ArraySegment? GetOpenConditionCountBytes() { return __p.__vector_as_arraysegment(14); } #endif public long[] GetOpenConditionCountArray() { return __p.__vector_as_array(14); } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardParcelId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long OpenTeacherRank { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -63,7 +63,7 @@ public struct AcademyLocationExcel : IFlatbufferObject StringOffset IconImagePathOffset = default(StringOffset), VectorOffset OpenConditionOffset = default(VectorOffset), VectorOffset OpenConditionCountOffset = default(VectorOffset), - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardParcelId = 0, long OpenTeacherRank = 0) { builder.StartTable(9); @@ -169,7 +169,7 @@ public class AcademyLocationExcelT this.IconImagePath = null; this.OpenCondition = null; this.OpenConditionCount = null; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardParcelId = 0; this.OpenTeacherRank = 0; } diff --git a/SCHALE.Common/FlatData/AcademyMessageConditions.cs b/SCHALE.Common/FlatData/AcademyMessageConditions.cs index 2da20bc..3c6db1f 100644 --- a/SCHALE.Common/FlatData/AcademyMessageConditions.cs +++ b/SCHALE.Common/FlatData/AcademyMessageConditions.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum AcademyMessageConditions : int { - None = 0, + None_ = 0, FavorRankUp = 1, AcademySchedule = 2, Answer = 3, diff --git a/SCHALE.Common/FlatData/AcademyMessageTypes.cs b/SCHALE.Common/FlatData/AcademyMessageTypes.cs index df511c9..130fe24 100644 --- a/SCHALE.Common/FlatData/AcademyMessageTypes.cs +++ b/SCHALE.Common/FlatData/AcademyMessageTypes.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum AcademyMessageTypes : int { - None = 0, + None_ = 0, Text = 1, Image = 2, }; diff --git a/SCHALE.Common/FlatData/AcademyMessanger1Excel.cs b/SCHALE.Common/FlatData/AcademyMessanger1Excel.cs index f05ee9f..3fa3791 100644 --- a/SCHALE.Common/FlatData/AcademyMessanger1Excel.cs +++ b/SCHALE.Common/FlatData/AcademyMessanger1Excel.cs @@ -23,14 +23,14 @@ public struct AcademyMessanger1Excel : IFlatbufferObject public long MessageGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CharacterId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageConditions)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageConditions.None; } } + public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageConditions)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageConditions.None_; } } public long ConditionValue { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PreConditionGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PreConditionFavorScheduleId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FavorScheduleId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long NextGroupId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FeedbackTimeMillisec { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageTypes.None; } } + public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageTypes.None_; } } public string ImagePath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetImagePathBytes() { return __p.__vector_as_span(26, 1); } @@ -57,14 +57,14 @@ public struct AcademyMessanger1Excel : IFlatbufferObject long MessageGroupId = 0, long Id = 0, long CharacterId = 0, - SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None, + SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None_, long ConditionValue = 0, long PreConditionGroupId = 0, long PreConditionFavorScheduleId = 0, long FavorScheduleId = 0, long NextGroupId = 0, long FeedbackTimeMillisec = 0, - SCHALE.Common.FlatData.AcademyMessageTypes MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None, + SCHALE.Common.FlatData.AcademyMessageTypes MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None_, StringOffset ImagePathOffset = default(StringOffset), StringOffset MessageKROffset = default(StringOffset), StringOffset MessageJPOffset = default(StringOffset)) { @@ -172,14 +172,14 @@ public class AcademyMessanger1ExcelT this.MessageGroupId = 0; this.Id = 0; this.CharacterId = 0; - this.MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None; + this.MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None_; this.ConditionValue = 0; this.PreConditionGroupId = 0; this.PreConditionFavorScheduleId = 0; this.FavorScheduleId = 0; this.NextGroupId = 0; this.FeedbackTimeMillisec = 0; - this.MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None; + this.MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None_; this.ImagePath = null; this.MessageKR = null; this.MessageJP = null; diff --git a/SCHALE.Common/FlatData/AcademyMessanger2Excel.cs b/SCHALE.Common/FlatData/AcademyMessanger2Excel.cs index 54432c1..6b2483b 100644 --- a/SCHALE.Common/FlatData/AcademyMessanger2Excel.cs +++ b/SCHALE.Common/FlatData/AcademyMessanger2Excel.cs @@ -23,14 +23,14 @@ public struct AcademyMessanger2Excel : IFlatbufferObject public long MessageGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CharacterId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageConditions)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageConditions.None; } } + public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageConditions)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageConditions.None_; } } public long ConditionValue { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PreConditionGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PreConditionFavorScheduleId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FavorScheduleId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long NextGroupId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FeedbackTimeMillisec { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageTypes.None; } } + public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageTypes.None_; } } public string ImagePath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetImagePathBytes() { return __p.__vector_as_span(26, 1); } @@ -57,14 +57,14 @@ public struct AcademyMessanger2Excel : IFlatbufferObject long MessageGroupId = 0, long Id = 0, long CharacterId = 0, - SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None, + SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None_, long ConditionValue = 0, long PreConditionGroupId = 0, long PreConditionFavorScheduleId = 0, long FavorScheduleId = 0, long NextGroupId = 0, long FeedbackTimeMillisec = 0, - SCHALE.Common.FlatData.AcademyMessageTypes MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None, + SCHALE.Common.FlatData.AcademyMessageTypes MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None_, StringOffset ImagePathOffset = default(StringOffset), StringOffset MessageKROffset = default(StringOffset), StringOffset MessageJPOffset = default(StringOffset)) { @@ -172,14 +172,14 @@ public class AcademyMessanger2ExcelT this.MessageGroupId = 0; this.Id = 0; this.CharacterId = 0; - this.MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None; + this.MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None_; this.ConditionValue = 0; this.PreConditionGroupId = 0; this.PreConditionFavorScheduleId = 0; this.FavorScheduleId = 0; this.NextGroupId = 0; this.FeedbackTimeMillisec = 0; - this.MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None; + this.MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None_; this.ImagePath = null; this.MessageKR = null; this.MessageJP = null; diff --git a/SCHALE.Common/FlatData/AcademyMessanger3Excel.cs b/SCHALE.Common/FlatData/AcademyMessanger3Excel.cs index 98a3f7c..2a679c5 100644 --- a/SCHALE.Common/FlatData/AcademyMessanger3Excel.cs +++ b/SCHALE.Common/FlatData/AcademyMessanger3Excel.cs @@ -23,14 +23,14 @@ public struct AcademyMessanger3Excel : IFlatbufferObject public long MessageGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CharacterId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageConditions)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageConditions.None; } } + public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageConditions)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageConditions.None_; } } public long ConditionValue { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PreConditionGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PreConditionFavorScheduleId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FavorScheduleId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long NextGroupId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FeedbackTimeMillisec { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageTypes.None; } } + public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageTypes.None_; } } public string ImagePath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetImagePathBytes() { return __p.__vector_as_span(26, 1); } @@ -57,14 +57,14 @@ public struct AcademyMessanger3Excel : IFlatbufferObject long MessageGroupId = 0, long Id = 0, long CharacterId = 0, - SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None, + SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None_, long ConditionValue = 0, long PreConditionGroupId = 0, long PreConditionFavorScheduleId = 0, long FavorScheduleId = 0, long NextGroupId = 0, long FeedbackTimeMillisec = 0, - SCHALE.Common.FlatData.AcademyMessageTypes MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None, + SCHALE.Common.FlatData.AcademyMessageTypes MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None_, StringOffset ImagePathOffset = default(StringOffset), StringOffset MessageKROffset = default(StringOffset), StringOffset MessageJPOffset = default(StringOffset)) { @@ -172,14 +172,14 @@ public class AcademyMessanger3ExcelT this.MessageGroupId = 0; this.Id = 0; this.CharacterId = 0; - this.MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None; + this.MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None_; this.ConditionValue = 0; this.PreConditionGroupId = 0; this.PreConditionFavorScheduleId = 0; this.FavorScheduleId = 0; this.NextGroupId = 0; this.FeedbackTimeMillisec = 0; - this.MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None; + this.MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None_; this.ImagePath = null; this.MessageKR = null; this.MessageJP = null; diff --git a/SCHALE.Common/FlatData/AcademyMessangerExcel.cs b/SCHALE.Common/FlatData/AcademyMessangerExcel.cs index 71b5636..0a23258 100644 --- a/SCHALE.Common/FlatData/AcademyMessangerExcel.cs +++ b/SCHALE.Common/FlatData/AcademyMessangerExcel.cs @@ -23,14 +23,14 @@ public struct AcademyMessangerExcel : IFlatbufferObject public long MessageGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CharacterId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageConditions)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageConditions.None; } } + public SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageConditions)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageConditions.None_; } } public long ConditionValue { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PreConditionGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PreConditionFavorScheduleId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FavorScheduleId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long NextGroupId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FeedbackTimeMillisec { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageTypes.None; } } + public SCHALE.Common.FlatData.AcademyMessageTypes MessageType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.AcademyMessageTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AcademyMessageTypes.None_; } } public string ImagePath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetImagePathBytes() { return __p.__vector_as_span(26, 1); } @@ -57,14 +57,14 @@ public struct AcademyMessangerExcel : IFlatbufferObject long MessageGroupId = 0, long Id = 0, long CharacterId = 0, - SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None, + SCHALE.Common.FlatData.AcademyMessageConditions MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None_, long ConditionValue = 0, long PreConditionGroupId = 0, long PreConditionFavorScheduleId = 0, long FavorScheduleId = 0, long NextGroupId = 0, long FeedbackTimeMillisec = 0, - SCHALE.Common.FlatData.AcademyMessageTypes MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None, + SCHALE.Common.FlatData.AcademyMessageTypes MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None_, StringOffset ImagePathOffset = default(StringOffset), StringOffset MessageKROffset = default(StringOffset), StringOffset MessageJPOffset = default(StringOffset)) { @@ -172,14 +172,14 @@ public class AcademyMessangerExcelT this.MessageGroupId = 0; this.Id = 0; this.CharacterId = 0; - this.MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None; + this.MessageCondition = SCHALE.Common.FlatData.AcademyMessageConditions.None_; this.ConditionValue = 0; this.PreConditionGroupId = 0; this.PreConditionFavorScheduleId = 0; this.FavorScheduleId = 0; this.NextGroupId = 0; this.FeedbackTimeMillisec = 0; - this.MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None; + this.MessageType = SCHALE.Common.FlatData.AcademyMessageTypes.None_; this.ImagePath = null; this.MessageKR = null; this.MessageJP = null; diff --git a/SCHALE.Common/FlatData/AccountLevelExcelTable.cs b/SCHALE.Common/FlatData/AccountLevelExcelTable.cs deleted file mode 100644 index e20e204..0000000 --- a/SCHALE.Common/FlatData/AccountLevelExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct AccountLevelExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static AccountLevelExcelTable GetRootAsAccountLevelExcelTable(ByteBuffer _bb) { return GetRootAsAccountLevelExcelTable(_bb, new AccountLevelExcelTable()); } - public static AccountLevelExcelTable GetRootAsAccountLevelExcelTable(ByteBuffer _bb, AccountLevelExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public AccountLevelExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.AccountLevelExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AccountLevelExcel?)(new SCHALE.Common.FlatData.AccountLevelExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateAccountLevelExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - AccountLevelExcelTable.AddDataList(builder, DataListOffset); - return AccountLevelExcelTable.EndAccountLevelExcelTable(builder); - } - - public static void StartAccountLevelExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndAccountLevelExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public AccountLevelExcelTableT UnPack() { - var _o = new AccountLevelExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(AccountLevelExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("AccountLevelExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, AccountLevelExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AccountLevelExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateAccountLevelExcelTable( - builder, - _DataList); - } -} - -public class AccountLevelExcelTableT -{ - public List DataList { get; set; } - - public AccountLevelExcelTableT() { - this.DataList = null; - } -} - - -static public class AccountLevelExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AccountLevelExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/AimIKType.cs b/SCHALE.Common/FlatData/AimIKType.cs index db0009d..c512b03 100644 --- a/SCHALE.Common/FlatData/AimIKType.cs +++ b/SCHALE.Common/FlatData/AimIKType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum AimIKType : int { - None = 0, + None_ = 0, OneHandRight = 1, OneHandLeft = 2, TwoHandRight = 3, diff --git a/SCHALE.Common/FlatData/AmplifyDoTRemoveCondition.cs b/SCHALE.Common/FlatData/AmplifyDoTRemoveCondition.cs index c8f1b75..6188f2e 100644 --- a/SCHALE.Common/FlatData/AmplifyDoTRemoveCondition.cs +++ b/SCHALE.Common/FlatData/AmplifyDoTRemoveCondition.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum AmplifyDoTRemoveCondition : int { - None = 0, + None_ = 0, ApplyCount = 1, }; diff --git a/SCHALE.Common/FlatData/Anniversary.cs b/SCHALE.Common/FlatData/Anniversary.cs index 4a51663..f3448ed 100644 --- a/SCHALE.Common/FlatData/Anniversary.cs +++ b/SCHALE.Common/FlatData/Anniversary.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum Anniversary : int { - None = 0, + None_ = 0, UserBDay = 1, StudentBDay = 2, }; diff --git a/SCHALE.Common/FlatData/ArenaRewardExcel.cs b/SCHALE.Common/FlatData/ArenaRewardExcel.cs index ec09348..bc9d01d 100644 --- a/SCHALE.Common/FlatData/ArenaRewardExcel.cs +++ b/SCHALE.Common/FlatData/ArenaRewardExcel.cs @@ -21,7 +21,7 @@ public struct ArenaRewardExcel : IFlatbufferObject public ArenaRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long UniqueId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ArenaRewardType ArenaRewardType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ArenaRewardType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ArenaRewardType.None; } } + public SCHALE.Common.FlatData.ArenaRewardType ArenaRewardType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ArenaRewardType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ArenaRewardType.None_; } } public long RankStart { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RankEnd { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string RankIconPath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } @@ -60,7 +60,7 @@ public struct ArenaRewardExcel : IFlatbufferObject public static Offset CreateArenaRewardExcel(FlatBufferBuilder builder, long UniqueId = 0, - SCHALE.Common.FlatData.ArenaRewardType ArenaRewardType_ = SCHALE.Common.FlatData.ArenaRewardType.None, + SCHALE.Common.FlatData.ArenaRewardType ArenaRewardType_ = SCHALE.Common.FlatData.ArenaRewardType.None_, long RankStart = 0, long RankEnd = 0, StringOffset RankIconPathOffset = default(StringOffset), @@ -188,7 +188,7 @@ public class ArenaRewardExcelT public ArenaRewardExcelT() { this.UniqueId = 0; - this.ArenaRewardType_ = SCHALE.Common.FlatData.ArenaRewardType.None; + this.ArenaRewardType_ = SCHALE.Common.FlatData.ArenaRewardType.None_; this.RankStart = 0; this.RankEnd = 0; this.RankIconPath = null; diff --git a/SCHALE.Common/FlatData/ArenaRewardType.cs b/SCHALE.Common/FlatData/ArenaRewardType.cs index c1cef4d..ec3b16b 100644 --- a/SCHALE.Common/FlatData/ArenaRewardType.cs +++ b/SCHALE.Common/FlatData/ArenaRewardType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ArenaRewardType : int { - None = 0, + None_ = 0, Time = 1, Daily = 2, SeasonRecord = 3, diff --git a/SCHALE.Common/FlatData/AssistEchelonTypeConvertExcel.cs b/SCHALE.Common/FlatData/AssistEchelonTypeConvertExcel.cs index 76d8694..4b55a72 100644 --- a/SCHALE.Common/FlatData/AssistEchelonTypeConvertExcel.cs +++ b/SCHALE.Common/FlatData/AssistEchelonTypeConvertExcel.cs @@ -20,12 +20,12 @@ public struct AssistEchelonTypeConvertExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public AssistEchelonTypeConvertExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public SCHALE.Common.FlatData.EchelonType Contents { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None; } } - public SCHALE.Common.FlatData.EchelonType ConvertTo { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None; } } + public SCHALE.Common.FlatData.EchelonType Contents { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None_; } } + public SCHALE.Common.FlatData.EchelonType ConvertTo { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None_; } } public static Offset CreateAssistEchelonTypeConvertExcel(FlatBufferBuilder builder, - SCHALE.Common.FlatData.EchelonType Contents = SCHALE.Common.FlatData.EchelonType.None, - SCHALE.Common.FlatData.EchelonType ConvertTo = SCHALE.Common.FlatData.EchelonType.None) { + SCHALE.Common.FlatData.EchelonType Contents = SCHALE.Common.FlatData.EchelonType.None_, + SCHALE.Common.FlatData.EchelonType ConvertTo = SCHALE.Common.FlatData.EchelonType.None_) { builder.StartTable(2); AssistEchelonTypeConvertExcel.AddConvertTo(builder, ConvertTo); AssistEchelonTypeConvertExcel.AddContents(builder, Contents); @@ -64,8 +64,8 @@ public class AssistEchelonTypeConvertExcelT public SCHALE.Common.FlatData.EchelonType ConvertTo { get; set; } public AssistEchelonTypeConvertExcelT() { - this.Contents = SCHALE.Common.FlatData.EchelonType.None; - this.ConvertTo = SCHALE.Common.FlatData.EchelonType.None; + this.Contents = SCHALE.Common.FlatData.EchelonType.None_; + this.ConvertTo = SCHALE.Common.FlatData.EchelonType.None_; } } diff --git a/SCHALE.Common/FlatData/AssistEchelonTypeConvertExcelTable.cs b/SCHALE.Common/FlatData/AssistEchelonTypeConvertExcelTable.cs deleted file mode 100644 index 492ed8e..0000000 --- a/SCHALE.Common/FlatData/AssistEchelonTypeConvertExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct AssistEchelonTypeConvertExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static AssistEchelonTypeConvertExcelTable GetRootAsAssistEchelonTypeConvertExcelTable(ByteBuffer _bb) { return GetRootAsAssistEchelonTypeConvertExcelTable(_bb, new AssistEchelonTypeConvertExcelTable()); } - public static AssistEchelonTypeConvertExcelTable GetRootAsAssistEchelonTypeConvertExcelTable(ByteBuffer _bb, AssistEchelonTypeConvertExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public AssistEchelonTypeConvertExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.AssistEchelonTypeConvertExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AssistEchelonTypeConvertExcel?)(new SCHALE.Common.FlatData.AssistEchelonTypeConvertExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateAssistEchelonTypeConvertExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - AssistEchelonTypeConvertExcelTable.AddDataList(builder, DataListOffset); - return AssistEchelonTypeConvertExcelTable.EndAssistEchelonTypeConvertExcelTable(builder); - } - - public static void StartAssistEchelonTypeConvertExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndAssistEchelonTypeConvertExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public AssistEchelonTypeConvertExcelTableT UnPack() { - var _o = new AssistEchelonTypeConvertExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(AssistEchelonTypeConvertExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("AssistEchelonTypeConvertExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, AssistEchelonTypeConvertExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AssistEchelonTypeConvertExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateAssistEchelonTypeConvertExcelTable( - builder, - _DataList); - } -} - -public class AssistEchelonTypeConvertExcelTableT -{ - public List DataList { get; set; } - - public AssistEchelonTypeConvertExcelTableT() { - this.DataList = null; - } -} - - -static public class AssistEchelonTypeConvertExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AssistEchelonTypeConvertExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/AttendanceExcelTable.cs b/SCHALE.Common/FlatData/AttendanceExcelTable.cs deleted file mode 100644 index 4fed57c..0000000 --- a/SCHALE.Common/FlatData/AttendanceExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct AttendanceExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static AttendanceExcelTable GetRootAsAttendanceExcelTable(ByteBuffer _bb) { return GetRootAsAttendanceExcelTable(_bb, new AttendanceExcelTable()); } - public static AttendanceExcelTable GetRootAsAttendanceExcelTable(ByteBuffer _bb, AttendanceExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public AttendanceExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.AttendanceExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AttendanceExcel?)(new SCHALE.Common.FlatData.AttendanceExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateAttendanceExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - AttendanceExcelTable.AddDataList(builder, DataListOffset); - return AttendanceExcelTable.EndAttendanceExcelTable(builder); - } - - public static void StartAttendanceExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndAttendanceExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public AttendanceExcelTableT UnPack() { - var _o = new AttendanceExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(AttendanceExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("AttendanceExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, AttendanceExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AttendanceExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateAttendanceExcelTable( - builder, - _DataList); - } -} - -public class AttendanceExcelTableT -{ - public List DataList { get; set; } - - public AttendanceExcelTableT() { - this.DataList = null; - } -} - - -static public class AttendanceExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AttendanceExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/AttendanceRewardExcelTable.cs b/SCHALE.Common/FlatData/AttendanceRewardExcelTable.cs deleted file mode 100644 index d6e65d2..0000000 --- a/SCHALE.Common/FlatData/AttendanceRewardExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct AttendanceRewardExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static AttendanceRewardExcelTable GetRootAsAttendanceRewardExcelTable(ByteBuffer _bb) { return GetRootAsAttendanceRewardExcelTable(_bb, new AttendanceRewardExcelTable()); } - public static AttendanceRewardExcelTable GetRootAsAttendanceRewardExcelTable(ByteBuffer _bb, AttendanceRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public AttendanceRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.AttendanceRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.AttendanceRewardExcel?)(new SCHALE.Common.FlatData.AttendanceRewardExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateAttendanceRewardExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - AttendanceRewardExcelTable.AddDataList(builder, DataListOffset); - return AttendanceRewardExcelTable.EndAttendanceRewardExcelTable(builder); - } - - public static void StartAttendanceRewardExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndAttendanceRewardExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public AttendanceRewardExcelTableT UnPack() { - var _o = new AttendanceRewardExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(AttendanceRewardExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("AttendanceRewardExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, AttendanceRewardExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.AttendanceRewardExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateAttendanceRewardExcelTable( - builder, - _DataList); - } -} - -public class AttendanceRewardExcelTableT -{ - public List DataList { get; set; } - - public AttendanceRewardExcelTableT() { - this.DataList = null; - } -} - - -static public class AttendanceRewardExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.AttendanceRewardExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/BattleDialogType.cs b/SCHALE.Common/FlatData/BattleDialogType.cs new file mode 100644 index 0000000..2b5a2e4 --- /dev/null +++ b/SCHALE.Common/FlatData/BattleDialogType.cs @@ -0,0 +1,16 @@ +// +// automatically generated by the FlatBuffers compiler, do not modify +// + +namespace SCHALE.Common.FlatData +{ + +public enum BattleDialogType : int +{ + Talk = 0, + Think = 1, + Shout = 2, +}; + + +} diff --git a/SCHALE.Common/FlatData/BillingTransactionEndType.cs b/SCHALE.Common/FlatData/BillingTransactionEndType.cs index 0ff8eaf..6fd55b1 100644 --- a/SCHALE.Common/FlatData/BillingTransactionEndType.cs +++ b/SCHALE.Common/FlatData/BillingTransactionEndType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum BillingTransactionEndType : int { - None = 0, + None_ = 0, Success = 1, Cancel = 2, }; diff --git a/SCHALE.Common/FlatData/BossExternalBTExcel.cs b/SCHALE.Common/FlatData/BossExternalBTExcel.cs index aef9afb..ad90e8a 100644 --- a/SCHALE.Common/FlatData/BossExternalBTExcel.cs +++ b/SCHALE.Common/FlatData/BossExternalBTExcel.cs @@ -23,7 +23,7 @@ public struct BossExternalBTExcel : IFlatbufferObject public long ExternalBTId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long AIPhase { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ExternalBTNodeType ExternalBTNodeType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ExternalBTNodeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ExternalBTNodeType.Sequence; } } - public SCHALE.Common.FlatData.ExternalBTTrigger ExternalBTTrigger_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ExternalBTTrigger)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ExternalBTTrigger.None; } } + public SCHALE.Common.FlatData.ExternalBTTrigger ExternalBTTrigger_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ExternalBTTrigger)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ExternalBTTrigger.None_; } } public string TriggerArgument { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetTriggerArgumentBytes() { return __p.__vector_as_span(12, 1); } @@ -45,7 +45,7 @@ public struct BossExternalBTExcel : IFlatbufferObject long ExternalBTId = 0, long AIPhase = 0, SCHALE.Common.FlatData.ExternalBTNodeType ExternalBTNodeType_ = SCHALE.Common.FlatData.ExternalBTNodeType.Sequence, - SCHALE.Common.FlatData.ExternalBTTrigger ExternalBTTrigger_ = SCHALE.Common.FlatData.ExternalBTTrigger.None, + SCHALE.Common.FlatData.ExternalBTTrigger ExternalBTTrigger_ = SCHALE.Common.FlatData.ExternalBTTrigger.None_, StringOffset TriggerArgumentOffset = default(StringOffset), long BehaviorRate = 0, SCHALE.Common.FlatData.ExternalBehavior ExternalBehavior_ = SCHALE.Common.FlatData.ExternalBehavior.UseNextExSkill, @@ -123,7 +123,7 @@ public class BossExternalBTExcelT this.ExternalBTId = 0; this.AIPhase = 0; this.ExternalBTNodeType_ = SCHALE.Common.FlatData.ExternalBTNodeType.Sequence; - this.ExternalBTTrigger_ = SCHALE.Common.FlatData.ExternalBTTrigger.None; + this.ExternalBTTrigger_ = SCHALE.Common.FlatData.ExternalBTTrigger.None_; this.TriggerArgument = null; this.BehaviorRate = 0; this.ExternalBehavior_ = SCHALE.Common.FlatData.ExternalBehavior.UseNextExSkill; diff --git a/SCHALE.Common/FlatData/BuffIconType.cs b/SCHALE.Common/FlatData/BuffIconType.cs index 23e6d42..50d0111 100644 --- a/SCHALE.Common/FlatData/BuffIconType.cs +++ b/SCHALE.Common/FlatData/BuffIconType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum BuffIconType : int { - None = 0, + None_ = 0, Debuff_DyingPenalty = 1, CC_MindControl = 2, CC_Inoperative = 3, diff --git a/SCHALE.Common/FlatData/BuffType.cs b/SCHALE.Common/FlatData/BuffType.cs index 28eabd1..7c6c262 100644 --- a/SCHALE.Common/FlatData/BuffType.cs +++ b/SCHALE.Common/FlatData/BuffType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum BuffType : int { - None = 0, + None_ = 0, Buff_AttackPower = 1, Buff_CriticalChance = 2, Buff_CriticalDamage = 3, diff --git a/SCHALE.Common/FlatData/BulletType.cs b/SCHALE.Common/FlatData/BulletType.cs index b2e2a82..6b49af7 100644 --- a/SCHALE.Common/FlatData/BulletType.cs +++ b/SCHALE.Common/FlatData/BulletType.cs @@ -12,7 +12,7 @@ public enum BulletType : int Explosion = 2, Siege = 3, Mystic = 4, - None = 5, + None_ = 5, Sonic = 6, }; diff --git a/SCHALE.Common/FlatData/CafeCharacterState.cs b/SCHALE.Common/FlatData/CafeCharacterState.cs index 26cd5de..1ae7d72 100644 --- a/SCHALE.Common/FlatData/CafeCharacterState.cs +++ b/SCHALE.Common/FlatData/CafeCharacterState.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum CafeCharacterState : int { - None = 0, + None_ = 0, Idle = 1, Walk = 2, Reaction = 3, diff --git a/SCHALE.Common/FlatData/CafeInteractionExcel.cs b/SCHALE.Common/FlatData/CafeInteractionExcel.cs index a6dd01f..288e90b 100644 --- a/SCHALE.Common/FlatData/CafeInteractionExcel.cs +++ b/SCHALE.Common/FlatData/CafeInteractionExcel.cs @@ -52,7 +52,7 @@ public struct CafeInteractionExcel : IFlatbufferObject public ArraySegment? GetBubbleDurationBytes() { return __p.__vector_as_arraysegment(14); } #endif public long[] GetBubbleDurationArray() { return __p.__vector_as_array(14); } - public SCHALE.Common.FlatData.ParcelType FavorEmoticonRewardParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType FavorEmoticonRewardParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long FavorEmoticonRewardId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FavorEmoticonRewardAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string CafeCharacterState(int j) { int o = __p.__offset(22); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } @@ -65,7 +65,7 @@ public struct CafeInteractionExcel : IFlatbufferObject StringOffset IgnoreIfUnobtainedEndDateOffset = default(StringOffset), VectorOffset BubbleType_Offset = default(VectorOffset), VectorOffset BubbleDurationOffset = default(VectorOffset), - SCHALE.Common.FlatData.ParcelType FavorEmoticonRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType FavorEmoticonRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long FavorEmoticonRewardId = 0, long FavorEmoticonRewardAmount = 0, VectorOffset CafeCharacterStateOffset = default(VectorOffset)) { @@ -189,7 +189,7 @@ public class CafeInteractionExcelT this.IgnoreIfUnobtainedEndDate = null; this.BubbleType_ = null; this.BubbleDuration = null; - this.FavorEmoticonRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.FavorEmoticonRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.FavorEmoticonRewardId = 0; this.FavorEmoticonRewardAmount = 0; this.CafeCharacterState = null; diff --git a/SCHALE.Common/FlatData/CafeProductionExcel.cs b/SCHALE.Common/FlatData/CafeProductionExcel.cs index 4746861..a6a2215 100644 --- a/SCHALE.Common/FlatData/CafeProductionExcel.cs +++ b/SCHALE.Common/FlatData/CafeProductionExcel.cs @@ -22,7 +22,7 @@ public struct CafeProductionExcel : IFlatbufferObject public long CafeId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long Rank { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType CafeProductionParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType CafeProductionParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long CafeProductionParcelId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ParcelProductionCoefficient { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ParcelProductionCorrectionValue { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -31,7 +31,7 @@ public struct CafeProductionExcel : IFlatbufferObject public static Offset CreateCafeProductionExcel(FlatBufferBuilder builder, long CafeId = 0, long Rank = 0, - SCHALE.Common.FlatData.ParcelType CafeProductionParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType CafeProductionParcelType = SCHALE.Common.FlatData.ParcelType.None_, long CafeProductionParcelId = 0, long ParcelProductionCoefficient = 0, long ParcelProductionCorrectionValue = 0, @@ -101,7 +101,7 @@ public class CafeProductionExcelT public CafeProductionExcelT() { this.CafeId = 0; this.Rank = 0; - this.CafeProductionParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.CafeProductionParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.CafeProductionParcelId = 0; this.ParcelProductionCoefficient = 0; this.ParcelProductionCorrectionValue = 0; diff --git a/SCHALE.Common/FlatData/CampaignStageExcel.cs b/SCHALE.Common/FlatData/CampaignStageExcel.cs index df6e1e3..2081cc3 100644 --- a/SCHALE.Common/FlatData/CampaignStageExcel.cs +++ b/SCHALE.Common/FlatData/CampaignStageExcel.cs @@ -38,7 +38,7 @@ public struct CampaignStageExcel : IFlatbufferObject public byte[] GetStageNumberArray() { return __p.__vector_as_array(10); } public long CleardScenarioId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long BattleDuration { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long StageEnterCostId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int StageEnterCostAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int StageEnterEchelonCount { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -85,10 +85,10 @@ public struct CampaignStageExcel : IFlatbufferObject public ArraySegment? GetBgmIdBytes() { return __p.__vector_as_arraysegment(44); } #endif public byte[] GetBgmIdArray() { return __p.__vector_as_array(44); } - public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None; } } + public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None_; } } public long GroundId { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int StrategySkipGroundId { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(52); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(52); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None_; } } public long BGMId { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string FirstClearReportEventName { get { int o = __p.__offset(56); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -108,7 +108,7 @@ public struct CampaignStageExcel : IFlatbufferObject StringOffset StageNumberOffset = default(StringOffset), long CleardScenarioId = 0, long BattleDuration = 0, - SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_, long StageEnterCostId = 0, int StageEnterCostAmount = 0, int StageEnterEchelonCount = 0, @@ -123,10 +123,10 @@ public struct CampaignStageExcel : IFlatbufferObject SCHALE.Common.FlatData.StageTopography StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street, int RecommandLevel = 0, StringOffset BgmIdOffset = default(StringOffset), - SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None, + SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None_, long GroundId = 0, int StrategySkipGroundId = 0, - SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, + SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None_, long BGMId = 0, StringOffset FirstClearReportEventNameOffset = default(StringOffset), long TacticRewardExp = 0, @@ -344,7 +344,7 @@ public class CampaignStageExcelT this.StageNumber = null; this.CleardScenarioId = 0; this.BattleDuration = 0; - this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.StageEnterCostId = 0; this.StageEnterCostAmount = 0; this.StageEnterEchelonCount = 0; @@ -359,10 +359,10 @@ public class CampaignStageExcelT this.StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street; this.RecommandLevel = 0; this.BgmId = null; - this.StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None; + this.StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None_; this.GroundId = 0; this.StrategySkipGroundId = 0; - this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; + this.ContentType_ = SCHALE.Common.FlatData.ContentType.None_; this.BGMId = 0; this.FirstClearReportEventName = null; this.TacticRewardExp = 0; diff --git a/SCHALE.Common/FlatData/CampaignStageRewardExcel.cs b/SCHALE.Common/FlatData/CampaignStageRewardExcel.cs index cb5136c..1e80040 100644 --- a/SCHALE.Common/FlatData/CampaignStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/CampaignStageRewardExcel.cs @@ -23,7 +23,7 @@ public struct CampaignStageRewardExcel : IFlatbufferObject public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.RewardTag RewardTag_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } public int StageRewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType StageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType StageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long StageRewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int StageRewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } @@ -32,7 +32,7 @@ public struct CampaignStageRewardExcel : IFlatbufferObject long GroupId = 0, SCHALE.Common.FlatData.RewardTag RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default, int StageRewardProb = 0, - SCHALE.Common.FlatData.ParcelType StageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType StageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long StageRewardId = 0, int StageRewardAmount = 0, bool IsDisplayed = false) { @@ -102,7 +102,7 @@ public class CampaignStageRewardExcelT this.GroupId = 0; this.RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default; this.StageRewardProb = 0; - this.StageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.StageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.StageRewardId = 0; this.StageRewardAmount = 0; this.IsDisplayed = false; diff --git a/SCHALE.Common/FlatData/CampaignStrategyObjectExcel.cs b/SCHALE.Common/FlatData/CampaignStrategyObjectExcel.cs index 75a7e6a..2464fb1 100644 --- a/SCHALE.Common/FlatData/CampaignStrategyObjectExcel.cs +++ b/SCHALE.Common/FlatData/CampaignStrategyObjectExcel.cs @@ -36,8 +36,8 @@ public struct CampaignStrategyObjectExcel : IFlatbufferObject public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(10); } #endif public byte[] GetPrefabNameArray() { return __p.__vector_as_array(10); } - public SCHALE.Common.FlatData.StrategyObjectType StrategyObjectType_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.StrategyObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyObjectType.None; } } - public SCHALE.Common.FlatData.ParcelType StrategyRewardParcelType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.StrategyObjectType StrategyObjectType_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.StrategyObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyObjectType.None_; } } + public SCHALE.Common.FlatData.ParcelType StrategyRewardParcelType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long StrategyRewardID { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string StrategyRewardName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -59,8 +59,8 @@ public struct CampaignStrategyObjectExcel : IFlatbufferObject uint Key = 0, StringOffset NameOffset = default(StringOffset), StringOffset PrefabNameOffset = default(StringOffset), - SCHALE.Common.FlatData.StrategyObjectType StrategyObjectType_ = SCHALE.Common.FlatData.StrategyObjectType.None, - SCHALE.Common.FlatData.ParcelType StrategyRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.StrategyObjectType StrategyObjectType_ = SCHALE.Common.FlatData.StrategyObjectType.None_, + SCHALE.Common.FlatData.ParcelType StrategyRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long StrategyRewardID = 0, StringOffset StrategyRewardNameOffset = default(StringOffset), int StrategyRewardAmount = 0, @@ -180,8 +180,8 @@ public class CampaignStrategyObjectExcelT this.Key = 0; this.Name = null; this.PrefabName = null; - this.StrategyObjectType_ = SCHALE.Common.FlatData.StrategyObjectType.None; - this.StrategyRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.StrategyObjectType_ = SCHALE.Common.FlatData.StrategyObjectType.None_; + this.StrategyRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.StrategyRewardID = 0; this.StrategyRewardName = null; this.StrategyRewardAmount = 0; diff --git a/SCHALE.Common/FlatData/CampaignUnitExcel.cs b/SCHALE.Common/FlatData/CampaignUnitExcel.cs index f325d8d..8d4baaa 100644 --- a/SCHALE.Common/FlatData/CampaignUnitExcel.cs +++ b/SCHALE.Common/FlatData/CampaignUnitExcel.cs @@ -61,9 +61,9 @@ public struct CampaignUnitExcel : IFlatbufferObject public long[] GetClearScenarioGroupIdArray() { return __p.__vector_as_array(16); } public long GroundId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int MoveRange { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.StrategyAIType AIMoveType { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.StrategyAIType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyAIType.None; } } + public SCHALE.Common.FlatData.StrategyAIType AIMoveType { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.StrategyAIType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyAIType.None_; } } public SCHALE.Common.FlatData.HexaUnitGrade Grade { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.HexaUnitGrade)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.HexaUnitGrade.Grade1; } } - public SCHALE.Common.FlatData.TacticEnvironment EnvironmentType { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.TacticEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEnvironment.None; } } + public SCHALE.Common.FlatData.TacticEnvironment EnvironmentType { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.TacticEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEnvironment.None_; } } public float Scale { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } public bool IsTacticSkip { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } @@ -77,9 +77,9 @@ public struct CampaignUnitExcel : IFlatbufferObject VectorOffset ClearScenarioGroupIdOffset = default(VectorOffset), long GroundId = 0, int MoveRange = 0, - SCHALE.Common.FlatData.StrategyAIType AIMoveType = SCHALE.Common.FlatData.StrategyAIType.None, + SCHALE.Common.FlatData.StrategyAIType AIMoveType = SCHALE.Common.FlatData.StrategyAIType.None_, SCHALE.Common.FlatData.HexaUnitGrade Grade = SCHALE.Common.FlatData.HexaUnitGrade.Grade1, - SCHALE.Common.FlatData.TacticEnvironment EnvironmentType = SCHALE.Common.FlatData.TacticEnvironment.None, + SCHALE.Common.FlatData.TacticEnvironment EnvironmentType = SCHALE.Common.FlatData.TacticEnvironment.None_, float Scale = 0.0f, bool IsTacticSkip = false) { builder.StartTable(14); @@ -214,9 +214,9 @@ public class CampaignUnitExcelT this.ClearScenarioGroupId = null; this.GroundId = 0; this.MoveRange = 0; - this.AIMoveType = SCHALE.Common.FlatData.StrategyAIType.None; + this.AIMoveType = SCHALE.Common.FlatData.StrategyAIType.None_; this.Grade = SCHALE.Common.FlatData.HexaUnitGrade.Grade1; - this.EnvironmentType = SCHALE.Common.FlatData.TacticEnvironment.None; + this.EnvironmentType = SCHALE.Common.FlatData.TacticEnvironment.None_; this.Scale = 0.0f; this.IsTacticSkip = false; } diff --git a/SCHALE.Common/FlatData/CharacterCalculationLimitExcel.cs b/SCHALE.Common/FlatData/CharacterCalculationLimitExcel.cs index 85152d1..4e33206 100644 --- a/SCHALE.Common/FlatData/CharacterCalculationLimitExcel.cs +++ b/SCHALE.Common/FlatData/CharacterCalculationLimitExcel.cs @@ -21,32 +21,64 @@ public struct CharacterCalculationLimitExcel : IFlatbufferObject public CharacterCalculationLimitExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None; } } + public SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None_; } } public SCHALE.Common.FlatData.BattleCalculationStat CalculationValue { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.BattleCalculationStat)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.BattleCalculationStat.FinalDamage; } } public long MinValue { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long MaxValue { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitStartValue(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int LimitStartValueLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetLimitStartValueBytes() { return __p.__vector_as_span(14, 8); } +#else + public ArraySegment? GetLimitStartValueBytes() { return __p.__vector_as_arraysegment(14); } +#endif + public long[] GetLimitStartValueArray() { return __p.__vector_as_array(14); } + public long DecreaseRate(int j) { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int DecreaseRateLength { get { int o = __p.__offset(16); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetDecreaseRateBytes() { return __p.__vector_as_span(16, 8); } +#else + public ArraySegment? GetDecreaseRateBytes() { return __p.__vector_as_arraysegment(16); } +#endif + public long[] GetDecreaseRateArray() { return __p.__vector_as_array(16); } public static Offset CreateCharacterCalculationLimitExcel(FlatBufferBuilder builder, long Id = 0, - SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None, + SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None_, SCHALE.Common.FlatData.BattleCalculationStat CalculationValue = SCHALE.Common.FlatData.BattleCalculationStat.FinalDamage, long MinValue = 0, - long MaxValue = 0) { - builder.StartTable(5); + long MaxValue = 0, + VectorOffset LimitStartValueOffset = default(VectorOffset), + VectorOffset DecreaseRateOffset = default(VectorOffset)) { + builder.StartTable(7); CharacterCalculationLimitExcel.AddMaxValue(builder, MaxValue); CharacterCalculationLimitExcel.AddMinValue(builder, MinValue); CharacterCalculationLimitExcel.AddId(builder, Id); + CharacterCalculationLimitExcel.AddDecreaseRate(builder, DecreaseRateOffset); + CharacterCalculationLimitExcel.AddLimitStartValue(builder, LimitStartValueOffset); CharacterCalculationLimitExcel.AddCalculationValue(builder, CalculationValue); CharacterCalculationLimitExcel.AddTacticEntityType_(builder, TacticEntityType_); return CharacterCalculationLimitExcel.EndCharacterCalculationLimitExcel(builder); } - public static void StartCharacterCalculationLimitExcel(FlatBufferBuilder builder) { builder.StartTable(5); } + public static void StartCharacterCalculationLimitExcel(FlatBufferBuilder builder) { builder.StartTable(7); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddTacticEntityType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticEntityType tacticEntityType_) { builder.AddInt(1, (int)tacticEntityType_, 0); } public static void AddCalculationValue(FlatBufferBuilder builder, SCHALE.Common.FlatData.BattleCalculationStat calculationValue) { builder.AddInt(2, (int)calculationValue, 0); } public static void AddMinValue(FlatBufferBuilder builder, long minValue) { builder.AddLong(3, minValue, 0); } public static void AddMaxValue(FlatBufferBuilder builder, long maxValue) { builder.AddLong(4, maxValue, 0); } + public static void AddLimitStartValue(FlatBufferBuilder builder, VectorOffset limitStartValueOffset) { builder.AddOffset(5, limitStartValueOffset.Value, 0); } + public static VectorOffset CreateLimitStartValueVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } + public static VectorOffset CreateLimitStartValueVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLimitStartValueVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateLimitStartValueVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartLimitStartValueVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } + public static void AddDecreaseRate(FlatBufferBuilder builder, VectorOffset decreaseRateOffset) { builder.AddOffset(6, decreaseRateOffset.Value, 0); } + public static VectorOffset CreateDecreaseRateVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } + public static VectorOffset CreateDecreaseRateVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecreaseRateVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateDecreaseRateVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartDecreaseRateVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static Offset EndCharacterCalculationLimitExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); @@ -63,16 +95,32 @@ public struct CharacterCalculationLimitExcel : IFlatbufferObject _o.CalculationValue = TableEncryptionService.Convert(this.CalculationValue, key); _o.MinValue = TableEncryptionService.Convert(this.MinValue, key); _o.MaxValue = TableEncryptionService.Convert(this.MaxValue, key); + _o.LimitStartValue = new List(); + for (var _j = 0; _j < this.LimitStartValueLength; ++_j) {_o.LimitStartValue.Add(TableEncryptionService.Convert(this.LimitStartValue(_j), key));} + _o.DecreaseRate = new List(); + for (var _j = 0; _j < this.DecreaseRateLength; ++_j) {_o.DecreaseRate.Add(TableEncryptionService.Convert(this.DecreaseRate(_j), key));} } public static Offset Pack(FlatBufferBuilder builder, CharacterCalculationLimitExcelT _o) { if (_o == null) return default(Offset); + var _LimitStartValue = default(VectorOffset); + if (_o.LimitStartValue != null) { + var __LimitStartValue = _o.LimitStartValue.ToArray(); + _LimitStartValue = CreateLimitStartValueVector(builder, __LimitStartValue); + } + var _DecreaseRate = default(VectorOffset); + if (_o.DecreaseRate != null) { + var __DecreaseRate = _o.DecreaseRate.ToArray(); + _DecreaseRate = CreateDecreaseRateVector(builder, __DecreaseRate); + } return CreateCharacterCalculationLimitExcel( builder, _o.Id, _o.TacticEntityType_, _o.CalculationValue, _o.MinValue, - _o.MaxValue); + _o.MaxValue, + _LimitStartValue, + _DecreaseRate); } } @@ -83,13 +131,17 @@ public class CharacterCalculationLimitExcelT public SCHALE.Common.FlatData.BattleCalculationStat CalculationValue { get; set; } public long MinValue { get; set; } public long MaxValue { get; set; } + public List LimitStartValue { get; set; } + public List DecreaseRate { get; set; } public CharacterCalculationLimitExcelT() { this.Id = 0; - this.TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None; + this.TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None_; this.CalculationValue = SCHALE.Common.FlatData.BattleCalculationStat.FinalDamage; this.MinValue = 0; this.MaxValue = 0; + this.LimitStartValue = null; + this.DecreaseRate = null; } } @@ -104,6 +156,8 @@ static public class CharacterCalculationLimitExcelVerify && verifier.VerifyField(tablePos, 8 /*CalculationValue*/, 4 /*SCHALE.Common.FlatData.BattleCalculationStat*/, 4, false) && verifier.VerifyField(tablePos, 10 /*MinValue*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 12 /*MaxValue*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 14 /*LimitStartValue*/, 8 /*long*/, false) + && verifier.VerifyVectorOfData(tablePos, 16 /*DecreaseRate*/, 8 /*long*/, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/CharacterDialogEventExcel.cs b/SCHALE.Common/FlatData/CharacterDialogEventExcel.cs index 6850b97..2a8fc0f 100644 --- a/SCHALE.Common/FlatData/CharacterDialogEventExcel.cs +++ b/SCHALE.Common/FlatData/CharacterDialogEventExcel.cs @@ -27,7 +27,7 @@ public struct CharacterDialogEventExcel : IFlatbufferObject public SCHALE.Common.FlatData.ProductionStep ProductionStep_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } public SCHALE.Common.FlatData.DialogCategory DialogCategory_ { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.DialogCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCategory.Cafe; } } public SCHALE.Common.FlatData.DialogCondition DialogCondition_ { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.DialogCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCondition.Idle; } } - public SCHALE.Common.FlatData.DialogConditionDetail DialogConditionDetail_ { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.DialogConditionDetail)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogConditionDetail.None; } } + public SCHALE.Common.FlatData.DialogConditionDetail DialogConditionDetail_ { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.DialogConditionDetail)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogConditionDetail.None_; } } public long DialogConditionDetailValue { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long GroupId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.DialogType DialogType_ { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.DialogType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogType.Talk; } } @@ -88,7 +88,7 @@ public struct CharacterDialogEventExcel : IFlatbufferObject SCHALE.Common.FlatData.ProductionStep ProductionStep_ = SCHALE.Common.FlatData.ProductionStep.ToDo, SCHALE.Common.FlatData.DialogCategory DialogCategory_ = SCHALE.Common.FlatData.DialogCategory.Cafe, SCHALE.Common.FlatData.DialogCondition DialogCondition_ = SCHALE.Common.FlatData.DialogCondition.Idle, - SCHALE.Common.FlatData.DialogConditionDetail DialogConditionDetail_ = SCHALE.Common.FlatData.DialogConditionDetail.None, + SCHALE.Common.FlatData.DialogConditionDetail DialogConditionDetail_ = SCHALE.Common.FlatData.DialogConditionDetail.None_, long DialogConditionDetailValue = 0, long GroupId = 0, SCHALE.Common.FlatData.DialogType DialogType_ = SCHALE.Common.FlatData.DialogType.Talk, @@ -264,7 +264,7 @@ public class CharacterDialogEventExcelT this.ProductionStep_ = SCHALE.Common.FlatData.ProductionStep.ToDo; this.DialogCategory_ = SCHALE.Common.FlatData.DialogCategory.Cafe; this.DialogCondition_ = SCHALE.Common.FlatData.DialogCondition.Idle; - this.DialogConditionDetail_ = SCHALE.Common.FlatData.DialogConditionDetail.None; + this.DialogConditionDetail_ = SCHALE.Common.FlatData.DialogConditionDetail.None_; this.DialogConditionDetailValue = 0; this.GroupId = 0; this.DialogType_ = SCHALE.Common.FlatData.DialogType.Talk; diff --git a/SCHALE.Common/FlatData/CharacterDialogExcel.cs b/SCHALE.Common/FlatData/CharacterDialogExcel.cs index 2fab15d..be09d76 100644 --- a/SCHALE.Common/FlatData/CharacterDialogExcel.cs +++ b/SCHALE.Common/FlatData/CharacterDialogExcel.cs @@ -23,10 +23,10 @@ public struct CharacterDialogExcel : IFlatbufferObject public long CharacterId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CostumeUniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long DisplayOrder { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ProductionStep ProductionStep { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } - public SCHALE.Common.FlatData.DialogCategory DialogCategory { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.DialogCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCategory.Cafe; } } - public SCHALE.Common.FlatData.DialogCondition DialogCondition { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.DialogCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCondition.Idle; } } - public SCHALE.Common.FlatData.Anniversary Anniversary { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.Anniversary)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Anniversary.None; } } + public SCHALE.Common.FlatData.ProductionStep ProductionStep_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } + public SCHALE.Common.FlatData.DialogCategory DialogCategory_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.DialogCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCategory.Cafe; } } + public SCHALE.Common.FlatData.DialogCondition DialogCondition_ { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.DialogCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogCondition.Idle; } } + public SCHALE.Common.FlatData.Anniversary Anniversary_ { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.Anniversary)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Anniversary.None_; } } public string StartDate { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStartDateBytes() { return __p.__vector_as_span(18, 1); } @@ -42,7 +42,7 @@ public struct CharacterDialogExcel : IFlatbufferObject #endif public byte[] GetEndDateArray() { return __p.__vector_as_array(20); } public long GroupId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.DialogType DialogType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.DialogType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogType.Talk; } } + public SCHALE.Common.FlatData.DialogType DialogType_ { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.DialogType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DialogType.Talk; } } public string ActionName { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetActionNameBytes() { return __p.__vector_as_span(26, 1); } @@ -58,20 +58,20 @@ public struct CharacterDialogExcel : IFlatbufferObject public ArraySegment? GetAnimationNameBytes() { return __p.__vector_as_arraysegment(30); } #endif public byte[] GetAnimationNameArray() { return __p.__vector_as_array(30); } - public string LocalizeKr { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public string LocalizeKR { get { int o = __p.__offset(32); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetLocalizeKrBytes() { return __p.__vector_as_span(32, 1); } + public Span GetLocalizeKRBytes() { return __p.__vector_as_span(32, 1); } #else - public ArraySegment? GetLocalizeKrBytes() { return __p.__vector_as_arraysegment(32); } + public ArraySegment? GetLocalizeKRBytes() { return __p.__vector_as_arraysegment(32); } #endif - public byte[] GetLocalizeKrArray() { return __p.__vector_as_array(32); } - public string LocalizeJp { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetLocalizeKRArray() { return __p.__vector_as_array(32); } + public string LocalizeJP { get { int o = __p.__offset(34); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetLocalizeJpBytes() { return __p.__vector_as_span(34, 1); } + public Span GetLocalizeJPBytes() { return __p.__vector_as_span(34, 1); } #else - public ArraySegment? GetLocalizeJpBytes() { return __p.__vector_as_arraysegment(34); } + public ArraySegment? GetLocalizeJPBytes() { return __p.__vector_as_arraysegment(34); } #endif - public byte[] GetLocalizeJpArray() { return __p.__vector_as_array(34); } + public byte[] GetLocalizeJPArray() { return __p.__vector_as_array(34); } public uint VoiceId(int j) { int o = __p.__offset(36); return o != 0 ? __p.bb.GetUint(__p.__vector(o) + j * 4) : (uint)0; } public int VoiceIdLength { get { int o = __p.__offset(36); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T @@ -84,69 +84,69 @@ public struct CharacterDialogExcel : IFlatbufferObject public float PosX { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } public float PosY { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } public bool CollectionVisible { get { int o = __p.__offset(44); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.CVCollectionType CvCollectionType { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.CVCollectionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CVCollectionType.CVNormal; } } + public SCHALE.Common.FlatData.CVCollectionType CVCollectionType_ { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.CVCollectionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CVCollectionType.CVNormal; } } public long UnlockFavorRank { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool UnlockEquipWeapon { get { int o = __p.__offset(50); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public string LocalizeCvGroup { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public string LocalizeCVGroup { get { int o = __p.__offset(52); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetLocalizeCvGroupBytes() { return __p.__vector_as_span(52, 1); } + public Span GetLocalizeCVGroupBytes() { return __p.__vector_as_span(52, 1); } #else - public ArraySegment? GetLocalizeCvGroupBytes() { return __p.__vector_as_arraysegment(52); } + public ArraySegment? GetLocalizeCVGroupBytes() { return __p.__vector_as_arraysegment(52); } #endif - public byte[] GetLocalizeCvGroupArray() { return __p.__vector_as_array(52); } + public byte[] GetLocalizeCVGroupArray() { return __p.__vector_as_array(52); } public static Offset CreateCharacterDialogExcel(FlatBufferBuilder builder, - long character_id = 0, - long costume_unique_id = 0, - long display_order = 0, - SCHALE.Common.FlatData.ProductionStep production_step = SCHALE.Common.FlatData.ProductionStep.ToDo, - SCHALE.Common.FlatData.DialogCategory dialog_category = SCHALE.Common.FlatData.DialogCategory.Cafe, - SCHALE.Common.FlatData.DialogCondition dialog_condition = SCHALE.Common.FlatData.DialogCondition.Idle, - SCHALE.Common.FlatData.Anniversary anniversary = SCHALE.Common.FlatData.Anniversary.None, - StringOffset start_dateOffset = default(StringOffset), - StringOffset end_dateOffset = default(StringOffset), - long group_id = 0, - SCHALE.Common.FlatData.DialogType dialog_type = SCHALE.Common.FlatData.DialogType.Talk, - StringOffset action_nameOffset = default(StringOffset), - long duration = 0, - StringOffset animation_nameOffset = default(StringOffset), - StringOffset localize_krOffset = default(StringOffset), - StringOffset localize_jpOffset = default(StringOffset), - VectorOffset voice_idOffset = default(VectorOffset), - bool apply_position = false, - float pos_x = 0.0f, - float pos_y = 0.0f, - bool collection_visible = false, - SCHALE.Common.FlatData.CVCollectionType cv_collection_type = SCHALE.Common.FlatData.CVCollectionType.CVNormal, - long unlock_favor_rank = 0, - bool unlock_equip_weapon = false, - StringOffset localize_cv_groupOffset = default(StringOffset)) { + long CharacterId = 0, + long CostumeUniqueId = 0, + long DisplayOrder = 0, + SCHALE.Common.FlatData.ProductionStep ProductionStep_ = SCHALE.Common.FlatData.ProductionStep.ToDo, + SCHALE.Common.FlatData.DialogCategory DialogCategory_ = SCHALE.Common.FlatData.DialogCategory.Cafe, + SCHALE.Common.FlatData.DialogCondition DialogCondition_ = SCHALE.Common.FlatData.DialogCondition.Idle, + SCHALE.Common.FlatData.Anniversary Anniversary_ = SCHALE.Common.FlatData.Anniversary.None_, + StringOffset StartDateOffset = default(StringOffset), + StringOffset EndDateOffset = default(StringOffset), + long GroupId = 0, + SCHALE.Common.FlatData.DialogType DialogType_ = SCHALE.Common.FlatData.DialogType.Talk, + StringOffset ActionNameOffset = default(StringOffset), + long Duration = 0, + StringOffset AnimationNameOffset = default(StringOffset), + StringOffset LocalizeKROffset = default(StringOffset), + StringOffset LocalizeJPOffset = default(StringOffset), + VectorOffset VoiceIdOffset = default(VectorOffset), + bool ApplyPosition = false, + float PosX = 0.0f, + float PosY = 0.0f, + bool CollectionVisible = false, + SCHALE.Common.FlatData.CVCollectionType CVCollectionType_ = SCHALE.Common.FlatData.CVCollectionType.CVNormal, + long UnlockFavorRank = 0, + bool UnlockEquipWeapon = false, + StringOffset LocalizeCVGroupOffset = default(StringOffset)) { builder.StartTable(25); - CharacterDialogExcel.AddUnlockFavorRank(builder, unlock_favor_rank); - CharacterDialogExcel.AddDuration(builder, duration); - CharacterDialogExcel.AddGroupId(builder, group_id); - CharacterDialogExcel.AddDisplayOrder(builder, display_order); - CharacterDialogExcel.AddCostumeUniqueId(builder, costume_unique_id); - CharacterDialogExcel.AddCharacterId(builder, character_id); - CharacterDialogExcel.AddLocalizeCvGroup(builder, localize_cv_groupOffset); - CharacterDialogExcel.AddCvCollectionType(builder, cv_collection_type); - CharacterDialogExcel.AddPosY(builder, pos_y); - CharacterDialogExcel.AddPosX(builder, pos_x); - CharacterDialogExcel.AddVoiceId(builder, voice_idOffset); - CharacterDialogExcel.AddLocalizeJp(builder, localize_jpOffset); - CharacterDialogExcel.AddLocalizeKr(builder, localize_krOffset); - CharacterDialogExcel.AddAnimationName(builder, animation_nameOffset); - CharacterDialogExcel.AddActionName(builder, action_nameOffset); - CharacterDialogExcel.AddDialogType(builder, dialog_type); - CharacterDialogExcel.AddEndDate(builder, end_dateOffset); - CharacterDialogExcel.AddStartDate(builder, start_dateOffset); - CharacterDialogExcel.AddAnniversary(builder, anniversary); - CharacterDialogExcel.AddDialogCondition(builder, dialog_condition); - CharacterDialogExcel.AddDialogCategory(builder, dialog_category); - CharacterDialogExcel.AddProductionStep(builder, production_step); - CharacterDialogExcel.AddUnlockEquipWeapon(builder, unlock_equip_weapon); - CharacterDialogExcel.AddCollectionVisible(builder, collection_visible); - CharacterDialogExcel.AddApplyPosition(builder, apply_position); + CharacterDialogExcel.AddUnlockFavorRank(builder, UnlockFavorRank); + CharacterDialogExcel.AddDuration(builder, Duration); + CharacterDialogExcel.AddGroupId(builder, GroupId); + CharacterDialogExcel.AddDisplayOrder(builder, DisplayOrder); + CharacterDialogExcel.AddCostumeUniqueId(builder, CostumeUniqueId); + CharacterDialogExcel.AddCharacterId(builder, CharacterId); + CharacterDialogExcel.AddLocalizeCVGroup(builder, LocalizeCVGroupOffset); + CharacterDialogExcel.AddCVCollectionType_(builder, CVCollectionType_); + CharacterDialogExcel.AddPosY(builder, PosY); + CharacterDialogExcel.AddPosX(builder, PosX); + CharacterDialogExcel.AddVoiceId(builder, VoiceIdOffset); + CharacterDialogExcel.AddLocalizeJP(builder, LocalizeJPOffset); + CharacterDialogExcel.AddLocalizeKR(builder, LocalizeKROffset); + CharacterDialogExcel.AddAnimationName(builder, AnimationNameOffset); + CharacterDialogExcel.AddActionName(builder, ActionNameOffset); + CharacterDialogExcel.AddDialogType_(builder, DialogType_); + CharacterDialogExcel.AddEndDate(builder, EndDateOffset); + CharacterDialogExcel.AddStartDate(builder, StartDateOffset); + CharacterDialogExcel.AddAnniversary_(builder, Anniversary_); + CharacterDialogExcel.AddDialogCondition_(builder, DialogCondition_); + CharacterDialogExcel.AddDialogCategory_(builder, DialogCategory_); + CharacterDialogExcel.AddProductionStep_(builder, ProductionStep_); + CharacterDialogExcel.AddUnlockEquipWeapon(builder, UnlockEquipWeapon); + CharacterDialogExcel.AddCollectionVisible(builder, CollectionVisible); + CharacterDialogExcel.AddApplyPosition(builder, ApplyPosition); return CharacterDialogExcel.EndCharacterDialogExcel(builder); } @@ -154,19 +154,19 @@ public struct CharacterDialogExcel : IFlatbufferObject public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(0, characterId, 0); } public static void AddCostumeUniqueId(FlatBufferBuilder builder, long costumeUniqueId) { builder.AddLong(1, costumeUniqueId, 0); } public static void AddDisplayOrder(FlatBufferBuilder builder, long displayOrder) { builder.AddLong(2, displayOrder, 0); } - public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(3, (int)productionStep, 0); } - public static void AddDialogCategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogCategory dialogCategory) { builder.AddInt(4, (int)dialogCategory, 0); } - public static void AddDialogCondition(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogCondition dialogCondition) { builder.AddInt(5, (int)dialogCondition, 0); } - public static void AddAnniversary(FlatBufferBuilder builder, SCHALE.Common.FlatData.Anniversary anniversary) { builder.AddInt(6, (int)anniversary, 0); } + public static void AddProductionStep_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep_) { builder.AddInt(3, (int)productionStep_, 0); } + public static void AddDialogCategory_(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogCategory dialogCategory_) { builder.AddInt(4, (int)dialogCategory_, 0); } + public static void AddDialogCondition_(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogCondition dialogCondition_) { builder.AddInt(5, (int)dialogCondition_, 0); } + public static void AddAnniversary_(FlatBufferBuilder builder, SCHALE.Common.FlatData.Anniversary anniversary_) { builder.AddInt(6, (int)anniversary_, 0); } public static void AddStartDate(FlatBufferBuilder builder, StringOffset startDateOffset) { builder.AddOffset(7, startDateOffset.Value, 0); } public static void AddEndDate(FlatBufferBuilder builder, StringOffset endDateOffset) { builder.AddOffset(8, endDateOffset.Value, 0); } public static void AddGroupId(FlatBufferBuilder builder, long groupId) { builder.AddLong(9, groupId, 0); } - public static void AddDialogType(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogType dialogType) { builder.AddInt(10, (int)dialogType, 0); } + public static void AddDialogType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.DialogType dialogType_) { builder.AddInt(10, (int)dialogType_, 0); } public static void AddActionName(FlatBufferBuilder builder, StringOffset actionNameOffset) { builder.AddOffset(11, actionNameOffset.Value, 0); } public static void AddDuration(FlatBufferBuilder builder, long duration) { builder.AddLong(12, duration, 0); } public static void AddAnimationName(FlatBufferBuilder builder, StringOffset animationNameOffset) { builder.AddOffset(13, animationNameOffset.Value, 0); } - public static void AddLocalizeKr(FlatBufferBuilder builder, StringOffset localizeKrOffset) { builder.AddOffset(14, localizeKrOffset.Value, 0); } - public static void AddLocalizeJp(FlatBufferBuilder builder, StringOffset localizeJpOffset) { builder.AddOffset(15, localizeJpOffset.Value, 0); } + public static void AddLocalizeKR(FlatBufferBuilder builder, StringOffset localizeKROffset) { builder.AddOffset(14, localizeKROffset.Value, 0); } + public static void AddLocalizeJP(FlatBufferBuilder builder, StringOffset localizeJPOffset) { builder.AddOffset(15, localizeJPOffset.Value, 0); } public static void AddVoiceId(FlatBufferBuilder builder, VectorOffset voiceIdOffset) { builder.AddOffset(16, voiceIdOffset.Value, 0); } public static VectorOffset CreateVoiceIdVector(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddUint(data[i]); return builder.EndVector(); } public static VectorOffset CreateVoiceIdVectorBlock(FlatBufferBuilder builder, uint[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } @@ -177,10 +177,10 @@ public struct CharacterDialogExcel : IFlatbufferObject public static void AddPosX(FlatBufferBuilder builder, float posX) { builder.AddFloat(18, posX, 0.0f); } public static void AddPosY(FlatBufferBuilder builder, float posY) { builder.AddFloat(19, posY, 0.0f); } public static void AddCollectionVisible(FlatBufferBuilder builder, bool collectionVisible) { builder.AddBool(20, collectionVisible, false); } - public static void AddCvCollectionType(FlatBufferBuilder builder, SCHALE.Common.FlatData.CVCollectionType cvCollectionType) { builder.AddInt(21, (int)cvCollectionType, 0); } + public static void AddCVCollectionType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.CVCollectionType cVCollectionType_) { builder.AddInt(21, (int)cVCollectionType_, 0); } public static void AddUnlockFavorRank(FlatBufferBuilder builder, long unlockFavorRank) { builder.AddLong(22, unlockFavorRank, 0); } public static void AddUnlockEquipWeapon(FlatBufferBuilder builder, bool unlockEquipWeapon) { builder.AddBool(23, unlockEquipWeapon, false); } - public static void AddLocalizeCvGroup(FlatBufferBuilder builder, StringOffset localizeCvGroupOffset) { builder.AddOffset(24, localizeCvGroupOffset.Value, 0); } + public static void AddLocalizeCVGroup(FlatBufferBuilder builder, StringOffset localizeCVGroupOffset) { builder.AddOffset(24, localizeCVGroupOffset.Value, 0); } public static Offset EndCharacterDialogExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); @@ -195,71 +195,71 @@ public struct CharacterDialogExcel : IFlatbufferObject _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); _o.CostumeUniqueId = TableEncryptionService.Convert(this.CostumeUniqueId, key); _o.DisplayOrder = TableEncryptionService.Convert(this.DisplayOrder, key); - _o.ProductionStep = TableEncryptionService.Convert(this.ProductionStep, key); - _o.DialogCategory = TableEncryptionService.Convert(this.DialogCategory, key); - _o.DialogCondition = TableEncryptionService.Convert(this.DialogCondition, key); - _o.Anniversary = TableEncryptionService.Convert(this.Anniversary, key); + _o.ProductionStep_ = TableEncryptionService.Convert(this.ProductionStep_, key); + _o.DialogCategory_ = TableEncryptionService.Convert(this.DialogCategory_, key); + _o.DialogCondition_ = TableEncryptionService.Convert(this.DialogCondition_, key); + _o.Anniversary_ = TableEncryptionService.Convert(this.Anniversary_, key); _o.StartDate = TableEncryptionService.Convert(this.StartDate, key); _o.EndDate = TableEncryptionService.Convert(this.EndDate, key); _o.GroupId = TableEncryptionService.Convert(this.GroupId, key); - _o.DialogType = TableEncryptionService.Convert(this.DialogType, key); + _o.DialogType_ = TableEncryptionService.Convert(this.DialogType_, key); _o.ActionName = TableEncryptionService.Convert(this.ActionName, key); _o.Duration = TableEncryptionService.Convert(this.Duration, key); _o.AnimationName = TableEncryptionService.Convert(this.AnimationName, key); - _o.LocalizeKr = TableEncryptionService.Convert(this.LocalizeKr, key); - _o.LocalizeJp = TableEncryptionService.Convert(this.LocalizeJp, key); + _o.LocalizeKR = TableEncryptionService.Convert(this.LocalizeKR, key); + _o.LocalizeJP = TableEncryptionService.Convert(this.LocalizeJP, key); _o.VoiceId = new List(); for (var _j = 0; _j < this.VoiceIdLength; ++_j) {_o.VoiceId.Add(TableEncryptionService.Convert(this.VoiceId(_j), key));} _o.ApplyPosition = TableEncryptionService.Convert(this.ApplyPosition, key); _o.PosX = TableEncryptionService.Convert(this.PosX, key); _o.PosY = TableEncryptionService.Convert(this.PosY, key); _o.CollectionVisible = TableEncryptionService.Convert(this.CollectionVisible, key); - _o.CvCollectionType = TableEncryptionService.Convert(this.CvCollectionType, key); + _o.CVCollectionType_ = TableEncryptionService.Convert(this.CVCollectionType_, key); _o.UnlockFavorRank = TableEncryptionService.Convert(this.UnlockFavorRank, key); _o.UnlockEquipWeapon = TableEncryptionService.Convert(this.UnlockEquipWeapon, key); - _o.LocalizeCvGroup = TableEncryptionService.Convert(this.LocalizeCvGroup, key); + _o.LocalizeCVGroup = TableEncryptionService.Convert(this.LocalizeCVGroup, key); } public static Offset Pack(FlatBufferBuilder builder, CharacterDialogExcelT _o) { if (_o == null) return default(Offset); - var _start_date = _o.StartDate == null ? default(StringOffset) : builder.CreateString(_o.StartDate); - var _end_date = _o.EndDate == null ? default(StringOffset) : builder.CreateString(_o.EndDate); - var _action_name = _o.ActionName == null ? default(StringOffset) : builder.CreateString(_o.ActionName); - var _animation_name = _o.AnimationName == null ? default(StringOffset) : builder.CreateString(_o.AnimationName); - var _localize_kr = _o.LocalizeKr == null ? default(StringOffset) : builder.CreateString(_o.LocalizeKr); - var _localize_jp = _o.LocalizeJp == null ? default(StringOffset) : builder.CreateString(_o.LocalizeJp); - var _voice_id = default(VectorOffset); + var _StartDate = _o.StartDate == null ? default(StringOffset) : builder.CreateString(_o.StartDate); + var _EndDate = _o.EndDate == null ? default(StringOffset) : builder.CreateString(_o.EndDate); + var _ActionName = _o.ActionName == null ? default(StringOffset) : builder.CreateString(_o.ActionName); + var _AnimationName = _o.AnimationName == null ? default(StringOffset) : builder.CreateString(_o.AnimationName); + var _LocalizeKR = _o.LocalizeKR == null ? default(StringOffset) : builder.CreateString(_o.LocalizeKR); + var _LocalizeJP = _o.LocalizeJP == null ? default(StringOffset) : builder.CreateString(_o.LocalizeJP); + var _VoiceId = default(VectorOffset); if (_o.VoiceId != null) { - var __voice_id = _o.VoiceId.ToArray(); - _voice_id = CreateVoiceIdVector(builder, __voice_id); + var __VoiceId = _o.VoiceId.ToArray(); + _VoiceId = CreateVoiceIdVector(builder, __VoiceId); } - var _localize_cv_group = _o.LocalizeCvGroup == null ? default(StringOffset) : builder.CreateString(_o.LocalizeCvGroup); + var _LocalizeCVGroup = _o.LocalizeCVGroup == null ? default(StringOffset) : builder.CreateString(_o.LocalizeCVGroup); return CreateCharacterDialogExcel( builder, _o.CharacterId, _o.CostumeUniqueId, _o.DisplayOrder, - _o.ProductionStep, - _o.DialogCategory, - _o.DialogCondition, - _o.Anniversary, - _start_date, - _end_date, + _o.ProductionStep_, + _o.DialogCategory_, + _o.DialogCondition_, + _o.Anniversary_, + _StartDate, + _EndDate, _o.GroupId, - _o.DialogType, - _action_name, + _o.DialogType_, + _ActionName, _o.Duration, - _animation_name, - _localize_kr, - _localize_jp, - _voice_id, + _AnimationName, + _LocalizeKR, + _LocalizeJP, + _VoiceId, _o.ApplyPosition, _o.PosX, _o.PosY, _o.CollectionVisible, - _o.CvCollectionType, + _o.CVCollectionType_, _o.UnlockFavorRank, _o.UnlockEquipWeapon, - _localize_cv_group); + _LocalizeCVGroup); } } @@ -268,55 +268,55 @@ public class CharacterDialogExcelT public long CharacterId { get; set; } public long CostumeUniqueId { get; set; } public long DisplayOrder { get; set; } - public SCHALE.Common.FlatData.ProductionStep ProductionStep { get; set; } - public SCHALE.Common.FlatData.DialogCategory DialogCategory { get; set; } - public SCHALE.Common.FlatData.DialogCondition DialogCondition { get; set; } - public SCHALE.Common.FlatData.Anniversary Anniversary { get; set; } + public SCHALE.Common.FlatData.ProductionStep ProductionStep_ { get; set; } + public SCHALE.Common.FlatData.DialogCategory DialogCategory_ { get; set; } + public SCHALE.Common.FlatData.DialogCondition DialogCondition_ { get; set; } + public SCHALE.Common.FlatData.Anniversary Anniversary_ { get; set; } public string StartDate { get; set; } public string EndDate { get; set; } public long GroupId { get; set; } - public SCHALE.Common.FlatData.DialogType DialogType { get; set; } + public SCHALE.Common.FlatData.DialogType DialogType_ { get; set; } public string ActionName { get; set; } public long Duration { get; set; } public string AnimationName { get; set; } - public string LocalizeKr { get; set; } - public string LocalizeJp { get; set; } + public string LocalizeKR { get; set; } + public string LocalizeJP { get; set; } public List VoiceId { get; set; } public bool ApplyPosition { get; set; } public float PosX { get; set; } public float PosY { get; set; } public bool CollectionVisible { get; set; } - public SCHALE.Common.FlatData.CVCollectionType CvCollectionType { get; set; } + public SCHALE.Common.FlatData.CVCollectionType CVCollectionType_ { get; set; } public long UnlockFavorRank { get; set; } public bool UnlockEquipWeapon { get; set; } - public string LocalizeCvGroup { get; set; } + public string LocalizeCVGroup { get; set; } public CharacterDialogExcelT() { this.CharacterId = 0; this.CostumeUniqueId = 0; this.DisplayOrder = 0; - this.ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo; - this.DialogCategory = SCHALE.Common.FlatData.DialogCategory.Cafe; - this.DialogCondition = SCHALE.Common.FlatData.DialogCondition.Idle; - this.Anniversary = SCHALE.Common.FlatData.Anniversary.None; + this.ProductionStep_ = SCHALE.Common.FlatData.ProductionStep.ToDo; + this.DialogCategory_ = SCHALE.Common.FlatData.DialogCategory.Cafe; + this.DialogCondition_ = SCHALE.Common.FlatData.DialogCondition.Idle; + this.Anniversary_ = SCHALE.Common.FlatData.Anniversary.None_; this.StartDate = null; this.EndDate = null; this.GroupId = 0; - this.DialogType = SCHALE.Common.FlatData.DialogType.Talk; + this.DialogType_ = SCHALE.Common.FlatData.DialogType.Talk; this.ActionName = null; this.Duration = 0; this.AnimationName = null; - this.LocalizeKr = null; - this.LocalizeJp = null; + this.LocalizeKR = null; + this.LocalizeJP = null; this.VoiceId = null; this.ApplyPosition = false; this.PosX = 0.0f; this.PosY = 0.0f; this.CollectionVisible = false; - this.CvCollectionType = SCHALE.Common.FlatData.CVCollectionType.CVNormal; + this.CVCollectionType_ = SCHALE.Common.FlatData.CVCollectionType.CVNormal; this.UnlockFavorRank = 0; this.UnlockEquipWeapon = false; - this.LocalizeCvGroup = null; + this.LocalizeCVGroup = null; } } @@ -329,28 +329,28 @@ static public class CharacterDialogExcelVerify && verifier.VerifyField(tablePos, 4 /*CharacterId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 6 /*CostumeUniqueId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 8 /*DisplayOrder*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 10 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) - && verifier.VerifyField(tablePos, 12 /*DialogCategory*/, 4 /*SCHALE.Common.FlatData.DialogCategory*/, 4, false) - && verifier.VerifyField(tablePos, 14 /*DialogCondition*/, 4 /*SCHALE.Common.FlatData.DialogCondition*/, 4, false) - && verifier.VerifyField(tablePos, 16 /*Anniversary*/, 4 /*SCHALE.Common.FlatData.Anniversary*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*ProductionStep_*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) + && verifier.VerifyField(tablePos, 12 /*DialogCategory_*/, 4 /*SCHALE.Common.FlatData.DialogCategory*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*DialogCondition_*/, 4 /*SCHALE.Common.FlatData.DialogCondition*/, 4, false) + && verifier.VerifyField(tablePos, 16 /*Anniversary_*/, 4 /*SCHALE.Common.FlatData.Anniversary*/, 4, false) && verifier.VerifyString(tablePos, 18 /*StartDate*/, false) && verifier.VerifyString(tablePos, 20 /*EndDate*/, false) && verifier.VerifyField(tablePos, 22 /*GroupId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 24 /*DialogType*/, 4 /*SCHALE.Common.FlatData.DialogType*/, 4, false) + && verifier.VerifyField(tablePos, 24 /*DialogType_*/, 4 /*SCHALE.Common.FlatData.DialogType*/, 4, false) && verifier.VerifyString(tablePos, 26 /*ActionName*/, false) && verifier.VerifyField(tablePos, 28 /*Duration*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 30 /*AnimationName*/, false) - && verifier.VerifyString(tablePos, 32 /*LocalizeKr*/, false) - && verifier.VerifyString(tablePos, 34 /*LocalizeJp*/, false) + && verifier.VerifyString(tablePos, 32 /*LocalizeKR*/, false) + && verifier.VerifyString(tablePos, 34 /*LocalizeJP*/, false) && verifier.VerifyVectorOfData(tablePos, 36 /*VoiceId*/, 4 /*uint*/, false) && verifier.VerifyField(tablePos, 38 /*ApplyPosition*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 40 /*PosX*/, 4 /*float*/, 4, false) && verifier.VerifyField(tablePos, 42 /*PosY*/, 4 /*float*/, 4, false) && verifier.VerifyField(tablePos, 44 /*CollectionVisible*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 46 /*CvCollectionType*/, 4 /*SCHALE.Common.FlatData.CVCollectionType*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*CVCollectionType_*/, 4 /*SCHALE.Common.FlatData.CVCollectionType*/, 4, false) && verifier.VerifyField(tablePos, 48 /*UnlockFavorRank*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 50 /*UnlockEquipWeapon*/, 1 /*bool*/, 1, false) - && verifier.VerifyString(tablePos, 52 /*LocalizeCvGroup*/, false) + && verifier.VerifyString(tablePos, 52 /*LocalizeCVGroup*/, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/CharacterDialogFieldExcel.cs b/SCHALE.Common/FlatData/CharacterDialogFieldExcel.cs index e2e87f7..3e62e17 100644 --- a/SCHALE.Common/FlatData/CharacterDialogFieldExcel.cs +++ b/SCHALE.Common/FlatData/CharacterDialogFieldExcel.cs @@ -23,7 +23,7 @@ public struct CharacterDialogFieldExcel : IFlatbufferObject public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int Phase { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int TargetIndex { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.FieldDialogType DialogType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.FieldDialogType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldDialogType.None; } } + public SCHALE.Common.FlatData.FieldDialogType DialogType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.FieldDialogType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldDialogType.None_; } } public long Duration { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string MotionName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -53,7 +53,7 @@ public struct CharacterDialogFieldExcel : IFlatbufferObject long GroupId = 0, int Phase = 0, int TargetIndex = 0, - SCHALE.Common.FlatData.FieldDialogType DialogType = SCHALE.Common.FlatData.FieldDialogType.None, + SCHALE.Common.FlatData.FieldDialogType DialogType = SCHALE.Common.FlatData.FieldDialogType.None_, long Duration = 0, StringOffset MotionNameOffset = default(StringOffset), bool IsInteractionDialog = false, @@ -144,7 +144,7 @@ public class CharacterDialogFieldExcelT this.GroupId = 0; this.Phase = 0; this.TargetIndex = 0; - this.DialogType = SCHALE.Common.FlatData.FieldDialogType.None; + this.DialogType = SCHALE.Common.FlatData.FieldDialogType.None_; this.Duration = 0; this.MotionName = null; this.IsInteractionDialog = false; diff --git a/SCHALE.Common/FlatData/CharacterExcel.cs b/SCHALE.Common/FlatData/CharacterExcel.cs index 5a0d453..14c8c8f 100644 --- a/SCHALE.Common/FlatData/CharacterExcel.cs +++ b/SCHALE.Common/FlatData/CharacterExcel.cs @@ -5,717 +5,709 @@ namespace SCHALE.Common.FlatData { - using global::System; - using global::System.Collections.Generic; - using global::SCHALE.Common.Crypto; - using global::Google.FlatBuffers; +using global::System; +using global::System.Collections.Generic; +using global::SCHALE.Common.Crypto; +using global::Google.FlatBuffers; - public struct CharacterExcel : IFlatbufferObject - { - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static CharacterExcel GetRootAsCharacterExcel(ByteBuffer _bb) { return GetRootAsCharacterExcel(_bb, new CharacterExcel()); } - public static CharacterExcel GetRootAsCharacterExcel(ByteBuffer _bb, CharacterExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public CharacterExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } +public struct CharacterExcel : IFlatbufferObject +{ + private Table __p; + public ByteBuffer ByteBuffer { get { return __p.bb; } } + public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } + public static CharacterExcel GetRootAsCharacterExcel(ByteBuffer _bb) { return GetRootAsCharacterExcel(_bb, new CharacterExcel()); } + public static CharacterExcel GetRootAsCharacterExcel(ByteBuffer _bb, CharacterExcel obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } + public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } + public CharacterExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public string DevName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string DevName { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetDevNameBytes() { return __p.__vector_as_span(6, 1); } #else - public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(6); } + public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(6); } #endif - public byte[] GetDevNameArray() { return __p.__vector_as_array(6); } - public long CostumeGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public bool IsPlayable { get { int o = __p.__offset(10); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.ProductionStep ProductionStep { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } - public bool CollectionVisible { get { int o = __p.__offset(14); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public string ReleaseDate { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetDevNameArray() { return __p.__vector_as_array(6); } + public long CostumeGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool IsPlayable { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.ProductionStep ProductionStep_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } + public bool CollectionVisible { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string ReleaseDate { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetReleaseDateBytes() { return __p.__vector_as_span(16, 1); } #else - public ArraySegment? GetReleaseDateBytes() { return __p.__vector_as_arraysegment(16); } + public ArraySegment? GetReleaseDateBytes() { return __p.__vector_as_arraysegment(16); } #endif - public byte[] GetReleaseDateArray() { return __p.__vector_as_array(16); } - public string CollectionVisibleStartDate { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetReleaseDateArray() { return __p.__vector_as_array(16); } + public string CollectionVisibleStartDate { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetCollectionVisibleStartDateBytes() { return __p.__vector_as_span(18, 1); } #else - public ArraySegment? GetCollectionVisibleStartDateBytes() { return __p.__vector_as_arraysegment(18); } + public ArraySegment? GetCollectionVisibleStartDateBytes() { return __p.__vector_as_arraysegment(18); } #endif - public byte[] GetCollectionVisibleStartDateArray() { return __p.__vector_as_array(18); } - public string CollectionVisibleEndDate { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetCollectionVisibleStartDateArray() { return __p.__vector_as_array(18); } + public string CollectionVisibleEndDate { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetCollectionVisibleEndDateBytes() { return __p.__vector_as_span(20, 1); } #else - public ArraySegment? GetCollectionVisibleEndDateBytes() { return __p.__vector_as_arraysegment(20); } + public ArraySegment? GetCollectionVisibleEndDateBytes() { return __p.__vector_as_arraysegment(20); } #endif - public byte[] GetCollectionVisibleEndDateArray() { return __p.__vector_as_array(20); } - public bool IsPlayableCharacter { get { int o = __p.__offset(22); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public uint LocalizeEtcId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - public SCHALE.Common.FlatData.Rarity Rarity { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } - public bool IsNpc { get { int o = __p.__offset(28); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.TacticEntityType TacticEntityType { get { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None; } } - public bool CanSurvive { get { int o = __p.__offset(32); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public bool IsDummy { get { int o = __p.__offset(34); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public int SubPartsCount { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.TacticRole TacticRole { get { int o = __p.__offset(38); return o != 0 ? (SCHALE.Common.FlatData.TacticRole)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticRole.None; } } - public SCHALE.Common.FlatData.WeaponType WeaponType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.WeaponType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeaponType.None; } } - public SCHALE.Common.FlatData.TacticRange TacticRange { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.TacticRange)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticRange.Back; } } - public SCHALE.Common.FlatData.BulletType BulletType { get { int o = __p.__offset(44); return o != 0 ? (SCHALE.Common.FlatData.BulletType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.BulletType.Normal; } } - public SCHALE.Common.FlatData.ArmorType ArmorType { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.ArmorType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ArmorType.LightArmor; } } - public SCHALE.Common.FlatData.AimIKType AimIkType { get { int o = __p.__offset(48); return o != 0 ? (SCHALE.Common.FlatData.AimIKType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AimIKType.None; } } - public SCHALE.Common.FlatData.School School { get { int o = __p.__offset(50); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.School.None; } } - public SCHALE.Common.FlatData.Club Club { get { int o = __p.__offset(52); return o != 0 ? (SCHALE.Common.FlatData.Club)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Club.None; } } - public int DefaultStarGrade { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MaxStarGrade { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType { get { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.StatLevelUpType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatLevelUpType.Standard; } } - public SCHALE.Common.FlatData.SquadType SquadType { get { int o = __p.__offset(60); return o != 0 ? (SCHALE.Common.FlatData.SquadType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SquadType.None; } } - public bool Jumpable { get { int o = __p.__offset(62); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public long PersonalityId { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CharacterAiId { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long ExternalBtId { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long MainCombatStyleId { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int CombatStyleIndex { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public string ScenarioCharacter { get { int o = __p.__offset(74); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetCollectionVisibleEndDateArray() { return __p.__vector_as_array(20); } + public bool IsPlayableCharacter { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public uint LocalizeEtcId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public SCHALE.Common.FlatData.Rarity Rarity_ { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } + public bool IsNPC { get { int o = __p.__offset(28); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ { get { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None_; } } + public bool CanSurvive { get { int o = __p.__offset(32); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsDummy { get { int o = __p.__offset(34); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public int SubPartsCount { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.TacticRole TacticRole_ { get { int o = __p.__offset(38); return o != 0 ? (SCHALE.Common.FlatData.TacticRole)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticRole.None_; } } + public SCHALE.Common.FlatData.WeaponType WeaponType_ { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.WeaponType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeaponType.None_; } } + public SCHALE.Common.FlatData.TacticRange TacticRange_ { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.TacticRange)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticRange.Back; } } + public SCHALE.Common.FlatData.BulletType BulletType_ { get { int o = __p.__offset(44); return o != 0 ? (SCHALE.Common.FlatData.BulletType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.BulletType.Normal; } } + public SCHALE.Common.FlatData.ArmorType ArmorType_ { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.ArmorType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ArmorType.LightArmor; } } + public SCHALE.Common.FlatData.AimIKType AimIKType_ { get { int o = __p.__offset(48); return o != 0 ? (SCHALE.Common.FlatData.AimIKType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.AimIKType.None_; } } + public SCHALE.Common.FlatData.School School_ { get { int o = __p.__offset(50); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.School.None_; } } + public SCHALE.Common.FlatData.Club Club_ { get { int o = __p.__offset(52); return o != 0 ? (SCHALE.Common.FlatData.Club)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Club.None_; } } + public int DefaultStarGrade { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MaxStarGrade { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType_ { get { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.StatLevelUpType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatLevelUpType.Standard; } } + public SCHALE.Common.FlatData.SquadType SquadType_ { get { int o = __p.__offset(60); return o != 0 ? (SCHALE.Common.FlatData.SquadType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SquadType.None_; } } + public bool Jumpable { get { int o = __p.__offset(62); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long PersonalityId { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CharacterAIId { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ExternalBTId { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long MainCombatStyleId { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int CombatStyleIndex { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string ScenarioCharacter { get { int o = __p.__offset(74); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetScenarioCharacterBytes() { return __p.__vector_as_span(74, 1); } #else - public ArraySegment? GetScenarioCharacterBytes() { return __p.__vector_as_arraysegment(74); } + public ArraySegment? GetScenarioCharacterBytes() { return __p.__vector_as_arraysegment(74); } #endif - public byte[] GetScenarioCharacterArray() { return __p.__vector_as_array(74); } - public uint SpawnTemplateId { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - public int FavorLevelupType { get { int o = __p.__offset(78); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.EquipmentCategory EquipmentSlot(int j) { int o = __p.__offset(80); return o != 0 ? (SCHALE.Common.FlatData.EquipmentCategory)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.EquipmentCategory)0; } - public int EquipmentSlotLength { get { int o = __p.__offset(80); return o != 0 ? __p.__vector_len(o) : 0; } } + public byte[] GetScenarioCharacterArray() { return __p.__vector_as_array(74); } + public uint SpawnTemplateId { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public int FavorLevelupType { get { int o = __p.__offset(78); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.EquipmentCategory EquipmentSlot(int j) { int o = __p.__offset(80); return o != 0 ? (SCHALE.Common.FlatData.EquipmentCategory)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.EquipmentCategory)0; } + public int EquipmentSlotLength { get { int o = __p.__offset(80); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetEquipmentSlotBytes() { return __p.__vector_as_span(80, 4); } #else - public ArraySegment? GetEquipmentSlotBytes() { return __p.__vector_as_arraysegment(80); } + public ArraySegment? GetEquipmentSlotBytes() { return __p.__vector_as_arraysegment(80); } #endif - public SCHALE.Common.FlatData.EquipmentCategory[] GetEquipmentSlotArray() { int o = __p.__offset(80); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.EquipmentCategory[] a = new SCHALE.Common.FlatData.EquipmentCategory[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.EquipmentCategory)__p.bb.GetInt(p + i * 4); } return a; } - public uint WeaponLocalizeId { get { int o = __p.__offset(82); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - public bool DisplayEnemyInfo { get { int o = __p.__offset(84); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public long BodyRadius { get { int o = __p.__offset(86); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long RandomEffectRadius { get { int o = __p.__offset(88); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public bool HpBarHide { get { int o = __p.__offset(90); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public float HpBarHeight { get { int o = __p.__offset(92); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } - public float HighlightFloaterHeight { get { int o = __p.__offset(94); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } - public float EmojiOffsetX { get { int o = __p.__offset(96); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } - public float EmojiOffsetY { get { int o = __p.__offset(98); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } - public int MoveStartFrame { get { int o = __p.__offset(100); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MoveEndFrame { get { int o = __p.__offset(102); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int JumpMotionFrame { get { int o = __p.__offset(104); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int AppearFrame { get { int o = __p.__offset(106); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public bool CanMove { get { int o = __p.__offset(108); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public bool CanFix { get { int o = __p.__offset(110); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public bool CanCrowdControl { get { int o = __p.__offset(112); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public bool CanBattleItemMove { get { int o = __p.__offset(114); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public bool IsAirUnit { get { int o = __p.__offset(116); return o != 0 ? 0 != __p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public long AirUnitHeight { get { int o = __p.__offset(118); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.Tag Tags(int j) { int o = __p.__offset(120); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } - public int TagsLength { get { int o = __p.__offset(120); return o != 0 ? __p.__vector_len(o) : 0; } } + public SCHALE.Common.FlatData.EquipmentCategory[] GetEquipmentSlotArray() { int o = __p.__offset(80); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.EquipmentCategory[] a = new SCHALE.Common.FlatData.EquipmentCategory[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.EquipmentCategory)__p.bb.GetInt(p + i * 4); } return a; } + public uint WeaponLocalizeId { get { int o = __p.__offset(82); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public bool DisplayEnemyInfo { get { int o = __p.__offset(84); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long BodyRadius { get { int o = __p.__offset(86); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RandomEffectRadius { get { int o = __p.__offset(88); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool HPBarHide { get { int o = __p.__offset(90); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public float HpBarHeight { get { int o = __p.__offset(92); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float HighlightFloaterHeight { get { int o = __p.__offset(94); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float EmojiOffsetX { get { int o = __p.__offset(96); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public float EmojiOffsetY { get { int o = __p.__offset(98); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int MoveStartFrame { get { int o = __p.__offset(100); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MoveEndFrame { get { int o = __p.__offset(102); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int JumpMotionFrame { get { int o = __p.__offset(104); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AppearFrame { get { int o = __p.__offset(106); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public bool CanMove { get { int o = __p.__offset(108); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool CanFix { get { int o = __p.__offset(110); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool CanCrowdControl { get { int o = __p.__offset(112); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool CanBattleItemMove { get { int o = __p.__offset(114); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public bool IsAirUnit { get { int o = __p.__offset(116); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public long AirUnitHeight { get { int o = __p.__offset(118); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Tag Tags(int j) { int o = __p.__offset(120); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int TagsLength { get { int o = __p.__offset(120); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T public Span GetTagsBytes() { return __p.__vector_as_span(120, 4); } #else - public ArraySegment? GetTagsBytes() { return __p.__vector_as_arraysegment(120); } + public ArraySegment? GetTagsBytes() { return __p.__vector_as_arraysegment(120); } #endif - public SCHALE.Common.FlatData.Tag[] GetTagsArray() { int o = __p.__offset(120); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.Tag[] a = new SCHALE.Common.FlatData.Tag[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(p + i * 4); } return a; } - public long SecretStoneItemId { get { int o = __p.__offset(122); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int SecretStoneItemAmount { get { int o = __p.__offset(124); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public long CharacterPieceItemId { get { int o = __p.__offset(126); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int CharacterPieceItemAmount { get { int o = __p.__offset(128); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public long CombineRecipeId { get { int o = __p.__offset(130); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.Tag[] GetTagsArray() { int o = __p.__offset(120); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.Tag[] a = new SCHALE.Common.FlatData.Tag[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(p + i * 4); } return a; } + public long SecretStoneItemId { get { int o = __p.__offset(122); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int SecretStoneItemAmount { get { int o = __p.__offset(124); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long CharacterPieceItemId { get { int o = __p.__offset(126); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int CharacterPieceItemAmount { get { int o = __p.__offset(128); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long CombineRecipeId { get { int o = __p.__offset(130); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public static Offset CreateCharacterExcel(FlatBufferBuilder builder, - long id = 0, - StringOffset dev_nameOffset = default(StringOffset), - long costume_group_id = 0, - bool is_playable = false, - SCHALE.Common.FlatData.ProductionStep production_step = SCHALE.Common.FlatData.ProductionStep.ToDo, - bool collection_visible = false, - StringOffset release_dateOffset = default(StringOffset), - StringOffset collection_visible_start_dateOffset = default(StringOffset), - StringOffset collection_visible_end_dateOffset = default(StringOffset), - bool is_playable_character = false, - uint localize_etc_id = 0, - SCHALE.Common.FlatData.Rarity rarity = SCHALE.Common.FlatData.Rarity.N, - bool is_npc = false, - SCHALE.Common.FlatData.TacticEntityType tactic_entity_type = SCHALE.Common.FlatData.TacticEntityType.None, - bool can_survive = false, - bool is_dummy = false, - int sub_parts_count = 0, - SCHALE.Common.FlatData.TacticRole tactic_role = SCHALE.Common.FlatData.TacticRole.None, - SCHALE.Common.FlatData.WeaponType weapon_type = SCHALE.Common.FlatData.WeaponType.None, - SCHALE.Common.FlatData.TacticRange tactic_range = SCHALE.Common.FlatData.TacticRange.Back, - SCHALE.Common.FlatData.BulletType bullet_type = SCHALE.Common.FlatData.BulletType.Normal, - SCHALE.Common.FlatData.ArmorType armor_type = SCHALE.Common.FlatData.ArmorType.LightArmor, - SCHALE.Common.FlatData.AimIKType aim_ik_type = SCHALE.Common.FlatData.AimIKType.None, - SCHALE.Common.FlatData.School school = SCHALE.Common.FlatData.School.None, - SCHALE.Common.FlatData.Club club = SCHALE.Common.FlatData.Club.None, - int default_star_grade = 0, - int max_star_grade = 0, - SCHALE.Common.FlatData.StatLevelUpType stat_level_up_type = SCHALE.Common.FlatData.StatLevelUpType.Standard, - SCHALE.Common.FlatData.SquadType squad_type = SCHALE.Common.FlatData.SquadType.None, - bool jumpable = false, - long personality_id = 0, - long character_ai_id = 0, - long external_bt_id = 0, - long main_combat_style_id = 0, - int combat_style_index = 0, - StringOffset scenario_characterOffset = default(StringOffset), - uint spawn_template_id = 0, - int favor_levelup_type = 0, - VectorOffset equipment_slotOffset = default(VectorOffset), - uint weapon_localize_id = 0, - bool display_enemy_info = false, - long body_radius = 0, - long random_effect_radius = 0, - bool hp_bar_hide = false, - float hp_bar_height = 0.0f, - float highlight_floater_height = 0.0f, - float emoji_offset_x = 0.0f, - float emoji_offset_y = 0.0f, - int move_start_frame = 0, - int move_end_frame = 0, - int jump_motion_frame = 0, - int appear_frame = 0, - bool can_move = false, - bool can_fix = false, - bool can_crowd_control = false, - bool can_battle_item_move = false, - bool is_air_unit = false, - long air_unit_height = 0, - VectorOffset tagsOffset = default(VectorOffset), - long secret_stone_item_id = 0, - int secret_stone_item_amount = 0, - long character_piece_item_id = 0, - int character_piece_item_amount = 0, - long combine_recipe_id = 0) - { - builder.StartTable(64); - CharacterExcel.AddCombineRecipeId(builder, combine_recipe_id); - CharacterExcel.AddCharacterPieceItemId(builder, character_piece_item_id); - CharacterExcel.AddSecretStoneItemId(builder, secret_stone_item_id); - CharacterExcel.AddAirUnitHeight(builder, air_unit_height); - CharacterExcel.AddRandomEffectRadius(builder, random_effect_radius); - CharacterExcel.AddBodyRadius(builder, body_radius); - CharacterExcel.AddMainCombatStyleId(builder, main_combat_style_id); - CharacterExcel.AddExternalBtId(builder, external_bt_id); - CharacterExcel.AddCharacterAiId(builder, character_ai_id); - CharacterExcel.AddPersonalityId(builder, personality_id); - CharacterExcel.AddCostumeGroupId(builder, costume_group_id); - CharacterExcel.AddId(builder, id); - CharacterExcel.AddCharacterPieceItemAmount(builder, character_piece_item_amount); - CharacterExcel.AddSecretStoneItemAmount(builder, secret_stone_item_amount); - CharacterExcel.AddTags(builder, tagsOffset); - CharacterExcel.AddAppearFrame(builder, appear_frame); - CharacterExcel.AddJumpMotionFrame(builder, jump_motion_frame); - CharacterExcel.AddMoveEndFrame(builder, move_end_frame); - CharacterExcel.AddMoveStartFrame(builder, move_start_frame); - CharacterExcel.AddEmojiOffsetY(builder, emoji_offset_y); - CharacterExcel.AddEmojiOffsetX(builder, emoji_offset_x); - CharacterExcel.AddHighlightFloaterHeight(builder, highlight_floater_height); - CharacterExcel.AddHpBarHeight(builder, hp_bar_height); - CharacterExcel.AddWeaponLocalizeId(builder, weapon_localize_id); - CharacterExcel.AddEquipmentSlot(builder, equipment_slotOffset); - CharacterExcel.AddFavorLevelupType(builder, favor_levelup_type); - CharacterExcel.AddSpawnTemplateId(builder, spawn_template_id); - CharacterExcel.AddScenarioCharacter(builder, scenario_characterOffset); - CharacterExcel.AddCombatStyleIndex(builder, combat_style_index); - CharacterExcel.AddSquadType(builder, squad_type); - CharacterExcel.AddStatLevelUpType(builder, stat_level_up_type); - CharacterExcel.AddMaxStarGrade(builder, max_star_grade); - CharacterExcel.AddDefaultStarGrade(builder, default_star_grade); - CharacterExcel.AddClub(builder, club); - CharacterExcel.AddSchool(builder, school); - CharacterExcel.AddAimIkType(builder, aim_ik_type); - CharacterExcel.AddArmorType(builder, armor_type); - CharacterExcel.AddBulletType(builder, bullet_type); - CharacterExcel.AddTacticRange(builder, tactic_range); - CharacterExcel.AddWeaponType(builder, weapon_type); - CharacterExcel.AddTacticRole(builder, tactic_role); - CharacterExcel.AddSubPartsCount(builder, sub_parts_count); - CharacterExcel.AddTacticEntityType(builder, tactic_entity_type); - CharacterExcel.AddRarity(builder, rarity); - CharacterExcel.AddLocalizeEtcId(builder, localize_etc_id); - CharacterExcel.AddCollectionVisibleEndDate(builder, collection_visible_end_dateOffset); - CharacterExcel.AddCollectionVisibleStartDate(builder, collection_visible_start_dateOffset); - CharacterExcel.AddReleaseDate(builder, release_dateOffset); - CharacterExcel.AddProductionStep(builder, production_step); - CharacterExcel.AddDevName(builder, dev_nameOffset); - CharacterExcel.AddIsAirUnit(builder, is_air_unit); - CharacterExcel.AddCanBattleItemMove(builder, can_battle_item_move); - CharacterExcel.AddCanCrowdControl(builder, can_crowd_control); - CharacterExcel.AddCanFix(builder, can_fix); - CharacterExcel.AddCanMove(builder, can_move); - CharacterExcel.AddHpBarHide(builder, hp_bar_hide); - CharacterExcel.AddDisplayEnemyInfo(builder, display_enemy_info); - CharacterExcel.AddJumpable(builder, jumpable); - CharacterExcel.AddIsDummy(builder, is_dummy); - CharacterExcel.AddCanSurvive(builder, can_survive); - CharacterExcel.AddIsNpc(builder, is_npc); - CharacterExcel.AddIsPlayableCharacter(builder, is_playable_character); - CharacterExcel.AddCollectionVisible(builder, collection_visible); - CharacterExcel.AddIsPlayable(builder, is_playable); - return CharacterExcel.EndCharacterExcel(builder); - } + public static Offset CreateCharacterExcel(FlatBufferBuilder builder, + long Id = 0, + StringOffset DevNameOffset = default(StringOffset), + long CostumeGroupId = 0, + bool IsPlayable = false, + SCHALE.Common.FlatData.ProductionStep ProductionStep_ = SCHALE.Common.FlatData.ProductionStep.ToDo, + bool CollectionVisible = false, + StringOffset ReleaseDateOffset = default(StringOffset), + StringOffset CollectionVisibleStartDateOffset = default(StringOffset), + StringOffset CollectionVisibleEndDateOffset = default(StringOffset), + bool IsPlayableCharacter = false, + uint LocalizeEtcId = 0, + SCHALE.Common.FlatData.Rarity Rarity_ = SCHALE.Common.FlatData.Rarity.N, + bool IsNPC = false, + SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None_, + bool CanSurvive = false, + bool IsDummy = false, + int SubPartsCount = 0, + SCHALE.Common.FlatData.TacticRole TacticRole_ = SCHALE.Common.FlatData.TacticRole.None_, + SCHALE.Common.FlatData.WeaponType WeaponType_ = SCHALE.Common.FlatData.WeaponType.None_, + SCHALE.Common.FlatData.TacticRange TacticRange_ = SCHALE.Common.FlatData.TacticRange.Back, + SCHALE.Common.FlatData.BulletType BulletType_ = SCHALE.Common.FlatData.BulletType.Normal, + SCHALE.Common.FlatData.ArmorType ArmorType_ = SCHALE.Common.FlatData.ArmorType.LightArmor, + SCHALE.Common.FlatData.AimIKType AimIKType_ = SCHALE.Common.FlatData.AimIKType.None_, + SCHALE.Common.FlatData.School School_ = SCHALE.Common.FlatData.School.None_, + SCHALE.Common.FlatData.Club Club_ = SCHALE.Common.FlatData.Club.None_, + int DefaultStarGrade = 0, + int MaxStarGrade = 0, + SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType_ = SCHALE.Common.FlatData.StatLevelUpType.Standard, + SCHALE.Common.FlatData.SquadType SquadType_ = SCHALE.Common.FlatData.SquadType.None_, + bool Jumpable = false, + long PersonalityId = 0, + long CharacterAIId = 0, + long ExternalBTId = 0, + long MainCombatStyleId = 0, + int CombatStyleIndex = 0, + StringOffset ScenarioCharacterOffset = default(StringOffset), + uint SpawnTemplateId = 0, + int FavorLevelupType = 0, + VectorOffset EquipmentSlotOffset = default(VectorOffset), + uint WeaponLocalizeId = 0, + bool DisplayEnemyInfo = false, + long BodyRadius = 0, + long RandomEffectRadius = 0, + bool HPBarHide = false, + float HpBarHeight = 0.0f, + float HighlightFloaterHeight = 0.0f, + float EmojiOffsetX = 0.0f, + float EmojiOffsetY = 0.0f, + int MoveStartFrame = 0, + int MoveEndFrame = 0, + int JumpMotionFrame = 0, + int AppearFrame = 0, + bool CanMove = false, + bool CanFix = false, + bool CanCrowdControl = false, + bool CanBattleItemMove = false, + bool IsAirUnit = false, + long AirUnitHeight = 0, + VectorOffset TagsOffset = default(VectorOffset), + long SecretStoneItemId = 0, + int SecretStoneItemAmount = 0, + long CharacterPieceItemId = 0, + int CharacterPieceItemAmount = 0, + long CombineRecipeId = 0) { + builder.StartTable(64); + CharacterExcel.AddCombineRecipeId(builder, CombineRecipeId); + CharacterExcel.AddCharacterPieceItemId(builder, CharacterPieceItemId); + CharacterExcel.AddSecretStoneItemId(builder, SecretStoneItemId); + CharacterExcel.AddAirUnitHeight(builder, AirUnitHeight); + CharacterExcel.AddRandomEffectRadius(builder, RandomEffectRadius); + CharacterExcel.AddBodyRadius(builder, BodyRadius); + CharacterExcel.AddMainCombatStyleId(builder, MainCombatStyleId); + CharacterExcel.AddExternalBTId(builder, ExternalBTId); + CharacterExcel.AddCharacterAIId(builder, CharacterAIId); + CharacterExcel.AddPersonalityId(builder, PersonalityId); + CharacterExcel.AddCostumeGroupId(builder, CostumeGroupId); + CharacterExcel.AddId(builder, Id); + CharacterExcel.AddCharacterPieceItemAmount(builder, CharacterPieceItemAmount); + CharacterExcel.AddSecretStoneItemAmount(builder, SecretStoneItemAmount); + CharacterExcel.AddTags(builder, TagsOffset); + CharacterExcel.AddAppearFrame(builder, AppearFrame); + CharacterExcel.AddJumpMotionFrame(builder, JumpMotionFrame); + CharacterExcel.AddMoveEndFrame(builder, MoveEndFrame); + CharacterExcel.AddMoveStartFrame(builder, MoveStartFrame); + CharacterExcel.AddEmojiOffsetY(builder, EmojiOffsetY); + CharacterExcel.AddEmojiOffsetX(builder, EmojiOffsetX); + CharacterExcel.AddHighlightFloaterHeight(builder, HighlightFloaterHeight); + CharacterExcel.AddHpBarHeight(builder, HpBarHeight); + CharacterExcel.AddWeaponLocalizeId(builder, WeaponLocalizeId); + CharacterExcel.AddEquipmentSlot(builder, EquipmentSlotOffset); + CharacterExcel.AddFavorLevelupType(builder, FavorLevelupType); + CharacterExcel.AddSpawnTemplateId(builder, SpawnTemplateId); + CharacterExcel.AddScenarioCharacter(builder, ScenarioCharacterOffset); + CharacterExcel.AddCombatStyleIndex(builder, CombatStyleIndex); + CharacterExcel.AddSquadType_(builder, SquadType_); + CharacterExcel.AddStatLevelUpType_(builder, StatLevelUpType_); + CharacterExcel.AddMaxStarGrade(builder, MaxStarGrade); + CharacterExcel.AddDefaultStarGrade(builder, DefaultStarGrade); + CharacterExcel.AddClub_(builder, Club_); + CharacterExcel.AddSchool_(builder, School_); + CharacterExcel.AddAimIKType_(builder, AimIKType_); + CharacterExcel.AddArmorType_(builder, ArmorType_); + CharacterExcel.AddBulletType_(builder, BulletType_); + CharacterExcel.AddTacticRange_(builder, TacticRange_); + CharacterExcel.AddWeaponType_(builder, WeaponType_); + CharacterExcel.AddTacticRole_(builder, TacticRole_); + CharacterExcel.AddSubPartsCount(builder, SubPartsCount); + CharacterExcel.AddTacticEntityType_(builder, TacticEntityType_); + CharacterExcel.AddRarity_(builder, Rarity_); + CharacterExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + CharacterExcel.AddCollectionVisibleEndDate(builder, CollectionVisibleEndDateOffset); + CharacterExcel.AddCollectionVisibleStartDate(builder, CollectionVisibleStartDateOffset); + CharacterExcel.AddReleaseDate(builder, ReleaseDateOffset); + CharacterExcel.AddProductionStep_(builder, ProductionStep_); + CharacterExcel.AddDevName(builder, DevNameOffset); + CharacterExcel.AddIsAirUnit(builder, IsAirUnit); + CharacterExcel.AddCanBattleItemMove(builder, CanBattleItemMove); + CharacterExcel.AddCanCrowdControl(builder, CanCrowdControl); + CharacterExcel.AddCanFix(builder, CanFix); + CharacterExcel.AddCanMove(builder, CanMove); + CharacterExcel.AddHPBarHide(builder, HPBarHide); + CharacterExcel.AddDisplayEnemyInfo(builder, DisplayEnemyInfo); + CharacterExcel.AddJumpable(builder, Jumpable); + CharacterExcel.AddIsDummy(builder, IsDummy); + CharacterExcel.AddCanSurvive(builder, CanSurvive); + CharacterExcel.AddIsNPC(builder, IsNPC); + CharacterExcel.AddIsPlayableCharacter(builder, IsPlayableCharacter); + CharacterExcel.AddCollectionVisible(builder, CollectionVisible); + CharacterExcel.AddIsPlayable(builder, IsPlayable); + return CharacterExcel.EndCharacterExcel(builder); + } - public static void StartCharacterExcel(FlatBufferBuilder builder) { builder.StartTable(64); } - public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } - public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(1, devNameOffset.Value, 0); } - public static void AddCostumeGroupId(FlatBufferBuilder builder, long costumeGroupId) { builder.AddLong(2, costumeGroupId, 0); } - public static void AddIsPlayable(FlatBufferBuilder builder, bool isPlayable) { builder.AddBool(3, isPlayable, false); } - public static void AddProductionStep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep) { builder.AddInt(4, (int)productionStep, 0); } - public static void AddCollectionVisible(FlatBufferBuilder builder, bool collectionVisible) { builder.AddBool(5, collectionVisible, false); } - public static void AddReleaseDate(FlatBufferBuilder builder, StringOffset releaseDateOffset) { builder.AddOffset(6, releaseDateOffset.Value, 0); } - public static void AddCollectionVisibleStartDate(FlatBufferBuilder builder, StringOffset collectionVisibleStartDateOffset) { builder.AddOffset(7, collectionVisibleStartDateOffset.Value, 0); } - public static void AddCollectionVisibleEndDate(FlatBufferBuilder builder, StringOffset collectionVisibleEndDateOffset) { builder.AddOffset(8, collectionVisibleEndDateOffset.Value, 0); } - public static void AddIsPlayableCharacter(FlatBufferBuilder builder, bool isPlayableCharacter) { builder.AddBool(9, isPlayableCharacter, false); } - public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(10, localizeEtcId, 0); } - public static void AddRarity(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity) { builder.AddInt(11, (int)rarity, 0); } - public static void AddIsNpc(FlatBufferBuilder builder, bool isNpc) { builder.AddBool(12, isNpc, false); } - public static void AddTacticEntityType(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticEntityType tacticEntityType) { builder.AddInt(13, (int)tacticEntityType, 0); } - public static void AddCanSurvive(FlatBufferBuilder builder, bool canSurvive) { builder.AddBool(14, canSurvive, false); } - public static void AddIsDummy(FlatBufferBuilder builder, bool isDummy) { builder.AddBool(15, isDummy, false); } - public static void AddSubPartsCount(FlatBufferBuilder builder, int subPartsCount) { builder.AddInt(16, subPartsCount, 0); } - public static void AddTacticRole(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticRole tacticRole) { builder.AddInt(17, (int)tacticRole, 0); } - public static void AddWeaponType(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeaponType weaponType) { builder.AddInt(18, (int)weaponType, 0); } - public static void AddTacticRange(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticRange tacticRange) { builder.AddInt(19, (int)tacticRange, 0); } - public static void AddBulletType(FlatBufferBuilder builder, SCHALE.Common.FlatData.BulletType bulletType) { builder.AddInt(20, (int)bulletType, 0); } - public static void AddArmorType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ArmorType armorType) { builder.AddInt(21, (int)armorType, 0); } - public static void AddAimIkType(FlatBufferBuilder builder, SCHALE.Common.FlatData.AimIKType aimIkType) { builder.AddInt(22, (int)aimIkType, 0); } - public static void AddSchool(FlatBufferBuilder builder, SCHALE.Common.FlatData.School school) { builder.AddInt(23, (int)school, 0); } - public static void AddClub(FlatBufferBuilder builder, SCHALE.Common.FlatData.Club club) { builder.AddInt(24, (int)club, 0); } - public static void AddDefaultStarGrade(FlatBufferBuilder builder, int defaultStarGrade) { builder.AddInt(25, defaultStarGrade, 0); } - public static void AddMaxStarGrade(FlatBufferBuilder builder, int maxStarGrade) { builder.AddInt(26, maxStarGrade, 0); } - public static void AddStatLevelUpType(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatLevelUpType statLevelUpType) { builder.AddInt(27, (int)statLevelUpType, 0); } - public static void AddSquadType(FlatBufferBuilder builder, SCHALE.Common.FlatData.SquadType squadType) { builder.AddInt(28, (int)squadType, 0); } - public static void AddJumpable(FlatBufferBuilder builder, bool jumpable) { builder.AddBool(29, jumpable, false); } - public static void AddPersonalityId(FlatBufferBuilder builder, long personalityId) { builder.AddLong(30, personalityId, 0); } - public static void AddCharacterAiId(FlatBufferBuilder builder, long characterAiId) { builder.AddLong(31, characterAiId, 0); } - public static void AddExternalBtId(FlatBufferBuilder builder, long externalBtId) { builder.AddLong(32, externalBtId, 0); } - public static void AddMainCombatStyleId(FlatBufferBuilder builder, long mainCombatStyleId) { builder.AddLong(33, mainCombatStyleId, 0); } - public static void AddCombatStyleIndex(FlatBufferBuilder builder, int combatStyleIndex) { builder.AddInt(34, combatStyleIndex, 0); } - public static void AddScenarioCharacter(FlatBufferBuilder builder, StringOffset scenarioCharacterOffset) { builder.AddOffset(35, scenarioCharacterOffset.Value, 0); } - public static void AddSpawnTemplateId(FlatBufferBuilder builder, uint spawnTemplateId) { builder.AddUint(36, spawnTemplateId, 0); } - public static void AddFavorLevelupType(FlatBufferBuilder builder, int favorLevelupType) { builder.AddInt(37, favorLevelupType, 0); } - public static void AddEquipmentSlot(FlatBufferBuilder builder, VectorOffset equipmentSlotOffset) { builder.AddOffset(38, equipmentSlotOffset.Value, 0); } - public static VectorOffset CreateEquipmentSlotVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentCategory[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } - public static VectorOffset CreateEquipmentSlotVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentCategory[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateEquipmentSlotVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateEquipmentSlotVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartEquipmentSlotVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static void AddWeaponLocalizeId(FlatBufferBuilder builder, uint weaponLocalizeId) { builder.AddUint(39, weaponLocalizeId, 0); } - public static void AddDisplayEnemyInfo(FlatBufferBuilder builder, bool displayEnemyInfo) { builder.AddBool(40, displayEnemyInfo, false); } - public static void AddBodyRadius(FlatBufferBuilder builder, long bodyRadius) { builder.AddLong(41, bodyRadius, 0); } - public static void AddRandomEffectRadius(FlatBufferBuilder builder, long randomEffectRadius) { builder.AddLong(42, randomEffectRadius, 0); } - public static void AddHpBarHide(FlatBufferBuilder builder, bool hpBarHide) { builder.AddBool(43, hpBarHide, false); } - public static void AddHpBarHeight(FlatBufferBuilder builder, float hpBarHeight) { builder.AddFloat(44, hpBarHeight, 0.0f); } - public static void AddHighlightFloaterHeight(FlatBufferBuilder builder, float highlightFloaterHeight) { builder.AddFloat(45, highlightFloaterHeight, 0.0f); } - public static void AddEmojiOffsetX(FlatBufferBuilder builder, float emojiOffsetX) { builder.AddFloat(46, emojiOffsetX, 0.0f); } - public static void AddEmojiOffsetY(FlatBufferBuilder builder, float emojiOffsetY) { builder.AddFloat(47, emojiOffsetY, 0.0f); } - public static void AddMoveStartFrame(FlatBufferBuilder builder, int moveStartFrame) { builder.AddInt(48, moveStartFrame, 0); } - public static void AddMoveEndFrame(FlatBufferBuilder builder, int moveEndFrame) { builder.AddInt(49, moveEndFrame, 0); } - public static void AddJumpMotionFrame(FlatBufferBuilder builder, int jumpMotionFrame) { builder.AddInt(50, jumpMotionFrame, 0); } - public static void AddAppearFrame(FlatBufferBuilder builder, int appearFrame) { builder.AddInt(51, appearFrame, 0); } - public static void AddCanMove(FlatBufferBuilder builder, bool canMove) { builder.AddBool(52, canMove, false); } - public static void AddCanFix(FlatBufferBuilder builder, bool canFix) { builder.AddBool(53, canFix, false); } - public static void AddCanCrowdControl(FlatBufferBuilder builder, bool canCrowdControl) { builder.AddBool(54, canCrowdControl, false); } - public static void AddCanBattleItemMove(FlatBufferBuilder builder, bool canBattleItemMove) { builder.AddBool(55, canBattleItemMove, false); } - public static void AddIsAirUnit(FlatBufferBuilder builder, bool isAirUnit) { builder.AddBool(56, isAirUnit, false); } - public static void AddAirUnitHeight(FlatBufferBuilder builder, long airUnitHeight) { builder.AddLong(57, airUnitHeight, 0); } - public static void AddTags(FlatBufferBuilder builder, VectorOffset tagsOffset) { builder.AddOffset(58, tagsOffset.Value, 0); } - public static VectorOffset CreateTagsVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } - public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static void AddSecretStoneItemId(FlatBufferBuilder builder, long secretStoneItemId) { builder.AddLong(59, secretStoneItemId, 0); } - public static void AddSecretStoneItemAmount(FlatBufferBuilder builder, int secretStoneItemAmount) { builder.AddInt(60, secretStoneItemAmount, 0); } - public static void AddCharacterPieceItemId(FlatBufferBuilder builder, long characterPieceItemId) { builder.AddLong(61, characterPieceItemId, 0); } - public static void AddCharacterPieceItemAmount(FlatBufferBuilder builder, int characterPieceItemAmount) { builder.AddInt(62, characterPieceItemAmount, 0); } - public static void AddCombineRecipeId(FlatBufferBuilder builder, long combineRecipeId) { builder.AddLong(63, combineRecipeId, 0); } - public static Offset EndCharacterExcel(FlatBufferBuilder builder) - { - int o = builder.EndTable(); - return new Offset(o); - } - public CharacterExcelT UnPack() - { - var _o = new CharacterExcelT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(CharacterExcelT _o) - { - byte[] key = TableEncryptionService.CreateKey("Character"); - _o.Id = TableEncryptionService.Convert(this.Id, key); - _o.DevName = TableEncryptionService.Convert(this.DevName, key); - _o.CostumeGroupId = TableEncryptionService.Convert(this.CostumeGroupId, key); - _o.IsPlayable = TableEncryptionService.Convert(this.IsPlayable, key); - _o.ProductionStep = TableEncryptionService.Convert(this.ProductionStep, key); - _o.CollectionVisible = TableEncryptionService.Convert(this.CollectionVisible, key); - _o.ReleaseDate = TableEncryptionService.Convert(this.ReleaseDate, key); - _o.CollectionVisibleStartDate = TableEncryptionService.Convert(this.CollectionVisibleStartDate, key); - _o.CollectionVisibleEndDate = TableEncryptionService.Convert(this.CollectionVisibleEndDate, key); - _o.IsPlayableCharacter = TableEncryptionService.Convert(this.IsPlayableCharacter, key); - _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); - _o.Rarity = TableEncryptionService.Convert(this.Rarity, key); - _o.IsNpc = TableEncryptionService.Convert(this.IsNpc, key); - _o.TacticEntityType = TableEncryptionService.Convert(this.TacticEntityType, key); - _o.CanSurvive = TableEncryptionService.Convert(this.CanSurvive, key); - _o.IsDummy = TableEncryptionService.Convert(this.IsDummy, key); - _o.SubPartsCount = TableEncryptionService.Convert(this.SubPartsCount, key); - _o.TacticRole = TableEncryptionService.Convert(this.TacticRole, key); - _o.WeaponType = TableEncryptionService.Convert(this.WeaponType, key); - _o.TacticRange = TableEncryptionService.Convert(this.TacticRange, key); - _o.BulletType = TableEncryptionService.Convert(this.BulletType, key); - _o.ArmorType = TableEncryptionService.Convert(this.ArmorType, key); - _o.AimIkType = TableEncryptionService.Convert(this.AimIkType, key); - _o.School = TableEncryptionService.Convert(this.School, key); - _o.Club = TableEncryptionService.Convert(this.Club, key); - _o.DefaultStarGrade = TableEncryptionService.Convert(this.DefaultStarGrade, key); - _o.MaxStarGrade = TableEncryptionService.Convert(this.MaxStarGrade, key); - _o.StatLevelUpType = TableEncryptionService.Convert(this.StatLevelUpType, key); - _o.SquadType = TableEncryptionService.Convert(this.SquadType, key); - _o.Jumpable = TableEncryptionService.Convert(this.Jumpable, key); - _o.PersonalityId = TableEncryptionService.Convert(this.PersonalityId, key); - _o.CharacterAiId = TableEncryptionService.Convert(this.CharacterAiId, key); - _o.ExternalBtId = TableEncryptionService.Convert(this.ExternalBtId, key); - _o.MainCombatStyleId = TableEncryptionService.Convert(this.MainCombatStyleId, key); - _o.CombatStyleIndex = TableEncryptionService.Convert(this.CombatStyleIndex, key); - _o.ScenarioCharacter = TableEncryptionService.Convert(this.ScenarioCharacter, key); - _o.SpawnTemplateId = TableEncryptionService.Convert(this.SpawnTemplateId, key); - _o.FavorLevelupType = TableEncryptionService.Convert(this.FavorLevelupType, key); - _o.EquipmentSlot = new List(); - for (var _j = 0; _j < this.EquipmentSlotLength; ++_j) { _o.EquipmentSlot.Add(TableEncryptionService.Convert(this.EquipmentSlot(_j), key)); } - _o.WeaponLocalizeId = TableEncryptionService.Convert(this.WeaponLocalizeId, key); - _o.DisplayEnemyInfo = TableEncryptionService.Convert(this.DisplayEnemyInfo, key); - _o.BodyRadius = TableEncryptionService.Convert(this.BodyRadius, key); - _o.RandomEffectRadius = TableEncryptionService.Convert(this.RandomEffectRadius, key); - _o.HpBarHide = TableEncryptionService.Convert(this.HpBarHide, key); - _o.HpBarHeight = TableEncryptionService.Convert(this.HpBarHeight, key); - _o.HighlightFloaterHeight = TableEncryptionService.Convert(this.HighlightFloaterHeight, key); - _o.EmojiOffsetX = TableEncryptionService.Convert(this.EmojiOffsetX, key); - _o.EmojiOffsetY = TableEncryptionService.Convert(this.EmojiOffsetY, key); - _o.MoveStartFrame = TableEncryptionService.Convert(this.MoveStartFrame, key); - _o.MoveEndFrame = TableEncryptionService.Convert(this.MoveEndFrame, key); - _o.JumpMotionFrame = TableEncryptionService.Convert(this.JumpMotionFrame, key); - _o.AppearFrame = TableEncryptionService.Convert(this.AppearFrame, key); - _o.CanMove = TableEncryptionService.Convert(this.CanMove, key); - _o.CanFix = TableEncryptionService.Convert(this.CanFix, key); - _o.CanCrowdControl = TableEncryptionService.Convert(this.CanCrowdControl, key); - _o.CanBattleItemMove = TableEncryptionService.Convert(this.CanBattleItemMove, key); - _o.IsAirUnit = TableEncryptionService.Convert(this.IsAirUnit, key); - _o.AirUnitHeight = TableEncryptionService.Convert(this.AirUnitHeight, key); - _o.Tags = new List(); - for (var _j = 0; _j < this.TagsLength; ++_j) { _o.Tags.Add(TableEncryptionService.Convert(this.Tags(_j), key)); } - _o.SecretStoneItemId = TableEncryptionService.Convert(this.SecretStoneItemId, key); - _o.SecretStoneItemAmount = TableEncryptionService.Convert(this.SecretStoneItemAmount, key); - _o.CharacterPieceItemId = TableEncryptionService.Convert(this.CharacterPieceItemId, key); - _o.CharacterPieceItemAmount = TableEncryptionService.Convert(this.CharacterPieceItemAmount, key); - _o.CombineRecipeId = TableEncryptionService.Convert(this.CombineRecipeId, key); - } - public static Offset Pack(FlatBufferBuilder builder, CharacterExcelT _o) - { - if (_o == null) return default(Offset); - var _dev_name = _o.DevName == null ? default(StringOffset) : builder.CreateString(_o.DevName); - var _release_date = _o.ReleaseDate == null ? default(StringOffset) : builder.CreateString(_o.ReleaseDate); - var _collection_visible_start_date = _o.CollectionVisibleStartDate == null ? default(StringOffset) : builder.CreateString(_o.CollectionVisibleStartDate); - var _collection_visible_end_date = _o.CollectionVisibleEndDate == null ? default(StringOffset) : builder.CreateString(_o.CollectionVisibleEndDate); - var _scenario_character = _o.ScenarioCharacter == null ? default(StringOffset) : builder.CreateString(_o.ScenarioCharacter); - var _equipment_slot = default(VectorOffset); - if (_o.EquipmentSlot != null) - { - var __equipment_slot = _o.EquipmentSlot.ToArray(); - _equipment_slot = CreateEquipmentSlotVector(builder, __equipment_slot); - } - var _tags = default(VectorOffset); - if (_o.Tags != null) - { - var __tags = _o.Tags.ToArray(); - _tags = CreateTagsVector(builder, __tags); - } - return CreateCharacterExcel( - builder, - _o.Id, - _dev_name, - _o.CostumeGroupId, - _o.IsPlayable, - _o.ProductionStep, - _o.CollectionVisible, - _release_date, - _collection_visible_start_date, - _collection_visible_end_date, - _o.IsPlayableCharacter, - _o.LocalizeEtcId, - _o.Rarity, - _o.IsNpc, - _o.TacticEntityType, - _o.CanSurvive, - _o.IsDummy, - _o.SubPartsCount, - _o.TacticRole, - _o.WeaponType, - _o.TacticRange, - _o.BulletType, - _o.ArmorType, - _o.AimIkType, - _o.School, - _o.Club, - _o.DefaultStarGrade, - _o.MaxStarGrade, - _o.StatLevelUpType, - _o.SquadType, - _o.Jumpable, - _o.PersonalityId, - _o.CharacterAiId, - _o.ExternalBtId, - _o.MainCombatStyleId, - _o.CombatStyleIndex, - _scenario_character, - _o.SpawnTemplateId, - _o.FavorLevelupType, - _equipment_slot, - _o.WeaponLocalizeId, - _o.DisplayEnemyInfo, - _o.BodyRadius, - _o.RandomEffectRadius, - _o.HpBarHide, - _o.HpBarHeight, - _o.HighlightFloaterHeight, - _o.EmojiOffsetX, - _o.EmojiOffsetY, - _o.MoveStartFrame, - _o.MoveEndFrame, - _o.JumpMotionFrame, - _o.AppearFrame, - _o.CanMove, - _o.CanFix, - _o.CanCrowdControl, - _o.CanBattleItemMove, - _o.IsAirUnit, - _o.AirUnitHeight, - _tags, - _o.SecretStoneItemId, - _o.SecretStoneItemAmount, - _o.CharacterPieceItemId, - _o.CharacterPieceItemAmount, - _o.CombineRecipeId); - } + public static void StartCharacterExcel(FlatBufferBuilder builder) { builder.StartTable(64); } + public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } + public static void AddDevName(FlatBufferBuilder builder, StringOffset devNameOffset) { builder.AddOffset(1, devNameOffset.Value, 0); } + public static void AddCostumeGroupId(FlatBufferBuilder builder, long costumeGroupId) { builder.AddLong(2, costumeGroupId, 0); } + public static void AddIsPlayable(FlatBufferBuilder builder, bool isPlayable) { builder.AddBool(3, isPlayable, false); } + public static void AddProductionStep_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep_) { builder.AddInt(4, (int)productionStep_, 0); } + public static void AddCollectionVisible(FlatBufferBuilder builder, bool collectionVisible) { builder.AddBool(5, collectionVisible, false); } + public static void AddReleaseDate(FlatBufferBuilder builder, StringOffset releaseDateOffset) { builder.AddOffset(6, releaseDateOffset.Value, 0); } + public static void AddCollectionVisibleStartDate(FlatBufferBuilder builder, StringOffset collectionVisibleStartDateOffset) { builder.AddOffset(7, collectionVisibleStartDateOffset.Value, 0); } + public static void AddCollectionVisibleEndDate(FlatBufferBuilder builder, StringOffset collectionVisibleEndDateOffset) { builder.AddOffset(8, collectionVisibleEndDateOffset.Value, 0); } + public static void AddIsPlayableCharacter(FlatBufferBuilder builder, bool isPlayableCharacter) { builder.AddBool(9, isPlayableCharacter, false); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(10, localizeEtcId, 0); } + public static void AddRarity_(FlatBufferBuilder builder, SCHALE.Common.FlatData.Rarity rarity_) { builder.AddInt(11, (int)rarity_, 0); } + public static void AddIsNPC(FlatBufferBuilder builder, bool isNPC) { builder.AddBool(12, isNPC, false); } + public static void AddTacticEntityType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticEntityType tacticEntityType_) { builder.AddInt(13, (int)tacticEntityType_, 0); } + public static void AddCanSurvive(FlatBufferBuilder builder, bool canSurvive) { builder.AddBool(14, canSurvive, false); } + public static void AddIsDummy(FlatBufferBuilder builder, bool isDummy) { builder.AddBool(15, isDummy, false); } + public static void AddSubPartsCount(FlatBufferBuilder builder, int subPartsCount) { builder.AddInt(16, subPartsCount, 0); } + public static void AddTacticRole_(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticRole tacticRole_) { builder.AddInt(17, (int)tacticRole_, 0); } + public static void AddWeaponType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.WeaponType weaponType_) { builder.AddInt(18, (int)weaponType_, 0); } + public static void AddTacticRange_(FlatBufferBuilder builder, SCHALE.Common.FlatData.TacticRange tacticRange_) { builder.AddInt(19, (int)tacticRange_, 0); } + public static void AddBulletType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.BulletType bulletType_) { builder.AddInt(20, (int)bulletType_, 0); } + public static void AddArmorType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ArmorType armorType_) { builder.AddInt(21, (int)armorType_, 0); } + public static void AddAimIKType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.AimIKType aimIKType_) { builder.AddInt(22, (int)aimIKType_, 0); } + public static void AddSchool_(FlatBufferBuilder builder, SCHALE.Common.FlatData.School school_) { builder.AddInt(23, (int)school_, 0); } + public static void AddClub_(FlatBufferBuilder builder, SCHALE.Common.FlatData.Club club_) { builder.AddInt(24, (int)club_, 0); } + public static void AddDefaultStarGrade(FlatBufferBuilder builder, int defaultStarGrade) { builder.AddInt(25, defaultStarGrade, 0); } + public static void AddMaxStarGrade(FlatBufferBuilder builder, int maxStarGrade) { builder.AddInt(26, maxStarGrade, 0); } + public static void AddStatLevelUpType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.StatLevelUpType statLevelUpType_) { builder.AddInt(27, (int)statLevelUpType_, 0); } + public static void AddSquadType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.SquadType squadType_) { builder.AddInt(28, (int)squadType_, 0); } + public static void AddJumpable(FlatBufferBuilder builder, bool jumpable) { builder.AddBool(29, jumpable, false); } + public static void AddPersonalityId(FlatBufferBuilder builder, long personalityId) { builder.AddLong(30, personalityId, 0); } + public static void AddCharacterAIId(FlatBufferBuilder builder, long characterAIId) { builder.AddLong(31, characterAIId, 0); } + public static void AddExternalBTId(FlatBufferBuilder builder, long externalBTId) { builder.AddLong(32, externalBTId, 0); } + public static void AddMainCombatStyleId(FlatBufferBuilder builder, long mainCombatStyleId) { builder.AddLong(33, mainCombatStyleId, 0); } + public static void AddCombatStyleIndex(FlatBufferBuilder builder, int combatStyleIndex) { builder.AddInt(34, combatStyleIndex, 0); } + public static void AddScenarioCharacter(FlatBufferBuilder builder, StringOffset scenarioCharacterOffset) { builder.AddOffset(35, scenarioCharacterOffset.Value, 0); } + public static void AddSpawnTemplateId(FlatBufferBuilder builder, uint spawnTemplateId) { builder.AddUint(36, spawnTemplateId, 0); } + public static void AddFavorLevelupType(FlatBufferBuilder builder, int favorLevelupType) { builder.AddInt(37, favorLevelupType, 0); } + public static void AddEquipmentSlot(FlatBufferBuilder builder, VectorOffset equipmentSlotOffset) { builder.AddOffset(38, equipmentSlotOffset.Value, 0); } + public static VectorOffset CreateEquipmentSlotVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentCategory[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } + public static VectorOffset CreateEquipmentSlotVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.EquipmentCategory[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEquipmentSlotVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateEquipmentSlotVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartEquipmentSlotVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddWeaponLocalizeId(FlatBufferBuilder builder, uint weaponLocalizeId) { builder.AddUint(39, weaponLocalizeId, 0); } + public static void AddDisplayEnemyInfo(FlatBufferBuilder builder, bool displayEnemyInfo) { builder.AddBool(40, displayEnemyInfo, false); } + public static void AddBodyRadius(FlatBufferBuilder builder, long bodyRadius) { builder.AddLong(41, bodyRadius, 0); } + public static void AddRandomEffectRadius(FlatBufferBuilder builder, long randomEffectRadius) { builder.AddLong(42, randomEffectRadius, 0); } + public static void AddHPBarHide(FlatBufferBuilder builder, bool hPBarHide) { builder.AddBool(43, hPBarHide, false); } + public static void AddHpBarHeight(FlatBufferBuilder builder, float hpBarHeight) { builder.AddFloat(44, hpBarHeight, 0.0f); } + public static void AddHighlightFloaterHeight(FlatBufferBuilder builder, float highlightFloaterHeight) { builder.AddFloat(45, highlightFloaterHeight, 0.0f); } + public static void AddEmojiOffsetX(FlatBufferBuilder builder, float emojiOffsetX) { builder.AddFloat(46, emojiOffsetX, 0.0f); } + public static void AddEmojiOffsetY(FlatBufferBuilder builder, float emojiOffsetY) { builder.AddFloat(47, emojiOffsetY, 0.0f); } + public static void AddMoveStartFrame(FlatBufferBuilder builder, int moveStartFrame) { builder.AddInt(48, moveStartFrame, 0); } + public static void AddMoveEndFrame(FlatBufferBuilder builder, int moveEndFrame) { builder.AddInt(49, moveEndFrame, 0); } + public static void AddJumpMotionFrame(FlatBufferBuilder builder, int jumpMotionFrame) { builder.AddInt(50, jumpMotionFrame, 0); } + public static void AddAppearFrame(FlatBufferBuilder builder, int appearFrame) { builder.AddInt(51, appearFrame, 0); } + public static void AddCanMove(FlatBufferBuilder builder, bool canMove) { builder.AddBool(52, canMove, false); } + public static void AddCanFix(FlatBufferBuilder builder, bool canFix) { builder.AddBool(53, canFix, false); } + public static void AddCanCrowdControl(FlatBufferBuilder builder, bool canCrowdControl) { builder.AddBool(54, canCrowdControl, false); } + public static void AddCanBattleItemMove(FlatBufferBuilder builder, bool canBattleItemMove) { builder.AddBool(55, canBattleItemMove, false); } + public static void AddIsAirUnit(FlatBufferBuilder builder, bool isAirUnit) { builder.AddBool(56, isAirUnit, false); } + public static void AddAirUnitHeight(FlatBufferBuilder builder, long airUnitHeight) { builder.AddLong(57, airUnitHeight, 0); } + public static void AddTags(FlatBufferBuilder builder, VectorOffset tagsOffset) { builder.AddOffset(58, tagsOffset.Value, 0); } + public static VectorOffset CreateTagsVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddSecretStoneItemId(FlatBufferBuilder builder, long secretStoneItemId) { builder.AddLong(59, secretStoneItemId, 0); } + public static void AddSecretStoneItemAmount(FlatBufferBuilder builder, int secretStoneItemAmount) { builder.AddInt(60, secretStoneItemAmount, 0); } + public static void AddCharacterPieceItemId(FlatBufferBuilder builder, long characterPieceItemId) { builder.AddLong(61, characterPieceItemId, 0); } + public static void AddCharacterPieceItemAmount(FlatBufferBuilder builder, int characterPieceItemAmount) { builder.AddInt(62, characterPieceItemAmount, 0); } + public static void AddCombineRecipeId(FlatBufferBuilder builder, long combineRecipeId) { builder.AddLong(63, combineRecipeId, 0); } + public static Offset EndCharacterExcel(FlatBufferBuilder builder) { + int o = builder.EndTable(); + return new Offset(o); + } + public CharacterExcelT UnPack() { + var _o = new CharacterExcelT(); + this.UnPackTo(_o); + return _o; + } + public void UnPackTo(CharacterExcelT _o) { + byte[] key = TableEncryptionService.CreateKey("Character"); + _o.Id = TableEncryptionService.Convert(this.Id, key); + _o.DevName = TableEncryptionService.Convert(this.DevName, key); + _o.CostumeGroupId = TableEncryptionService.Convert(this.CostumeGroupId, key); + _o.IsPlayable = TableEncryptionService.Convert(this.IsPlayable, key); + _o.ProductionStep_ = TableEncryptionService.Convert(this.ProductionStep_, key); + _o.CollectionVisible = TableEncryptionService.Convert(this.CollectionVisible, key); + _o.ReleaseDate = TableEncryptionService.Convert(this.ReleaseDate, key); + _o.CollectionVisibleStartDate = TableEncryptionService.Convert(this.CollectionVisibleStartDate, key); + _o.CollectionVisibleEndDate = TableEncryptionService.Convert(this.CollectionVisibleEndDate, key); + _o.IsPlayableCharacter = TableEncryptionService.Convert(this.IsPlayableCharacter, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.Rarity_ = TableEncryptionService.Convert(this.Rarity_, key); + _o.IsNPC = TableEncryptionService.Convert(this.IsNPC, key); + _o.TacticEntityType_ = TableEncryptionService.Convert(this.TacticEntityType_, key); + _o.CanSurvive = TableEncryptionService.Convert(this.CanSurvive, key); + _o.IsDummy = TableEncryptionService.Convert(this.IsDummy, key); + _o.SubPartsCount = TableEncryptionService.Convert(this.SubPartsCount, key); + _o.TacticRole_ = TableEncryptionService.Convert(this.TacticRole_, key); + _o.WeaponType_ = TableEncryptionService.Convert(this.WeaponType_, key); + _o.TacticRange_ = TableEncryptionService.Convert(this.TacticRange_, key); + _o.BulletType_ = TableEncryptionService.Convert(this.BulletType_, key); + _o.ArmorType_ = TableEncryptionService.Convert(this.ArmorType_, key); + _o.AimIKType_ = TableEncryptionService.Convert(this.AimIKType_, key); + _o.School_ = TableEncryptionService.Convert(this.School_, key); + _o.Club_ = TableEncryptionService.Convert(this.Club_, key); + _o.DefaultStarGrade = TableEncryptionService.Convert(this.DefaultStarGrade, key); + _o.MaxStarGrade = TableEncryptionService.Convert(this.MaxStarGrade, key); + _o.StatLevelUpType_ = TableEncryptionService.Convert(this.StatLevelUpType_, key); + _o.SquadType_ = TableEncryptionService.Convert(this.SquadType_, key); + _o.Jumpable = TableEncryptionService.Convert(this.Jumpable, key); + _o.PersonalityId = TableEncryptionService.Convert(this.PersonalityId, key); + _o.CharacterAIId = TableEncryptionService.Convert(this.CharacterAIId, key); + _o.ExternalBTId = TableEncryptionService.Convert(this.ExternalBTId, key); + _o.MainCombatStyleId = TableEncryptionService.Convert(this.MainCombatStyleId, key); + _o.CombatStyleIndex = TableEncryptionService.Convert(this.CombatStyleIndex, key); + _o.ScenarioCharacter = TableEncryptionService.Convert(this.ScenarioCharacter, key); + _o.SpawnTemplateId = TableEncryptionService.Convert(this.SpawnTemplateId, key); + _o.FavorLevelupType = TableEncryptionService.Convert(this.FavorLevelupType, key); + _o.EquipmentSlot = new List(); + for (var _j = 0; _j < this.EquipmentSlotLength; ++_j) {_o.EquipmentSlot.Add(TableEncryptionService.Convert(this.EquipmentSlot(_j), key));} + _o.WeaponLocalizeId = TableEncryptionService.Convert(this.WeaponLocalizeId, key); + _o.DisplayEnemyInfo = TableEncryptionService.Convert(this.DisplayEnemyInfo, key); + _o.BodyRadius = TableEncryptionService.Convert(this.BodyRadius, key); + _o.RandomEffectRadius = TableEncryptionService.Convert(this.RandomEffectRadius, key); + _o.HPBarHide = TableEncryptionService.Convert(this.HPBarHide, key); + _o.HpBarHeight = TableEncryptionService.Convert(this.HpBarHeight, key); + _o.HighlightFloaterHeight = TableEncryptionService.Convert(this.HighlightFloaterHeight, key); + _o.EmojiOffsetX = TableEncryptionService.Convert(this.EmojiOffsetX, key); + _o.EmojiOffsetY = TableEncryptionService.Convert(this.EmojiOffsetY, key); + _o.MoveStartFrame = TableEncryptionService.Convert(this.MoveStartFrame, key); + _o.MoveEndFrame = TableEncryptionService.Convert(this.MoveEndFrame, key); + _o.JumpMotionFrame = TableEncryptionService.Convert(this.JumpMotionFrame, key); + _o.AppearFrame = TableEncryptionService.Convert(this.AppearFrame, key); + _o.CanMove = TableEncryptionService.Convert(this.CanMove, key); + _o.CanFix = TableEncryptionService.Convert(this.CanFix, key); + _o.CanCrowdControl = TableEncryptionService.Convert(this.CanCrowdControl, key); + _o.CanBattleItemMove = TableEncryptionService.Convert(this.CanBattleItemMove, key); + _o.IsAirUnit = TableEncryptionService.Convert(this.IsAirUnit, key); + _o.AirUnitHeight = TableEncryptionService.Convert(this.AirUnitHeight, key); + _o.Tags = new List(); + for (var _j = 0; _j < this.TagsLength; ++_j) {_o.Tags.Add(TableEncryptionService.Convert(this.Tags(_j), key));} + _o.SecretStoneItemId = TableEncryptionService.Convert(this.SecretStoneItemId, key); + _o.SecretStoneItemAmount = TableEncryptionService.Convert(this.SecretStoneItemAmount, key); + _o.CharacterPieceItemId = TableEncryptionService.Convert(this.CharacterPieceItemId, key); + _o.CharacterPieceItemAmount = TableEncryptionService.Convert(this.CharacterPieceItemAmount, key); + _o.CombineRecipeId = TableEncryptionService.Convert(this.CombineRecipeId, key); + } + public static Offset Pack(FlatBufferBuilder builder, CharacterExcelT _o) { + if (_o == null) return default(Offset); + var _DevName = _o.DevName == null ? default(StringOffset) : builder.CreateString(_o.DevName); + var _ReleaseDate = _o.ReleaseDate == null ? default(StringOffset) : builder.CreateString(_o.ReleaseDate); + var _CollectionVisibleStartDate = _o.CollectionVisibleStartDate == null ? default(StringOffset) : builder.CreateString(_o.CollectionVisibleStartDate); + var _CollectionVisibleEndDate = _o.CollectionVisibleEndDate == null ? default(StringOffset) : builder.CreateString(_o.CollectionVisibleEndDate); + var _ScenarioCharacter = _o.ScenarioCharacter == null ? default(StringOffset) : builder.CreateString(_o.ScenarioCharacter); + var _EquipmentSlot = default(VectorOffset); + if (_o.EquipmentSlot != null) { + var __EquipmentSlot = _o.EquipmentSlot.ToArray(); + _EquipmentSlot = CreateEquipmentSlotVector(builder, __EquipmentSlot); } - - public class CharacterExcelT - { - public long Id { get; set; } - public string DevName { get; set; } - public long CostumeGroupId { get; set; } - public bool IsPlayable { get; set; } - public SCHALE.Common.FlatData.ProductionStep ProductionStep { get; set; } - public bool CollectionVisible { get; set; } - public string ReleaseDate { get; set; } - public string CollectionVisibleStartDate { get; set; } - public string CollectionVisibleEndDate { get; set; } - public bool IsPlayableCharacter { get; set; } - public uint LocalizeEtcId { get; set; } - public SCHALE.Common.FlatData.Rarity Rarity { get; set; } - public bool IsNpc { get; set; } - public SCHALE.Common.FlatData.TacticEntityType TacticEntityType { get; set; } - public bool CanSurvive { get; set; } - public bool IsDummy { get; set; } - public int SubPartsCount { get; set; } - public SCHALE.Common.FlatData.TacticRole TacticRole { get; set; } - public SCHALE.Common.FlatData.WeaponType WeaponType { get; set; } - public SCHALE.Common.FlatData.TacticRange TacticRange { get; set; } - public SCHALE.Common.FlatData.BulletType BulletType { get; set; } - public SCHALE.Common.FlatData.ArmorType ArmorType { get; set; } - public SCHALE.Common.FlatData.AimIKType AimIkType { get; set; } - public SCHALE.Common.FlatData.School School { get; set; } - public SCHALE.Common.FlatData.Club Club { get; set; } - public int DefaultStarGrade { get; set; } - public int MaxStarGrade { get; set; } - public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType { get; set; } - public SCHALE.Common.FlatData.SquadType SquadType { get; set; } - public bool Jumpable { get; set; } - public long PersonalityId { get; set; } - public long CharacterAiId { get; set; } - public long ExternalBtId { get; set; } - public long MainCombatStyleId { get; set; } - public int CombatStyleIndex { get; set; } - public string ScenarioCharacter { get; set; } - public uint SpawnTemplateId { get; set; } - public int FavorLevelupType { get; set; } - public List EquipmentSlot { get; set; } - public uint WeaponLocalizeId { get; set; } - public bool DisplayEnemyInfo { get; set; } - public long BodyRadius { get; set; } - public long RandomEffectRadius { get; set; } - public bool HpBarHide { get; set; } - public float HpBarHeight { get; set; } - public float HighlightFloaterHeight { get; set; } - public float EmojiOffsetX { get; set; } - public float EmojiOffsetY { get; set; } - public int MoveStartFrame { get; set; } - public int MoveEndFrame { get; set; } - public int JumpMotionFrame { get; set; } - public int AppearFrame { get; set; } - public bool CanMove { get; set; } - public bool CanFix { get; set; } - public bool CanCrowdControl { get; set; } - public bool CanBattleItemMove { get; set; } - public bool IsAirUnit { get; set; } - public long AirUnitHeight { get; set; } - public List Tags { get; set; } - public long SecretStoneItemId { get; set; } - public int SecretStoneItemAmount { get; set; } - public long CharacterPieceItemId { get; set; } - public int CharacterPieceItemAmount { get; set; } - public long CombineRecipeId { get; set; } - - public CharacterExcelT() - { - this.Id = 0; - this.DevName = null; - this.CostumeGroupId = 0; - this.IsPlayable = false; - this.ProductionStep = SCHALE.Common.FlatData.ProductionStep.ToDo; - this.CollectionVisible = false; - this.ReleaseDate = null; - this.CollectionVisibleStartDate = null; - this.CollectionVisibleEndDate = null; - this.IsPlayableCharacter = false; - this.LocalizeEtcId = 0; - this.Rarity = SCHALE.Common.FlatData.Rarity.N; - this.IsNpc = false; - this.TacticEntityType = SCHALE.Common.FlatData.TacticEntityType.None; - this.CanSurvive = false; - this.IsDummy = false; - this.SubPartsCount = 0; - this.TacticRole = SCHALE.Common.FlatData.TacticRole.None; - this.WeaponType = SCHALE.Common.FlatData.WeaponType.None; - this.TacticRange = SCHALE.Common.FlatData.TacticRange.Back; - this.BulletType = SCHALE.Common.FlatData.BulletType.Normal; - this.ArmorType = SCHALE.Common.FlatData.ArmorType.LightArmor; - this.AimIkType = SCHALE.Common.FlatData.AimIKType.None; - this.School = SCHALE.Common.FlatData.School.None; - this.Club = SCHALE.Common.FlatData.Club.None; - this.DefaultStarGrade = 0; - this.MaxStarGrade = 0; - this.StatLevelUpType = SCHALE.Common.FlatData.StatLevelUpType.Standard; - this.SquadType = SCHALE.Common.FlatData.SquadType.None; - this.Jumpable = false; - this.PersonalityId = 0; - this.CharacterAiId = 0; - this.ExternalBtId = 0; - this.MainCombatStyleId = 0; - this.CombatStyleIndex = 0; - this.ScenarioCharacter = null; - this.SpawnTemplateId = 0; - this.FavorLevelupType = 0; - this.EquipmentSlot = null; - this.WeaponLocalizeId = 0; - this.DisplayEnemyInfo = false; - this.BodyRadius = 0; - this.RandomEffectRadius = 0; - this.HpBarHide = false; - this.HpBarHeight = 0.0f; - this.HighlightFloaterHeight = 0.0f; - this.EmojiOffsetX = 0.0f; - this.EmojiOffsetY = 0.0f; - this.MoveStartFrame = 0; - this.MoveEndFrame = 0; - this.JumpMotionFrame = 0; - this.AppearFrame = 0; - this.CanMove = false; - this.CanFix = false; - this.CanCrowdControl = false; - this.CanBattleItemMove = false; - this.IsAirUnit = false; - this.AirUnitHeight = 0; - this.Tags = null; - this.SecretStoneItemId = 0; - this.SecretStoneItemAmount = 0; - this.CharacterPieceItemId = 0; - this.CharacterPieceItemAmount = 0; - this.CombineRecipeId = 0; - } + var _Tags = default(VectorOffset); + if (_o.Tags != null) { + var __Tags = _o.Tags.ToArray(); + _Tags = CreateTagsVector(builder, __Tags); } + return CreateCharacterExcel( + builder, + _o.Id, + _DevName, + _o.CostumeGroupId, + _o.IsPlayable, + _o.ProductionStep_, + _o.CollectionVisible, + _ReleaseDate, + _CollectionVisibleStartDate, + _CollectionVisibleEndDate, + _o.IsPlayableCharacter, + _o.LocalizeEtcId, + _o.Rarity_, + _o.IsNPC, + _o.TacticEntityType_, + _o.CanSurvive, + _o.IsDummy, + _o.SubPartsCount, + _o.TacticRole_, + _o.WeaponType_, + _o.TacticRange_, + _o.BulletType_, + _o.ArmorType_, + _o.AimIKType_, + _o.School_, + _o.Club_, + _o.DefaultStarGrade, + _o.MaxStarGrade, + _o.StatLevelUpType_, + _o.SquadType_, + _o.Jumpable, + _o.PersonalityId, + _o.CharacterAIId, + _o.ExternalBTId, + _o.MainCombatStyleId, + _o.CombatStyleIndex, + _ScenarioCharacter, + _o.SpawnTemplateId, + _o.FavorLevelupType, + _EquipmentSlot, + _o.WeaponLocalizeId, + _o.DisplayEnemyInfo, + _o.BodyRadius, + _o.RandomEffectRadius, + _o.HPBarHide, + _o.HpBarHeight, + _o.HighlightFloaterHeight, + _o.EmojiOffsetX, + _o.EmojiOffsetY, + _o.MoveStartFrame, + _o.MoveEndFrame, + _o.JumpMotionFrame, + _o.AppearFrame, + _o.CanMove, + _o.CanFix, + _o.CanCrowdControl, + _o.CanBattleItemMove, + _o.IsAirUnit, + _o.AirUnitHeight, + _Tags, + _o.SecretStoneItemId, + _o.SecretStoneItemAmount, + _o.CharacterPieceItemId, + _o.CharacterPieceItemAmount, + _o.CombineRecipeId); + } +} + +public class CharacterExcelT +{ + public long Id { get; set; } + public string DevName { get; set; } + public long CostumeGroupId { get; set; } + public bool IsPlayable { get; set; } + public SCHALE.Common.FlatData.ProductionStep ProductionStep_ { get; set; } + public bool CollectionVisible { get; set; } + public string ReleaseDate { get; set; } + public string CollectionVisibleStartDate { get; set; } + public string CollectionVisibleEndDate { get; set; } + public bool IsPlayableCharacter { get; set; } + public uint LocalizeEtcId { get; set; } + public SCHALE.Common.FlatData.Rarity Rarity_ { get; set; } + public bool IsNPC { get; set; } + public SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ { get; set; } + public bool CanSurvive { get; set; } + public bool IsDummy { get; set; } + public int SubPartsCount { get; set; } + public SCHALE.Common.FlatData.TacticRole TacticRole_ { get; set; } + public SCHALE.Common.FlatData.WeaponType WeaponType_ { get; set; } + public SCHALE.Common.FlatData.TacticRange TacticRange_ { get; set; } + public SCHALE.Common.FlatData.BulletType BulletType_ { get; set; } + public SCHALE.Common.FlatData.ArmorType ArmorType_ { get; set; } + public SCHALE.Common.FlatData.AimIKType AimIKType_ { get; set; } + public SCHALE.Common.FlatData.School School_ { get; set; } + public SCHALE.Common.FlatData.Club Club_ { get; set; } + public int DefaultStarGrade { get; set; } + public int MaxStarGrade { get; set; } + public SCHALE.Common.FlatData.StatLevelUpType StatLevelUpType_ { get; set; } + public SCHALE.Common.FlatData.SquadType SquadType_ { get; set; } + public bool Jumpable { get; set; } + public long PersonalityId { get; set; } + public long CharacterAIId { get; set; } + public long ExternalBTId { get; set; } + public long MainCombatStyleId { get; set; } + public int CombatStyleIndex { get; set; } + public string ScenarioCharacter { get; set; } + public uint SpawnTemplateId { get; set; } + public int FavorLevelupType { get; set; } + public List EquipmentSlot { get; set; } + public uint WeaponLocalizeId { get; set; } + public bool DisplayEnemyInfo { get; set; } + public long BodyRadius { get; set; } + public long RandomEffectRadius { get; set; } + public bool HPBarHide { get; set; } + public float HpBarHeight { get; set; } + public float HighlightFloaterHeight { get; set; } + public float EmojiOffsetX { get; set; } + public float EmojiOffsetY { get; set; } + public int MoveStartFrame { get; set; } + public int MoveEndFrame { get; set; } + public int JumpMotionFrame { get; set; } + public int AppearFrame { get; set; } + public bool CanMove { get; set; } + public bool CanFix { get; set; } + public bool CanCrowdControl { get; set; } + public bool CanBattleItemMove { get; set; } + public bool IsAirUnit { get; set; } + public long AirUnitHeight { get; set; } + public List Tags { get; set; } + public long SecretStoneItemId { get; set; } + public int SecretStoneItemAmount { get; set; } + public long CharacterPieceItemId { get; set; } + public int CharacterPieceItemAmount { get; set; } + public long CombineRecipeId { get; set; } + + public CharacterExcelT() { + this.Id = 0; + this.DevName = null; + this.CostumeGroupId = 0; + this.IsPlayable = false; + this.ProductionStep_ = SCHALE.Common.FlatData.ProductionStep.ToDo; + this.CollectionVisible = false; + this.ReleaseDate = null; + this.CollectionVisibleStartDate = null; + this.CollectionVisibleEndDate = null; + this.IsPlayableCharacter = false; + this.LocalizeEtcId = 0; + this.Rarity_ = SCHALE.Common.FlatData.Rarity.N; + this.IsNPC = false; + this.TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None_; + this.CanSurvive = false; + this.IsDummy = false; + this.SubPartsCount = 0; + this.TacticRole_ = SCHALE.Common.FlatData.TacticRole.None_; + this.WeaponType_ = SCHALE.Common.FlatData.WeaponType.None_; + this.TacticRange_ = SCHALE.Common.FlatData.TacticRange.Back; + this.BulletType_ = SCHALE.Common.FlatData.BulletType.Normal; + this.ArmorType_ = SCHALE.Common.FlatData.ArmorType.LightArmor; + this.AimIKType_ = SCHALE.Common.FlatData.AimIKType.None_; + this.School_ = SCHALE.Common.FlatData.School.None_; + this.Club_ = SCHALE.Common.FlatData.Club.None_; + this.DefaultStarGrade = 0; + this.MaxStarGrade = 0; + this.StatLevelUpType_ = SCHALE.Common.FlatData.StatLevelUpType.Standard; + this.SquadType_ = SCHALE.Common.FlatData.SquadType.None_; + this.Jumpable = false; + this.PersonalityId = 0; + this.CharacterAIId = 0; + this.ExternalBTId = 0; + this.MainCombatStyleId = 0; + this.CombatStyleIndex = 0; + this.ScenarioCharacter = null; + this.SpawnTemplateId = 0; + this.FavorLevelupType = 0; + this.EquipmentSlot = null; + this.WeaponLocalizeId = 0; + this.DisplayEnemyInfo = false; + this.BodyRadius = 0; + this.RandomEffectRadius = 0; + this.HPBarHide = false; + this.HpBarHeight = 0.0f; + this.HighlightFloaterHeight = 0.0f; + this.EmojiOffsetX = 0.0f; + this.EmojiOffsetY = 0.0f; + this.MoveStartFrame = 0; + this.MoveEndFrame = 0; + this.JumpMotionFrame = 0; + this.AppearFrame = 0; + this.CanMove = false; + this.CanFix = false; + this.CanCrowdControl = false; + this.CanBattleItemMove = false; + this.IsAirUnit = false; + this.AirUnitHeight = 0; + this.Tags = null; + this.SecretStoneItemId = 0; + this.SecretStoneItemAmount = 0; + this.CharacterPieceItemId = 0; + this.CharacterPieceItemAmount = 0; + this.CombineRecipeId = 0; + } +} - static public class CharacterExcelVerify - { - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) - && verifier.VerifyString(tablePos, 6 /*DevName*/, false) - && verifier.VerifyField(tablePos, 8 /*CostumeGroupId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 10 /*IsPlayable*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 12 /*ProductionStep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) - && verifier.VerifyField(tablePos, 14 /*CollectionVisible*/, 1 /*bool*/, 1, false) - && verifier.VerifyString(tablePos, 16 /*ReleaseDate*/, false) - && verifier.VerifyString(tablePos, 18 /*CollectionVisibleStartDate*/, false) - && verifier.VerifyString(tablePos, 20 /*CollectionVisibleEndDate*/, false) - && verifier.VerifyField(tablePos, 22 /*IsPlayableCharacter*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 24 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) - && verifier.VerifyField(tablePos, 26 /*Rarity*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) - && verifier.VerifyField(tablePos, 28 /*IsNpc*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 30 /*TacticEntityType*/, 4 /*SCHALE.Common.FlatData.TacticEntityType*/, 4, false) - && verifier.VerifyField(tablePos, 32 /*CanSurvive*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 34 /*IsDummy*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 36 /*SubPartsCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 38 /*TacticRole*/, 4 /*SCHALE.Common.FlatData.TacticRole*/, 4, false) - && verifier.VerifyField(tablePos, 40 /*WeaponType*/, 4 /*SCHALE.Common.FlatData.WeaponType*/, 4, false) - && verifier.VerifyField(tablePos, 42 /*TacticRange*/, 4 /*SCHALE.Common.FlatData.TacticRange*/, 4, false) - && verifier.VerifyField(tablePos, 44 /*BulletType*/, 4 /*SCHALE.Common.FlatData.BulletType*/, 4, false) - && verifier.VerifyField(tablePos, 46 /*ArmorType*/, 4 /*SCHALE.Common.FlatData.ArmorType*/, 4, false) - && verifier.VerifyField(tablePos, 48 /*AimIkType*/, 4 /*SCHALE.Common.FlatData.AimIKType*/, 4, false) - && verifier.VerifyField(tablePos, 50 /*School*/, 4 /*SCHALE.Common.FlatData.School*/, 4, false) - && verifier.VerifyField(tablePos, 52 /*Club*/, 4 /*SCHALE.Common.FlatData.Club*/, 4, false) - && verifier.VerifyField(tablePos, 54 /*DefaultStarGrade*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 56 /*MaxStarGrade*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 58 /*StatLevelUpType*/, 4 /*SCHALE.Common.FlatData.StatLevelUpType*/, 4, false) - && verifier.VerifyField(tablePos, 60 /*SquadType*/, 4 /*SCHALE.Common.FlatData.SquadType*/, 4, false) - && verifier.VerifyField(tablePos, 62 /*Jumpable*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 64 /*PersonalityId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 66 /*CharacterAiId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 68 /*ExternalBtId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 70 /*MainCombatStyleId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 72 /*CombatStyleIndex*/, 4 /*int*/, 4, false) - && verifier.VerifyString(tablePos, 74 /*ScenarioCharacter*/, false) - && verifier.VerifyField(tablePos, 76 /*SpawnTemplateId*/, 4 /*uint*/, 4, false) - && verifier.VerifyField(tablePos, 78 /*FavorLevelupType*/, 4 /*int*/, 4, false) - && verifier.VerifyVectorOfData(tablePos, 80 /*EquipmentSlot*/, 4 /*SCHALE.Common.FlatData.EquipmentCategory*/, false) - && verifier.VerifyField(tablePos, 82 /*WeaponLocalizeId*/, 4 /*uint*/, 4, false) - && verifier.VerifyField(tablePos, 84 /*DisplayEnemyInfo*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 86 /*BodyRadius*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 88 /*RandomEffectRadius*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 90 /*HpBarHide*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 92 /*HpBarHeight*/, 4 /*float*/, 4, false) - && verifier.VerifyField(tablePos, 94 /*HighlightFloaterHeight*/, 4 /*float*/, 4, false) - && verifier.VerifyField(tablePos, 96 /*EmojiOffsetX*/, 4 /*float*/, 4, false) - && verifier.VerifyField(tablePos, 98 /*EmojiOffsetY*/, 4 /*float*/, 4, false) - && verifier.VerifyField(tablePos, 100 /*MoveStartFrame*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 102 /*MoveEndFrame*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 104 /*JumpMotionFrame*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 106 /*AppearFrame*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 108 /*CanMove*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 110 /*CanFix*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 112 /*CanCrowdControl*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 114 /*CanBattleItemMove*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 116 /*IsAirUnit*/, 1 /*bool*/, 1, false) - && verifier.VerifyField(tablePos, 118 /*AirUnitHeight*/, 8 /*long*/, 8, false) - && verifier.VerifyVectorOfData(tablePos, 120 /*Tags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) - && verifier.VerifyField(tablePos, 122 /*SecretStoneItemId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 124 /*SecretStoneItemAmount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 126 /*CharacterPieceItemId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 128 /*CharacterPieceItemAmount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 130 /*CombineRecipeId*/, 8 /*long*/, 8, false) - && verifier.VerifyTableEnd(tablePos); - } - } +static public class CharacterExcelVerify +{ + static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) + { + return verifier.VerifyTableStart(tablePos) + && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 6 /*DevName*/, false) + && verifier.VerifyField(tablePos, 8 /*CostumeGroupId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*IsPlayable*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 12 /*ProductionStep_*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) + && verifier.VerifyField(tablePos, 14 /*CollectionVisible*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 16 /*ReleaseDate*/, false) + && verifier.VerifyString(tablePos, 18 /*CollectionVisibleStartDate*/, false) + && verifier.VerifyString(tablePos, 20 /*CollectionVisibleEndDate*/, false) + && verifier.VerifyField(tablePos, 22 /*IsPlayableCharacter*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 24 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 26 /*Rarity_*/, 4 /*SCHALE.Common.FlatData.Rarity*/, 4, false) + && verifier.VerifyField(tablePos, 28 /*IsNPC*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 30 /*TacticEntityType_*/, 4 /*SCHALE.Common.FlatData.TacticEntityType*/, 4, false) + && verifier.VerifyField(tablePos, 32 /*CanSurvive*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 34 /*IsDummy*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 36 /*SubPartsCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 38 /*TacticRole_*/, 4 /*SCHALE.Common.FlatData.TacticRole*/, 4, false) + && verifier.VerifyField(tablePos, 40 /*WeaponType_*/, 4 /*SCHALE.Common.FlatData.WeaponType*/, 4, false) + && verifier.VerifyField(tablePos, 42 /*TacticRange_*/, 4 /*SCHALE.Common.FlatData.TacticRange*/, 4, false) + && verifier.VerifyField(tablePos, 44 /*BulletType_*/, 4 /*SCHALE.Common.FlatData.BulletType*/, 4, false) + && verifier.VerifyField(tablePos, 46 /*ArmorType_*/, 4 /*SCHALE.Common.FlatData.ArmorType*/, 4, false) + && verifier.VerifyField(tablePos, 48 /*AimIKType_*/, 4 /*SCHALE.Common.FlatData.AimIKType*/, 4, false) + && verifier.VerifyField(tablePos, 50 /*School_*/, 4 /*SCHALE.Common.FlatData.School*/, 4, false) + && verifier.VerifyField(tablePos, 52 /*Club_*/, 4 /*SCHALE.Common.FlatData.Club*/, 4, false) + && verifier.VerifyField(tablePos, 54 /*DefaultStarGrade*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 56 /*MaxStarGrade*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 58 /*StatLevelUpType_*/, 4 /*SCHALE.Common.FlatData.StatLevelUpType*/, 4, false) + && verifier.VerifyField(tablePos, 60 /*SquadType_*/, 4 /*SCHALE.Common.FlatData.SquadType*/, 4, false) + && verifier.VerifyField(tablePos, 62 /*Jumpable*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 64 /*PersonalityId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 66 /*CharacterAIId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 68 /*ExternalBTId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 70 /*MainCombatStyleId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 72 /*CombatStyleIndex*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 74 /*ScenarioCharacter*/, false) + && verifier.VerifyField(tablePos, 76 /*SpawnTemplateId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 78 /*FavorLevelupType*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 80 /*EquipmentSlot*/, 4 /*SCHALE.Common.FlatData.EquipmentCategory*/, false) + && verifier.VerifyField(tablePos, 82 /*WeaponLocalizeId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 84 /*DisplayEnemyInfo*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 86 /*BodyRadius*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 88 /*RandomEffectRadius*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 90 /*HPBarHide*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 92 /*HpBarHeight*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 94 /*HighlightFloaterHeight*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 96 /*EmojiOffsetX*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 98 /*EmojiOffsetY*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 100 /*MoveStartFrame*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 102 /*MoveEndFrame*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 104 /*JumpMotionFrame*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 106 /*AppearFrame*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 108 /*CanMove*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 110 /*CanFix*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 112 /*CanCrowdControl*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 114 /*CanBattleItemMove*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 116 /*IsAirUnit*/, 1 /*bool*/, 1, false) + && verifier.VerifyField(tablePos, 118 /*AirUnitHeight*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 120 /*Tags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyField(tablePos, 122 /*SecretStoneItemId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 124 /*SecretStoneItemAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 126 /*CharacterPieceItemId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 128 /*CharacterPieceItemAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 130 /*CombineRecipeId*/, 8 /*long*/, 8, false) + && verifier.VerifyTableEnd(tablePos); + } +} } diff --git a/SCHALE.Common/FlatData/CharacterExcelTable.cs b/SCHALE.Common/FlatData/CharacterExcelTable.cs index 9e202f1..2c0213a 100644 --- a/SCHALE.Common/FlatData/CharacterExcelTable.cs +++ b/SCHALE.Common/FlatData/CharacterExcelTable.cs @@ -24,9 +24,9 @@ public struct CharacterExcelTable : IFlatbufferObject public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } public static Offset CreateCharacterExcelTable(FlatBufferBuilder builder, - VectorOffset data_listOffset = default(VectorOffset)) { + VectorOffset DataListOffset = default(VectorOffset)) { builder.StartTable(1); - CharacterExcelTable.AddDataList(builder, data_listOffset); + CharacterExcelTable.AddDataList(builder, DataListOffset); return CharacterExcelTable.EndCharacterExcelTable(builder); } @@ -53,15 +53,15 @@ public struct CharacterExcelTable : IFlatbufferObject } public static Offset Pack(FlatBufferBuilder builder, CharacterExcelTableT _o) { if (_o == null) return default(Offset); - var _data_list = default(VectorOffset); + var _DataList = default(VectorOffset); if (_o.DataList != null) { - var __data_list = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __data_list.Length; ++_j) { __data_list[_j] = SCHALE.Common.FlatData.CharacterExcel.Pack(builder, _o.DataList[_j]); } - _data_list = CreateDataListVector(builder, __data_list); + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); } return CreateCharacterExcelTable( builder, - _data_list); + _DataList); } } diff --git a/SCHALE.Common/FlatData/CharacterGearExcelTable.cs b/SCHALE.Common/FlatData/CharacterGearExcelTable.cs deleted file mode 100644 index 58e3124..0000000 --- a/SCHALE.Common/FlatData/CharacterGearExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct CharacterGearExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static CharacterGearExcelTable GetRootAsCharacterGearExcelTable(ByteBuffer _bb) { return GetRootAsCharacterGearExcelTable(_bb, new CharacterGearExcelTable()); } - public static CharacterGearExcelTable GetRootAsCharacterGearExcelTable(ByteBuffer _bb, CharacterGearExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public CharacterGearExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.CharacterGearExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterGearExcel?)(new SCHALE.Common.FlatData.CharacterGearExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateCharacterGearExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - CharacterGearExcelTable.AddDataList(builder, DataListOffset); - return CharacterGearExcelTable.EndCharacterGearExcelTable(builder); - } - - public static void StartCharacterGearExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndCharacterGearExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public CharacterGearExcelTableT UnPack() { - var _o = new CharacterGearExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(CharacterGearExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("CharacterGearExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, CharacterGearExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterGearExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateCharacterGearExcelTable( - builder, - _DataList); - } -} - -public class CharacterGearExcelTableT -{ - public List DataList { get; set; } - - public CharacterGearExcelTableT() { - this.DataList = null; - } -} - - -static public class CharacterGearExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterGearExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/CharacterGearLevelExcelTable.cs b/SCHALE.Common/FlatData/CharacterGearLevelExcelTable.cs deleted file mode 100644 index 7d8d7c6..0000000 --- a/SCHALE.Common/FlatData/CharacterGearLevelExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct CharacterGearLevelExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static CharacterGearLevelExcelTable GetRootAsCharacterGearLevelExcelTable(ByteBuffer _bb) { return GetRootAsCharacterGearLevelExcelTable(_bb, new CharacterGearLevelExcelTable()); } - public static CharacterGearLevelExcelTable GetRootAsCharacterGearLevelExcelTable(ByteBuffer _bb, CharacterGearLevelExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public CharacterGearLevelExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.CharacterGearLevelExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CharacterGearLevelExcel?)(new SCHALE.Common.FlatData.CharacterGearLevelExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateCharacterGearLevelExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - CharacterGearLevelExcelTable.AddDataList(builder, DataListOffset); - return CharacterGearLevelExcelTable.EndCharacterGearLevelExcelTable(builder); - } - - public static void StartCharacterGearLevelExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndCharacterGearLevelExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public CharacterGearLevelExcelTableT UnPack() { - var _o = new CharacterGearLevelExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(CharacterGearLevelExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("CharacterGearLevelExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, CharacterGearLevelExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CharacterGearLevelExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateCharacterGearLevelExcelTable( - builder, - _DataList); - } -} - -public class CharacterGearLevelExcelTableT -{ - public List DataList { get; set; } - - public CharacterGearLevelExcelTableT() { - this.DataList = null; - } -} - - -static public class CharacterGearLevelExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CharacterGearLevelExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/CharacterPotentialExcel.cs b/SCHALE.Common/FlatData/CharacterPotentialExcel.cs index 93bf00f..c19f219 100644 --- a/SCHALE.Common/FlatData/CharacterPotentialExcel.cs +++ b/SCHALE.Common/FlatData/CharacterPotentialExcel.cs @@ -22,13 +22,13 @@ public struct CharacterPotentialExcel : IFlatbufferObject public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PotentialStatGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialStatBonusRateType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PotentialStatBonusRateType.None; } } + public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialStatBonusRateType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PotentialStatBonusRateType.None_; } } public bool IsUnnecessaryStat { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public static Offset CreateCharacterPotentialExcel(FlatBufferBuilder builder, long Id = 0, long PotentialStatGroupId = 0, - SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialStatBonusRateType_ = SCHALE.Common.FlatData.PotentialStatBonusRateType.None, + SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialStatBonusRateType_ = SCHALE.Common.FlatData.PotentialStatBonusRateType.None_, bool IsUnnecessaryStat = false) { builder.StartTable(4); CharacterPotentialExcel.AddPotentialStatGroupId(builder, PotentialStatGroupId); @@ -80,7 +80,7 @@ public class CharacterPotentialExcelT public CharacterPotentialExcelT() { this.Id = 0; this.PotentialStatGroupId = 0; - this.PotentialStatBonusRateType_ = SCHALE.Common.FlatData.PotentialStatBonusRateType.None; + this.PotentialStatBonusRateType_ = SCHALE.Common.FlatData.PotentialStatBonusRateType.None_; this.IsUnnecessaryStat = false; } } diff --git a/SCHALE.Common/FlatData/CharacterPotentialRewardExcel.cs b/SCHALE.Common/FlatData/CharacterPotentialRewardExcel.cs index d741efb..a0723f6 100644 --- a/SCHALE.Common/FlatData/CharacterPotentialRewardExcel.cs +++ b/SCHALE.Common/FlatData/CharacterPotentialRewardExcel.cs @@ -37,7 +37,7 @@ public struct CharacterPotentialRewardExcel : IFlatbufferObject public ArraySegment? GetRequirePotentialStatLevelBytes() { return __p.__vector_as_arraysegment(8); } #endif public long[] GetRequirePotentialStatLevelArray() { return __p.__vector_as_array(8); } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -45,7 +45,7 @@ public struct CharacterPotentialRewardExcel : IFlatbufferObject long Id = 0, VectorOffset RequirePotentialStatTypeOffset = default(VectorOffset), VectorOffset RequirePotentialStatLevelOffset = default(VectorOffset), - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardId = 0, int RewardAmount = 0) { builder.StartTable(6); @@ -131,7 +131,7 @@ public class CharacterPotentialRewardExcelT this.Id = 0; this.RequirePotentialStatType = null; this.RequirePotentialStatLevel = null; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardId = 0; this.RewardAmount = 0; } diff --git a/SCHALE.Common/FlatData/CharacterStatLimitExcel.cs b/SCHALE.Common/FlatData/CharacterStatLimitExcel.cs index 52c4098..d027946 100644 --- a/SCHALE.Common/FlatData/CharacterStatLimitExcel.cs +++ b/SCHALE.Common/FlatData/CharacterStatLimitExcel.cs @@ -21,8 +21,8 @@ public struct CharacterStatLimitExcel : IFlatbufferObject public CharacterStatLimitExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None; } } - public SCHALE.Common.FlatData.StatType StatType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None; } } + public SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None_; } } + public SCHALE.Common.FlatData.StatType StatType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None_; } } public long StatMinValue { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long StatMaxValue { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long StatRatioMinValue { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -30,8 +30,8 @@ public struct CharacterStatLimitExcel : IFlatbufferObject public static Offset CreateCharacterStatLimitExcel(FlatBufferBuilder builder, long Id = 0, - SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None, - SCHALE.Common.FlatData.StatType StatType_ = SCHALE.Common.FlatData.StatType.None, + SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None_, + SCHALE.Common.FlatData.StatType StatType_ = SCHALE.Common.FlatData.StatType.None_, long StatMinValue = 0, long StatMaxValue = 0, long StatRatioMinValue = 0, @@ -100,8 +100,8 @@ public class CharacterStatLimitExcelT public CharacterStatLimitExcelT() { this.Id = 0; - this.TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None; - this.StatType_ = SCHALE.Common.FlatData.StatType.None; + this.TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None_; + this.StatType_ = SCHALE.Common.FlatData.StatType.None_; this.StatMinValue = 0; this.StatMaxValue = 0; this.StatRatioMinValue = 0; diff --git a/SCHALE.Common/FlatData/CharacterStatsTransExcel.cs b/SCHALE.Common/FlatData/CharacterStatsTransExcel.cs index c6ba679..83fb510 100644 --- a/SCHALE.Common/FlatData/CharacterStatsTransExcel.cs +++ b/SCHALE.Common/FlatData/CharacterStatsTransExcel.cs @@ -20,13 +20,13 @@ public struct CharacterStatsTransExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public CharacterStatsTransExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public SCHALE.Common.FlatData.StatType TransSupportStats { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None; } } + public SCHALE.Common.FlatData.StatType TransSupportStats { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StatType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatType.None_; } } public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } public int TransSupportStatsFactor { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.StatTransType StatTransType_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StatTransType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StatTransType.SpecialTransStat; } } public static Offset CreateCharacterStatsTransExcel(FlatBufferBuilder builder, - SCHALE.Common.FlatData.StatType TransSupportStats = SCHALE.Common.FlatData.StatType.None, + SCHALE.Common.FlatData.StatType TransSupportStats = SCHALE.Common.FlatData.StatType.None_, SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ = SCHALE.Common.FlatData.EchelonExtensionType.Base, int TransSupportStatsFactor = 0, SCHALE.Common.FlatData.StatTransType StatTransType_ = SCHALE.Common.FlatData.StatTransType.SpecialTransStat) { @@ -78,7 +78,7 @@ public class CharacterStatsTransExcelT public SCHALE.Common.FlatData.StatTransType StatTransType_ { get; set; } public CharacterStatsTransExcelT() { - this.TransSupportStats = SCHALE.Common.FlatData.StatType.None; + this.TransSupportStats = SCHALE.Common.FlatData.StatType.None_; this.EchelonExtensionType_ = SCHALE.Common.FlatData.EchelonExtensionType.Base; this.TransSupportStatsFactor = 0; this.StatTransType_ = SCHALE.Common.FlatData.StatTransType.SpecialTransStat; diff --git a/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcel.cs b/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcel.cs index ea8de04..471a8d2 100644 --- a/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcel.cs +++ b/SCHALE.Common/FlatData/CharacterWeaponExpBonusExcel.cs @@ -20,14 +20,14 @@ public struct CharacterWeaponExpBonusExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public CharacterWeaponExpBonusExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public SCHALE.Common.FlatData.WeaponType WeaponType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WeaponType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeaponType.None; } } + public SCHALE.Common.FlatData.WeaponType WeaponType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WeaponType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeaponType.None_; } } public int WeaponExpGrowthA { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int WeaponExpGrowthB { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int WeaponExpGrowthC { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int WeaponExpGrowthZ { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public static Offset CreateCharacterWeaponExpBonusExcel(FlatBufferBuilder builder, - SCHALE.Common.FlatData.WeaponType WeaponType_ = SCHALE.Common.FlatData.WeaponType.None, + SCHALE.Common.FlatData.WeaponType WeaponType_ = SCHALE.Common.FlatData.WeaponType.None_, int WeaponExpGrowthA = 0, int WeaponExpGrowthB = 0, int WeaponExpGrowthC = 0, @@ -85,7 +85,7 @@ public class CharacterWeaponExpBonusExcelT public int WeaponExpGrowthZ { get; set; } public CharacterWeaponExpBonusExcelT() { - this.WeaponType_ = SCHALE.Common.FlatData.WeaponType.None; + this.WeaponType_ = SCHALE.Common.FlatData.WeaponType.None_; this.WeaponExpGrowthA = 0; this.WeaponExpGrowthB = 0; this.WeaponExpGrowthC = 0; diff --git a/SCHALE.Common/FlatData/ClanAssistSlotExcel.cs b/SCHALE.Common/FlatData/ClanAssistSlotExcel.cs index 83bca09..bff836c 100644 --- a/SCHALE.Common/FlatData/ClanAssistSlotExcel.cs +++ b/SCHALE.Common/FlatData/ClanAssistSlotExcel.cs @@ -21,7 +21,7 @@ public struct ClanAssistSlotExcel : IFlatbufferObject public ClanAssistSlotExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long SlotId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.EchelonType EchelonType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None; } } + public SCHALE.Common.FlatData.EchelonType EchelonType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None_; } } public long SlotNumber { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long AssistTermRewardPeriodFromSec { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long AssistRewardLimit { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -31,7 +31,7 @@ public struct ClanAssistSlotExcel : IFlatbufferObject public static Offset CreateClanAssistSlotExcel(FlatBufferBuilder builder, long SlotId = 0, - SCHALE.Common.FlatData.EchelonType EchelonType_ = SCHALE.Common.FlatData.EchelonType.None, + SCHALE.Common.FlatData.EchelonType EchelonType_ = SCHALE.Common.FlatData.EchelonType.None_, long SlotNumber = 0, long AssistTermRewardPeriodFromSec = 0, long AssistRewardLimit = 0, @@ -107,7 +107,7 @@ public class ClanAssistSlotExcelT public ClanAssistSlotExcelT() { this.SlotId = 0; - this.EchelonType_ = SCHALE.Common.FlatData.EchelonType.None; + this.EchelonType_ = SCHALE.Common.FlatData.EchelonType.None_; this.SlotNumber = 0; this.AssistTermRewardPeriodFromSec = 0; this.AssistRewardLimit = 0; diff --git a/SCHALE.Common/FlatData/ClanAssistSlotExcelTable.cs b/SCHALE.Common/FlatData/ClanAssistSlotExcelTable.cs deleted file mode 100644 index e6fe9e5..0000000 --- a/SCHALE.Common/FlatData/ClanAssistSlotExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct ClanAssistSlotExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static ClanAssistSlotExcelTable GetRootAsClanAssistSlotExcelTable(ByteBuffer _bb) { return GetRootAsClanAssistSlotExcelTable(_bb, new ClanAssistSlotExcelTable()); } - public static ClanAssistSlotExcelTable GetRootAsClanAssistSlotExcelTable(ByteBuffer _bb, ClanAssistSlotExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public ClanAssistSlotExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.ClanAssistSlotExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ClanAssistSlotExcel?)(new SCHALE.Common.FlatData.ClanAssistSlotExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateClanAssistSlotExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - ClanAssistSlotExcelTable.AddDataList(builder, DataListOffset); - return ClanAssistSlotExcelTable.EndClanAssistSlotExcelTable(builder); - } - - public static void StartClanAssistSlotExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndClanAssistSlotExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public ClanAssistSlotExcelTableT UnPack() { - var _o = new ClanAssistSlotExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(ClanAssistSlotExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("ClanAssistSlotExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, ClanAssistSlotExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ClanAssistSlotExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateClanAssistSlotExcelTable( - builder, - _DataList); - } -} - -public class ClanAssistSlotExcelTableT -{ - public List DataList { get; set; } - - public ClanAssistSlotExcelTableT() { - this.DataList = null; - } -} - - -static public class ClanAssistSlotExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ClanAssistSlotExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/ClanRewardExcel.cs b/SCHALE.Common/FlatData/ClanRewardExcel.cs index 7a7b548..0549050 100644 --- a/SCHALE.Common/FlatData/ClanRewardExcel.cs +++ b/SCHALE.Common/FlatData/ClanRewardExcel.cs @@ -20,16 +20,16 @@ public struct ClanRewardExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public ClanRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public SCHALE.Common.FlatData.ClanRewardType ClanRewardType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ClanRewardType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ClanRewardType.None; } } - public SCHALE.Common.FlatData.EchelonType EchelonType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ClanRewardType ClanRewardType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ClanRewardType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ClanRewardType.None_; } } + public SCHALE.Common.FlatData.EchelonType EchelonType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EchelonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonType.None_; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardParcelId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RewardParcelAmount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateClanRewardExcel(FlatBufferBuilder builder, - SCHALE.Common.FlatData.ClanRewardType ClanRewardType_ = SCHALE.Common.FlatData.ClanRewardType.None, - SCHALE.Common.FlatData.EchelonType EchelonType_ = SCHALE.Common.FlatData.EchelonType.None, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ClanRewardType ClanRewardType_ = SCHALE.Common.FlatData.ClanRewardType.None_, + SCHALE.Common.FlatData.EchelonType EchelonType_ = SCHALE.Common.FlatData.EchelonType.None_, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardParcelId = 0, long RewardParcelAmount = 0) { builder.StartTable(5); @@ -85,9 +85,9 @@ public class ClanRewardExcelT public long RewardParcelAmount { get; set; } public ClanRewardExcelT() { - this.ClanRewardType_ = SCHALE.Common.FlatData.ClanRewardType.None; - this.EchelonType_ = SCHALE.Common.FlatData.EchelonType.None; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ClanRewardType_ = SCHALE.Common.FlatData.ClanRewardType.None_; + this.EchelonType_ = SCHALE.Common.FlatData.EchelonType.None_; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardParcelId = 0; this.RewardParcelAmount = 0; } diff --git a/SCHALE.Common/FlatData/ClanRewardExcelTable.cs b/SCHALE.Common/FlatData/ClanRewardExcelTable.cs deleted file mode 100644 index 42ec640..0000000 --- a/SCHALE.Common/FlatData/ClanRewardExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct ClanRewardExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static ClanRewardExcelTable GetRootAsClanRewardExcelTable(ByteBuffer _bb) { return GetRootAsClanRewardExcelTable(_bb, new ClanRewardExcelTable()); } - public static ClanRewardExcelTable GetRootAsClanRewardExcelTable(ByteBuffer _bb, ClanRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public ClanRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.ClanRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ClanRewardExcel?)(new SCHALE.Common.FlatData.ClanRewardExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateClanRewardExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - ClanRewardExcelTable.AddDataList(builder, DataListOffset); - return ClanRewardExcelTable.EndClanRewardExcelTable(builder); - } - - public static void StartClanRewardExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndClanRewardExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public ClanRewardExcelTableT UnPack() { - var _o = new ClanRewardExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(ClanRewardExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("ClanRewardExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, ClanRewardExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ClanRewardExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateClanRewardExcelTable( - builder, - _DataList); - } -} - -public class ClanRewardExcelTableT -{ - public List DataList { get; set; } - - public ClanRewardExcelTableT() { - this.DataList = null; - } -} - - -static public class ClanRewardExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ClanRewardExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/ClanRewardType.cs b/SCHALE.Common/FlatData/ClanRewardType.cs index 9b2939f..45b16c6 100644 --- a/SCHALE.Common/FlatData/ClanRewardType.cs +++ b/SCHALE.Common/FlatData/ClanRewardType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ClanRewardType : int { - None = 0, + None_ = 0, AssistTerm = 1, AssistRent = 2, Attendance = 3, diff --git a/SCHALE.Common/FlatData/ClanSocialGrade.cs b/SCHALE.Common/FlatData/ClanSocialGrade.cs index d72c154..fc8f5a4 100644 --- a/SCHALE.Common/FlatData/ClanSocialGrade.cs +++ b/SCHALE.Common/FlatData/ClanSocialGrade.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ClanSocialGrade : int { - None = 0, + None_ = 0, President = 1, Manager = 2, Member = 3, diff --git a/SCHALE.Common/FlatData/ClearCheck.cs b/SCHALE.Common/FlatData/ClearCheck.cs index 70cd8a4..99f83b3 100644 --- a/SCHALE.Common/FlatData/ClearCheck.cs +++ b/SCHALE.Common/FlatData/ClearCheck.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ClearCheck : int { - None = 0, + None_ = 0, Success_Play = 1, Success_Sweep = 2, Fail_Timeout = 3, diff --git a/SCHALE.Common/FlatData/ClearDeckRuleExcel.cs b/SCHALE.Common/FlatData/ClearDeckRuleExcel.cs index 4a721c5..f2cff9e 100644 --- a/SCHALE.Common/FlatData/ClearDeckRuleExcel.cs +++ b/SCHALE.Common/FlatData/ClearDeckRuleExcel.cs @@ -20,11 +20,11 @@ public struct ClearDeckRuleExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public ClearDeckRuleExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None_; } } public long SizeLimit { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateClearDeckRuleExcel(FlatBufferBuilder builder, - SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, + SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None_, long SizeLimit = 0) { builder.StartTable(2); ClearDeckRuleExcel.AddSizeLimit(builder, SizeLimit); @@ -64,7 +64,7 @@ public class ClearDeckRuleExcelT public long SizeLimit { get; set; } public ClearDeckRuleExcelT() { - this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; + this.ContentType_ = SCHALE.Common.FlatData.ContentType.None_; this.SizeLimit = 0; } } diff --git a/SCHALE.Common/FlatData/Club.cs b/SCHALE.Common/FlatData/Club.cs index 3186a38..dc6b272 100644 --- a/SCHALE.Common/FlatData/Club.cs +++ b/SCHALE.Common/FlatData/Club.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum Club : int { - None = 0, + None_ = 0, Engineer = 1, CleanNClearing = 2, KnightsHospitaller = 3, diff --git a/SCHALE.Common/FlatData/CollectionUnlockType.cs b/SCHALE.Common/FlatData/CollectionUnlockType.cs index 3bea1ac..8553edd 100644 --- a/SCHALE.Common/FlatData/CollectionUnlockType.cs +++ b/SCHALE.Common/FlatData/CollectionUnlockType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum CollectionUnlockType : int { - None = 0, + None_ = 0, ClearSpecificEventStage = 1, ClearSpecificEventScenario = 2, ClearSpecificEventMission = 3, diff --git a/SCHALE.Common/FlatData/ConquestCalculateExcel.cs b/SCHALE.Common/FlatData/ConquestCalculateExcel.cs index 8a7a1a2..56e9b57 100644 --- a/SCHALE.Common/FlatData/ConquestCalculateExcel.cs +++ b/SCHALE.Common/FlatData/ConquestCalculateExcel.cs @@ -21,13 +21,13 @@ public struct ConquestCalculateExcel : IFlatbufferObject public ConquestCalculateExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType CalculateConditionParcelType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType CalculateConditionParcelType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long CalculateConditionParcelUniqueId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CalculateConditionParcelAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateConquestCalculateExcel(FlatBufferBuilder builder, long EventContentId = 0, - SCHALE.Common.FlatData.ParcelType CalculateConditionParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType CalculateConditionParcelType = SCHALE.Common.FlatData.ParcelType.None_, long CalculateConditionParcelUniqueId = 0, long CalculateConditionParcelAmount = 0) { builder.StartTable(4); @@ -79,7 +79,7 @@ public class ConquestCalculateExcelT public ConquestCalculateExcelT() { this.EventContentId = 0; - this.CalculateConditionParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.CalculateConditionParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.CalculateConditionParcelUniqueId = 0; this.CalculateConditionParcelAmount = 0; } diff --git a/SCHALE.Common/FlatData/ConquestConditionType.cs b/SCHALE.Common/FlatData/ConquestConditionType.cs index 4c21524..3223ae5 100644 --- a/SCHALE.Common/FlatData/ConquestConditionType.cs +++ b/SCHALE.Common/FlatData/ConquestConditionType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ConquestConditionType : int { - None = 0, + None_ = 0, OpenDateOffset = 1, ItemAcquire = 2, ParcelUse = 3, diff --git a/SCHALE.Common/FlatData/ConquestEnemyType.cs b/SCHALE.Common/FlatData/ConquestEnemyType.cs index 5434a25..a30e8c4 100644 --- a/SCHALE.Common/FlatData/ConquestEnemyType.cs +++ b/SCHALE.Common/FlatData/ConquestEnemyType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ConquestEnemyType : int { - None = 0, + None_ = 0, Normal = 1, MiddleBoss = 2, Boss = 3, diff --git a/SCHALE.Common/FlatData/ConquestErosionExcel.cs b/SCHALE.Common/FlatData/ConquestErosionExcel.cs index 6d3f705..2e30ccd 100644 --- a/SCHALE.Common/FlatData/ConquestErosionExcel.cs +++ b/SCHALE.Common/FlatData/ConquestErosionExcel.cs @@ -22,7 +22,7 @@ public struct ConquestErosionExcel : IFlatbufferObject public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long Id { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ConquestErosionType ErosionType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestErosionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestErosionType.None; } } + public SCHALE.Common.FlatData.ConquestErosionType ErosionType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestErosionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestErosionType.None_; } } public int Phase { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool PhaseAlarm { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public int StepIndex { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -46,7 +46,7 @@ public struct ConquestErosionExcel : IFlatbufferObject public SCHALE.Common.FlatData.ConquestConditionType[] GetPhaseBeforeExposeConditionTypeArray() { int o = __p.__offset(20); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ConquestConditionType[] a = new SCHALE.Common.FlatData.ConquestConditionType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ConquestConditionType)__p.bb.GetInt(p + i * 4); } return a; } public string PhaseBeforeExposeConditionParameter(int j) { int o = __p.__offset(22); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int PhaseBeforeExposeConditionParameterLength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } - public SCHALE.Common.FlatData.ParcelType ErosionBattleConditionParcelType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ErosionBattleConditionParcelType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ErosionBattleConditionParcelUniqueId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ErosionBattleConditionParcelAmount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ConquestRewardId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -54,7 +54,7 @@ public struct ConquestErosionExcel : IFlatbufferObject public static Offset CreateConquestErosionExcel(FlatBufferBuilder builder, long EventContentId = 0, long Id = 0, - SCHALE.Common.FlatData.ConquestErosionType ErosionType = SCHALE.Common.FlatData.ConquestErosionType.None, + SCHALE.Common.FlatData.ConquestErosionType ErosionType = SCHALE.Common.FlatData.ConquestErosionType.None_, int Phase = 0, bool PhaseAlarm = false, int StepIndex = 0, @@ -62,7 +62,7 @@ public struct ConquestErosionExcel : IFlatbufferObject VectorOffset PhaseStartConditionParameterOffset = default(VectorOffset), VectorOffset PhaseBeforeExposeConditionTypeOffset = default(VectorOffset), VectorOffset PhaseBeforeExposeConditionParameterOffset = default(VectorOffset), - SCHALE.Common.FlatData.ParcelType ErosionBattleConditionParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ErosionBattleConditionParcelType = SCHALE.Common.FlatData.ParcelType.None_, long ErosionBattleConditionParcelUniqueId = 0, long ErosionBattleConditionParcelAmount = 0, long ConquestRewardId = 0) { @@ -212,7 +212,7 @@ public class ConquestErosionExcelT public ConquestErosionExcelT() { this.EventContentId = 0; this.Id = 0; - this.ErosionType = SCHALE.Common.FlatData.ConquestErosionType.None; + this.ErosionType = SCHALE.Common.FlatData.ConquestErosionType.None_; this.Phase = 0; this.PhaseAlarm = false; this.StepIndex = 0; @@ -220,7 +220,7 @@ public class ConquestErosionExcelT this.PhaseStartConditionParameter = null; this.PhaseBeforeExposeConditionType = null; this.PhaseBeforeExposeConditionParameter = null; - this.ErosionBattleConditionParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ErosionBattleConditionParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.ErosionBattleConditionParcelUniqueId = 0; this.ErosionBattleConditionParcelAmount = 0; this.ConquestRewardId = 0; diff --git a/SCHALE.Common/FlatData/ConquestErosionType.cs b/SCHALE.Common/FlatData/ConquestErosionType.cs index 54c7807..01c8940 100644 --- a/SCHALE.Common/FlatData/ConquestErosionType.cs +++ b/SCHALE.Common/FlatData/ConquestErosionType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ConquestErosionType : int { - None = 0, + None_ = 0, IndividualErosion = 1, MassErosion = 2, }; diff --git a/SCHALE.Common/FlatData/ConquestEventExcel.cs b/SCHALE.Common/FlatData/ConquestEventExcel.cs index f869fa2..9d313ec 100644 --- a/SCHALE.Common/FlatData/ConquestEventExcel.cs +++ b/SCHALE.Common/FlatData/ConquestEventExcel.cs @@ -22,7 +22,7 @@ public struct ConquestEventExcel : IFlatbufferObject public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long MainStoryEventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ConquestEventType ConquestEventType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestEventType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestEventType.None; } } + public SCHALE.Common.FlatData.ConquestEventType ConquestEventType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestEventType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestEventType.None_; } } public bool UseErosion { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public bool UseUnexpectedEvent { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public bool UseCalculate { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } @@ -116,7 +116,7 @@ public struct ConquestEventExcel : IFlatbufferObject public static Offset CreateConquestEventExcel(FlatBufferBuilder builder, long EventContentId = 0, long MainStoryEventContentId = 0, - SCHALE.Common.FlatData.ConquestEventType ConquestEventType_ = SCHALE.Common.FlatData.ConquestEventType.None, + SCHALE.Common.FlatData.ConquestEventType ConquestEventType_ = SCHALE.Common.FlatData.ConquestEventType.None_, bool UseErosion = false, bool UseUnexpectedEvent = false, bool UseCalculate = false, @@ -311,7 +311,7 @@ public class ConquestEventExcelT public ConquestEventExcelT() { this.EventContentId = 0; this.MainStoryEventContentId = 0; - this.ConquestEventType_ = SCHALE.Common.FlatData.ConquestEventType.None; + this.ConquestEventType_ = SCHALE.Common.FlatData.ConquestEventType.None_; this.UseErosion = false; this.UseUnexpectedEvent = false; this.UseCalculate = false; diff --git a/SCHALE.Common/FlatData/ConquestEventType.cs b/SCHALE.Common/FlatData/ConquestEventType.cs index 69f64c2..b08443b 100644 --- a/SCHALE.Common/FlatData/ConquestEventType.cs +++ b/SCHALE.Common/FlatData/ConquestEventType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ConquestEventType : int { - None = 0, + None_ = 0, Event01 = 1, Event02 = 2, }; diff --git a/SCHALE.Common/FlatData/ConquestItemType.cs b/SCHALE.Common/FlatData/ConquestItemType.cs index 30c2ce5..1f96e92 100644 --- a/SCHALE.Common/FlatData/ConquestItemType.cs +++ b/SCHALE.Common/FlatData/ConquestItemType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ConquestItemType : int { - None = 0, + None_ = 0, EventPoint = 1, EventToken1 = 2, EventToken2 = 3, diff --git a/SCHALE.Common/FlatData/ConquestMapExcel.cs b/SCHALE.Common/FlatData/ConquestMapExcel.cs index 0fe10f8..503f217 100644 --- a/SCHALE.Common/FlatData/ConquestMapExcel.cs +++ b/SCHALE.Common/FlatData/ConquestMapExcel.cs @@ -28,7 +28,7 @@ public struct ConquestMapExcel : IFlatbufferObject public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetDevNameArray() { return __p.__vector_as_array(6); } - public SCHALE.Common.FlatData.StageDifficulty MapDifficulty { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public SCHALE.Common.FlatData.StageDifficulty MapDifficulty { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None_; } } public int StepIndex { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public string ConquestMap { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -81,7 +81,7 @@ public struct ConquestMapExcel : IFlatbufferObject public static Offset CreateConquestMapExcel(FlatBufferBuilder builder, long EventContentId = 0, StringOffset DevNameOffset = default(StringOffset), - SCHALE.Common.FlatData.StageDifficulty MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, + SCHALE.Common.FlatData.StageDifficulty MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None_, int StepIndex = 0, StringOffset ConquestMapOffset = default(StringOffset), long StepEnterScenarioGroupId = 0, @@ -216,7 +216,7 @@ public class ConquestMapExcelT public ConquestMapExcelT() { this.EventContentId = 0; this.DevName = null; - this.MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None; + this.MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None_; this.StepIndex = 0; this.ConquestMap = null; this.StepEnterScenarioGroupId = 0; diff --git a/SCHALE.Common/FlatData/ConquestObjectExcel.cs b/SCHALE.Common/FlatData/ConquestObjectExcel.cs index 33587c6..17714a0 100644 --- a/SCHALE.Common/FlatData/ConquestObjectExcel.cs +++ b/SCHALE.Common/FlatData/ConquestObjectExcel.cs @@ -22,7 +22,7 @@ public struct ConquestObjectExcel : IFlatbufferObject public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ConquestObjectType ConquestObjectType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestObjectType.None; } } + public SCHALE.Common.FlatData.ConquestObjectType ConquestObjectType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestObjectType.None_; } } public uint Key { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public string Name { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -38,7 +38,7 @@ public struct ConquestObjectExcel : IFlatbufferObject public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetPrefabNameArray() { return __p.__vector_as_array(14); } - public SCHALE.Common.FlatData.ParcelType ConquestRewardParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ConquestRewardParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ConquestRewardID { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int ConquestRewardAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool Disposable { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } @@ -48,11 +48,11 @@ public struct ConquestObjectExcel : IFlatbufferObject public static Offset CreateConquestObjectExcel(FlatBufferBuilder builder, long Id = 0, long EventContentId = 0, - SCHALE.Common.FlatData.ConquestObjectType ConquestObjectType_ = SCHALE.Common.FlatData.ConquestObjectType.None, + SCHALE.Common.FlatData.ConquestObjectType ConquestObjectType_ = SCHALE.Common.FlatData.ConquestObjectType.None_, uint Key = 0, StringOffset NameOffset = default(StringOffset), StringOffset PrefabNameOffset = default(StringOffset), - SCHALE.Common.FlatData.ParcelType ConquestRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ConquestRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long ConquestRewardID = 0, int ConquestRewardAmount = 0, bool Disposable = false, @@ -150,11 +150,11 @@ public class ConquestObjectExcelT public ConquestObjectExcelT() { this.Id = 0; this.EventContentId = 0; - this.ConquestObjectType_ = SCHALE.Common.FlatData.ConquestObjectType.None; + this.ConquestObjectType_ = SCHALE.Common.FlatData.ConquestObjectType.None_; this.Key = 0; this.Name = null; this.PrefabName = null; - this.ConquestRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ConquestRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.ConquestRewardID = 0; this.ConquestRewardAmount = 0; this.Disposable = false; diff --git a/SCHALE.Common/FlatData/ConquestObjectType.cs b/SCHALE.Common/FlatData/ConquestObjectType.cs index 1882c62..0f879dd 100644 --- a/SCHALE.Common/FlatData/ConquestObjectType.cs +++ b/SCHALE.Common/FlatData/ConquestObjectType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ConquestObjectType : int { - None = 0, + None_ = 0, ParcelOneTimePerAccount = 1, }; diff --git a/SCHALE.Common/FlatData/ConquestProgressResourceExcel.cs b/SCHALE.Common/FlatData/ConquestProgressResourceExcel.cs index a126e60..b636516 100644 --- a/SCHALE.Common/FlatData/ConquestProgressResourceExcel.cs +++ b/SCHALE.Common/FlatData/ConquestProgressResourceExcel.cs @@ -22,7 +22,7 @@ public struct ConquestProgressResourceExcel : IFlatbufferObject public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ConquestProgressType Group { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestProgressType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestProgressType.None; } } + public SCHALE.Common.FlatData.ConquestProgressType Group { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ConquestProgressType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestProgressType.None_; } } public string ProgressResource { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetProgressResourceBytes() { return __p.__vector_as_span(10, 1); } @@ -49,7 +49,7 @@ public struct ConquestProgressResourceExcel : IFlatbufferObject public static Offset CreateConquestProgressResourceExcel(FlatBufferBuilder builder, long Id = 0, long EventContentId = 0, - SCHALE.Common.FlatData.ConquestProgressType Group = SCHALE.Common.FlatData.ConquestProgressType.None, + SCHALE.Common.FlatData.ConquestProgressType Group = SCHALE.Common.FlatData.ConquestProgressType.None_, StringOffset ProgressResourceOffset = default(StringOffset), VectorOffset VoiceIdOffset = default(VectorOffset), StringOffset ProgressLocalizeCodeOffset = default(StringOffset)) { @@ -126,7 +126,7 @@ public class ConquestProgressResourceExcelT public ConquestProgressResourceExcelT() { this.Id = 0; this.EventContentId = 0; - this.Group = SCHALE.Common.FlatData.ConquestProgressType.None; + this.Group = SCHALE.Common.FlatData.ConquestProgressType.None_; this.ProgressResource = null; this.VoiceId = null; this.ProgressLocalizeCode = null; diff --git a/SCHALE.Common/FlatData/ConquestProgressType.cs b/SCHALE.Common/FlatData/ConquestProgressType.cs index a65de6d..3cd344a 100644 --- a/SCHALE.Common/FlatData/ConquestProgressType.cs +++ b/SCHALE.Common/FlatData/ConquestProgressType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ConquestProgressType : int { - None = 0, + None_ = 0, Upgrade = 1, Manage = 2, }; diff --git a/SCHALE.Common/FlatData/ConquestRewardExcel.cs b/SCHALE.Common/FlatData/ConquestRewardExcel.cs index 8eafd5e..52be119 100644 --- a/SCHALE.Common/FlatData/ConquestRewardExcel.cs +++ b/SCHALE.Common/FlatData/ConquestRewardExcel.cs @@ -23,7 +23,7 @@ public struct ConquestRewardExcel : IFlatbufferObject public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.RewardTag RewardTag_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } public int RewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } @@ -32,7 +32,7 @@ public struct ConquestRewardExcel : IFlatbufferObject long GroupId = 0, SCHALE.Common.FlatData.RewardTag RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default, int RewardProb = 0, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardId = 0, int RewardAmount = 0, bool IsDisplayed = false) { @@ -102,7 +102,7 @@ public class ConquestRewardExcelT this.GroupId = 0; this.RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default; this.RewardProb = 0; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardId = 0; this.RewardAmount = 0; this.IsDisplayed = false; diff --git a/SCHALE.Common/FlatData/ConquestStepExcel.cs b/SCHALE.Common/FlatData/ConquestStepExcel.cs index 3b03c5e..41e54c2 100644 --- a/SCHALE.Common/FlatData/ConquestStepExcel.cs +++ b/SCHALE.Common/FlatData/ConquestStepExcel.cs @@ -21,7 +21,7 @@ public struct ConquestStepExcel : IFlatbufferObject public ConquestStepExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.StageDifficulty MapDifficulty { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public SCHALE.Common.FlatData.StageDifficulty MapDifficulty { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None_; } } public int Step { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public string StepGoalLocalize { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -31,7 +31,7 @@ public struct ConquestStepExcel : IFlatbufferObject #endif public byte[] GetStepGoalLocalizeArray() { return __p.__vector_as_array(10); } public long StepEnterScenarioGroupId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType StepEnterItemType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType StepEnterItemType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long StepEnterItemUniqueId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long StepEnterItemAmount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long UnexpectedEventUnitId(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } @@ -54,11 +54,11 @@ public struct ConquestStepExcel : IFlatbufferObject public static Offset CreateConquestStepExcel(FlatBufferBuilder builder, long EventContentId = 0, - SCHALE.Common.FlatData.StageDifficulty MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, + SCHALE.Common.FlatData.StageDifficulty MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None_, int Step = 0, StringOffset StepGoalLocalizeOffset = default(StringOffset), long StepEnterScenarioGroupId = 0, - SCHALE.Common.FlatData.ParcelType StepEnterItemType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType StepEnterItemType = SCHALE.Common.FlatData.ParcelType.None_, long StepEnterItemUniqueId = 0, long StepEnterItemAmount = 0, VectorOffset UnexpectedEventUnitIdOffset = default(VectorOffset), @@ -167,11 +167,11 @@ public class ConquestStepExcelT public ConquestStepExcelT() { this.EventContentId = 0; - this.MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None; + this.MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None_; this.Step = 0; this.StepGoalLocalize = null; this.StepEnterScenarioGroupId = 0; - this.StepEnterItemType = SCHALE.Common.FlatData.ParcelType.None; + this.StepEnterItemType = SCHALE.Common.FlatData.ParcelType.None_; this.StepEnterItemUniqueId = 0; this.StepEnterItemAmount = 0; this.UnexpectedEventUnitId = null; diff --git a/SCHALE.Common/FlatData/ConquestTeamType.cs b/SCHALE.Common/FlatData/ConquestTeamType.cs index 741dfd8..d73563d 100644 --- a/SCHALE.Common/FlatData/ConquestTeamType.cs +++ b/SCHALE.Common/FlatData/ConquestTeamType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ConquestTeamType : int { - None = 0, + None_ = 0, Team1 = 1, Team2 = 2, Team3 = 3, diff --git a/SCHALE.Common/FlatData/ConquestTileExcel.cs b/SCHALE.Common/FlatData/ConquestTileExcel.cs index 70d10e2..4241d58 100644 --- a/SCHALE.Common/FlatData/ConquestTileExcel.cs +++ b/SCHALE.Common/FlatData/ConquestTileExcel.cs @@ -52,21 +52,21 @@ public struct ConquestTileExcel : IFlatbufferObject #endif public byte[] GetTileImageNameArray() { return __p.__vector_as_array(16); } public bool Playable { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.ConquestTileType TileType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ConquestTileType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestTileType.None; } } + public SCHALE.Common.FlatData.ConquestTileType TileType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ConquestTileType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestTileType.None_; } } public bool NotMapFog { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long GroupBonusId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType ConquestCostType { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ConquestCostType { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ConquestCostId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int ConquestCostAmount { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType ManageCostType { get { int o = __p.__offset(32); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ManageCostType { get { int o = __p.__offset(32); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ManageCostId { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int ManageCostAmount { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long ConquestRewardId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long MassErosionId { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType Upgrade2CostType { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType Upgrade2CostType { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long Upgrade2CostId { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int Upgrade2CostAmount { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType Upgrade3CostType { get { int o = __p.__offset(48); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType Upgrade3CostType { get { int o = __p.__offset(48); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long Upgrade3CostId { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int Upgrade3CostAmount { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -79,21 +79,21 @@ public struct ConquestTileExcel : IFlatbufferObject StringOffset TileNameLocalizeOffset = default(StringOffset), StringOffset TileImageNameOffset = default(StringOffset), bool Playable = false, - SCHALE.Common.FlatData.ConquestTileType TileType = SCHALE.Common.FlatData.ConquestTileType.None, + SCHALE.Common.FlatData.ConquestTileType TileType = SCHALE.Common.FlatData.ConquestTileType.None_, bool NotMapFog = false, long GroupBonusId = 0, - SCHALE.Common.FlatData.ParcelType ConquestCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ConquestCostType = SCHALE.Common.FlatData.ParcelType.None_, long ConquestCostId = 0, int ConquestCostAmount = 0, - SCHALE.Common.FlatData.ParcelType ManageCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ManageCostType = SCHALE.Common.FlatData.ParcelType.None_, long ManageCostId = 0, int ManageCostAmount = 0, long ConquestRewardId = 0, long MassErosionId = 0, - SCHALE.Common.FlatData.ParcelType Upgrade2CostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType Upgrade2CostType = SCHALE.Common.FlatData.ParcelType.None_, long Upgrade2CostId = 0, int Upgrade2CostAmount = 0, - SCHALE.Common.FlatData.ParcelType Upgrade3CostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType Upgrade3CostType = SCHALE.Common.FlatData.ParcelType.None_, long Upgrade3CostId = 0, int Upgrade3CostAmount = 0) { builder.StartTable(25); @@ -261,21 +261,21 @@ public class ConquestTileExcelT this.TileNameLocalize = null; this.TileImageName = null; this.Playable = false; - this.TileType = SCHALE.Common.FlatData.ConquestTileType.None; + this.TileType = SCHALE.Common.FlatData.ConquestTileType.None_; this.NotMapFog = false; this.GroupBonusId = 0; - this.ConquestCostType = SCHALE.Common.FlatData.ParcelType.None; + this.ConquestCostType = SCHALE.Common.FlatData.ParcelType.None_; this.ConquestCostId = 0; this.ConquestCostAmount = 0; - this.ManageCostType = SCHALE.Common.FlatData.ParcelType.None; + this.ManageCostType = SCHALE.Common.FlatData.ParcelType.None_; this.ManageCostId = 0; this.ManageCostAmount = 0; this.ConquestRewardId = 0; this.MassErosionId = 0; - this.Upgrade2CostType = SCHALE.Common.FlatData.ParcelType.None; + this.Upgrade2CostType = SCHALE.Common.FlatData.ParcelType.None_; this.Upgrade2CostId = 0; this.Upgrade2CostAmount = 0; - this.Upgrade3CostType = SCHALE.Common.FlatData.ParcelType.None; + this.Upgrade3CostType = SCHALE.Common.FlatData.ParcelType.None_; this.Upgrade3CostId = 0; this.Upgrade3CostAmount = 0; } diff --git a/SCHALE.Common/FlatData/ConquestTileType.cs b/SCHALE.Common/FlatData/ConquestTileType.cs index d6285cf..8ad31fb 100644 --- a/SCHALE.Common/FlatData/ConquestTileType.cs +++ b/SCHALE.Common/FlatData/ConquestTileType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ConquestTileType : int { - None = 0, + None_ = 0, Start = 1, Normal = 2, Battle = 3, diff --git a/SCHALE.Common/FlatData/ConquestUnexpectedEventExcel.cs b/SCHALE.Common/FlatData/ConquestUnexpectedEventExcel.cs index d7af86c..20d0e2c 100644 --- a/SCHALE.Common/FlatData/ConquestUnexpectedEventExcel.cs +++ b/SCHALE.Common/FlatData/ConquestUnexpectedEventExcel.cs @@ -21,7 +21,7 @@ public struct ConquestUnexpectedEventExcel : IFlatbufferObject public ConquestUnexpectedEventExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType UnexpectedEventConditionType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType UnexpectedEventConditionType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long UnexpectedEventConditionUniqueId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long UnexpectedEventConditionAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int UnexpectedEventOccurDailyLimitCount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -39,7 +39,7 @@ public struct ConquestUnexpectedEventExcel : IFlatbufferObject public static Offset CreateConquestUnexpectedEventExcel(FlatBufferBuilder builder, long EventContentId = 0, - SCHALE.Common.FlatData.ParcelType UnexpectedEventConditionType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType UnexpectedEventConditionType = SCHALE.Common.FlatData.ParcelType.None_, long UnexpectedEventConditionUniqueId = 0, long UnexpectedEventConditionAmount = 0, int UnexpectedEventOccurDailyLimitCount = 0, @@ -138,7 +138,7 @@ public class ConquestUnexpectedEventExcelT public ConquestUnexpectedEventExcelT() { this.EventContentId = 0; - this.UnexpectedEventConditionType = SCHALE.Common.FlatData.ParcelType.None; + this.UnexpectedEventConditionType = SCHALE.Common.FlatData.ParcelType.None_; this.UnexpectedEventConditionUniqueId = 0; this.UnexpectedEventConditionAmount = 0; this.UnexpectedEventOccurDailyLimitCount = 0; diff --git a/SCHALE.Common/FlatData/ConquestUnitExcel.cs b/SCHALE.Common/FlatData/ConquestUnitExcel.cs index 46b5637..dd1f955 100644 --- a/SCHALE.Common/FlatData/ConquestUnitExcel.cs +++ b/SCHALE.Common/FlatData/ConquestUnitExcel.cs @@ -59,8 +59,8 @@ public struct ConquestUnitExcel : IFlatbufferObject public ArraySegment? GetPointAnimationBytes() { return __p.__vector_as_arraysegment(20); } #endif public byte[] GetPointAnimationArray() { return __p.__vector_as_array(20); } - public SCHALE.Common.FlatData.ConquestEnemyType EnemyType { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.ConquestEnemyType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestEnemyType.None; } } - public SCHALE.Common.FlatData.ConquestTeamType Team { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ConquestTeamType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestTeamType.None; } } + public SCHALE.Common.FlatData.ConquestEnemyType EnemyType { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.ConquestEnemyType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestEnemyType.None_; } } + public SCHALE.Common.FlatData.ConquestTeamType Team { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ConquestTeamType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ConquestTeamType.None_; } } public long UnitGroup { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PrevUnitGroup { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long BattleDuration { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -82,10 +82,10 @@ public struct ConquestUnitExcel : IFlatbufferObject #endif public int[] GetStarGoalAmountArray() { return __p.__vector_as_array(36); } public long GroupBuffId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long StageEnterCostId { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int StageEnterCostAmount { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType ManageEchelonStageEnterCostType { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ManageEchelonStageEnterCostType { get { int o = __p.__offset(46); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ManageEchelonStageEnterCostId { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int ManageEchelonStageEnterCostAmount { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long EnterScenarioGroupId { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -107,8 +107,8 @@ public struct ConquestUnitExcel : IFlatbufferObject float ShieldEffectScale = 0.0f, StringOffset UnitFxPrefabNameOffset = default(StringOffset), StringOffset PointAnimationOffset = default(StringOffset), - SCHALE.Common.FlatData.ConquestEnemyType EnemyType = SCHALE.Common.FlatData.ConquestEnemyType.None, - SCHALE.Common.FlatData.ConquestTeamType Team = SCHALE.Common.FlatData.ConquestTeamType.None, + SCHALE.Common.FlatData.ConquestEnemyType EnemyType = SCHALE.Common.FlatData.ConquestEnemyType.None_, + SCHALE.Common.FlatData.ConquestTeamType Team = SCHALE.Common.FlatData.ConquestTeamType.None_, long UnitGroup = 0, long PrevUnitGroup = 0, long BattleDuration = 0, @@ -116,10 +116,10 @@ public struct ConquestUnitExcel : IFlatbufferObject VectorOffset StarGoalOffset = default(VectorOffset), VectorOffset StarGoalAmountOffset = default(VectorOffset), long GroupBuffId = 0, - SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_, long StageEnterCostId = 0, int StageEnterCostAmount = 0, - SCHALE.Common.FlatData.ParcelType ManageEchelonStageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ManageEchelonStageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_, long ManageEchelonStageEnterCostId = 0, int ManageEchelonStageEnterCostAmount = 0, long EnterScenarioGroupId = 0, @@ -354,8 +354,8 @@ public class ConquestUnitExcelT this.ShieldEffectScale = 0.0f; this.UnitFxPrefabName = null; this.PointAnimation = null; - this.EnemyType = SCHALE.Common.FlatData.ConquestEnemyType.None; - this.Team = SCHALE.Common.FlatData.ConquestTeamType.None; + this.EnemyType = SCHALE.Common.FlatData.ConquestEnemyType.None_; + this.Team = SCHALE.Common.FlatData.ConquestTeamType.None_; this.UnitGroup = 0; this.PrevUnitGroup = 0; this.BattleDuration = 0; @@ -363,10 +363,10 @@ public class ConquestUnitExcelT this.StarGoal = null; this.StarGoalAmount = null; this.GroupBuffId = 0; - this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.StageEnterCostId = 0; this.StageEnterCostAmount = 0; - this.ManageEchelonStageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.ManageEchelonStageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.ManageEchelonStageEnterCostId = 0; this.ManageEchelonStageEnterCostAmount = 0; this.EnterScenarioGroupId = 0; diff --git a/SCHALE.Common/FlatData/ConstArenaExcel.cs b/SCHALE.Common/FlatData/ConstArenaExcel.cs index 573343f..1f6111e 100644 --- a/SCHALE.Common/FlatData/ConstArenaExcel.cs +++ b/SCHALE.Common/FlatData/ConstArenaExcel.cs @@ -26,7 +26,7 @@ public struct ConstArenaExcel : IFlatbufferObject public long TSSStartCoolTime { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EndAlarm { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long TimeRewardMaxAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType EnterCostType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType EnterCostType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long EnterCostId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long TicketCost { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string DailyRewardResetTime { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } @@ -125,6 +125,7 @@ public struct ConstArenaExcel : IFlatbufferObject #endif public byte[] GetShowSeasonChangeInfoEndTimeArray() { return __p.__vector_as_array(64); } public long ShowSeasonId { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int ArenaHistoryQueryLimitDays { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public static Offset CreateConstArenaExcel(FlatBufferBuilder builder, long AttackCoolTime = 0, @@ -133,7 +134,7 @@ public struct ConstArenaExcel : IFlatbufferObject long TSSStartCoolTime = 0, long EndAlarm = 0, long TimeRewardMaxAmount = 0, - SCHALE.Common.FlatData.ParcelType EnterCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType EnterCostType = SCHALE.Common.FlatData.ParcelType.None_, long EnterCostId = 0, long TicketCost = 0, StringOffset DailyRewardResetTimeOffset = default(StringOffset), @@ -158,8 +159,9 @@ public struct ConstArenaExcel : IFlatbufferObject long SkipAllowedTimeMilliSeconds = 0, StringOffset ShowSeasonChangeInfoStartTimeOffset = default(StringOffset), StringOffset ShowSeasonChangeInfoEndTimeOffset = default(StringOffset), - long ShowSeasonId = 0) { - builder.StartTable(32); + long ShowSeasonId = 0, + int ArenaHistoryQueryLimitDays = 0) { + builder.StartTable(33); ConstArenaExcel.AddShowSeasonId(builder, ShowSeasonId); ConstArenaExcel.AddSkipAllowedTimeMilliSeconds(builder, SkipAllowedTimeMilliSeconds); ConstArenaExcel.AddEchelonSettingIntervalMilliSeconds(builder, EchelonSettingIntervalMilliSeconds); @@ -179,6 +181,7 @@ public struct ConstArenaExcel : IFlatbufferObject ConstArenaExcel.AddDefenseCoolTime(builder, DefenseCoolTime); ConstArenaExcel.AddBattleDuration(builder, BattleDuration); ConstArenaExcel.AddAttackCoolTime(builder, AttackCoolTime); + ConstArenaExcel.AddArenaHistoryQueryLimitDays(builder, ArenaHistoryQueryLimitDays); ConstArenaExcel.AddShowSeasonChangeInfoEndTime(builder, ShowSeasonChangeInfoEndTimeOffset); ConstArenaExcel.AddShowSeasonChangeInfoStartTime(builder, ShowSeasonChangeInfoStartTimeOffset); ConstArenaExcel.AddHiddenCharacterImagePath(builder, HiddenCharacterImagePathOffset); @@ -195,7 +198,7 @@ public struct ConstArenaExcel : IFlatbufferObject return ConstArenaExcel.EndConstArenaExcel(builder); } - public static void StartConstArenaExcel(FlatBufferBuilder builder) { builder.StartTable(32); } + public static void StartConstArenaExcel(FlatBufferBuilder builder) { builder.StartTable(33); } public static void AddAttackCoolTime(FlatBufferBuilder builder, long attackCoolTime) { builder.AddLong(0, attackCoolTime, 0); } public static void AddBattleDuration(FlatBufferBuilder builder, long battleDuration) { builder.AddLong(1, battleDuration, 0); } public static void AddDefenseCoolTime(FlatBufferBuilder builder, long defenseCoolTime) { builder.AddLong(2, defenseCoolTime, 0); } @@ -263,6 +266,7 @@ public struct ConstArenaExcel : IFlatbufferObject public static void AddShowSeasonChangeInfoStartTime(FlatBufferBuilder builder, StringOffset showSeasonChangeInfoStartTimeOffset) { builder.AddOffset(29, showSeasonChangeInfoStartTimeOffset.Value, 0); } public static void AddShowSeasonChangeInfoEndTime(FlatBufferBuilder builder, StringOffset showSeasonChangeInfoEndTimeOffset) { builder.AddOffset(30, showSeasonChangeInfoEndTimeOffset.Value, 0); } public static void AddShowSeasonId(FlatBufferBuilder builder, long showSeasonId) { builder.AddLong(31, showSeasonId, 0); } + public static void AddArenaHistoryQueryLimitDays(FlatBufferBuilder builder, int arenaHistoryQueryLimitDays) { builder.AddInt(32, arenaHistoryQueryLimitDays, 0); } public static Offset EndConstArenaExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); @@ -313,6 +317,7 @@ public struct ConstArenaExcel : IFlatbufferObject _o.ShowSeasonChangeInfoStartTime = TableEncryptionService.Convert(this.ShowSeasonChangeInfoStartTime, key); _o.ShowSeasonChangeInfoEndTime = TableEncryptionService.Convert(this.ShowSeasonChangeInfoEndTime, key); _o.ShowSeasonId = TableEncryptionService.Convert(this.ShowSeasonId, key); + _o.ArenaHistoryQueryLimitDays = TableEncryptionService.Convert(this.ArenaHistoryQueryLimitDays, key); } public static Offset Pack(FlatBufferBuilder builder, ConstArenaExcelT _o) { if (_o == null) return default(Offset); @@ -390,7 +395,8 @@ public struct ConstArenaExcel : IFlatbufferObject _o.SkipAllowedTimeMilliSeconds, _ShowSeasonChangeInfoStartTime, _ShowSeasonChangeInfoEndTime, - _o.ShowSeasonId); + _o.ShowSeasonId, + _o.ArenaHistoryQueryLimitDays); } } @@ -428,6 +434,7 @@ public class ConstArenaExcelT public string ShowSeasonChangeInfoStartTime { get; set; } public string ShowSeasonChangeInfoEndTime { get; set; } public long ShowSeasonId { get; set; } + public int ArenaHistoryQueryLimitDays { get; set; } public ConstArenaExcelT() { this.AttackCoolTime = 0; @@ -436,7 +443,7 @@ public class ConstArenaExcelT this.TSSStartCoolTime = 0; this.EndAlarm = 0; this.TimeRewardMaxAmount = 0; - this.EnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.EnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.EnterCostId = 0; this.TicketCost = 0; this.DailyRewardResetTime = null; @@ -462,6 +469,7 @@ public class ConstArenaExcelT this.ShowSeasonChangeInfoStartTime = null; this.ShowSeasonChangeInfoEndTime = null; this.ShowSeasonId = 0; + this.ArenaHistoryQueryLimitDays = 0; } } @@ -503,6 +511,7 @@ static public class ConstArenaExcelVerify && verifier.VerifyString(tablePos, 62 /*ShowSeasonChangeInfoStartTime*/, false) && verifier.VerifyString(tablePos, 64 /*ShowSeasonChangeInfoEndTime*/, false) && verifier.VerifyField(tablePos, 66 /*ShowSeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 68 /*ArenaHistoryQueryLimitDays*/, 4 /*int*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/ConstCommonExcel.cs b/SCHALE.Common/FlatData/ConstCommonExcel.cs index 54a377d..0239fc8 100644 --- a/SCHALE.Common/FlatData/ConstCommonExcel.cs +++ b/SCHALE.Common/FlatData/ConstCommonExcel.cs @@ -43,196 +43,200 @@ public struct ConstCommonExcel : IFlatbufferObject public int MainSquadExpBonus { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int SupportSquadExpBonus { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int AccountExpRatio { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MissionToastLifeTime { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ExpItemInsertLimit { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ExpItemInsertAccelTime { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CharacterLvUpCoefficient { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int EquipmentLvUpCoefficient { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ExpEquipInsertLimit { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int EquipLvUpCoefficient { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int NicknameLength { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CraftDuration(int j) { int o = __p.__offset(66); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } - public int CraftDurationLength { get { int o = __p.__offset(66); return o != 0 ? __p.__vector_len(o) : 0; } } + public int NewbieAccountExpRatio { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int NewbieExpBoostActivateLevel { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MissionToastLifeTime { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExpItemInsertLimit { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExpItemInsertAccelTime { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharacterLvUpCoefficient { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EquipmentLvUpCoefficient { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExpEquipInsertLimit { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EquipLvUpCoefficient { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int NicknameLength { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CraftDuration(int j) { int o = __p.__offset(70); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int CraftDurationLength { get { int o = __p.__offset(70); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T - public Span GetCraftDurationBytes() { return __p.__vector_as_span(66, 4); } + public Span GetCraftDurationBytes() { return __p.__vector_as_span(70, 4); } #else - public ArraySegment? GetCraftDurationBytes() { return __p.__vector_as_arraysegment(66); } + public ArraySegment? GetCraftDurationBytes() { return __p.__vector_as_arraysegment(70); } #endif - public int[] GetCraftDurationArray() { return __p.__vector_as_array(66); } - public int CraftLimitTime { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ShiftingCraftDuration(int j) { int o = __p.__offset(70); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } - public int ShiftingCraftDurationLength { get { int o = __p.__offset(70); return o != 0 ? __p.__vector_len(o) : 0; } } + public int[] GetCraftDurationArray() { return __p.__vector_as_array(70); } + public int CraftLimitTime { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShiftingCraftDuration(int j) { int o = __p.__offset(74); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int ShiftingCraftDurationLength { get { int o = __p.__offset(74); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T - public Span GetShiftingCraftDurationBytes() { return __p.__vector_as_span(70, 4); } + public Span GetShiftingCraftDurationBytes() { return __p.__vector_as_span(74, 4); } #else - public ArraySegment? GetShiftingCraftDurationBytes() { return __p.__vector_as_arraysegment(70); } + public ArraySegment? GetShiftingCraftDurationBytes() { return __p.__vector_as_arraysegment(74); } #endif - public int[] GetShiftingCraftDurationArray() { return __p.__vector_as_array(70); } - public int ShiftingCraftTicketConsumeAmount { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ShiftingCraftSlotMaxCapacity { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CraftTicketItemUniqueId { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CraftTicketConsumeAmount { get { int o = __p.__offset(78); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType AcademyEnterCostType { get { int o = __p.__offset(80); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } - public long AcademyEnterCostId { get { int o = __p.__offset(82); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int AcademyTicketCost { get { int o = __p.__offset(84); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MassangerMessageExpireDay { get { int o = __p.__offset(86); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CraftLeafNodeGenerateLv1Count { get { int o = __p.__offset(88); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CraftLeafNodeGenerateLv2Count { get { int o = __p.__offset(90); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int TutorialGachaShopId { get { int o = __p.__offset(92); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int BeforehandGachaShopId { get { int o = __p.__offset(94); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int TutorialGachaGoodsId { get { int o = __p.__offset(96); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int EquipmentSlotOpenLevel(int j) { int o = __p.__offset(98); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } - public int EquipmentSlotOpenLevelLength { get { int o = __p.__offset(98); return o != 0 ? __p.__vector_len(o) : 0; } } + public int[] GetShiftingCraftDurationArray() { return __p.__vector_as_array(74); } + public int ShiftingCraftTicketConsumeAmount { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShiftingCraftSlotMaxCapacity { get { int o = __p.__offset(78); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CraftTicketItemUniqueId { get { int o = __p.__offset(80); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CraftTicketConsumeAmount { get { int o = __p.__offset(82); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType AcademyEnterCostType { get { int o = __p.__offset(84); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } + public long AcademyEnterCostId { get { int o = __p.__offset(86); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int AcademyTicketCost { get { int o = __p.__offset(88); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MassangerMessageExpireDay { get { int o = __p.__offset(90); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CraftLeafNodeGenerateLv1Count { get { int o = __p.__offset(92); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CraftLeafNodeGenerateLv2Count { get { int o = __p.__offset(94); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TutorialGachaShopId { get { int o = __p.__offset(96); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BeforehandGachaShopId { get { int o = __p.__offset(98); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int TutorialGachaGoodsId { get { int o = __p.__offset(100); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int EquipmentSlotOpenLevel(int j) { int o = __p.__offset(102); return o != 0 ? __p.bb.GetInt(__p.__vector(o) + j * 4) : (int)0; } + public int EquipmentSlotOpenLevelLength { get { int o = __p.__offset(102); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T - public Span GetEquipmentSlotOpenLevelBytes() { return __p.__vector_as_span(98, 4); } + public Span GetEquipmentSlotOpenLevelBytes() { return __p.__vector_as_span(102, 4); } #else - public ArraySegment? GetEquipmentSlotOpenLevelBytes() { return __p.__vector_as_arraysegment(98); } + public ArraySegment? GetEquipmentSlotOpenLevelBytes() { return __p.__vector_as_arraysegment(102); } #endif - public int[] GetEquipmentSlotOpenLevelArray() { return __p.__vector_as_array(98); } - public float ScenarioAutoDelayMillisec { get { int o = __p.__offset(100); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } - public long JoinOrCreateClanCoolTimeFromHour { get { int o = __p.__offset(102); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long ClanMaxMember { get { int o = __p.__offset(104); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long ClanSearchResultCount { get { int o = __p.__offset(106); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long ClanMaxApplicant { get { int o = __p.__offset(108); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long ClanRejoinCoolTimeFromSecond { get { int o = __p.__offset(110); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int ClanWordBalloonMaxCharacter { get { int o = __p.__offset(112); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public long CallNameRenameCoolTimeFromHour { get { int o = __p.__offset(114); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CallNameMinimumLength { get { int o = __p.__offset(116); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CallNameMaximumLength { get { int o = __p.__offset(118); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long LobbyToScreenModeWaitTime { get { int o = __p.__offset(120); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long ScreenshotToLobbyButtonHideDelay { get { int o = __p.__offset(122); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long PrologueScenarioID01 { get { int o = __p.__offset(124); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long PrologueScenarioID02 { get { int o = __p.__offset(126); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long TutorialHardStage11 { get { int o = __p.__offset(128); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long TutorialSpeedButtonStage { get { int o = __p.__offset(130); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long TutorialCharacterDefaultCount { get { int o = __p.__offset(132); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ShopCategoryType TutorialShopCategoryType { get { int o = __p.__offset(134); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } - public long AdventureStrategyPlayTimeLimitInSeconds { get { int o = __p.__offset(136); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long WeekDungoenTacticPlayTimeLimitInSeconds { get { int o = __p.__offset(138); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long RaidTacticPlayTimeLimitInSeconds { get { int o = __p.__offset(140); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long RaidOpponentListAmount { get { int o = __p.__offset(142); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CraftBaseGoldRequired(int j) { int o = __p.__offset(144); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } - public int CraftBaseGoldRequiredLength { get { int o = __p.__offset(144); return o != 0 ? __p.__vector_len(o) : 0; } } + public int[] GetEquipmentSlotOpenLevelArray() { return __p.__vector_as_array(102); } + public float ScenarioAutoDelayMillisec { get { int o = __p.__offset(104); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public long JoinOrCreateClanCoolTimeFromHour { get { int o = __p.__offset(106); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClanMaxMember { get { int o = __p.__offset(108); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClanSearchResultCount { get { int o = __p.__offset(110); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClanMaxApplicant { get { int o = __p.__offset(112); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClanRejoinCoolTimeFromSecond { get { int o = __p.__offset(114); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int ClanWordBalloonMaxCharacter { get { int o = __p.__offset(116); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long CallNameRenameCoolTimeFromHour { get { int o = __p.__offset(118); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CallNameMinimumLength { get { int o = __p.__offset(120); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CallNameMaximumLength { get { int o = __p.__offset(122); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LobbyToScreenModeWaitTime { get { int o = __p.__offset(124); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ScreenshotToLobbyButtonHideDelay { get { int o = __p.__offset(126); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PrologueScenarioID01 { get { int o = __p.__offset(128); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long PrologueScenarioID02 { get { int o = __p.__offset(130); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TutorialHardStage11 { get { int o = __p.__offset(132); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TutorialSpeedButtonStage { get { int o = __p.__offset(134); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TutorialCharacterDefaultCount { get { int o = __p.__offset(136); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.ShopCategoryType TutorialShopCategoryType { get { int o = __p.__offset(138); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } + public long AdventureStrategyPlayTimeLimitInSeconds { get { int o = __p.__offset(140); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WeekDungoenTacticPlayTimeLimitInSeconds { get { int o = __p.__offset(142); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RaidTacticPlayTimeLimitInSeconds { get { int o = __p.__offset(144); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RaidOpponentListAmount { get { int o = __p.__offset(146); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftBaseGoldRequired(int j) { int o = __p.__offset(148); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int CraftBaseGoldRequiredLength { get { int o = __p.__offset(148); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T - public Span GetCraftBaseGoldRequiredBytes() { return __p.__vector_as_span(144, 8); } + public Span GetCraftBaseGoldRequiredBytes() { return __p.__vector_as_span(148, 8); } #else - public ArraySegment? GetCraftBaseGoldRequiredBytes() { return __p.__vector_as_arraysegment(144); } + public ArraySegment? GetCraftBaseGoldRequiredBytes() { return __p.__vector_as_arraysegment(148); } #endif - public long[] GetCraftBaseGoldRequiredArray() { return __p.__vector_as_array(144); } - public int PostExpiredDayAttendance { get { int o = __p.__offset(146); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int PostExpiredDayInventoryOverflow { get { int o = __p.__offset(148); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int PostExpiredDayGameManager { get { int o = __p.__offset(150); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public string UILabelCharacterWrap { get { int o = __p.__offset(152); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public long[] GetCraftBaseGoldRequiredArray() { return __p.__vector_as_array(148); } + public int PostExpiredDayAttendance { get { int o = __p.__offset(150); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PostExpiredDayInventoryOverflow { get { int o = __p.__offset(152); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PostExpiredDayGameManager { get { int o = __p.__offset(154); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public string UILabelCharacterWrap { get { int o = __p.__offset(156); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetUILabelCharacterWrapBytes() { return __p.__vector_as_span(152, 1); } + public Span GetUILabelCharacterWrapBytes() { return __p.__vector_as_span(156, 1); } #else - public ArraySegment? GetUILabelCharacterWrapBytes() { return __p.__vector_as_arraysegment(152); } + public ArraySegment? GetUILabelCharacterWrapBytes() { return __p.__vector_as_arraysegment(156); } #endif - public byte[] GetUILabelCharacterWrapArray() { return __p.__vector_as_array(152); } - public float RequestTimeOut { get { int o = __p.__offset(154); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } - public int MailStorageSoftCap { get { int o = __p.__offset(156); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MailStorageHardCap { get { int o = __p.__offset(158); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ClearDeckStorageSize { get { int o = __p.__offset(160); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ClearDeckNoStarViewCount { get { int o = __p.__offset(162); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ClearDeck1StarViewCount { get { int o = __p.__offset(164); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ClearDeck2StarViewCount { get { int o = __p.__offset(166); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ClearDeck3StarViewCount { get { int o = __p.__offset(168); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ExSkillLevelMax { get { int o = __p.__offset(170); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int PublicSkillLevelMax { get { int o = __p.__offset(172); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int PassiveSkillLevelMax { get { int o = __p.__offset(174); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ExtraPassiveSkillLevelMax { get { int o = __p.__offset(176); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int AccountCommentMaxLength { get { int o = __p.__offset(178); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CafeSummonCoolTimeFromHour { get { int o = __p.__offset(180); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public long LimitedStageDailyClearCount { get { int o = __p.__offset(182); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long LimitedStageEntryTimeLimit { get { int o = __p.__offset(184); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long LimitedStageEntryTimeBuffer { get { int o = __p.__offset(186); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long LimitedStagePointAmount { get { int o = __p.__offset(188); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long LimitedStagePointPerApMin { get { int o = __p.__offset(190); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long LimitedStagePointPerApMax { get { int o = __p.__offset(192); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int AccountLinkReward { get { int o = __p.__offset(194); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MonthlyProductCheckDays { get { int o = __p.__offset(196); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int WeaponLvUpCoefficient { get { int o = __p.__offset(198); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ShowRaidMyListCount { get { int o = __p.__offset(200); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MaxLevelExpMasterCoinRatio { get { int o = __p.__offset(202); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType RaidEnterCostType { get { int o = __p.__offset(204); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } - public long RaidEnterCostId { get { int o = __p.__offset(206); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long RaidTicketCost { get { int o = __p.__offset(208); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public string TimeAttackDungeonScenarioId { get { int o = __p.__offset(210); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetUILabelCharacterWrapArray() { return __p.__vector_as_array(156); } + public float RequestTimeOut { get { int o = __p.__offset(158); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } + public int MailStorageSoftCap { get { int o = __p.__offset(160); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MailStorageHardCap { get { int o = __p.__offset(162); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeckStorageSize { get { int o = __p.__offset(164); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeckNoStarViewCount { get { int o = __p.__offset(166); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeck1StarViewCount { get { int o = __p.__offset(168); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeck2StarViewCount { get { int o = __p.__offset(170); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeck3StarViewCount { get { int o = __p.__offset(172); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExSkillLevelMax { get { int o = __p.__offset(174); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PublicSkillLevelMax { get { int o = __p.__offset(176); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PassiveSkillLevelMax { get { int o = __p.__offset(178); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ExtraPassiveSkillLevelMax { get { int o = __p.__offset(180); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AccountCommentMaxLength { get { int o = __p.__offset(182); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CafeSummonCoolTimeFromHour { get { int o = __p.__offset(184); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long LimitedStageDailyClearCount { get { int o = __p.__offset(186); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedStageEntryTimeLimit { get { int o = __p.__offset(188); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedStageEntryTimeBuffer { get { int o = __p.__offset(190); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedStagePointAmount { get { int o = __p.__offset(192); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedStagePointPerApMin { get { int o = __p.__offset(194); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long LimitedStagePointPerApMax { get { int o = __p.__offset(196); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int AccountLinkReward { get { int o = __p.__offset(198); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MonthlyProductCheckDays { get { int o = __p.__offset(200); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int WeaponLvUpCoefficient { get { int o = __p.__offset(202); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ShowRaidMyListCount { get { int o = __p.__offset(204); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MaxLevelExpMasterCoinRatio { get { int o = __p.__offset(206); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType RaidEnterCostType { get { int o = __p.__offset(208); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } + public long RaidEnterCostId { get { int o = __p.__offset(210); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long RaidTicketCost { get { int o = __p.__offset(212); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string TimeAttackDungeonScenarioId { get { int o = __p.__offset(214); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetTimeAttackDungeonScenarioIdBytes() { return __p.__vector_as_span(210, 1); } + public Span GetTimeAttackDungeonScenarioIdBytes() { return __p.__vector_as_span(214, 1); } #else - public ArraySegment? GetTimeAttackDungeonScenarioIdBytes() { return __p.__vector_as_arraysegment(210); } + public ArraySegment? GetTimeAttackDungeonScenarioIdBytes() { return __p.__vector_as_arraysegment(214); } #endif - public byte[] GetTimeAttackDungeonScenarioIdArray() { return __p.__vector_as_array(210); } - public int TimeAttackDungoenPlayCountPerTicket { get { int o = __p.__offset(212); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType TimeAttackDungeonEnterCostType { get { int o = __p.__offset(214); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } - public long TimeAttackDungeonEnterCostId { get { int o = __p.__offset(216); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long TimeAttackDungeonEnterCost { get { int o = __p.__offset(218); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long ClanLeaderTransferLastLoginLimit { get { int o = __p.__offset(220); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int MonthlyProductRepurchasePopupLimit { get { int o = __p.__offset(222); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.Tag CommonFavorItemTags(int j) { int o = __p.__offset(224); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } - public int CommonFavorItemTagsLength { get { int o = __p.__offset(224); return o != 0 ? __p.__vector_len(o) : 0; } } + public byte[] GetTimeAttackDungeonScenarioIdArray() { return __p.__vector_as_array(214); } + public int TimeAttackDungoenPlayCountPerTicket { get { int o = __p.__offset(216); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType TimeAttackDungeonEnterCostType { get { int o = __p.__offset(218); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } + public long TimeAttackDungeonEnterCostId { get { int o = __p.__offset(220); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long TimeAttackDungeonEnterCost { get { int o = __p.__offset(222); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long ClanLeaderTransferLastLoginLimit { get { int o = __p.__offset(224); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int MonthlyProductRepurchasePopupLimit { get { int o = __p.__offset(226); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.Tag CommonFavorItemTags(int j) { int o = __p.__offset(228); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.Tag)0; } + public int CommonFavorItemTagsLength { get { int o = __p.__offset(228); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T - public Span GetCommonFavorItemTagsBytes() { return __p.__vector_as_span(224, 4); } + public Span GetCommonFavorItemTagsBytes() { return __p.__vector_as_span(228, 4); } #else - public ArraySegment? GetCommonFavorItemTagsBytes() { return __p.__vector_as_arraysegment(224); } + public ArraySegment? GetCommonFavorItemTagsBytes() { return __p.__vector_as_arraysegment(228); } #endif - public SCHALE.Common.FlatData.Tag[] GetCommonFavorItemTagsArray() { int o = __p.__offset(224); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.Tag[] a = new SCHALE.Common.FlatData.Tag[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(p + i * 4); } return a; } - public long MaxApMasterCoinPerWeek { get { int o = __p.__offset(226); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CraftOpenExpTier1 { get { int o = __p.__offset(228); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CraftOpenExpTier2 { get { int o = __p.__offset(230); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CraftOpenExpTier3 { get { int o = __p.__offset(232); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long CharacterEquipmentGearSlot { get { int o = __p.__offset(234); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int BirthDayDDay { get { int o = __p.__offset(236); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int RecommendedFriendsLvDifferenceLimit { get { int o = __p.__offset(238); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int DDosDetectCount { get { int o = __p.__offset(240); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int DDosCheckIntervalInSeconds { get { int o = __p.__offset(242); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MaxFriendsCount { get { int o = __p.__offset(244); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MaxFriendsRequest { get { int o = __p.__offset(246); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int FriendsSearchRequestCount { get { int o = __p.__offset(248); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int FriendsMaxApplicant { get { int o = __p.__offset(250); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public long IdCardDefaultCharacterId { get { int o = __p.__offset(252); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long IdCardDefaultBgId { get { int o = __p.__offset(254); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long WorldRaidGemEnterCost { get { int o = __p.__offset(256); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long WorldRaidGemEnterAmout { get { int o = __p.__offset(258); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long FriendIdCardCommentMaxLength { get { int o = __p.__offset(260); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int FormationPresetNumberOfEchelonTab { get { int o = __p.__offset(262); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int FormationPresetNumberOfEchelon { get { int o = __p.__offset(264); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int FormationPresetRecentNumberOfEchelon { get { int o = __p.__offset(266); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int FormationPresetEchelonTabTextLength { get { int o = __p.__offset(268); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int FormationPresetEchelonSlotTextLength { get { int o = __p.__offset(270); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CharProfileRowIntervalKr { get { int o = __p.__offset(272); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CharProfileRowIntervalJp { get { int o = __p.__offset(274); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CharProfilePopupRowIntervalKr { get { int o = __p.__offset(276); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CharProfilePopupRowIntervalJp { get { int o = __p.__offset(278); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int BeforehandGachaCount { get { int o = __p.__offset(280); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int BeforehandGachaGroupId { get { int o = __p.__offset(282); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int RenewalDisplayOrderDay { get { int o = __p.__offset(284); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public long EmblemDefaultId { get { int o = __p.__offset(286); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public string BirthdayMailStartDate { get { int o = __p.__offset(288); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public SCHALE.Common.FlatData.Tag[] GetCommonFavorItemTagsArray() { int o = __p.__offset(228); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.Tag[] a = new SCHALE.Common.FlatData.Tag[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(p + i * 4); } return a; } + public long MaxApMasterCoinPerWeek { get { int o = __p.__offset(230); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftOpenExpTier1 { get { int o = __p.__offset(232); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftOpenExpTier2 { get { int o = __p.__offset(234); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CraftOpenExpTier3 { get { int o = __p.__offset(236); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long CharacterEquipmentGearSlot { get { int o = __p.__offset(238); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int BirthDayDDay { get { int o = __p.__offset(240); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RecommendedFriendsLvDifferenceLimit { get { int o = __p.__offset(242); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DDosDetectCount { get { int o = __p.__offset(244); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int DDosCheckIntervalInSeconds { get { int o = __p.__offset(246); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MaxFriendsCount { get { int o = __p.__offset(248); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MaxFriendsRequest { get { int o = __p.__offset(250); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FriendsSearchRequestCount { get { int o = __p.__offset(252); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FriendsMaxApplicant { get { int o = __p.__offset(254); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long IdCardDefaultCharacterId { get { int o = __p.__offset(256); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long IdCardDefaultBgId { get { int o = __p.__offset(258); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WorldRaidGemEnterCost { get { int o = __p.__offset(260); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long WorldRaidGemEnterAmout { get { int o = __p.__offset(262); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FriendIdCardCommentMaxLength { get { int o = __p.__offset(264); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int FormationPresetNumberOfEchelonTab { get { int o = __p.__offset(266); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FormationPresetNumberOfEchelon { get { int o = __p.__offset(268); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FormationPresetRecentNumberOfEchelon { get { int o = __p.__offset(270); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FormationPresetEchelonTabTextLength { get { int o = __p.__offset(272); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int FormationPresetEchelonSlotTextLength { get { int o = __p.__offset(274); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharProfileRowIntervalKr { get { int o = __p.__offset(276); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharProfileRowIntervalJp { get { int o = __p.__offset(278); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharProfilePopupRowIntervalKr { get { int o = __p.__offset(280); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharProfilePopupRowIntervalJp { get { int o = __p.__offset(282); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BeforehandGachaCount { get { int o = __p.__offset(284); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int BeforehandGachaGroupId { get { int o = __p.__offset(286); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int RenewalDisplayOrderDay { get { int o = __p.__offset(288); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long EmblemDefaultId { get { int o = __p.__offset(290); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string BirthdayMailStartDate { get { int o = __p.__offset(292); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetBirthdayMailStartDateBytes() { return __p.__vector_as_span(288, 1); } + public Span GetBirthdayMailStartDateBytes() { return __p.__vector_as_span(292, 1); } #else - public ArraySegment? GetBirthdayMailStartDateBytes() { return __p.__vector_as_arraysegment(288); } + public ArraySegment? GetBirthdayMailStartDateBytes() { return __p.__vector_as_arraysegment(292); } #endif - public byte[] GetBirthdayMailStartDateArray() { return __p.__vector_as_array(288); } - public int BirthdayMailRemainDate { get { int o = __p.__offset(290); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType BirthdayMailParcelType { get { int o = __p.__offset(292); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } - public long BirthdayMailParcelId { get { int o = __p.__offset(294); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public int BirthdayMailParcelAmount { get { int o = __p.__offset(296); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ClearDeckAverageDeckCount { get { int o = __p.__offset(298); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ClearDeckWorldRaidSaveConditionCoefficient { get { int o = __p.__offset(300); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int ClearDeckShowCount { get { int o = __p.__offset(302); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int CharacterMaxLevel { get { int o = __p.__offset(304); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int PotentialBonusStatMaxLevelMaxHP { get { int o = __p.__offset(306); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int PotentialBonusStatMaxLevelAttackPower { get { int o = __p.__offset(308); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int PotentialBonusStatMaxLevelHealPower { get { int o = __p.__offset(310); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int PotentialOpenConditionCharacterLevel { get { int o = __p.__offset(312); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int AssistStrangerMinLevel { get { int o = __p.__offset(314); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int AssistStrangerMaxLevel { get { int o = __p.__offset(316); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public int MaxBlockedUserCount { get { int o = __p.__offset(318); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public byte[] GetBirthdayMailStartDateArray() { return __p.__vector_as_array(292); } + public int BirthdayMailRemainDate { get { int o = __p.__offset(294); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public SCHALE.Common.FlatData.ParcelType BirthdayMailParcelType { get { int o = __p.__offset(296); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } + public long BirthdayMailParcelId { get { int o = __p.__offset(298); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int BirthdayMailParcelAmount { get { int o = __p.__offset(300); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeckAverageDeckCount { get { int o = __p.__offset(302); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeckWorldRaidSaveConditionCoefficient { get { int o = __p.__offset(304); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int ClearDeckShowCount { get { int o = __p.__offset(306); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int CharacterMaxLevel { get { int o = __p.__offset(308); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PotentialBonusStatMaxLevelMaxHP { get { int o = __p.__offset(310); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PotentialBonusStatMaxLevelAttackPower { get { int o = __p.__offset(312); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PotentialBonusStatMaxLevelHealPower { get { int o = __p.__offset(314); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int PotentialOpenConditionCharacterLevel { get { int o = __p.__offset(316); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AssistStrangerMinLevel { get { int o = __p.__offset(318); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int AssistStrangerMaxLevel { get { int o = __p.__offset(320); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public int MaxBlockedUserCount { get { int o = __p.__offset(322); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } + public long CafeRandomVisitMinComfortBonus { get { int o = __p.__offset(324); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public int CafeRandomVisitMinLastLogin { get { int o = __p.__offset(326); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public static void StartConstCommonExcel(FlatBufferBuilder builder) { builder.StartTable(158); } + public static void StartConstCommonExcel(FlatBufferBuilder builder) { builder.StartTable(162); } public static void AddCampaignMainStageMaxRank(FlatBufferBuilder builder, int campaignMainStageMaxRank) { builder.AddInt(0, campaignMainStageMaxRank, 0); } public static void AddCampaignMainStageBestRecord(FlatBufferBuilder builder, int campaignMainStageBestRecord) { builder.AddInt(1, campaignMainStageBestRecord, 0); } public static void AddHardAdventurePlayCountRecoverDailyNumber(FlatBufferBuilder builder, int hardAdventurePlayCountRecoverDailyNumber) { builder.AddInt(2, hardAdventurePlayCountRecoverDailyNumber, 0); } @@ -256,166 +260,170 @@ public struct ConstCommonExcel : IFlatbufferObject public static void AddMainSquadExpBonus(FlatBufferBuilder builder, int mainSquadExpBonus) { builder.AddInt(20, mainSquadExpBonus, 0); } public static void AddSupportSquadExpBonus(FlatBufferBuilder builder, int supportSquadExpBonus) { builder.AddInt(21, supportSquadExpBonus, 0); } public static void AddAccountExpRatio(FlatBufferBuilder builder, int accountExpRatio) { builder.AddInt(22, accountExpRatio, 0); } - public static void AddMissionToastLifeTime(FlatBufferBuilder builder, int missionToastLifeTime) { builder.AddInt(23, missionToastLifeTime, 0); } - public static void AddExpItemInsertLimit(FlatBufferBuilder builder, int expItemInsertLimit) { builder.AddInt(24, expItemInsertLimit, 0); } - public static void AddExpItemInsertAccelTime(FlatBufferBuilder builder, int expItemInsertAccelTime) { builder.AddInt(25, expItemInsertAccelTime, 0); } - public static void AddCharacterLvUpCoefficient(FlatBufferBuilder builder, int characterLvUpCoefficient) { builder.AddInt(26, characterLvUpCoefficient, 0); } - public static void AddEquipmentLvUpCoefficient(FlatBufferBuilder builder, int equipmentLvUpCoefficient) { builder.AddInt(27, equipmentLvUpCoefficient, 0); } - public static void AddExpEquipInsertLimit(FlatBufferBuilder builder, int expEquipInsertLimit) { builder.AddInt(28, expEquipInsertLimit, 0); } - public static void AddEquipLvUpCoefficient(FlatBufferBuilder builder, int equipLvUpCoefficient) { builder.AddInt(29, equipLvUpCoefficient, 0); } - public static void AddNicknameLength(FlatBufferBuilder builder, int nicknameLength) { builder.AddInt(30, nicknameLength, 0); } - public static void AddCraftDuration(FlatBufferBuilder builder, VectorOffset craftDurationOffset) { builder.AddOffset(31, craftDurationOffset.Value, 0); } + public static void AddNewbieAccountExpRatio(FlatBufferBuilder builder, int newbieAccountExpRatio) { builder.AddInt(23, newbieAccountExpRatio, 0); } + public static void AddNewbieExpBoostActivateLevel(FlatBufferBuilder builder, int newbieExpBoostActivateLevel) { builder.AddInt(24, newbieExpBoostActivateLevel, 0); } + public static void AddMissionToastLifeTime(FlatBufferBuilder builder, int missionToastLifeTime) { builder.AddInt(25, missionToastLifeTime, 0); } + public static void AddExpItemInsertLimit(FlatBufferBuilder builder, int expItemInsertLimit) { builder.AddInt(26, expItemInsertLimit, 0); } + public static void AddExpItemInsertAccelTime(FlatBufferBuilder builder, int expItemInsertAccelTime) { builder.AddInt(27, expItemInsertAccelTime, 0); } + public static void AddCharacterLvUpCoefficient(FlatBufferBuilder builder, int characterLvUpCoefficient) { builder.AddInt(28, characterLvUpCoefficient, 0); } + public static void AddEquipmentLvUpCoefficient(FlatBufferBuilder builder, int equipmentLvUpCoefficient) { builder.AddInt(29, equipmentLvUpCoefficient, 0); } + public static void AddExpEquipInsertLimit(FlatBufferBuilder builder, int expEquipInsertLimit) { builder.AddInt(30, expEquipInsertLimit, 0); } + public static void AddEquipLvUpCoefficient(FlatBufferBuilder builder, int equipLvUpCoefficient) { builder.AddInt(31, equipLvUpCoefficient, 0); } + public static void AddNicknameLength(FlatBufferBuilder builder, int nicknameLength) { builder.AddInt(32, nicknameLength, 0); } + public static void AddCraftDuration(FlatBufferBuilder builder, VectorOffset craftDurationOffset) { builder.AddOffset(33, craftDurationOffset.Value, 0); } public static VectorOffset CreateCraftDurationVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } public static VectorOffset CreateCraftDurationVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateCraftDurationVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateCraftDurationVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartCraftDurationVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static void AddCraftLimitTime(FlatBufferBuilder builder, int craftLimitTime) { builder.AddInt(32, craftLimitTime, 0); } - public static void AddShiftingCraftDuration(FlatBufferBuilder builder, VectorOffset shiftingCraftDurationOffset) { builder.AddOffset(33, shiftingCraftDurationOffset.Value, 0); } + public static void AddCraftLimitTime(FlatBufferBuilder builder, int craftLimitTime) { builder.AddInt(34, craftLimitTime, 0); } + public static void AddShiftingCraftDuration(FlatBufferBuilder builder, VectorOffset shiftingCraftDurationOffset) { builder.AddOffset(35, shiftingCraftDurationOffset.Value, 0); } public static VectorOffset CreateShiftingCraftDurationVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } public static VectorOffset CreateShiftingCraftDurationVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateShiftingCraftDurationVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateShiftingCraftDurationVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartShiftingCraftDurationVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static void AddShiftingCraftTicketConsumeAmount(FlatBufferBuilder builder, int shiftingCraftTicketConsumeAmount) { builder.AddInt(34, shiftingCraftTicketConsumeAmount, 0); } - public static void AddShiftingCraftSlotMaxCapacity(FlatBufferBuilder builder, int shiftingCraftSlotMaxCapacity) { builder.AddInt(35, shiftingCraftSlotMaxCapacity, 0); } - public static void AddCraftTicketItemUniqueId(FlatBufferBuilder builder, int craftTicketItemUniqueId) { builder.AddInt(36, craftTicketItemUniqueId, 0); } - public static void AddCraftTicketConsumeAmount(FlatBufferBuilder builder, int craftTicketConsumeAmount) { builder.AddInt(37, craftTicketConsumeAmount, 0); } - public static void AddAcademyEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType academyEnterCostType) { builder.AddInt(38, (int)academyEnterCostType, 0); } - public static void AddAcademyEnterCostId(FlatBufferBuilder builder, long academyEnterCostId) { builder.AddLong(39, academyEnterCostId, 0); } - public static void AddAcademyTicketCost(FlatBufferBuilder builder, int academyTicketCost) { builder.AddInt(40, academyTicketCost, 0); } - public static void AddMassangerMessageExpireDay(FlatBufferBuilder builder, int massangerMessageExpireDay) { builder.AddInt(41, massangerMessageExpireDay, 0); } - public static void AddCraftLeafNodeGenerateLv1Count(FlatBufferBuilder builder, int craftLeafNodeGenerateLv1Count) { builder.AddInt(42, craftLeafNodeGenerateLv1Count, 0); } - public static void AddCraftLeafNodeGenerateLv2Count(FlatBufferBuilder builder, int craftLeafNodeGenerateLv2Count) { builder.AddInt(43, craftLeafNodeGenerateLv2Count, 0); } - public static void AddTutorialGachaShopId(FlatBufferBuilder builder, int tutorialGachaShopId) { builder.AddInt(44, tutorialGachaShopId, 0); } - public static void AddBeforehandGachaShopId(FlatBufferBuilder builder, int beforehandGachaShopId) { builder.AddInt(45, beforehandGachaShopId, 0); } - public static void AddTutorialGachaGoodsId(FlatBufferBuilder builder, int tutorialGachaGoodsId) { builder.AddInt(46, tutorialGachaGoodsId, 0); } - public static void AddEquipmentSlotOpenLevel(FlatBufferBuilder builder, VectorOffset equipmentSlotOpenLevelOffset) { builder.AddOffset(47, equipmentSlotOpenLevelOffset.Value, 0); } + public static void AddShiftingCraftTicketConsumeAmount(FlatBufferBuilder builder, int shiftingCraftTicketConsumeAmount) { builder.AddInt(36, shiftingCraftTicketConsumeAmount, 0); } + public static void AddShiftingCraftSlotMaxCapacity(FlatBufferBuilder builder, int shiftingCraftSlotMaxCapacity) { builder.AddInt(37, shiftingCraftSlotMaxCapacity, 0); } + public static void AddCraftTicketItemUniqueId(FlatBufferBuilder builder, int craftTicketItemUniqueId) { builder.AddInt(38, craftTicketItemUniqueId, 0); } + public static void AddCraftTicketConsumeAmount(FlatBufferBuilder builder, int craftTicketConsumeAmount) { builder.AddInt(39, craftTicketConsumeAmount, 0); } + public static void AddAcademyEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType academyEnterCostType) { builder.AddInt(40, (int)academyEnterCostType, 0); } + public static void AddAcademyEnterCostId(FlatBufferBuilder builder, long academyEnterCostId) { builder.AddLong(41, academyEnterCostId, 0); } + public static void AddAcademyTicketCost(FlatBufferBuilder builder, int academyTicketCost) { builder.AddInt(42, academyTicketCost, 0); } + public static void AddMassangerMessageExpireDay(FlatBufferBuilder builder, int massangerMessageExpireDay) { builder.AddInt(43, massangerMessageExpireDay, 0); } + public static void AddCraftLeafNodeGenerateLv1Count(FlatBufferBuilder builder, int craftLeafNodeGenerateLv1Count) { builder.AddInt(44, craftLeafNodeGenerateLv1Count, 0); } + public static void AddCraftLeafNodeGenerateLv2Count(FlatBufferBuilder builder, int craftLeafNodeGenerateLv2Count) { builder.AddInt(45, craftLeafNodeGenerateLv2Count, 0); } + public static void AddTutorialGachaShopId(FlatBufferBuilder builder, int tutorialGachaShopId) { builder.AddInt(46, tutorialGachaShopId, 0); } + public static void AddBeforehandGachaShopId(FlatBufferBuilder builder, int beforehandGachaShopId) { builder.AddInt(47, beforehandGachaShopId, 0); } + public static void AddTutorialGachaGoodsId(FlatBufferBuilder builder, int tutorialGachaGoodsId) { builder.AddInt(48, tutorialGachaGoodsId, 0); } + public static void AddEquipmentSlotOpenLevel(FlatBufferBuilder builder, VectorOffset equipmentSlotOpenLevelOffset) { builder.AddOffset(49, equipmentSlotOpenLevelOffset.Value, 0); } public static VectorOffset CreateEquipmentSlotOpenLevelVector(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt(data[i]); return builder.EndVector(); } public static VectorOffset CreateEquipmentSlotOpenLevelVectorBlock(FlatBufferBuilder builder, int[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateEquipmentSlotOpenLevelVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateEquipmentSlotOpenLevelVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartEquipmentSlotOpenLevelVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static void AddScenarioAutoDelayMillisec(FlatBufferBuilder builder, float scenarioAutoDelayMillisec) { builder.AddFloat(48, scenarioAutoDelayMillisec, 0.0f); } - public static void AddJoinOrCreateClanCoolTimeFromHour(FlatBufferBuilder builder, long joinOrCreateClanCoolTimeFromHour) { builder.AddLong(49, joinOrCreateClanCoolTimeFromHour, 0); } - public static void AddClanMaxMember(FlatBufferBuilder builder, long clanMaxMember) { builder.AddLong(50, clanMaxMember, 0); } - public static void AddClanSearchResultCount(FlatBufferBuilder builder, long clanSearchResultCount) { builder.AddLong(51, clanSearchResultCount, 0); } - public static void AddClanMaxApplicant(FlatBufferBuilder builder, long clanMaxApplicant) { builder.AddLong(52, clanMaxApplicant, 0); } - public static void AddClanRejoinCoolTimeFromSecond(FlatBufferBuilder builder, long clanRejoinCoolTimeFromSecond) { builder.AddLong(53, clanRejoinCoolTimeFromSecond, 0); } - public static void AddClanWordBalloonMaxCharacter(FlatBufferBuilder builder, int clanWordBalloonMaxCharacter) { builder.AddInt(54, clanWordBalloonMaxCharacter, 0); } - public static void AddCallNameRenameCoolTimeFromHour(FlatBufferBuilder builder, long callNameRenameCoolTimeFromHour) { builder.AddLong(55, callNameRenameCoolTimeFromHour, 0); } - public static void AddCallNameMinimumLength(FlatBufferBuilder builder, long callNameMinimumLength) { builder.AddLong(56, callNameMinimumLength, 0); } - public static void AddCallNameMaximumLength(FlatBufferBuilder builder, long callNameMaximumLength) { builder.AddLong(57, callNameMaximumLength, 0); } - public static void AddLobbyToScreenModeWaitTime(FlatBufferBuilder builder, long lobbyToScreenModeWaitTime) { builder.AddLong(58, lobbyToScreenModeWaitTime, 0); } - public static void AddScreenshotToLobbyButtonHideDelay(FlatBufferBuilder builder, long screenshotToLobbyButtonHideDelay) { builder.AddLong(59, screenshotToLobbyButtonHideDelay, 0); } - public static void AddPrologueScenarioID01(FlatBufferBuilder builder, long prologueScenarioID01) { builder.AddLong(60, prologueScenarioID01, 0); } - public static void AddPrologueScenarioID02(FlatBufferBuilder builder, long prologueScenarioID02) { builder.AddLong(61, prologueScenarioID02, 0); } - public static void AddTutorialHardStage11(FlatBufferBuilder builder, long tutorialHardStage11) { builder.AddLong(62, tutorialHardStage11, 0); } - public static void AddTutorialSpeedButtonStage(FlatBufferBuilder builder, long tutorialSpeedButtonStage) { builder.AddLong(63, tutorialSpeedButtonStage, 0); } - public static void AddTutorialCharacterDefaultCount(FlatBufferBuilder builder, long tutorialCharacterDefaultCount) { builder.AddLong(64, tutorialCharacterDefaultCount, 0); } - public static void AddTutorialShopCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType tutorialShopCategoryType) { builder.AddInt(65, (int)tutorialShopCategoryType, 0); } - public static void AddAdventureStrategyPlayTimeLimitInSeconds(FlatBufferBuilder builder, long adventureStrategyPlayTimeLimitInSeconds) { builder.AddLong(66, adventureStrategyPlayTimeLimitInSeconds, 0); } - public static void AddWeekDungoenTacticPlayTimeLimitInSeconds(FlatBufferBuilder builder, long weekDungoenTacticPlayTimeLimitInSeconds) { builder.AddLong(67, weekDungoenTacticPlayTimeLimitInSeconds, 0); } - public static void AddRaidTacticPlayTimeLimitInSeconds(FlatBufferBuilder builder, long raidTacticPlayTimeLimitInSeconds) { builder.AddLong(68, raidTacticPlayTimeLimitInSeconds, 0); } - public static void AddRaidOpponentListAmount(FlatBufferBuilder builder, long raidOpponentListAmount) { builder.AddLong(69, raidOpponentListAmount, 0); } - public static void AddCraftBaseGoldRequired(FlatBufferBuilder builder, VectorOffset craftBaseGoldRequiredOffset) { builder.AddOffset(70, craftBaseGoldRequiredOffset.Value, 0); } + public static void AddScenarioAutoDelayMillisec(FlatBufferBuilder builder, float scenarioAutoDelayMillisec) { builder.AddFloat(50, scenarioAutoDelayMillisec, 0.0f); } + public static void AddJoinOrCreateClanCoolTimeFromHour(FlatBufferBuilder builder, long joinOrCreateClanCoolTimeFromHour) { builder.AddLong(51, joinOrCreateClanCoolTimeFromHour, 0); } + public static void AddClanMaxMember(FlatBufferBuilder builder, long clanMaxMember) { builder.AddLong(52, clanMaxMember, 0); } + public static void AddClanSearchResultCount(FlatBufferBuilder builder, long clanSearchResultCount) { builder.AddLong(53, clanSearchResultCount, 0); } + public static void AddClanMaxApplicant(FlatBufferBuilder builder, long clanMaxApplicant) { builder.AddLong(54, clanMaxApplicant, 0); } + public static void AddClanRejoinCoolTimeFromSecond(FlatBufferBuilder builder, long clanRejoinCoolTimeFromSecond) { builder.AddLong(55, clanRejoinCoolTimeFromSecond, 0); } + public static void AddClanWordBalloonMaxCharacter(FlatBufferBuilder builder, int clanWordBalloonMaxCharacter) { builder.AddInt(56, clanWordBalloonMaxCharacter, 0); } + public static void AddCallNameRenameCoolTimeFromHour(FlatBufferBuilder builder, long callNameRenameCoolTimeFromHour) { builder.AddLong(57, callNameRenameCoolTimeFromHour, 0); } + public static void AddCallNameMinimumLength(FlatBufferBuilder builder, long callNameMinimumLength) { builder.AddLong(58, callNameMinimumLength, 0); } + public static void AddCallNameMaximumLength(FlatBufferBuilder builder, long callNameMaximumLength) { builder.AddLong(59, callNameMaximumLength, 0); } + public static void AddLobbyToScreenModeWaitTime(FlatBufferBuilder builder, long lobbyToScreenModeWaitTime) { builder.AddLong(60, lobbyToScreenModeWaitTime, 0); } + public static void AddScreenshotToLobbyButtonHideDelay(FlatBufferBuilder builder, long screenshotToLobbyButtonHideDelay) { builder.AddLong(61, screenshotToLobbyButtonHideDelay, 0); } + public static void AddPrologueScenarioID01(FlatBufferBuilder builder, long prologueScenarioID01) { builder.AddLong(62, prologueScenarioID01, 0); } + public static void AddPrologueScenarioID02(FlatBufferBuilder builder, long prologueScenarioID02) { builder.AddLong(63, prologueScenarioID02, 0); } + public static void AddTutorialHardStage11(FlatBufferBuilder builder, long tutorialHardStage11) { builder.AddLong(64, tutorialHardStage11, 0); } + public static void AddTutorialSpeedButtonStage(FlatBufferBuilder builder, long tutorialSpeedButtonStage) { builder.AddLong(65, tutorialSpeedButtonStage, 0); } + public static void AddTutorialCharacterDefaultCount(FlatBufferBuilder builder, long tutorialCharacterDefaultCount) { builder.AddLong(66, tutorialCharacterDefaultCount, 0); } + public static void AddTutorialShopCategoryType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ShopCategoryType tutorialShopCategoryType) { builder.AddInt(67, (int)tutorialShopCategoryType, 0); } + public static void AddAdventureStrategyPlayTimeLimitInSeconds(FlatBufferBuilder builder, long adventureStrategyPlayTimeLimitInSeconds) { builder.AddLong(68, adventureStrategyPlayTimeLimitInSeconds, 0); } + public static void AddWeekDungoenTacticPlayTimeLimitInSeconds(FlatBufferBuilder builder, long weekDungoenTacticPlayTimeLimitInSeconds) { builder.AddLong(69, weekDungoenTacticPlayTimeLimitInSeconds, 0); } + public static void AddRaidTacticPlayTimeLimitInSeconds(FlatBufferBuilder builder, long raidTacticPlayTimeLimitInSeconds) { builder.AddLong(70, raidTacticPlayTimeLimitInSeconds, 0); } + public static void AddRaidOpponentListAmount(FlatBufferBuilder builder, long raidOpponentListAmount) { builder.AddLong(71, raidOpponentListAmount, 0); } + public static void AddCraftBaseGoldRequired(FlatBufferBuilder builder, VectorOffset craftBaseGoldRequiredOffset) { builder.AddOffset(72, craftBaseGoldRequiredOffset.Value, 0); } public static VectorOffset CreateCraftBaseGoldRequiredVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } public static VectorOffset CreateCraftBaseGoldRequiredVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateCraftBaseGoldRequiredVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateCraftBaseGoldRequiredVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartCraftBaseGoldRequiredVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } - public static void AddPostExpiredDayAttendance(FlatBufferBuilder builder, int postExpiredDayAttendance) { builder.AddInt(71, postExpiredDayAttendance, 0); } - public static void AddPostExpiredDayInventoryOverflow(FlatBufferBuilder builder, int postExpiredDayInventoryOverflow) { builder.AddInt(72, postExpiredDayInventoryOverflow, 0); } - public static void AddPostExpiredDayGameManager(FlatBufferBuilder builder, int postExpiredDayGameManager) { builder.AddInt(73, postExpiredDayGameManager, 0); } - public static void AddUILabelCharacterWrap(FlatBufferBuilder builder, StringOffset uILabelCharacterWrapOffset) { builder.AddOffset(74, uILabelCharacterWrapOffset.Value, 0); } - public static void AddRequestTimeOut(FlatBufferBuilder builder, float requestTimeOut) { builder.AddFloat(75, requestTimeOut, 0.0f); } - public static void AddMailStorageSoftCap(FlatBufferBuilder builder, int mailStorageSoftCap) { builder.AddInt(76, mailStorageSoftCap, 0); } - public static void AddMailStorageHardCap(FlatBufferBuilder builder, int mailStorageHardCap) { builder.AddInt(77, mailStorageHardCap, 0); } - public static void AddClearDeckStorageSize(FlatBufferBuilder builder, int clearDeckStorageSize) { builder.AddInt(78, clearDeckStorageSize, 0); } - public static void AddClearDeckNoStarViewCount(FlatBufferBuilder builder, int clearDeckNoStarViewCount) { builder.AddInt(79, clearDeckNoStarViewCount, 0); } - public static void AddClearDeck1StarViewCount(FlatBufferBuilder builder, int clearDeck1StarViewCount) { builder.AddInt(80, clearDeck1StarViewCount, 0); } - public static void AddClearDeck2StarViewCount(FlatBufferBuilder builder, int clearDeck2StarViewCount) { builder.AddInt(81, clearDeck2StarViewCount, 0); } - public static void AddClearDeck3StarViewCount(FlatBufferBuilder builder, int clearDeck3StarViewCount) { builder.AddInt(82, clearDeck3StarViewCount, 0); } - public static void AddExSkillLevelMax(FlatBufferBuilder builder, int exSkillLevelMax) { builder.AddInt(83, exSkillLevelMax, 0); } - public static void AddPublicSkillLevelMax(FlatBufferBuilder builder, int publicSkillLevelMax) { builder.AddInt(84, publicSkillLevelMax, 0); } - public static void AddPassiveSkillLevelMax(FlatBufferBuilder builder, int passiveSkillLevelMax) { builder.AddInt(85, passiveSkillLevelMax, 0); } - public static void AddExtraPassiveSkillLevelMax(FlatBufferBuilder builder, int extraPassiveSkillLevelMax) { builder.AddInt(86, extraPassiveSkillLevelMax, 0); } - public static void AddAccountCommentMaxLength(FlatBufferBuilder builder, int accountCommentMaxLength) { builder.AddInt(87, accountCommentMaxLength, 0); } - public static void AddCafeSummonCoolTimeFromHour(FlatBufferBuilder builder, int cafeSummonCoolTimeFromHour) { builder.AddInt(88, cafeSummonCoolTimeFromHour, 0); } - public static void AddLimitedStageDailyClearCount(FlatBufferBuilder builder, long limitedStageDailyClearCount) { builder.AddLong(89, limitedStageDailyClearCount, 0); } - public static void AddLimitedStageEntryTimeLimit(FlatBufferBuilder builder, long limitedStageEntryTimeLimit) { builder.AddLong(90, limitedStageEntryTimeLimit, 0); } - public static void AddLimitedStageEntryTimeBuffer(FlatBufferBuilder builder, long limitedStageEntryTimeBuffer) { builder.AddLong(91, limitedStageEntryTimeBuffer, 0); } - public static void AddLimitedStagePointAmount(FlatBufferBuilder builder, long limitedStagePointAmount) { builder.AddLong(92, limitedStagePointAmount, 0); } - public static void AddLimitedStagePointPerApMin(FlatBufferBuilder builder, long limitedStagePointPerApMin) { builder.AddLong(93, limitedStagePointPerApMin, 0); } - public static void AddLimitedStagePointPerApMax(FlatBufferBuilder builder, long limitedStagePointPerApMax) { builder.AddLong(94, limitedStagePointPerApMax, 0); } - public static void AddAccountLinkReward(FlatBufferBuilder builder, int accountLinkReward) { builder.AddInt(95, accountLinkReward, 0); } - public static void AddMonthlyProductCheckDays(FlatBufferBuilder builder, int monthlyProductCheckDays) { builder.AddInt(96, monthlyProductCheckDays, 0); } - public static void AddWeaponLvUpCoefficient(FlatBufferBuilder builder, int weaponLvUpCoefficient) { builder.AddInt(97, weaponLvUpCoefficient, 0); } - public static void AddShowRaidMyListCount(FlatBufferBuilder builder, int showRaidMyListCount) { builder.AddInt(98, showRaidMyListCount, 0); } - public static void AddMaxLevelExpMasterCoinRatio(FlatBufferBuilder builder, int maxLevelExpMasterCoinRatio) { builder.AddInt(99, maxLevelExpMasterCoinRatio, 0); } - public static void AddRaidEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType raidEnterCostType) { builder.AddInt(100, (int)raidEnterCostType, 0); } - public static void AddRaidEnterCostId(FlatBufferBuilder builder, long raidEnterCostId) { builder.AddLong(101, raidEnterCostId, 0); } - public static void AddRaidTicketCost(FlatBufferBuilder builder, long raidTicketCost) { builder.AddLong(102, raidTicketCost, 0); } - public static void AddTimeAttackDungeonScenarioId(FlatBufferBuilder builder, StringOffset timeAttackDungeonScenarioIdOffset) { builder.AddOffset(103, timeAttackDungeonScenarioIdOffset.Value, 0); } - public static void AddTimeAttackDungoenPlayCountPerTicket(FlatBufferBuilder builder, int timeAttackDungoenPlayCountPerTicket) { builder.AddInt(104, timeAttackDungoenPlayCountPerTicket, 0); } - public static void AddTimeAttackDungeonEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType timeAttackDungeonEnterCostType) { builder.AddInt(105, (int)timeAttackDungeonEnterCostType, 0); } - public static void AddTimeAttackDungeonEnterCostId(FlatBufferBuilder builder, long timeAttackDungeonEnterCostId) { builder.AddLong(106, timeAttackDungeonEnterCostId, 0); } - public static void AddTimeAttackDungeonEnterCost(FlatBufferBuilder builder, long timeAttackDungeonEnterCost) { builder.AddLong(107, timeAttackDungeonEnterCost, 0); } - public static void AddClanLeaderTransferLastLoginLimit(FlatBufferBuilder builder, long clanLeaderTransferLastLoginLimit) { builder.AddLong(108, clanLeaderTransferLastLoginLimit, 0); } - public static void AddMonthlyProductRepurchasePopupLimit(FlatBufferBuilder builder, int monthlyProductRepurchasePopupLimit) { builder.AddInt(109, monthlyProductRepurchasePopupLimit, 0); } - public static void AddCommonFavorItemTags(FlatBufferBuilder builder, VectorOffset commonFavorItemTagsOffset) { builder.AddOffset(110, commonFavorItemTagsOffset.Value, 0); } + public static void AddPostExpiredDayAttendance(FlatBufferBuilder builder, int postExpiredDayAttendance) { builder.AddInt(73, postExpiredDayAttendance, 0); } + public static void AddPostExpiredDayInventoryOverflow(FlatBufferBuilder builder, int postExpiredDayInventoryOverflow) { builder.AddInt(74, postExpiredDayInventoryOverflow, 0); } + public static void AddPostExpiredDayGameManager(FlatBufferBuilder builder, int postExpiredDayGameManager) { builder.AddInt(75, postExpiredDayGameManager, 0); } + public static void AddUILabelCharacterWrap(FlatBufferBuilder builder, StringOffset uILabelCharacterWrapOffset) { builder.AddOffset(76, uILabelCharacterWrapOffset.Value, 0); } + public static void AddRequestTimeOut(FlatBufferBuilder builder, float requestTimeOut) { builder.AddFloat(77, requestTimeOut, 0.0f); } + public static void AddMailStorageSoftCap(FlatBufferBuilder builder, int mailStorageSoftCap) { builder.AddInt(78, mailStorageSoftCap, 0); } + public static void AddMailStorageHardCap(FlatBufferBuilder builder, int mailStorageHardCap) { builder.AddInt(79, mailStorageHardCap, 0); } + public static void AddClearDeckStorageSize(FlatBufferBuilder builder, int clearDeckStorageSize) { builder.AddInt(80, clearDeckStorageSize, 0); } + public static void AddClearDeckNoStarViewCount(FlatBufferBuilder builder, int clearDeckNoStarViewCount) { builder.AddInt(81, clearDeckNoStarViewCount, 0); } + public static void AddClearDeck1StarViewCount(FlatBufferBuilder builder, int clearDeck1StarViewCount) { builder.AddInt(82, clearDeck1StarViewCount, 0); } + public static void AddClearDeck2StarViewCount(FlatBufferBuilder builder, int clearDeck2StarViewCount) { builder.AddInt(83, clearDeck2StarViewCount, 0); } + public static void AddClearDeck3StarViewCount(FlatBufferBuilder builder, int clearDeck3StarViewCount) { builder.AddInt(84, clearDeck3StarViewCount, 0); } + public static void AddExSkillLevelMax(FlatBufferBuilder builder, int exSkillLevelMax) { builder.AddInt(85, exSkillLevelMax, 0); } + public static void AddPublicSkillLevelMax(FlatBufferBuilder builder, int publicSkillLevelMax) { builder.AddInt(86, publicSkillLevelMax, 0); } + public static void AddPassiveSkillLevelMax(FlatBufferBuilder builder, int passiveSkillLevelMax) { builder.AddInt(87, passiveSkillLevelMax, 0); } + public static void AddExtraPassiveSkillLevelMax(FlatBufferBuilder builder, int extraPassiveSkillLevelMax) { builder.AddInt(88, extraPassiveSkillLevelMax, 0); } + public static void AddAccountCommentMaxLength(FlatBufferBuilder builder, int accountCommentMaxLength) { builder.AddInt(89, accountCommentMaxLength, 0); } + public static void AddCafeSummonCoolTimeFromHour(FlatBufferBuilder builder, int cafeSummonCoolTimeFromHour) { builder.AddInt(90, cafeSummonCoolTimeFromHour, 0); } + public static void AddLimitedStageDailyClearCount(FlatBufferBuilder builder, long limitedStageDailyClearCount) { builder.AddLong(91, limitedStageDailyClearCount, 0); } + public static void AddLimitedStageEntryTimeLimit(FlatBufferBuilder builder, long limitedStageEntryTimeLimit) { builder.AddLong(92, limitedStageEntryTimeLimit, 0); } + public static void AddLimitedStageEntryTimeBuffer(FlatBufferBuilder builder, long limitedStageEntryTimeBuffer) { builder.AddLong(93, limitedStageEntryTimeBuffer, 0); } + public static void AddLimitedStagePointAmount(FlatBufferBuilder builder, long limitedStagePointAmount) { builder.AddLong(94, limitedStagePointAmount, 0); } + public static void AddLimitedStagePointPerApMin(FlatBufferBuilder builder, long limitedStagePointPerApMin) { builder.AddLong(95, limitedStagePointPerApMin, 0); } + public static void AddLimitedStagePointPerApMax(FlatBufferBuilder builder, long limitedStagePointPerApMax) { builder.AddLong(96, limitedStagePointPerApMax, 0); } + public static void AddAccountLinkReward(FlatBufferBuilder builder, int accountLinkReward) { builder.AddInt(97, accountLinkReward, 0); } + public static void AddMonthlyProductCheckDays(FlatBufferBuilder builder, int monthlyProductCheckDays) { builder.AddInt(98, monthlyProductCheckDays, 0); } + public static void AddWeaponLvUpCoefficient(FlatBufferBuilder builder, int weaponLvUpCoefficient) { builder.AddInt(99, weaponLvUpCoefficient, 0); } + public static void AddShowRaidMyListCount(FlatBufferBuilder builder, int showRaidMyListCount) { builder.AddInt(100, showRaidMyListCount, 0); } + public static void AddMaxLevelExpMasterCoinRatio(FlatBufferBuilder builder, int maxLevelExpMasterCoinRatio) { builder.AddInt(101, maxLevelExpMasterCoinRatio, 0); } + public static void AddRaidEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType raidEnterCostType) { builder.AddInt(102, (int)raidEnterCostType, 0); } + public static void AddRaidEnterCostId(FlatBufferBuilder builder, long raidEnterCostId) { builder.AddLong(103, raidEnterCostId, 0); } + public static void AddRaidTicketCost(FlatBufferBuilder builder, long raidTicketCost) { builder.AddLong(104, raidTicketCost, 0); } + public static void AddTimeAttackDungeonScenarioId(FlatBufferBuilder builder, StringOffset timeAttackDungeonScenarioIdOffset) { builder.AddOffset(105, timeAttackDungeonScenarioIdOffset.Value, 0); } + public static void AddTimeAttackDungoenPlayCountPerTicket(FlatBufferBuilder builder, int timeAttackDungoenPlayCountPerTicket) { builder.AddInt(106, timeAttackDungoenPlayCountPerTicket, 0); } + public static void AddTimeAttackDungeonEnterCostType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType timeAttackDungeonEnterCostType) { builder.AddInt(107, (int)timeAttackDungeonEnterCostType, 0); } + public static void AddTimeAttackDungeonEnterCostId(FlatBufferBuilder builder, long timeAttackDungeonEnterCostId) { builder.AddLong(108, timeAttackDungeonEnterCostId, 0); } + public static void AddTimeAttackDungeonEnterCost(FlatBufferBuilder builder, long timeAttackDungeonEnterCost) { builder.AddLong(109, timeAttackDungeonEnterCost, 0); } + public static void AddClanLeaderTransferLastLoginLimit(FlatBufferBuilder builder, long clanLeaderTransferLastLoginLimit) { builder.AddLong(110, clanLeaderTransferLastLoginLimit, 0); } + public static void AddMonthlyProductRepurchasePopupLimit(FlatBufferBuilder builder, int monthlyProductRepurchasePopupLimit) { builder.AddInt(111, monthlyProductRepurchasePopupLimit, 0); } + public static void AddCommonFavorItemTags(FlatBufferBuilder builder, VectorOffset commonFavorItemTagsOffset) { builder.AddOffset(112, commonFavorItemTagsOffset.Value, 0); } public static VectorOffset CreateCommonFavorItemTagsVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } public static VectorOffset CreateCommonFavorItemTagsVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateCommonFavorItemTagsVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } public static VectorOffset CreateCommonFavorItemTagsVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } public static void StartCommonFavorItemTagsVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static void AddMaxApMasterCoinPerWeek(FlatBufferBuilder builder, long maxApMasterCoinPerWeek) { builder.AddLong(111, maxApMasterCoinPerWeek, 0); } - public static void AddCraftOpenExpTier1(FlatBufferBuilder builder, long craftOpenExpTier1) { builder.AddLong(112, craftOpenExpTier1, 0); } - public static void AddCraftOpenExpTier2(FlatBufferBuilder builder, long craftOpenExpTier2) { builder.AddLong(113, craftOpenExpTier2, 0); } - public static void AddCraftOpenExpTier3(FlatBufferBuilder builder, long craftOpenExpTier3) { builder.AddLong(114, craftOpenExpTier3, 0); } - public static void AddCharacterEquipmentGearSlot(FlatBufferBuilder builder, long characterEquipmentGearSlot) { builder.AddLong(115, characterEquipmentGearSlot, 0); } - public static void AddBirthDayDDay(FlatBufferBuilder builder, int birthDayDDay) { builder.AddInt(116, birthDayDDay, 0); } - public static void AddRecommendedFriendsLvDifferenceLimit(FlatBufferBuilder builder, int recommendedFriendsLvDifferenceLimit) { builder.AddInt(117, recommendedFriendsLvDifferenceLimit, 0); } - public static void AddDDosDetectCount(FlatBufferBuilder builder, int dDosDetectCount) { builder.AddInt(118, dDosDetectCount, 0); } - public static void AddDDosCheckIntervalInSeconds(FlatBufferBuilder builder, int dDosCheckIntervalInSeconds) { builder.AddInt(119, dDosCheckIntervalInSeconds, 0); } - public static void AddMaxFriendsCount(FlatBufferBuilder builder, int maxFriendsCount) { builder.AddInt(120, maxFriendsCount, 0); } - public static void AddMaxFriendsRequest(FlatBufferBuilder builder, int maxFriendsRequest) { builder.AddInt(121, maxFriendsRequest, 0); } - public static void AddFriendsSearchRequestCount(FlatBufferBuilder builder, int friendsSearchRequestCount) { builder.AddInt(122, friendsSearchRequestCount, 0); } - public static void AddFriendsMaxApplicant(FlatBufferBuilder builder, int friendsMaxApplicant) { builder.AddInt(123, friendsMaxApplicant, 0); } - public static void AddIdCardDefaultCharacterId(FlatBufferBuilder builder, long idCardDefaultCharacterId) { builder.AddLong(124, idCardDefaultCharacterId, 0); } - public static void AddIdCardDefaultBgId(FlatBufferBuilder builder, long idCardDefaultBgId) { builder.AddLong(125, idCardDefaultBgId, 0); } - public static void AddWorldRaidGemEnterCost(FlatBufferBuilder builder, long worldRaidGemEnterCost) { builder.AddLong(126, worldRaidGemEnterCost, 0); } - public static void AddWorldRaidGemEnterAmout(FlatBufferBuilder builder, long worldRaidGemEnterAmout) { builder.AddLong(127, worldRaidGemEnterAmout, 0); } - public static void AddFriendIdCardCommentMaxLength(FlatBufferBuilder builder, long friendIdCardCommentMaxLength) { builder.AddLong(128, friendIdCardCommentMaxLength, 0); } - public static void AddFormationPresetNumberOfEchelonTab(FlatBufferBuilder builder, int formationPresetNumberOfEchelonTab) { builder.AddInt(129, formationPresetNumberOfEchelonTab, 0); } - public static void AddFormationPresetNumberOfEchelon(FlatBufferBuilder builder, int formationPresetNumberOfEchelon) { builder.AddInt(130, formationPresetNumberOfEchelon, 0); } - public static void AddFormationPresetRecentNumberOfEchelon(FlatBufferBuilder builder, int formationPresetRecentNumberOfEchelon) { builder.AddInt(131, formationPresetRecentNumberOfEchelon, 0); } - public static void AddFormationPresetEchelonTabTextLength(FlatBufferBuilder builder, int formationPresetEchelonTabTextLength) { builder.AddInt(132, formationPresetEchelonTabTextLength, 0); } - public static void AddFormationPresetEchelonSlotTextLength(FlatBufferBuilder builder, int formationPresetEchelonSlotTextLength) { builder.AddInt(133, formationPresetEchelonSlotTextLength, 0); } - public static void AddCharProfileRowIntervalKr(FlatBufferBuilder builder, int charProfileRowIntervalKr) { builder.AddInt(134, charProfileRowIntervalKr, 0); } - public static void AddCharProfileRowIntervalJp(FlatBufferBuilder builder, int charProfileRowIntervalJp) { builder.AddInt(135, charProfileRowIntervalJp, 0); } - public static void AddCharProfilePopupRowIntervalKr(FlatBufferBuilder builder, int charProfilePopupRowIntervalKr) { builder.AddInt(136, charProfilePopupRowIntervalKr, 0); } - public static void AddCharProfilePopupRowIntervalJp(FlatBufferBuilder builder, int charProfilePopupRowIntervalJp) { builder.AddInt(137, charProfilePopupRowIntervalJp, 0); } - public static void AddBeforehandGachaCount(FlatBufferBuilder builder, int beforehandGachaCount) { builder.AddInt(138, beforehandGachaCount, 0); } - public static void AddBeforehandGachaGroupId(FlatBufferBuilder builder, int beforehandGachaGroupId) { builder.AddInt(139, beforehandGachaGroupId, 0); } - public static void AddRenewalDisplayOrderDay(FlatBufferBuilder builder, int renewalDisplayOrderDay) { builder.AddInt(140, renewalDisplayOrderDay, 0); } - public static void AddEmblemDefaultId(FlatBufferBuilder builder, long emblemDefaultId) { builder.AddLong(141, emblemDefaultId, 0); } - public static void AddBirthdayMailStartDate(FlatBufferBuilder builder, StringOffset birthdayMailStartDateOffset) { builder.AddOffset(142, birthdayMailStartDateOffset.Value, 0); } - public static void AddBirthdayMailRemainDate(FlatBufferBuilder builder, int birthdayMailRemainDate) { builder.AddInt(143, birthdayMailRemainDate, 0); } - public static void AddBirthdayMailParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType birthdayMailParcelType) { builder.AddInt(144, (int)birthdayMailParcelType, 0); } - public static void AddBirthdayMailParcelId(FlatBufferBuilder builder, long birthdayMailParcelId) { builder.AddLong(145, birthdayMailParcelId, 0); } - public static void AddBirthdayMailParcelAmount(FlatBufferBuilder builder, int birthdayMailParcelAmount) { builder.AddInt(146, birthdayMailParcelAmount, 0); } - public static void AddClearDeckAverageDeckCount(FlatBufferBuilder builder, int clearDeckAverageDeckCount) { builder.AddInt(147, clearDeckAverageDeckCount, 0); } - public static void AddClearDeckWorldRaidSaveConditionCoefficient(FlatBufferBuilder builder, int clearDeckWorldRaidSaveConditionCoefficient) { builder.AddInt(148, clearDeckWorldRaidSaveConditionCoefficient, 0); } - public static void AddClearDeckShowCount(FlatBufferBuilder builder, int clearDeckShowCount) { builder.AddInt(149, clearDeckShowCount, 0); } - public static void AddCharacterMaxLevel(FlatBufferBuilder builder, int characterMaxLevel) { builder.AddInt(150, characterMaxLevel, 0); } - public static void AddPotentialBonusStatMaxLevelMaxHP(FlatBufferBuilder builder, int potentialBonusStatMaxLevelMaxHP) { builder.AddInt(151, potentialBonusStatMaxLevelMaxHP, 0); } - public static void AddPotentialBonusStatMaxLevelAttackPower(FlatBufferBuilder builder, int potentialBonusStatMaxLevelAttackPower) { builder.AddInt(152, potentialBonusStatMaxLevelAttackPower, 0); } - public static void AddPotentialBonusStatMaxLevelHealPower(FlatBufferBuilder builder, int potentialBonusStatMaxLevelHealPower) { builder.AddInt(153, potentialBonusStatMaxLevelHealPower, 0); } - public static void AddPotentialOpenConditionCharacterLevel(FlatBufferBuilder builder, int potentialOpenConditionCharacterLevel) { builder.AddInt(154, potentialOpenConditionCharacterLevel, 0); } - public static void AddAssistStrangerMinLevel(FlatBufferBuilder builder, int assistStrangerMinLevel) { builder.AddInt(155, assistStrangerMinLevel, 0); } - public static void AddAssistStrangerMaxLevel(FlatBufferBuilder builder, int assistStrangerMaxLevel) { builder.AddInt(156, assistStrangerMaxLevel, 0); } - public static void AddMaxBlockedUserCount(FlatBufferBuilder builder, int maxBlockedUserCount) { builder.AddInt(157, maxBlockedUserCount, 0); } + public static void AddMaxApMasterCoinPerWeek(FlatBufferBuilder builder, long maxApMasterCoinPerWeek) { builder.AddLong(113, maxApMasterCoinPerWeek, 0); } + public static void AddCraftOpenExpTier1(FlatBufferBuilder builder, long craftOpenExpTier1) { builder.AddLong(114, craftOpenExpTier1, 0); } + public static void AddCraftOpenExpTier2(FlatBufferBuilder builder, long craftOpenExpTier2) { builder.AddLong(115, craftOpenExpTier2, 0); } + public static void AddCraftOpenExpTier3(FlatBufferBuilder builder, long craftOpenExpTier3) { builder.AddLong(116, craftOpenExpTier3, 0); } + public static void AddCharacterEquipmentGearSlot(FlatBufferBuilder builder, long characterEquipmentGearSlot) { builder.AddLong(117, characterEquipmentGearSlot, 0); } + public static void AddBirthDayDDay(FlatBufferBuilder builder, int birthDayDDay) { builder.AddInt(118, birthDayDDay, 0); } + public static void AddRecommendedFriendsLvDifferenceLimit(FlatBufferBuilder builder, int recommendedFriendsLvDifferenceLimit) { builder.AddInt(119, recommendedFriendsLvDifferenceLimit, 0); } + public static void AddDDosDetectCount(FlatBufferBuilder builder, int dDosDetectCount) { builder.AddInt(120, dDosDetectCount, 0); } + public static void AddDDosCheckIntervalInSeconds(FlatBufferBuilder builder, int dDosCheckIntervalInSeconds) { builder.AddInt(121, dDosCheckIntervalInSeconds, 0); } + public static void AddMaxFriendsCount(FlatBufferBuilder builder, int maxFriendsCount) { builder.AddInt(122, maxFriendsCount, 0); } + public static void AddMaxFriendsRequest(FlatBufferBuilder builder, int maxFriendsRequest) { builder.AddInt(123, maxFriendsRequest, 0); } + public static void AddFriendsSearchRequestCount(FlatBufferBuilder builder, int friendsSearchRequestCount) { builder.AddInt(124, friendsSearchRequestCount, 0); } + public static void AddFriendsMaxApplicant(FlatBufferBuilder builder, int friendsMaxApplicant) { builder.AddInt(125, friendsMaxApplicant, 0); } + public static void AddIdCardDefaultCharacterId(FlatBufferBuilder builder, long idCardDefaultCharacterId) { builder.AddLong(126, idCardDefaultCharacterId, 0); } + public static void AddIdCardDefaultBgId(FlatBufferBuilder builder, long idCardDefaultBgId) { builder.AddLong(127, idCardDefaultBgId, 0); } + public static void AddWorldRaidGemEnterCost(FlatBufferBuilder builder, long worldRaidGemEnterCost) { builder.AddLong(128, worldRaidGemEnterCost, 0); } + public static void AddWorldRaidGemEnterAmout(FlatBufferBuilder builder, long worldRaidGemEnterAmout) { builder.AddLong(129, worldRaidGemEnterAmout, 0); } + public static void AddFriendIdCardCommentMaxLength(FlatBufferBuilder builder, long friendIdCardCommentMaxLength) { builder.AddLong(130, friendIdCardCommentMaxLength, 0); } + public static void AddFormationPresetNumberOfEchelonTab(FlatBufferBuilder builder, int formationPresetNumberOfEchelonTab) { builder.AddInt(131, formationPresetNumberOfEchelonTab, 0); } + public static void AddFormationPresetNumberOfEchelon(FlatBufferBuilder builder, int formationPresetNumberOfEchelon) { builder.AddInt(132, formationPresetNumberOfEchelon, 0); } + public static void AddFormationPresetRecentNumberOfEchelon(FlatBufferBuilder builder, int formationPresetRecentNumberOfEchelon) { builder.AddInt(133, formationPresetRecentNumberOfEchelon, 0); } + public static void AddFormationPresetEchelonTabTextLength(FlatBufferBuilder builder, int formationPresetEchelonTabTextLength) { builder.AddInt(134, formationPresetEchelonTabTextLength, 0); } + public static void AddFormationPresetEchelonSlotTextLength(FlatBufferBuilder builder, int formationPresetEchelonSlotTextLength) { builder.AddInt(135, formationPresetEchelonSlotTextLength, 0); } + public static void AddCharProfileRowIntervalKr(FlatBufferBuilder builder, int charProfileRowIntervalKr) { builder.AddInt(136, charProfileRowIntervalKr, 0); } + public static void AddCharProfileRowIntervalJp(FlatBufferBuilder builder, int charProfileRowIntervalJp) { builder.AddInt(137, charProfileRowIntervalJp, 0); } + public static void AddCharProfilePopupRowIntervalKr(FlatBufferBuilder builder, int charProfilePopupRowIntervalKr) { builder.AddInt(138, charProfilePopupRowIntervalKr, 0); } + public static void AddCharProfilePopupRowIntervalJp(FlatBufferBuilder builder, int charProfilePopupRowIntervalJp) { builder.AddInt(139, charProfilePopupRowIntervalJp, 0); } + public static void AddBeforehandGachaCount(FlatBufferBuilder builder, int beforehandGachaCount) { builder.AddInt(140, beforehandGachaCount, 0); } + public static void AddBeforehandGachaGroupId(FlatBufferBuilder builder, int beforehandGachaGroupId) { builder.AddInt(141, beforehandGachaGroupId, 0); } + public static void AddRenewalDisplayOrderDay(FlatBufferBuilder builder, int renewalDisplayOrderDay) { builder.AddInt(142, renewalDisplayOrderDay, 0); } + public static void AddEmblemDefaultId(FlatBufferBuilder builder, long emblemDefaultId) { builder.AddLong(143, emblemDefaultId, 0); } + public static void AddBirthdayMailStartDate(FlatBufferBuilder builder, StringOffset birthdayMailStartDateOffset) { builder.AddOffset(144, birthdayMailStartDateOffset.Value, 0); } + public static void AddBirthdayMailRemainDate(FlatBufferBuilder builder, int birthdayMailRemainDate) { builder.AddInt(145, birthdayMailRemainDate, 0); } + public static void AddBirthdayMailParcelType(FlatBufferBuilder builder, SCHALE.Common.FlatData.ParcelType birthdayMailParcelType) { builder.AddInt(146, (int)birthdayMailParcelType, 0); } + public static void AddBirthdayMailParcelId(FlatBufferBuilder builder, long birthdayMailParcelId) { builder.AddLong(147, birthdayMailParcelId, 0); } + public static void AddBirthdayMailParcelAmount(FlatBufferBuilder builder, int birthdayMailParcelAmount) { builder.AddInt(148, birthdayMailParcelAmount, 0); } + public static void AddClearDeckAverageDeckCount(FlatBufferBuilder builder, int clearDeckAverageDeckCount) { builder.AddInt(149, clearDeckAverageDeckCount, 0); } + public static void AddClearDeckWorldRaidSaveConditionCoefficient(FlatBufferBuilder builder, int clearDeckWorldRaidSaveConditionCoefficient) { builder.AddInt(150, clearDeckWorldRaidSaveConditionCoefficient, 0); } + public static void AddClearDeckShowCount(FlatBufferBuilder builder, int clearDeckShowCount) { builder.AddInt(151, clearDeckShowCount, 0); } + public static void AddCharacterMaxLevel(FlatBufferBuilder builder, int characterMaxLevel) { builder.AddInt(152, characterMaxLevel, 0); } + public static void AddPotentialBonusStatMaxLevelMaxHP(FlatBufferBuilder builder, int potentialBonusStatMaxLevelMaxHP) { builder.AddInt(153, potentialBonusStatMaxLevelMaxHP, 0); } + public static void AddPotentialBonusStatMaxLevelAttackPower(FlatBufferBuilder builder, int potentialBonusStatMaxLevelAttackPower) { builder.AddInt(154, potentialBonusStatMaxLevelAttackPower, 0); } + public static void AddPotentialBonusStatMaxLevelHealPower(FlatBufferBuilder builder, int potentialBonusStatMaxLevelHealPower) { builder.AddInt(155, potentialBonusStatMaxLevelHealPower, 0); } + public static void AddPotentialOpenConditionCharacterLevel(FlatBufferBuilder builder, int potentialOpenConditionCharacterLevel) { builder.AddInt(156, potentialOpenConditionCharacterLevel, 0); } + public static void AddAssistStrangerMinLevel(FlatBufferBuilder builder, int assistStrangerMinLevel) { builder.AddInt(157, assistStrangerMinLevel, 0); } + public static void AddAssistStrangerMaxLevel(FlatBufferBuilder builder, int assistStrangerMaxLevel) { builder.AddInt(158, assistStrangerMaxLevel, 0); } + public static void AddMaxBlockedUserCount(FlatBufferBuilder builder, int maxBlockedUserCount) { builder.AddInt(159, maxBlockedUserCount, 0); } + public static void AddCafeRandomVisitMinComfortBonus(FlatBufferBuilder builder, long cafeRandomVisitMinComfortBonus) { builder.AddLong(160, cafeRandomVisitMinComfortBonus, 0); } + public static void AddCafeRandomVisitMinLastLogin(FlatBufferBuilder builder, int cafeRandomVisitMinLastLogin) { builder.AddInt(161, cafeRandomVisitMinLastLogin, 0); } public static Offset EndConstCommonExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); @@ -450,6 +458,8 @@ public struct ConstCommonExcel : IFlatbufferObject _o.MainSquadExpBonus = TableEncryptionService.Convert(this.MainSquadExpBonus, key); _o.SupportSquadExpBonus = TableEncryptionService.Convert(this.SupportSquadExpBonus, key); _o.AccountExpRatio = TableEncryptionService.Convert(this.AccountExpRatio, key); + _o.NewbieAccountExpRatio = TableEncryptionService.Convert(this.NewbieAccountExpRatio, key); + _o.NewbieExpBoostActivateLevel = TableEncryptionService.Convert(this.NewbieExpBoostActivateLevel, key); _o.MissionToastLifeTime = TableEncryptionService.Convert(this.MissionToastLifeTime, key); _o.ExpItemInsertLimit = TableEncryptionService.Convert(this.ExpItemInsertLimit, key); _o.ExpItemInsertAccelTime = TableEncryptionService.Convert(this.ExpItemInsertAccelTime, key); @@ -590,6 +600,8 @@ public struct ConstCommonExcel : IFlatbufferObject _o.AssistStrangerMinLevel = TableEncryptionService.Convert(this.AssistStrangerMinLevel, key); _o.AssistStrangerMaxLevel = TableEncryptionService.Convert(this.AssistStrangerMaxLevel, key); _o.MaxBlockedUserCount = TableEncryptionService.Convert(this.MaxBlockedUserCount, key); + _o.CafeRandomVisitMinComfortBonus = TableEncryptionService.Convert(this.CafeRandomVisitMinComfortBonus, key); + _o.CafeRandomVisitMinLastLogin = TableEncryptionService.Convert(this.CafeRandomVisitMinLastLogin, key); } public static Offset Pack(FlatBufferBuilder builder, ConstCommonExcelT _o) { if (_o == null) return default(Offset); @@ -645,6 +657,8 @@ public struct ConstCommonExcel : IFlatbufferObject AddMainSquadExpBonus(builder, _o.MainSquadExpBonus); AddSupportSquadExpBonus(builder, _o.SupportSquadExpBonus); AddAccountExpRatio(builder, _o.AccountExpRatio); + AddNewbieAccountExpRatio(builder, _o.NewbieAccountExpRatio); + AddNewbieExpBoostActivateLevel(builder, _o.NewbieExpBoostActivateLevel); AddMissionToastLifeTime(builder, _o.MissionToastLifeTime); AddExpItemInsertLimit(builder, _o.ExpItemInsertLimit); AddExpItemInsertAccelTime(builder, _o.ExpItemInsertAccelTime); @@ -780,6 +794,8 @@ public struct ConstCommonExcel : IFlatbufferObject AddAssistStrangerMinLevel(builder, _o.AssistStrangerMinLevel); AddAssistStrangerMaxLevel(builder, _o.AssistStrangerMaxLevel); AddMaxBlockedUserCount(builder, _o.MaxBlockedUserCount); + AddCafeRandomVisitMinComfortBonus(builder, _o.CafeRandomVisitMinComfortBonus); + AddCafeRandomVisitMinLastLogin(builder, _o.CafeRandomVisitMinLastLogin); return EndConstCommonExcel(builder); } } @@ -809,6 +825,8 @@ public class ConstCommonExcelT public int MainSquadExpBonus { get; set; } public int SupportSquadExpBonus { get; set; } public int AccountExpRatio { get; set; } + public int NewbieAccountExpRatio { get; set; } + public int NewbieExpBoostActivateLevel { get; set; } public int MissionToastLifeTime { get; set; } public int ExpItemInsertLimit { get; set; } public int ExpItemInsertAccelTime { get; set; } @@ -944,6 +962,8 @@ public class ConstCommonExcelT public int AssistStrangerMinLevel { get; set; } public int AssistStrangerMaxLevel { get; set; } public int MaxBlockedUserCount { get; set; } + public long CafeRandomVisitMinComfortBonus { get; set; } + public int CafeRandomVisitMinLastLogin { get; set; } public ConstCommonExcelT() { this.CampaignMainStageMaxRank = 0; @@ -969,6 +989,8 @@ public class ConstCommonExcelT this.MainSquadExpBonus = 0; this.SupportSquadExpBonus = 0; this.AccountExpRatio = 0; + this.NewbieAccountExpRatio = 0; + this.NewbieExpBoostActivateLevel = 0; this.MissionToastLifeTime = 0; this.ExpItemInsertLimit = 0; this.ExpItemInsertAccelTime = 0; @@ -984,7 +1006,7 @@ public class ConstCommonExcelT this.ShiftingCraftSlotMaxCapacity = 0; this.CraftTicketItemUniqueId = 0; this.CraftTicketConsumeAmount = 0; - this.AcademyEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.AcademyEnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.AcademyEnterCostId = 0; this.AcademyTicketCost = 0; this.MassangerMessageExpireDay = 0; @@ -1046,12 +1068,12 @@ public class ConstCommonExcelT this.WeaponLvUpCoefficient = 0; this.ShowRaidMyListCount = 0; this.MaxLevelExpMasterCoinRatio = 0; - this.RaidEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.RaidEnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.RaidEnterCostId = 0; this.RaidTicketCost = 0; this.TimeAttackDungeonScenarioId = null; this.TimeAttackDungoenPlayCountPerTicket = 0; - this.TimeAttackDungeonEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.TimeAttackDungeonEnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.TimeAttackDungeonEnterCostId = 0; this.TimeAttackDungeonEnterCost = 0; this.ClanLeaderTransferLastLoginLimit = 0; @@ -1090,7 +1112,7 @@ public class ConstCommonExcelT this.EmblemDefaultId = 0; this.BirthdayMailStartDate = null; this.BirthdayMailRemainDate = 0; - this.BirthdayMailParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.BirthdayMailParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.BirthdayMailParcelId = 0; this.BirthdayMailParcelAmount = 0; this.ClearDeckAverageDeckCount = 0; @@ -1104,6 +1126,8 @@ public class ConstCommonExcelT this.AssistStrangerMinLevel = 0; this.AssistStrangerMaxLevel = 0; this.MaxBlockedUserCount = 0; + this.CafeRandomVisitMinComfortBonus = 0; + this.CafeRandomVisitMinLastLogin = 0; } } @@ -1136,141 +1160,145 @@ static public class ConstCommonExcelVerify && verifier.VerifyField(tablePos, 44 /*MainSquadExpBonus*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 46 /*SupportSquadExpBonus*/, 4 /*int*/, 4, false) && verifier.VerifyField(tablePos, 48 /*AccountExpRatio*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 50 /*MissionToastLifeTime*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 52 /*ExpItemInsertLimit*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 54 /*ExpItemInsertAccelTime*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 56 /*CharacterLvUpCoefficient*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 58 /*EquipmentLvUpCoefficient*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 60 /*ExpEquipInsertLimit*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 62 /*EquipLvUpCoefficient*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 64 /*NicknameLength*/, 4 /*int*/, 4, false) - && verifier.VerifyVectorOfData(tablePos, 66 /*CraftDuration*/, 4 /*int*/, false) - && verifier.VerifyField(tablePos, 68 /*CraftLimitTime*/, 4 /*int*/, 4, false) - && verifier.VerifyVectorOfData(tablePos, 70 /*ShiftingCraftDuration*/, 4 /*int*/, false) - && verifier.VerifyField(tablePos, 72 /*ShiftingCraftTicketConsumeAmount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 74 /*ShiftingCraftSlotMaxCapacity*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 76 /*CraftTicketItemUniqueId*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 78 /*CraftTicketConsumeAmount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 80 /*AcademyEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) - && verifier.VerifyField(tablePos, 82 /*AcademyEnterCostId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 84 /*AcademyTicketCost*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 86 /*MassangerMessageExpireDay*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 88 /*CraftLeafNodeGenerateLv1Count*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 90 /*CraftLeafNodeGenerateLv2Count*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 92 /*TutorialGachaShopId*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 94 /*BeforehandGachaShopId*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 96 /*TutorialGachaGoodsId*/, 4 /*int*/, 4, false) - && verifier.VerifyVectorOfData(tablePos, 98 /*EquipmentSlotOpenLevel*/, 4 /*int*/, false) - && verifier.VerifyField(tablePos, 100 /*ScenarioAutoDelayMillisec*/, 4 /*float*/, 4, false) - && verifier.VerifyField(tablePos, 102 /*JoinOrCreateClanCoolTimeFromHour*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 104 /*ClanMaxMember*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 106 /*ClanSearchResultCount*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 108 /*ClanMaxApplicant*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 110 /*ClanRejoinCoolTimeFromSecond*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 112 /*ClanWordBalloonMaxCharacter*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 114 /*CallNameRenameCoolTimeFromHour*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 116 /*CallNameMinimumLength*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 118 /*CallNameMaximumLength*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 120 /*LobbyToScreenModeWaitTime*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 122 /*ScreenshotToLobbyButtonHideDelay*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 124 /*PrologueScenarioID01*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 126 /*PrologueScenarioID02*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 128 /*TutorialHardStage11*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 130 /*TutorialSpeedButtonStage*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 132 /*TutorialCharacterDefaultCount*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 134 /*TutorialShopCategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) - && verifier.VerifyField(tablePos, 136 /*AdventureStrategyPlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 138 /*WeekDungoenTacticPlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 140 /*RaidTacticPlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 142 /*RaidOpponentListAmount*/, 8 /*long*/, 8, false) - && verifier.VerifyVectorOfData(tablePos, 144 /*CraftBaseGoldRequired*/, 8 /*long*/, false) - && verifier.VerifyField(tablePos, 146 /*PostExpiredDayAttendance*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 148 /*PostExpiredDayInventoryOverflow*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 150 /*PostExpiredDayGameManager*/, 4 /*int*/, 4, false) - && verifier.VerifyString(tablePos, 152 /*UILabelCharacterWrap*/, false) - && verifier.VerifyField(tablePos, 154 /*RequestTimeOut*/, 4 /*float*/, 4, false) - && verifier.VerifyField(tablePos, 156 /*MailStorageSoftCap*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 158 /*MailStorageHardCap*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 160 /*ClearDeckStorageSize*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 162 /*ClearDeckNoStarViewCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 164 /*ClearDeck1StarViewCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 166 /*ClearDeck2StarViewCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 168 /*ClearDeck3StarViewCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 170 /*ExSkillLevelMax*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 172 /*PublicSkillLevelMax*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 174 /*PassiveSkillLevelMax*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 176 /*ExtraPassiveSkillLevelMax*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 178 /*AccountCommentMaxLength*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 180 /*CafeSummonCoolTimeFromHour*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 182 /*LimitedStageDailyClearCount*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 184 /*LimitedStageEntryTimeLimit*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 186 /*LimitedStageEntryTimeBuffer*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 188 /*LimitedStagePointAmount*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 190 /*LimitedStagePointPerApMin*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 192 /*LimitedStagePointPerApMax*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 194 /*AccountLinkReward*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 196 /*MonthlyProductCheckDays*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 198 /*WeaponLvUpCoefficient*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 200 /*ShowRaidMyListCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 202 /*MaxLevelExpMasterCoinRatio*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 204 /*RaidEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) - && verifier.VerifyField(tablePos, 206 /*RaidEnterCostId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 208 /*RaidTicketCost*/, 8 /*long*/, 8, false) - && verifier.VerifyString(tablePos, 210 /*TimeAttackDungeonScenarioId*/, false) - && verifier.VerifyField(tablePos, 212 /*TimeAttackDungoenPlayCountPerTicket*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 214 /*TimeAttackDungeonEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) - && verifier.VerifyField(tablePos, 216 /*TimeAttackDungeonEnterCostId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 218 /*TimeAttackDungeonEnterCost*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 220 /*ClanLeaderTransferLastLoginLimit*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 222 /*MonthlyProductRepurchasePopupLimit*/, 4 /*int*/, 4, false) - && verifier.VerifyVectorOfData(tablePos, 224 /*CommonFavorItemTags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) - && verifier.VerifyField(tablePos, 226 /*MaxApMasterCoinPerWeek*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 228 /*CraftOpenExpTier1*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 230 /*CraftOpenExpTier2*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 232 /*CraftOpenExpTier3*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 234 /*CharacterEquipmentGearSlot*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 236 /*BirthDayDDay*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 238 /*RecommendedFriendsLvDifferenceLimit*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 240 /*DDosDetectCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 242 /*DDosCheckIntervalInSeconds*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 244 /*MaxFriendsCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 246 /*MaxFriendsRequest*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 248 /*FriendsSearchRequestCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 250 /*FriendsMaxApplicant*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 252 /*IdCardDefaultCharacterId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 254 /*IdCardDefaultBgId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 256 /*WorldRaidGemEnterCost*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 258 /*WorldRaidGemEnterAmout*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 260 /*FriendIdCardCommentMaxLength*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 262 /*FormationPresetNumberOfEchelonTab*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 264 /*FormationPresetNumberOfEchelon*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 266 /*FormationPresetRecentNumberOfEchelon*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 268 /*FormationPresetEchelonTabTextLength*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 270 /*FormationPresetEchelonSlotTextLength*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 272 /*CharProfileRowIntervalKr*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 274 /*CharProfileRowIntervalJp*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 276 /*CharProfilePopupRowIntervalKr*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 278 /*CharProfilePopupRowIntervalJp*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 280 /*BeforehandGachaCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 282 /*BeforehandGachaGroupId*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 284 /*RenewalDisplayOrderDay*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 286 /*EmblemDefaultId*/, 8 /*long*/, 8, false) - && verifier.VerifyString(tablePos, 288 /*BirthdayMailStartDate*/, false) - && verifier.VerifyField(tablePos, 290 /*BirthdayMailRemainDate*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 292 /*BirthdayMailParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) - && verifier.VerifyField(tablePos, 294 /*BirthdayMailParcelId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 296 /*BirthdayMailParcelAmount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 298 /*ClearDeckAverageDeckCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 300 /*ClearDeckWorldRaidSaveConditionCoefficient*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 302 /*ClearDeckShowCount*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 304 /*CharacterMaxLevel*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 306 /*PotentialBonusStatMaxLevelMaxHP*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 308 /*PotentialBonusStatMaxLevelAttackPower*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 310 /*PotentialBonusStatMaxLevelHealPower*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 312 /*PotentialOpenConditionCharacterLevel*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 314 /*AssistStrangerMinLevel*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 316 /*AssistStrangerMaxLevel*/, 4 /*int*/, 4, false) - && verifier.VerifyField(tablePos, 318 /*MaxBlockedUserCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 50 /*NewbieAccountExpRatio*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 52 /*NewbieExpBoostActivateLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 54 /*MissionToastLifeTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 56 /*ExpItemInsertLimit*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 58 /*ExpItemInsertAccelTime*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 60 /*CharacterLvUpCoefficient*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 62 /*EquipmentLvUpCoefficient*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 64 /*ExpEquipInsertLimit*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 66 /*EquipLvUpCoefficient*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 68 /*NicknameLength*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 70 /*CraftDuration*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 72 /*CraftLimitTime*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 74 /*ShiftingCraftDuration*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 76 /*ShiftingCraftTicketConsumeAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 78 /*ShiftingCraftSlotMaxCapacity*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 80 /*CraftTicketItemUniqueId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 82 /*CraftTicketConsumeAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 84 /*AcademyEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 86 /*AcademyEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 88 /*AcademyTicketCost*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 90 /*MassangerMessageExpireDay*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 92 /*CraftLeafNodeGenerateLv1Count*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 94 /*CraftLeafNodeGenerateLv2Count*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 96 /*TutorialGachaShopId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 98 /*BeforehandGachaShopId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 100 /*TutorialGachaGoodsId*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 102 /*EquipmentSlotOpenLevel*/, 4 /*int*/, false) + && verifier.VerifyField(tablePos, 104 /*ScenarioAutoDelayMillisec*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 106 /*JoinOrCreateClanCoolTimeFromHour*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 108 /*ClanMaxMember*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 110 /*ClanSearchResultCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 112 /*ClanMaxApplicant*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 114 /*ClanRejoinCoolTimeFromSecond*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 116 /*ClanWordBalloonMaxCharacter*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 118 /*CallNameRenameCoolTimeFromHour*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 120 /*CallNameMinimumLength*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 122 /*CallNameMaximumLength*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 124 /*LobbyToScreenModeWaitTime*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 126 /*ScreenshotToLobbyButtonHideDelay*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 128 /*PrologueScenarioID01*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 130 /*PrologueScenarioID02*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 132 /*TutorialHardStage11*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 134 /*TutorialSpeedButtonStage*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 136 /*TutorialCharacterDefaultCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 138 /*TutorialShopCategoryType*/, 4 /*SCHALE.Common.FlatData.ShopCategoryType*/, 4, false) + && verifier.VerifyField(tablePos, 140 /*AdventureStrategyPlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 142 /*WeekDungoenTacticPlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 144 /*RaidTacticPlayTimeLimitInSeconds*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 146 /*RaidOpponentListAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 148 /*CraftBaseGoldRequired*/, 8 /*long*/, false) + && verifier.VerifyField(tablePos, 150 /*PostExpiredDayAttendance*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 152 /*PostExpiredDayInventoryOverflow*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 154 /*PostExpiredDayGameManager*/, 4 /*int*/, 4, false) + && verifier.VerifyString(tablePos, 156 /*UILabelCharacterWrap*/, false) + && verifier.VerifyField(tablePos, 158 /*RequestTimeOut*/, 4 /*float*/, 4, false) + && verifier.VerifyField(tablePos, 160 /*MailStorageSoftCap*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 162 /*MailStorageHardCap*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 164 /*ClearDeckStorageSize*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 166 /*ClearDeckNoStarViewCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 168 /*ClearDeck1StarViewCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 170 /*ClearDeck2StarViewCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 172 /*ClearDeck3StarViewCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 174 /*ExSkillLevelMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 176 /*PublicSkillLevelMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 178 /*PassiveSkillLevelMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 180 /*ExtraPassiveSkillLevelMax*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 182 /*AccountCommentMaxLength*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 184 /*CafeSummonCoolTimeFromHour*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 186 /*LimitedStageDailyClearCount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 188 /*LimitedStageEntryTimeLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 190 /*LimitedStageEntryTimeBuffer*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 192 /*LimitedStagePointAmount*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 194 /*LimitedStagePointPerApMin*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 196 /*LimitedStagePointPerApMax*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 198 /*AccountLinkReward*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 200 /*MonthlyProductCheckDays*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 202 /*WeaponLvUpCoefficient*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 204 /*ShowRaidMyListCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 206 /*MaxLevelExpMasterCoinRatio*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 208 /*RaidEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 210 /*RaidEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 212 /*RaidTicketCost*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 214 /*TimeAttackDungeonScenarioId*/, false) + && verifier.VerifyField(tablePos, 216 /*TimeAttackDungoenPlayCountPerTicket*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 218 /*TimeAttackDungeonEnterCostType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 220 /*TimeAttackDungeonEnterCostId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 222 /*TimeAttackDungeonEnterCost*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 224 /*ClanLeaderTransferLastLoginLimit*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 226 /*MonthlyProductRepurchasePopupLimit*/, 4 /*int*/, 4, false) + && verifier.VerifyVectorOfData(tablePos, 228 /*CommonFavorItemTags*/, 4 /*SCHALE.Common.FlatData.Tag*/, false) + && verifier.VerifyField(tablePos, 230 /*MaxApMasterCoinPerWeek*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 232 /*CraftOpenExpTier1*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 234 /*CraftOpenExpTier2*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 236 /*CraftOpenExpTier3*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 238 /*CharacterEquipmentGearSlot*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 240 /*BirthDayDDay*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 242 /*RecommendedFriendsLvDifferenceLimit*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 244 /*DDosDetectCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 246 /*DDosCheckIntervalInSeconds*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 248 /*MaxFriendsCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 250 /*MaxFriendsRequest*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 252 /*FriendsSearchRequestCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 254 /*FriendsMaxApplicant*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 256 /*IdCardDefaultCharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 258 /*IdCardDefaultBgId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 260 /*WorldRaidGemEnterCost*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 262 /*WorldRaidGemEnterAmout*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 264 /*FriendIdCardCommentMaxLength*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 266 /*FormationPresetNumberOfEchelonTab*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 268 /*FormationPresetNumberOfEchelon*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 270 /*FormationPresetRecentNumberOfEchelon*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 272 /*FormationPresetEchelonTabTextLength*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 274 /*FormationPresetEchelonSlotTextLength*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 276 /*CharProfileRowIntervalKr*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 278 /*CharProfileRowIntervalJp*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 280 /*CharProfilePopupRowIntervalKr*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 282 /*CharProfilePopupRowIntervalJp*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 284 /*BeforehandGachaCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 286 /*BeforehandGachaGroupId*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 288 /*RenewalDisplayOrderDay*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 290 /*EmblemDefaultId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 292 /*BirthdayMailStartDate*/, false) + && verifier.VerifyField(tablePos, 294 /*BirthdayMailRemainDate*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 296 /*BirthdayMailParcelType*/, 4 /*SCHALE.Common.FlatData.ParcelType*/, 4, false) + && verifier.VerifyField(tablePos, 298 /*BirthdayMailParcelId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 300 /*BirthdayMailParcelAmount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 302 /*ClearDeckAverageDeckCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 304 /*ClearDeckWorldRaidSaveConditionCoefficient*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 306 /*ClearDeckShowCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 308 /*CharacterMaxLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 310 /*PotentialBonusStatMaxLevelMaxHP*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 312 /*PotentialBonusStatMaxLevelAttackPower*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 314 /*PotentialBonusStatMaxLevelHealPower*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 316 /*PotentialOpenConditionCharacterLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 318 /*AssistStrangerMinLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 320 /*AssistStrangerMaxLevel*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 322 /*MaxBlockedUserCount*/, 4 /*int*/, 4, false) + && verifier.VerifyField(tablePos, 324 /*CafeRandomVisitMinComfortBonus*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 326 /*CafeRandomVisitMinLastLogin*/, 4 /*int*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/ContentEnterCostReduceExcel.cs b/SCHALE.Common/FlatData/ContentEnterCostReduceExcel.cs index 5d1928f..5e7513e 100644 --- a/SCHALE.Common/FlatData/ContentEnterCostReduceExcel.cs +++ b/SCHALE.Common/FlatData/ContentEnterCostReduceExcel.cs @@ -21,17 +21,17 @@ public struct ContentEnterCostReduceExcel : IFlatbufferObject public ContentEnterCostReduceExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long EnterCostReduceGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None_; } } public long StageId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType ReduceEnterCostType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ReduceEnterCostType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ReduceEnterCostId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ReduceAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateContentEnterCostReduceExcel(FlatBufferBuilder builder, long EnterCostReduceGroupId = 0, - SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, + SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None_, long StageId = 0, - SCHALE.Common.FlatData.ParcelType ReduceEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ReduceEnterCostType = SCHALE.Common.FlatData.ParcelType.None_, long ReduceEnterCostId = 0, long ReduceAmount = 0) { builder.StartTable(6); @@ -93,9 +93,9 @@ public class ContentEnterCostReduceExcelT public ContentEnterCostReduceExcelT() { this.EnterCostReduceGroupId = 0; - this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; + this.ContentType_ = SCHALE.Common.FlatData.ContentType.None_; this.StageId = 0; - this.ReduceEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.ReduceEnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.ReduceEnterCostId = 0; this.ReduceAmount = 0; } diff --git a/SCHALE.Common/FlatData/ContentEnterCostReduceExcelTable.cs b/SCHALE.Common/FlatData/ContentEnterCostReduceExcelTable.cs deleted file mode 100644 index 3cd237f..0000000 --- a/SCHALE.Common/FlatData/ContentEnterCostReduceExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct ContentEnterCostReduceExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static ContentEnterCostReduceExcelTable GetRootAsContentEnterCostReduceExcelTable(ByteBuffer _bb) { return GetRootAsContentEnterCostReduceExcelTable(_bb, new ContentEnterCostReduceExcelTable()); } - public static ContentEnterCostReduceExcelTable GetRootAsContentEnterCostReduceExcelTable(ByteBuffer _bb, ContentEnterCostReduceExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public ContentEnterCostReduceExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.ContentEnterCostReduceExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ContentEnterCostReduceExcel?)(new SCHALE.Common.FlatData.ContentEnterCostReduceExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateContentEnterCostReduceExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - ContentEnterCostReduceExcelTable.AddDataList(builder, DataListOffset); - return ContentEnterCostReduceExcelTable.EndContentEnterCostReduceExcelTable(builder); - } - - public static void StartContentEnterCostReduceExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndContentEnterCostReduceExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public ContentEnterCostReduceExcelTableT UnPack() { - var _o = new ContentEnterCostReduceExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(ContentEnterCostReduceExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("ContentEnterCostReduceExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, ContentEnterCostReduceExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ContentEnterCostReduceExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateContentEnterCostReduceExcelTable( - builder, - _DataList); - } -} - -public class ContentEnterCostReduceExcelTableT -{ - public List DataList { get; set; } - - public ContentEnterCostReduceExcelTableT() { - this.DataList = null; - } -} - - -static public class ContentEnterCostReduceExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ContentEnterCostReduceExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/ContentLockType.cs b/SCHALE.Common/FlatData/ContentLockType.cs index 50a2a28..3f0dedb 100644 --- a/SCHALE.Common/FlatData/ContentLockType.cs +++ b/SCHALE.Common/FlatData/ContentLockType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ContentLockType : int { - None = 0, + None_ = 0, NotUseControlledByOtherSetting = 1, Academy = 2, MultiFloorRaid = 3, diff --git a/SCHALE.Common/FlatData/ContentSpoilerPopupExcel.cs b/SCHALE.Common/FlatData/ContentSpoilerPopupExcel.cs index 8b980bf..5e84945 100644 --- a/SCHALE.Common/FlatData/ContentSpoilerPopupExcel.cs +++ b/SCHALE.Common/FlatData/ContentSpoilerPopupExcel.cs @@ -20,7 +20,7 @@ public struct ContentSpoilerPopupExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public ContentSpoilerPopupExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None_; } } public string SpoilerPopupTitle { get { int o = __p.__offset(6); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetSpoilerPopupTitleBytes() { return __p.__vector_as_span(6, 1); } @@ -39,7 +39,7 @@ public struct ContentSpoilerPopupExcel : IFlatbufferObject public long ConditionScenarioModeId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateContentSpoilerPopupExcel(FlatBufferBuilder builder, - SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, + SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None_, StringOffset SpoilerPopupTitleOffset = default(StringOffset), StringOffset SpoilerPopupDescriptionOffset = default(StringOffset), bool IsWarningPopUp = false, @@ -99,7 +99,7 @@ public class ContentSpoilerPopupExcelT public long ConditionScenarioModeId { get; set; } public ContentSpoilerPopupExcelT() { - this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; + this.ContentType_ = SCHALE.Common.FlatData.ContentType.None_; this.SpoilerPopupTitle = null; this.SpoilerPopupDescription = null; this.IsWarningPopUp = false; diff --git a/SCHALE.Common/FlatData/ContentType.cs b/SCHALE.Common/FlatData/ContentType.cs index 37c7bfd..ca64be2 100644 --- a/SCHALE.Common/FlatData/ContentType.cs +++ b/SCHALE.Common/FlatData/ContentType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ContentType : int { - None = 0, + None_ = 0, CampaignMainStage = 1, CampaignSubStage = 2, WeekDungeon = 3, diff --git a/SCHALE.Common/FlatData/ContentsChangeType.cs b/SCHALE.Common/FlatData/ContentsChangeType.cs index 81d2bbe..6d4be50 100644 --- a/SCHALE.Common/FlatData/ContentsChangeType.cs +++ b/SCHALE.Common/FlatData/ContentsChangeType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ContentsChangeType : int { - None = 0, + None_ = 0, WorldRaidBossDamageRatio = 1, WorldRaidBossGroupDate = 2, }; diff --git a/SCHALE.Common/FlatData/ContentsShortcutExcel.cs b/SCHALE.Common/FlatData/ContentsShortcutExcel.cs index a764712..b8145f2 100644 --- a/SCHALE.Common/FlatData/ContentsShortcutExcel.cs +++ b/SCHALE.Common/FlatData/ContentsShortcutExcel.cs @@ -21,7 +21,7 @@ public struct ContentsShortcutExcel : IFlatbufferObject public ContentsShortcutExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long UniqueId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None_; } } public long EventContentId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ScenarioModeVolume { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ScenarioModeChapter { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -40,7 +40,7 @@ public struct ContentsShortcutExcel : IFlatbufferObject #endif public byte[] GetShortcutCloseTimeArray() { return __p.__vector_as_array(16); } public long ConditionContentId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.StageDifficulty ConquestMapDifficulty { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public SCHALE.Common.FlatData.StageDifficulty ConquestMapDifficulty { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None_; } } public int ConquestStepIndex { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long ShortcutContentId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string ShortcutUIName(int j) { int o = __p.__offset(26); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } @@ -55,14 +55,14 @@ public struct ContentsShortcutExcel : IFlatbufferObject public static Offset CreateContentsShortcutExcel(FlatBufferBuilder builder, long UniqueId = 0, - SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, + SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None_, long EventContentId = 0, long ScenarioModeVolume = 0, long ScenarioModeChapter = 0, StringOffset ShortcutOpenTimeOffset = default(StringOffset), StringOffset ShortcutCloseTimeOffset = default(StringOffset), long ConditionContentId = 0, - SCHALE.Common.FlatData.StageDifficulty ConquestMapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, + SCHALE.Common.FlatData.StageDifficulty ConquestMapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None_, int ConquestStepIndex = 0, long ShortcutContentId = 0, VectorOffset ShortcutUINameOffset = default(VectorOffset), @@ -176,14 +176,14 @@ public class ContentsShortcutExcelT public ContentsShortcutExcelT() { this.UniqueId = 0; - this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; + this.ContentType_ = SCHALE.Common.FlatData.ContentType.None_; this.EventContentId = 0; this.ScenarioModeVolume = 0; this.ScenarioModeChapter = 0; this.ShortcutOpenTime = null; this.ShortcutCloseTime = null; this.ConditionContentId = 0; - this.ConquestMapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None; + this.ConquestMapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None_; this.ConquestStepIndex = 0; this.ShortcutContentId = 0; this.ShortcutUIName = null; diff --git a/SCHALE.Common/FlatData/CouponStuffExcel.cs b/SCHALE.Common/FlatData/CouponStuffExcel.cs index 3630925..a589b02 100644 --- a/SCHALE.Common/FlatData/CouponStuffExcel.cs +++ b/SCHALE.Common/FlatData/CouponStuffExcel.cs @@ -21,7 +21,7 @@ public struct CouponStuffExcel : IFlatbufferObject public CouponStuffExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long StuffId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ParcelId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int LimitAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public string CouponStuffNameLocalizeKey { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } @@ -34,7 +34,7 @@ public struct CouponStuffExcel : IFlatbufferObject public static Offset CreateCouponStuffExcel(FlatBufferBuilder builder, long StuffId = 0, - SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_, long ParcelId = 0, int LimitAmount = 0, StringOffset CouponStuffNameLocalizeKeyOffset = default(StringOffset)) { @@ -93,7 +93,7 @@ public class CouponStuffExcelT public CouponStuffExcelT() { this.StuffId = 0; - this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_; this.ParcelId = 0; this.LimitAmount = 0; this.CouponStuffNameLocalizeKey = null; diff --git a/SCHALE.Common/FlatData/CurrencyExcel.cs b/SCHALE.Common/FlatData/CurrencyExcel.cs index fc6fa8e..69c1d91 100644 --- a/SCHALE.Common/FlatData/CurrencyExcel.cs +++ b/SCHALE.Common/FlatData/CurrencyExcel.cs @@ -51,7 +51,7 @@ public struct CurrencyExcel : IFlatbufferObject public ArraySegment? GetSpriteNameBytes() { return __p.__vector_as_arraysegment(28); } #endif public byte[] GetSpriteNameArray() { return __p.__vector_as_array(28); } - public SCHALE.Common.FlatData.DailyRefillType DailyRefillType_ { get { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.DailyRefillType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DailyRefillType.None; } } + public SCHALE.Common.FlatData.DailyRefillType DailyRefillType_ { get { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.DailyRefillType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DailyRefillType.None_; } } public long DailyRefillAmount { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long DailyRefillTime(int j) { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int DailyRefillTimeLength { get { int o = __p.__offset(34); return o != 0 ? __p.__vector_len(o) : 0; } } @@ -69,7 +69,7 @@ public struct CurrencyExcel : IFlatbufferObject #endif public byte[] GetExpirationDateTimeArray() { return __p.__vector_as_array(36); } public int ExpirationNotifyDateIn { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType ExpiryChangeParcelType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ExpiryChangeParcelType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ExpiryChangeId { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ExpiryChangeAmount { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -87,12 +87,12 @@ public struct CurrencyExcel : IFlatbufferObject long ChargeLimit = 0, long OverChargeLimit = 0, StringOffset SpriteNameOffset = default(StringOffset), - SCHALE.Common.FlatData.DailyRefillType DailyRefillType_ = SCHALE.Common.FlatData.DailyRefillType.None, + SCHALE.Common.FlatData.DailyRefillType DailyRefillType_ = SCHALE.Common.FlatData.DailyRefillType.None_, long DailyRefillAmount = 0, VectorOffset DailyRefillTimeOffset = default(VectorOffset), StringOffset ExpirationDateTimeOffset = default(StringOffset), int ExpirationNotifyDateIn = 0, - SCHALE.Common.FlatData.ParcelType ExpiryChangeParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ExpiryChangeParcelType = SCHALE.Common.FlatData.ParcelType.None_, long ExpiryChangeId = 0, long ExpiryChangeAmount = 0) { builder.StartTable(21); @@ -256,12 +256,12 @@ public class CurrencyExcelT this.ChargeLimit = 0; this.OverChargeLimit = 0; this.SpriteName = null; - this.DailyRefillType_ = SCHALE.Common.FlatData.DailyRefillType.None; + this.DailyRefillType_ = SCHALE.Common.FlatData.DailyRefillType.None_; this.DailyRefillAmount = 0; this.DailyRefillTime = null; this.ExpirationDateTime = null; this.ExpirationNotifyDateIn = 0; - this.ExpiryChangeParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ExpiryChangeParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.ExpiryChangeId = 0; this.ExpiryChangeAmount = 0; } diff --git a/SCHALE.Common/FlatData/CurrencyExcelTable.cs b/SCHALE.Common/FlatData/CurrencyExcelTable.cs deleted file mode 100644 index 2a3c84f..0000000 --- a/SCHALE.Common/FlatData/CurrencyExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct CurrencyExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static CurrencyExcelTable GetRootAsCurrencyExcelTable(ByteBuffer _bb) { return GetRootAsCurrencyExcelTable(_bb, new CurrencyExcelTable()); } - public static CurrencyExcelTable GetRootAsCurrencyExcelTable(ByteBuffer _bb, CurrencyExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public CurrencyExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.CurrencyExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.CurrencyExcel?)(new SCHALE.Common.FlatData.CurrencyExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateCurrencyExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - CurrencyExcelTable.AddDataList(builder, DataListOffset); - return CurrencyExcelTable.EndCurrencyExcelTable(builder); - } - - public static void StartCurrencyExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndCurrencyExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public CurrencyExcelTableT UnPack() { - var _o = new CurrencyExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(CurrencyExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("CurrencyExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, CurrencyExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.CurrencyExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateCurrencyExcelTable( - builder, - _DataList); - } -} - -public class CurrencyExcelTableT -{ - public List DataList { get; set; } - - public CurrencyExcelTableT() { - this.DataList = null; - } -} - - -static public class CurrencyExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.CurrencyExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/DailyRefillType.cs b/SCHALE.Common/FlatData/DailyRefillType.cs index aa2fd36..f89575f 100644 --- a/SCHALE.Common/FlatData/DailyRefillType.cs +++ b/SCHALE.Common/FlatData/DailyRefillType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum DailyRefillType : int { - None = 0, + None_ = 0, Default = 1, Login = 2, }; diff --git a/SCHALE.Common/FlatData/DefaultFurnitureExcel.cs b/SCHALE.Common/FlatData/DefaultFurnitureExcel.cs index 04f4160..3b8a608 100644 --- a/SCHALE.Common/FlatData/DefaultFurnitureExcel.cs +++ b/SCHALE.Common/FlatData/DefaultFurnitureExcel.cs @@ -21,14 +21,14 @@ public struct DefaultFurnitureExcel : IFlatbufferObject public DefaultFurnitureExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.FurnitureLocation Location { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.FurnitureLocation)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FurnitureLocation.None; } } + public SCHALE.Common.FlatData.FurnitureLocation Location { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.FurnitureLocation)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FurnitureLocation.None_; } } public float PositionX { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } public float PositionY { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } public float Rotation { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } public static Offset CreateDefaultFurnitureExcel(FlatBufferBuilder builder, long Id = 0, - SCHALE.Common.FlatData.FurnitureLocation Location = SCHALE.Common.FlatData.FurnitureLocation.None, + SCHALE.Common.FlatData.FurnitureLocation Location = SCHALE.Common.FlatData.FurnitureLocation.None_, float PositionX = 0.0f, float PositionY = 0.0f, float Rotation = 0.0f) { @@ -86,7 +86,7 @@ public class DefaultFurnitureExcelT public DefaultFurnitureExcelT() { this.Id = 0; - this.Location = SCHALE.Common.FlatData.FurnitureLocation.None; + this.Location = SCHALE.Common.FlatData.FurnitureLocation.None_; this.PositionX = 0.0f; this.PositionY = 0.0f; this.Rotation = 0.0f; diff --git a/SCHALE.Common/FlatData/DefaultParcelExcel.cs b/SCHALE.Common/FlatData/DefaultParcelExcel.cs index f965f45..bec8237 100644 --- a/SCHALE.Common/FlatData/DefaultParcelExcel.cs +++ b/SCHALE.Common/FlatData/DefaultParcelExcel.cs @@ -20,12 +20,12 @@ public struct DefaultParcelExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public DefaultParcelExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ParcelId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ParcelAmount { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateDefaultParcelExcel(FlatBufferBuilder builder, - SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_, long ParcelId = 0, long ParcelAmount = 0) { builder.StartTable(3); @@ -71,7 +71,7 @@ public class DefaultParcelExcelT public long ParcelAmount { get; set; } public DefaultParcelExcelT() { - this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_; this.ParcelId = 0; this.ParcelAmount = 0; } diff --git a/SCHALE.Common/FlatData/DialogConditionDetail.cs b/SCHALE.Common/FlatData/DialogConditionDetail.cs index 8111858..6f6d9c6 100644 --- a/SCHALE.Common/FlatData/DialogConditionDetail.cs +++ b/SCHALE.Common/FlatData/DialogConditionDetail.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum DialogConditionDetail : int { - None = 0, + None_ = 0, Day = 1, Close = 2, MiniGameDreamMakerDay = 3, diff --git a/SCHALE.Common/FlatData/DreamMakerEndingCondition.cs b/SCHALE.Common/FlatData/DreamMakerEndingCondition.cs index 128091e..4be3f64 100644 --- a/SCHALE.Common/FlatData/DreamMakerEndingCondition.cs +++ b/SCHALE.Common/FlatData/DreamMakerEndingCondition.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum DreamMakerEndingCondition : int { - None = 0, + None_ = 0, Param01 = 1, Param02 = 2, Param03 = 3, diff --git a/SCHALE.Common/FlatData/DreamMakerEndingRewardType.cs b/SCHALE.Common/FlatData/DreamMakerEndingRewardType.cs index 63ce231..abc27b2 100644 --- a/SCHALE.Common/FlatData/DreamMakerEndingRewardType.cs +++ b/SCHALE.Common/FlatData/DreamMakerEndingRewardType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum DreamMakerEndingRewardType : int { - None = 0, + None_ = 0, FirstEndingReward = 1, LoopEndingReward = 2, }; diff --git a/SCHALE.Common/FlatData/DreamMakerEndingType.cs b/SCHALE.Common/FlatData/DreamMakerEndingType.cs index 99a8c18..85aed77 100644 --- a/SCHALE.Common/FlatData/DreamMakerEndingType.cs +++ b/SCHALE.Common/FlatData/DreamMakerEndingType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum DreamMakerEndingType : int { - None = 0, + None_ = 0, Normal = 1, Special = 2, }; diff --git a/SCHALE.Common/FlatData/DreamMakerMultiplierCondition.cs b/SCHALE.Common/FlatData/DreamMakerMultiplierCondition.cs index 7d0fbb2..6a46d51 100644 --- a/SCHALE.Common/FlatData/DreamMakerMultiplierCondition.cs +++ b/SCHALE.Common/FlatData/DreamMakerMultiplierCondition.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum DreamMakerMultiplierCondition : int { - None = 0, + None_ = 0, Round = 1, CollectionCount = 2, EndingCount = 3, diff --git a/SCHALE.Common/FlatData/DreamMakerParamOperationType.cs b/SCHALE.Common/FlatData/DreamMakerParamOperationType.cs index 96f5897..f87f044 100644 --- a/SCHALE.Common/FlatData/DreamMakerParamOperationType.cs +++ b/SCHALE.Common/FlatData/DreamMakerParamOperationType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum DreamMakerParamOperationType : int { - None = 0, + None_ = 0, GrowUpHigh = 1, GrowUp = 2, GrowDownHigh = 3, diff --git a/SCHALE.Common/FlatData/DreamMakerParameterType.cs b/SCHALE.Common/FlatData/DreamMakerParameterType.cs index d423b71..a21a19a 100644 --- a/SCHALE.Common/FlatData/DreamMakerParameterType.cs +++ b/SCHALE.Common/FlatData/DreamMakerParameterType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum DreamMakerParameterType : int { - None = 0, + None_ = 0, Param01 = 1, Param02 = 2, Param03 = 3, diff --git a/SCHALE.Common/FlatData/DreamMakerResult.cs b/SCHALE.Common/FlatData/DreamMakerResult.cs index 0ea0aa7..1c7a2d8 100644 --- a/SCHALE.Common/FlatData/DreamMakerResult.cs +++ b/SCHALE.Common/FlatData/DreamMakerResult.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum DreamMakerResult : int { - None = 0, + None_ = 0, Fail = 1, Success = 2, Perfect = 3, diff --git a/SCHALE.Common/FlatData/DreamMakerVoiceCondition.cs b/SCHALE.Common/FlatData/DreamMakerVoiceCondition.cs index 2f1f692..09089a8 100644 --- a/SCHALE.Common/FlatData/DreamMakerVoiceCondition.cs +++ b/SCHALE.Common/FlatData/DreamMakerVoiceCondition.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum DreamMakerVoiceCondition : int { - None = 0, + None_ = 0, Fail = 1, Success = 2, Perfect = 3, diff --git a/SCHALE.Common/FlatData/DuplicateBonusExcel.cs b/SCHALE.Common/FlatData/DuplicateBonusExcel.cs index c99672e..a851a02 100644 --- a/SCHALE.Common/FlatData/DuplicateBonusExcel.cs +++ b/SCHALE.Common/FlatData/DuplicateBonusExcel.cs @@ -24,7 +24,7 @@ public struct DuplicateBonusExcel : IFlatbufferObject public SCHALE.Common.FlatData.ItemCategory ItemCategory_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ItemCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ItemCategory.Coin; } } public long ItemId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CharacterId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardParcelId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RewardParcelAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -33,7 +33,7 @@ public struct DuplicateBonusExcel : IFlatbufferObject SCHALE.Common.FlatData.ItemCategory ItemCategory_ = SCHALE.Common.FlatData.ItemCategory.Coin, long ItemId = 0, long CharacterId = 0, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardParcelId = 0, long RewardParcelAmount = 0) { builder.StartTable(7); @@ -103,7 +103,7 @@ public class DuplicateBonusExcelT this.ItemCategory_ = SCHALE.Common.FlatData.ItemCategory.Coin; this.ItemId = 0; this.CharacterId = 0; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardParcelId = 0; this.RewardParcelAmount = 0; } diff --git a/SCHALE.Common/FlatData/EchelonConstraintExcel.cs b/SCHALE.Common/FlatData/EchelonConstraintExcel.cs index cb7450a..7a495de 100644 --- a/SCHALE.Common/FlatData/EchelonConstraintExcel.cs +++ b/SCHALE.Common/FlatData/EchelonConstraintExcel.cs @@ -38,20 +38,20 @@ public struct EchelonConstraintExcel : IFlatbufferObject public ArraySegment? GetPersonalityIdBytes() { return __p.__vector_as_arraysegment(10); } #endif public long[] GetPersonalityIdArray() { return __p.__vector_as_array(10); } - public SCHALE.Common.FlatData.WeaponType WeaponType_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.WeaponType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeaponType.None; } } - public SCHALE.Common.FlatData.School School_ { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.School.None; } } - public SCHALE.Common.FlatData.Club Club_ { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.Club)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Club.None; } } - public SCHALE.Common.FlatData.TacticRole Role { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.TacticRole)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticRole.None; } } + public SCHALE.Common.FlatData.WeaponType WeaponType_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.WeaponType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeaponType.None_; } } + public SCHALE.Common.FlatData.School School_ { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.School.None_; } } + public SCHALE.Common.FlatData.Club Club_ { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.Club)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Club.None_; } } + public SCHALE.Common.FlatData.TacticRole Role { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.TacticRole)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticRole.None_; } } public static Offset CreateEchelonConstraintExcel(FlatBufferBuilder builder, long GroupId = 0, bool IsWhiteList = false, VectorOffset CharacterIdOffset = default(VectorOffset), VectorOffset PersonalityIdOffset = default(VectorOffset), - SCHALE.Common.FlatData.WeaponType WeaponType_ = SCHALE.Common.FlatData.WeaponType.None, - SCHALE.Common.FlatData.School School_ = SCHALE.Common.FlatData.School.None, - SCHALE.Common.FlatData.Club Club_ = SCHALE.Common.FlatData.Club.None, - SCHALE.Common.FlatData.TacticRole Role = SCHALE.Common.FlatData.TacticRole.None) { + SCHALE.Common.FlatData.WeaponType WeaponType_ = SCHALE.Common.FlatData.WeaponType.None_, + SCHALE.Common.FlatData.School School_ = SCHALE.Common.FlatData.School.None_, + SCHALE.Common.FlatData.Club Club_ = SCHALE.Common.FlatData.Club.None_, + SCHALE.Common.FlatData.TacticRole Role = SCHALE.Common.FlatData.TacticRole.None_) { builder.StartTable(8); EchelonConstraintExcel.AddGroupId(builder, GroupId); EchelonConstraintExcel.AddRole(builder, Role); @@ -146,10 +146,10 @@ public class EchelonConstraintExcelT this.IsWhiteList = false; this.CharacterId = null; this.PersonalityId = null; - this.WeaponType_ = SCHALE.Common.FlatData.WeaponType.None; - this.School_ = SCHALE.Common.FlatData.School.None; - this.Club_ = SCHALE.Common.FlatData.Club.None; - this.Role = SCHALE.Common.FlatData.TacticRole.None; + this.WeaponType_ = SCHALE.Common.FlatData.WeaponType.None_; + this.School_ = SCHALE.Common.FlatData.School.None_; + this.Club_ = SCHALE.Common.FlatData.Club.None_; + this.Role = SCHALE.Common.FlatData.TacticRole.None_; } } diff --git a/SCHALE.Common/FlatData/EchelonType.cs b/SCHALE.Common/FlatData/EchelonType.cs index 06ffee2..893632f 100644 --- a/SCHALE.Common/FlatData/EchelonType.cs +++ b/SCHALE.Common/FlatData/EchelonType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum EchelonType : int { - None = 0, + None_ = 0, Adventure = 1, Raid = 2, ArenaAttack = 3, diff --git a/SCHALE.Common/FlatData/EffectBone.cs b/SCHALE.Common/FlatData/EffectBone.cs index 1e25623..daf8fd5 100644 --- a/SCHALE.Common/FlatData/EffectBone.cs +++ b/SCHALE.Common/FlatData/EffectBone.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum EffectBone : int { - None = 0, + None_ = 0, Shot = 1, Head = 2, Body = 3, diff --git a/SCHALE.Common/FlatData/EliminateRaidStageExcel.cs b/SCHALE.Common/FlatData/EliminateRaidStageExcel.cs index b5ca0ce..3955ad2 100644 --- a/SCHALE.Common/FlatData/EliminateRaidStageExcel.cs +++ b/SCHALE.Common/FlatData/EliminateRaidStageExcel.cs @@ -30,7 +30,7 @@ public struct EliminateRaidStageExcel : IFlatbufferObject public ArraySegment? GetRaidBossGroupBytes() { return __p.__vector_as_arraysegment(10); } #endif public byte[] GetRaidBossGroupArray() { return __p.__vector_as_array(10); } - public SCHALE.Common.FlatData.ParcelType RaidEnterCostType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RaidEnterCostType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RaidEnterCostId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RaidEnterCostAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public string BossSpinePath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } @@ -83,7 +83,7 @@ public struct EliminateRaidStageExcel : IFlatbufferObject public ArraySegment? GetEnterTimeLineBytes() { return __p.__vector_as_arraysegment(42); } #endif public byte[] GetEnterTimeLineArray() { return __p.__vector_as_array(42); } - public SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment_ { get { int o = __p.__offset(44); return o != 0 ? (SCHALE.Common.FlatData.TacticEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEnvironment.None; } } + public SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment_ { get { int o = __p.__offset(44); return o != 0 ? (SCHALE.Common.FlatData.TacticEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEnvironment.None_; } } public long DefaultClearScore { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long MaximumScore { get { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PerSecondMinusScore { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -135,7 +135,7 @@ public struct EliminateRaidStageExcel : IFlatbufferObject bool UseBossIndex = false, bool UseBossAIPhaseSync = false, StringOffset RaidBossGroupOffset = default(StringOffset), - SCHALE.Common.FlatData.ParcelType RaidEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RaidEnterCostType = SCHALE.Common.FlatData.ParcelType.None_, long RaidEnterCostId = 0, int RaidEnterCostAmount = 0, StringOffset BossSpinePathOffset = default(StringOffset), @@ -151,7 +151,7 @@ public struct EliminateRaidStageExcel : IFlatbufferObject long GroundId = 0, StringOffset GroundDevNameOffset = default(StringOffset), StringOffset EnterTimeLineOffset = default(StringOffset), - SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment_ = SCHALE.Common.FlatData.TacticEnvironment.None, + SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment_ = SCHALE.Common.FlatData.TacticEnvironment.None_, long DefaultClearScore = 0, long MaximumScore = 0, long PerSecondMinusScore = 0, @@ -450,7 +450,7 @@ public class EliminateRaidStageExcelT this.UseBossIndex = false; this.UseBossAIPhaseSync = false; this.RaidBossGroup = null; - this.RaidEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.RaidEnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.RaidEnterCostId = 0; this.RaidEnterCostAmount = 0; this.BossSpinePath = null; @@ -466,7 +466,7 @@ public class EliminateRaidStageExcelT this.GroundId = 0; this.GroundDevName = null; this.EnterTimeLine = null; - this.TacticEnvironment_ = SCHALE.Common.FlatData.TacticEnvironment.None; + this.TacticEnvironment_ = SCHALE.Common.FlatData.TacticEnvironment.None_; this.DefaultClearScore = 0; this.MaximumScore = 0; this.PerSecondMinusScore = 0; diff --git a/SCHALE.Common/FlatData/EliminateRaidStageRewardExcel.cs b/SCHALE.Common/FlatData/EliminateRaidStageRewardExcel.cs index 73a8c92..23885b1 100644 --- a/SCHALE.Common/FlatData/EliminateRaidStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/EliminateRaidStageRewardExcel.cs @@ -23,7 +23,7 @@ public struct EliminateRaidStageRewardExcel : IFlatbufferObject public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool IsClearStageRewardHideInfo { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long ClearStageRewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ClearStageRewardParcelUniqueID { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string ClearStageRewardParcelUniqueName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -38,7 +38,7 @@ public struct EliminateRaidStageRewardExcel : IFlatbufferObject long GroupId = 0, bool IsClearStageRewardHideInfo = false, long ClearStageRewardProb = 0, - SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long ClearStageRewardParcelUniqueID = 0, StringOffset ClearStageRewardParcelUniqueNameOffset = default(StringOffset), long ClearStageRewardAmount = 0) { @@ -109,7 +109,7 @@ public class EliminateRaidStageRewardExcelT this.GroupId = 0; this.IsClearStageRewardHideInfo = false; this.ClearStageRewardProb = 0; - this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.ClearStageRewardParcelUniqueID = 0; this.ClearStageRewardParcelUniqueName = null; this.ClearStageRewardAmount = 0; diff --git a/SCHALE.Common/FlatData/EmblemCategory.cs b/SCHALE.Common/FlatData/EmblemCategory.cs index 1621d8e..7ba5219 100644 --- a/SCHALE.Common/FlatData/EmblemCategory.cs +++ b/SCHALE.Common/FlatData/EmblemCategory.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum EmblemCategory : int { - None = 0, + None_ = 0, Default = 1, Mission = 2, GroupStory = 3, diff --git a/SCHALE.Common/FlatData/EmblemCheckPassType.cs b/SCHALE.Common/FlatData/EmblemCheckPassType.cs index 79241c7..d99e892 100644 --- a/SCHALE.Common/FlatData/EmblemCheckPassType.cs +++ b/SCHALE.Common/FlatData/EmblemCheckPassType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum EmblemCheckPassType : int { - None = 0, + None_ = 0, Default = 1, Favor = 2, Story = 3, diff --git a/SCHALE.Common/FlatData/EmblemExcel.cs b/SCHALE.Common/FlatData/EmblemExcel.cs index b923494..68d3259 100644 --- a/SCHALE.Common/FlatData/EmblemExcel.cs +++ b/SCHALE.Common/FlatData/EmblemExcel.cs @@ -21,7 +21,7 @@ public struct EmblemExcel : IFlatbufferObject public EmblemExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.EmblemCategory Category { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EmblemCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EmblemCategory.None; } } + public SCHALE.Common.FlatData.EmblemCategory Category { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.EmblemCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EmblemCategory.None_; } } public SCHALE.Common.FlatData.Rarity Rarity_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } public long DisplayOrder { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public uint LocalizeEtcId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } @@ -80,13 +80,13 @@ public struct EmblemExcel : IFlatbufferObject #endif public byte[] GetDisplayEndDateArray() { return __p.__vector_as_array(36); } public int DislpayFavorLevel { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.EmblemCheckPassType CheckPassType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.EmblemCheckPassType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EmblemCheckPassType.None; } } + public SCHALE.Common.FlatData.EmblemCheckPassType CheckPassType { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.EmblemCheckPassType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EmblemCheckPassType.None_; } } public long EmblemParameter { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CheckPassCount { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateEmblemExcel(FlatBufferBuilder builder, long Id = 0, - SCHALE.Common.FlatData.EmblemCategory Category = SCHALE.Common.FlatData.EmblemCategory.None, + SCHALE.Common.FlatData.EmblemCategory Category = SCHALE.Common.FlatData.EmblemCategory.None_, SCHALE.Common.FlatData.Rarity Rarity_ = SCHALE.Common.FlatData.Rarity.N, long DisplayOrder = 0, uint LocalizeEtcId = 0, @@ -103,7 +103,7 @@ public struct EmblemExcel : IFlatbufferObject StringOffset DisplayStartDateOffset = default(StringOffset), StringOffset DisplayEndDateOffset = default(StringOffset), int DislpayFavorLevel = 0, - SCHALE.Common.FlatData.EmblemCheckPassType CheckPassType = SCHALE.Common.FlatData.EmblemCheckPassType.None, + SCHALE.Common.FlatData.EmblemCheckPassType CheckPassType = SCHALE.Common.FlatData.EmblemCheckPassType.None_, long EmblemParameter = 0, long CheckPassCount = 0) { builder.StartTable(21); @@ -247,7 +247,7 @@ public class EmblemExcelT public EmblemExcelT() { this.Id = 0; - this.Category = SCHALE.Common.FlatData.EmblemCategory.None; + this.Category = SCHALE.Common.FlatData.EmblemCategory.None_; this.Rarity_ = SCHALE.Common.FlatData.Rarity.N; this.DisplayOrder = 0; this.LocalizeEtcId = 0; @@ -264,7 +264,7 @@ public class EmblemExcelT this.DisplayStartDate = null; this.DisplayEndDate = null; this.DislpayFavorLevel = 0; - this.CheckPassType = SCHALE.Common.FlatData.EmblemCheckPassType.None; + this.CheckPassType = SCHALE.Common.FlatData.EmblemCheckPassType.None_; this.EmblemParameter = 0; this.CheckPassCount = 0; } diff --git a/SCHALE.Common/FlatData/EmblemExcelTable.cs b/SCHALE.Common/FlatData/EmblemExcelTable.cs deleted file mode 100644 index e1ab8d2..0000000 --- a/SCHALE.Common/FlatData/EmblemExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct EmblemExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static EmblemExcelTable GetRootAsEmblemExcelTable(ByteBuffer _bb) { return GetRootAsEmblemExcelTable(_bb, new EmblemExcelTable()); } - public static EmblemExcelTable GetRootAsEmblemExcelTable(ByteBuffer _bb, EmblemExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public EmblemExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.EmblemExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.EmblemExcel?)(new SCHALE.Common.FlatData.EmblemExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateEmblemExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - EmblemExcelTable.AddDataList(builder, DataListOffset); - return EmblemExcelTable.EndEmblemExcelTable(builder); - } - - public static void StartEmblemExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndEmblemExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public EmblemExcelTableT UnPack() { - var _o = new EmblemExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(EmblemExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("EmblemExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, EmblemExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.EmblemExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateEmblemExcelTable( - builder, - _DataList); - } -} - -public class EmblemExcelTableT -{ - public List DataList { get; set; } - - public EmblemExcelTableT() { - this.DataList = null; - } -} - - -static public class EmblemExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.EmblemExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/EndCondition.cs b/SCHALE.Common/FlatData/EndCondition.cs index 65f5abd..53cb959 100644 --- a/SCHALE.Common/FlatData/EndCondition.cs +++ b/SCHALE.Common/FlatData/EndCondition.cs @@ -12,7 +12,7 @@ public enum EndCondition : int AmmoCount = 2, AmmoHit = 3, HitCount = 4, - None = 5, + None_ = 5, UseExSkillCount = 6, }; diff --git a/SCHALE.Common/FlatData/EquipmentOptionType.cs b/SCHALE.Common/FlatData/EquipmentOptionType.cs index 7d7aa14..24dbe3a 100644 --- a/SCHALE.Common/FlatData/EquipmentOptionType.cs +++ b/SCHALE.Common/FlatData/EquipmentOptionType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum EquipmentOptionType : int { - None = 0, + None_ = 0, MaxHP_Base = 1, MaxHP_Coefficient = 2, AttackPower_Base = 3, diff --git a/SCHALE.Common/FlatData/EtcSchool.cs b/SCHALE.Common/FlatData/EtcSchool.cs index 2f6a247..19045ea 100644 --- a/SCHALE.Common/FlatData/EtcSchool.cs +++ b/SCHALE.Common/FlatData/EtcSchool.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum EtcSchool : int { - None = 0, + None_ = 0, ETC = 1, Tokiwadai = 2, Sakugawa = 3, diff --git a/SCHALE.Common/FlatData/EventContentBuffExcel.cs b/SCHALE.Common/FlatData/EventContentBuffExcel.cs index f9422fa..461ca8d 100644 --- a/SCHALE.Common/FlatData/EventContentBuffExcel.cs +++ b/SCHALE.Common/FlatData/EventContentBuffExcel.cs @@ -23,7 +23,7 @@ public struct EventContentBuffExcel : IFlatbufferObject public long EventContentBuffId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool IsBuff { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public SCHALE.Common.FlatData.Tag CharacterTag { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Tag.A; } } - public SCHALE.Common.FlatData.EventContentBuffFindRule EnumType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.EventContentBuffFindRule)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentBuffFindRule.None; } } + public SCHALE.Common.FlatData.EventContentBuffFindRule EnumType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.EventContentBuffFindRule)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentBuffFindRule.None_; } } public string EnumTypeValue(int j) { int o = __p.__offset(12); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int EnumTypeValueLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } public string SkillGroupId { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } @@ -59,7 +59,7 @@ public struct EventContentBuffExcel : IFlatbufferObject long EventContentBuffId = 0, bool IsBuff = false, SCHALE.Common.FlatData.Tag CharacterTag = SCHALE.Common.FlatData.Tag.A, - SCHALE.Common.FlatData.EventContentBuffFindRule EnumType = SCHALE.Common.FlatData.EventContentBuffFindRule.None, + SCHALE.Common.FlatData.EventContentBuffFindRule EnumType = SCHALE.Common.FlatData.EventContentBuffFindRule.None_, VectorOffset EnumTypeValueOffset = default(VectorOffset), StringOffset SkillGroupIdOffset = default(StringOffset), StringOffset IconPathOffset = default(StringOffset), @@ -157,7 +157,7 @@ public class EventContentBuffExcelT this.EventContentBuffId = 0; this.IsBuff = false; this.CharacterTag = SCHALE.Common.FlatData.Tag.A; - this.EnumType = SCHALE.Common.FlatData.EventContentBuffFindRule.None; + this.EnumType = SCHALE.Common.FlatData.EventContentBuffFindRule.None_; this.EnumTypeValue = null; this.SkillGroupId = null; this.IconPath = null; diff --git a/SCHALE.Common/FlatData/EventContentBuffFindRule.cs b/SCHALE.Common/FlatData/EventContentBuffFindRule.cs index 6332cff..0c57d45 100644 --- a/SCHALE.Common/FlatData/EventContentBuffFindRule.cs +++ b/SCHALE.Common/FlatData/EventContentBuffFindRule.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum EventContentBuffFindRule : int { - None = 0, + None_ = 0, WeaponType = 1, SquadType = 2, StreetBattleAdaptation = 3, diff --git a/SCHALE.Common/FlatData/EventContentChangeExcel.cs b/SCHALE.Common/FlatData/EventContentChangeExcel.cs index 68e72c6..9b266ce 100644 --- a/SCHALE.Common/FlatData/EventContentChangeExcel.cs +++ b/SCHALE.Common/FlatData/EventContentChangeExcel.cs @@ -23,10 +23,10 @@ public struct EventContentChangeExcel : IFlatbufferObject public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ChangeCount { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool IsLast { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType ChangeCostType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ChangeCostType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ChangeCostId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int ChangeCostAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -34,10 +34,10 @@ public struct EventContentChangeExcel : IFlatbufferObject long EventContentId = 0, long ChangeCount = 0, bool IsLast = false, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardId = 0, int RewardAmount = 0, - SCHALE.Common.FlatData.ParcelType ChangeCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ChangeCostType = SCHALE.Common.FlatData.ParcelType.None_, long ChangeCostId = 0, int ChangeCostAmount = 0) { builder.StartTable(9); @@ -116,10 +116,10 @@ public class EventContentChangeExcelT this.EventContentId = 0; this.ChangeCount = 0; this.IsLast = false; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardId = 0; this.RewardAmount = 0; - this.ChangeCostType = SCHALE.Common.FlatData.ParcelType.None; + this.ChangeCostType = SCHALE.Common.FlatData.ParcelType.None_; this.ChangeCostId = 0; this.ChangeCostAmount = 0; } diff --git a/SCHALE.Common/FlatData/EventContentCollectionExcel.cs b/SCHALE.Common/FlatData/EventContentCollectionExcel.cs index 31fd718..f9e987a 100644 --- a/SCHALE.Common/FlatData/EventContentCollectionExcel.cs +++ b/SCHALE.Common/FlatData/EventContentCollectionExcel.cs @@ -23,7 +23,7 @@ public struct EventContentCollectionExcel : IFlatbufferObject public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long GroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.CollectionUnlockType UnlockConditionType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.CollectionUnlockType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CollectionUnlockType.None; } } + public SCHALE.Common.FlatData.CollectionUnlockType UnlockConditionType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.CollectionUnlockType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CollectionUnlockType.None_; } } public long UnlockConditionParameter(int j) { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int UnlockConditionParameterLength { get { int o = __p.__offset(12); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T @@ -71,7 +71,7 @@ public struct EventContentCollectionExcel : IFlatbufferObject long Id = 0, long EventContentId = 0, long GroupId = 0, - SCHALE.Common.FlatData.CollectionUnlockType UnlockConditionType = SCHALE.Common.FlatData.CollectionUnlockType.None, + SCHALE.Common.FlatData.CollectionUnlockType UnlockConditionType = SCHALE.Common.FlatData.CollectionUnlockType.None_, VectorOffset UnlockConditionParameterOffset = default(VectorOffset), SCHALE.Common.FlatData.MultipleConditionCheckType MultipleConditionCheckType_ = SCHALE.Common.FlatData.MultipleConditionCheckType.And, long UnlockConditionCount = 0, @@ -204,7 +204,7 @@ public class EventContentCollectionExcelT this.Id = 0; this.EventContentId = 0; this.GroupId = 0; - this.UnlockConditionType = SCHALE.Common.FlatData.CollectionUnlockType.None; + this.UnlockConditionType = SCHALE.Common.FlatData.CollectionUnlockType.None_; this.UnlockConditionParameter = null; this.MultipleConditionCheckType_ = SCHALE.Common.FlatData.MultipleConditionCheckType.And; this.UnlockConditionCount = 0; diff --git a/SCHALE.Common/FlatData/EventContentLocationExcel.cs b/SCHALE.Common/FlatData/EventContentLocationExcel.cs index e44624c..d325851 100644 --- a/SCHALE.Common/FlatData/EventContentLocationExcel.cs +++ b/SCHALE.Common/FlatData/EventContentLocationExcel.cs @@ -31,10 +31,10 @@ public struct EventContentLocationExcel : IFlatbufferObject #endif public byte[] GetPrefabPathArray() { return __p.__vector_as_array(10); } public int LocationResetScheduleCount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType ScheduleEventPointCostParcelType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ScheduleEventPointCostParcelType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ScheduleEventPointCostParcelId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ScheduleEventPointCostParcelAmount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardParcelId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long InformationGroupId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -44,10 +44,10 @@ public struct EventContentLocationExcel : IFlatbufferObject uint LocalizeEtcId = 0, StringOffset PrefabPathOffset = default(StringOffset), int LocationResetScheduleCount = 0, - SCHALE.Common.FlatData.ParcelType ScheduleEventPointCostParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ScheduleEventPointCostParcelType = SCHALE.Common.FlatData.ParcelType.None_, long ScheduleEventPointCostParcelId = 0, long ScheduleEventPointCostParcelAmount = 0, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardParcelId = 0, long InformationGroupId = 0) { builder.StartTable(11); @@ -139,10 +139,10 @@ public class EventContentLocationExcelT this.LocalizeEtcId = 0; this.PrefabPath = null; this.LocationResetScheduleCount = 0; - this.ScheduleEventPointCostParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ScheduleEventPointCostParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.ScheduleEventPointCostParcelId = 0; this.ScheduleEventPointCostParcelAmount = 0; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardParcelId = 0; this.InformationGroupId = 0; } diff --git a/SCHALE.Common/FlatData/EventContentMeetupExcel.cs b/SCHALE.Common/FlatData/EventContentMeetupExcel.cs index 940c139..59e7ab2 100644 --- a/SCHALE.Common/FlatData/EventContentMeetupExcel.cs +++ b/SCHALE.Common/FlatData/EventContentMeetupExcel.cs @@ -24,7 +24,7 @@ public struct EventContentMeetupExcel : IFlatbufferObject public long EventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CharacterId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ConditionScenarioGroupId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.MeetupConditionType ConditionType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.MeetupConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MeetupConditionType.None; } } + public SCHALE.Common.FlatData.MeetupConditionType ConditionType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.MeetupConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MeetupConditionType.None_; } } public long ConditionParameter(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int ConditionParameterLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T @@ -33,16 +33,16 @@ public struct EventContentMeetupExcel : IFlatbufferObject public ArraySegment? GetConditionParameterBytes() { return __p.__vector_as_arraysegment(14); } #endif public long[] GetConditionParameterArray() { return __p.__vector_as_array(14); } - public SCHALE.Common.FlatData.MeetupConditionPrintType ConditionPrintType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.MeetupConditionPrintType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MeetupConditionPrintType.None; } } + public SCHALE.Common.FlatData.MeetupConditionPrintType ConditionPrintType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.MeetupConditionPrintType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MeetupConditionPrintType.None_; } } public static Offset CreateEventContentMeetupExcel(FlatBufferBuilder builder, long Id = 0, long EventContentId = 0, long CharacterId = 0, long ConditionScenarioGroupId = 0, - SCHALE.Common.FlatData.MeetupConditionType ConditionType = SCHALE.Common.FlatData.MeetupConditionType.None, + SCHALE.Common.FlatData.MeetupConditionType ConditionType = SCHALE.Common.FlatData.MeetupConditionType.None_, VectorOffset ConditionParameterOffset = default(VectorOffset), - SCHALE.Common.FlatData.MeetupConditionPrintType ConditionPrintType = SCHALE.Common.FlatData.MeetupConditionPrintType.None) { + SCHALE.Common.FlatData.MeetupConditionPrintType ConditionPrintType = SCHALE.Common.FlatData.MeetupConditionPrintType.None_) { builder.StartTable(7); EventContentMeetupExcel.AddConditionScenarioGroupId(builder, ConditionScenarioGroupId); EventContentMeetupExcel.AddCharacterId(builder, CharacterId); @@ -121,9 +121,9 @@ public class EventContentMeetupExcelT this.EventContentId = 0; this.CharacterId = 0; this.ConditionScenarioGroupId = 0; - this.ConditionType = SCHALE.Common.FlatData.MeetupConditionType.None; + this.ConditionType = SCHALE.Common.FlatData.MeetupConditionType.None_; this.ConditionParameter = null; - this.ConditionPrintType = SCHALE.Common.FlatData.MeetupConditionPrintType.None; + this.ConditionPrintType = SCHALE.Common.FlatData.MeetupConditionPrintType.None_; } } diff --git a/SCHALE.Common/FlatData/EventContentMissionExcel.cs b/SCHALE.Common/FlatData/EventContentMissionExcel.cs index b9daaa3..dc7de61 100644 --- a/SCHALE.Common/FlatData/EventContentMissionExcel.cs +++ b/SCHALE.Common/FlatData/EventContentMissionExcel.cs @@ -32,7 +32,7 @@ public struct EventContentMissionExcel : IFlatbufferObject public byte[] GetGroupNameArray() { return __p.__vector_as_array(10); } public SCHALE.Common.FlatData.MissionCategory Category { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.MissionCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCategory.Challenge; } } public uint Description { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - public SCHALE.Common.FlatData.MissionResetType ResetType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.MissionResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionResetType.None; } } + public SCHALE.Common.FlatData.MissionResetType ResetType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.MissionResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionResetType.None_; } } public SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.MissionToastDisplayConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; } } public string ToastImagePath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -56,7 +56,7 @@ public struct EventContentMissionExcel : IFlatbufferObject public string ShortcutUI(int j) { int o = __p.__offset(32); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int ShortcutUILength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } public long ChallengeStageShortcut { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.MissionCompleteConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCompleteConditionType.None; } } + public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.MissionCompleteConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCompleteConditionType.None_; } } public bool IsCompleteExtensionTime { get { int o = __p.__offset(38); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long CompleteConditionCount { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CompleteConditionParameter(int j) { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } @@ -147,7 +147,7 @@ public struct EventContentMissionExcel : IFlatbufferObject StringOffset GroupNameOffset = default(StringOffset), SCHALE.Common.FlatData.MissionCategory Category = SCHALE.Common.FlatData.MissionCategory.Challenge, uint Description = 0, - SCHALE.Common.FlatData.MissionResetType ResetType = SCHALE.Common.FlatData.MissionResetType.None, + SCHALE.Common.FlatData.MissionResetType ResetType = SCHALE.Common.FlatData.MissionResetType.None_, SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always, StringOffset ToastImagePathOffset = default(StringOffset), bool ViewFlag = false, @@ -157,7 +157,7 @@ public struct EventContentMissionExcel : IFlatbufferObject long AccountLevel = 0, VectorOffset ShortcutUIOffset = default(VectorOffset), long ChallengeStageShortcut = 0, - SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None, + SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None_, bool IsCompleteExtensionTime = false, long CompleteConditionCount = 0, VectorOffset CompleteConditionParameterOffset = default(VectorOffset), @@ -480,7 +480,7 @@ public class EventContentMissionExcelT this.GroupName = null; this.Category = SCHALE.Common.FlatData.MissionCategory.Challenge; this.Description = 0; - this.ResetType = SCHALE.Common.FlatData.MissionResetType.None; + this.ResetType = SCHALE.Common.FlatData.MissionResetType.None_; this.ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; this.ToastImagePath = null; this.ViewFlag = false; @@ -490,7 +490,7 @@ public class EventContentMissionExcelT this.AccountLevel = 0; this.ShortcutUI = null; this.ChallengeStageShortcut = 0; - this.CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None; + this.CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None_; this.IsCompleteExtensionTime = false; this.CompleteConditionCount = 0; this.CompleteConditionParameter = null; diff --git a/SCHALE.Common/FlatData/EventContentReleaseType.cs b/SCHALE.Common/FlatData/EventContentReleaseType.cs index e0d0872..33d7962 100644 --- a/SCHALE.Common/FlatData/EventContentReleaseType.cs +++ b/SCHALE.Common/FlatData/EventContentReleaseType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum EventContentReleaseType : int { - None = 0, + None_ = 0, Permanent = 1, MainStory = 2, PermanentSpecialOperate = 3, diff --git a/SCHALE.Common/FlatData/EventContentScenarioConditionType.cs b/SCHALE.Common/FlatData/EventContentScenarioConditionType.cs index 741a5e8..d32c0fc 100644 --- a/SCHALE.Common/FlatData/EventContentScenarioConditionType.cs +++ b/SCHALE.Common/FlatData/EventContentScenarioConditionType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum EventContentScenarioConditionType : int { - None = 0, + None_ = 0, DayAfter = 1, EventPoint = 2, }; diff --git a/SCHALE.Common/FlatData/EventContentScenarioExcel.cs b/SCHALE.Common/FlatData/EventContentScenarioExcel.cs index 4f547b9..9eda4c8 100644 --- a/SCHALE.Common/FlatData/EventContentScenarioExcel.cs +++ b/SCHALE.Common/FlatData/EventContentScenarioExcel.cs @@ -36,7 +36,7 @@ public struct EventContentScenarioExcel : IFlatbufferObject public ArraySegment? GetScenarioGroupIdBytes() { return __p.__vector_as_arraysegment(20); } #endif public long[] GetScenarioGroupIdArray() { return __p.__vector_as_array(20); } - public SCHALE.Common.FlatData.EventContentScenarioConditionType ScenarioConditionType { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.EventContentScenarioConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentScenarioConditionType.None; } } + public SCHALE.Common.FlatData.EventContentScenarioConditionType ScenarioConditionType { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.EventContentScenarioConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentScenarioConditionType.None_; } } public long ConditionAmount { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ConditionEventContentId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ClearedScenarioGroupId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -49,7 +49,7 @@ public struct EventContentScenarioExcel : IFlatbufferObject #endif public byte[] GetRecollectionResourceArray() { return __p.__vector_as_array(32); } public bool IsRecollectionHorizon { get { int o = __p.__offset(34); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.ParcelType CostParcelType { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType CostParcelType { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long CostId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int CostAmount { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } @@ -87,14 +87,14 @@ public struct EventContentScenarioExcel : IFlatbufferObject bool IsMeetup = false, bool IsOmnibus = false, VectorOffset ScenarioGroupIdOffset = default(VectorOffset), - SCHALE.Common.FlatData.EventContentScenarioConditionType ScenarioConditionType = SCHALE.Common.FlatData.EventContentScenarioConditionType.None, + SCHALE.Common.FlatData.EventContentScenarioConditionType ScenarioConditionType = SCHALE.Common.FlatData.EventContentScenarioConditionType.None_, long ConditionAmount = 0, long ConditionEventContentId = 0, long ClearedScenarioGroupId = 0, uint RecollectionSummaryLocalizeScenarioId = 0, StringOffset RecollectionResourceOffset = default(StringOffset), bool IsRecollectionHorizon = false, - SCHALE.Common.FlatData.ParcelType CostParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType CostParcelType = SCHALE.Common.FlatData.ParcelType.None_, long CostId = 0, int CostAmount = 0, VectorOffset RewardParcelTypeOffset = default(VectorOffset), @@ -292,14 +292,14 @@ public class EventContentScenarioExcelT this.IsMeetup = false; this.IsOmnibus = false; this.ScenarioGroupId = null; - this.ScenarioConditionType = SCHALE.Common.FlatData.EventContentScenarioConditionType.None; + this.ScenarioConditionType = SCHALE.Common.FlatData.EventContentScenarioConditionType.None_; this.ConditionAmount = 0; this.ConditionEventContentId = 0; this.ClearedScenarioGroupId = 0; this.RecollectionSummaryLocalizeScenarioId = 0; this.RecollectionResource = null; this.IsRecollectionHorizon = false; - this.CostParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.CostParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.CostId = 0; this.CostAmount = 0; this.RewardParcelType = null; diff --git a/SCHALE.Common/FlatData/EventContentSeasonExcel.cs b/SCHALE.Common/FlatData/EventContentSeasonExcel.cs index 6727cf8..3cd9c3d 100644 --- a/SCHALE.Common/FlatData/EventContentSeasonExcel.cs +++ b/SCHALE.Common/FlatData/EventContentSeasonExcel.cs @@ -34,7 +34,7 @@ public struct EventContentSeasonExcel : IFlatbufferObject public SCHALE.Common.FlatData.OpenConditionContent OpenConditionContent_ { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.OpenConditionContent)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.OpenConditionContent.Shop; } } public bool EventDisplay { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public int IconOrder { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.SubEventType SubEventType_ { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.SubEventType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SubEventType.None; } } + public SCHALE.Common.FlatData.SubEventType SubEventType_ { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.SubEventType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SubEventType.None_; } } public bool SubEvent { get { int o = __p.__offset(22); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long EventItemId { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long MainEventId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -155,7 +155,7 @@ public struct EventContentSeasonExcel : IFlatbufferObject #endif public byte[] GetCardBgImagePathArray() { return __p.__vector_as_array(64); } public bool EventAssist { get { int o = __p.__offset(66); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.EventContentReleaseType EventContentReleaseType_ { get { int o = __p.__offset(68); return o != 0 ? (SCHALE.Common.FlatData.EventContentReleaseType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentReleaseType.None; } } + public SCHALE.Common.FlatData.EventContentReleaseType EventContentReleaseType_ { get { int o = __p.__offset(68); return o != 0 ? (SCHALE.Common.FlatData.EventContentReleaseType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentReleaseType.None_; } } public long EventContentStageRewardIdPermanent { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.RewardTag RewardTagPermanent { get { int o = __p.__offset(72); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } public long MiniEventShortCutScenarioModeId { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -170,7 +170,7 @@ public struct EventContentSeasonExcel : IFlatbufferObject SCHALE.Common.FlatData.OpenConditionContent OpenConditionContent_ = SCHALE.Common.FlatData.OpenConditionContent.Shop, bool EventDisplay = false, int IconOrder = 0, - SCHALE.Common.FlatData.SubEventType SubEventType_ = SCHALE.Common.FlatData.SubEventType.None, + SCHALE.Common.FlatData.SubEventType SubEventType_ = SCHALE.Common.FlatData.SubEventType.None_, bool SubEvent = false, long EventItemId = 0, long MainEventId = 0, @@ -194,7 +194,7 @@ public struct EventContentSeasonExcel : IFlatbufferObject StringOffset MinigameMissionBgImagePathOffset = default(StringOffset), StringOffset CardBgImagePathOffset = default(StringOffset), bool EventAssist = false, - SCHALE.Common.FlatData.EventContentReleaseType EventContentReleaseType_ = SCHALE.Common.FlatData.EventContentReleaseType.None, + SCHALE.Common.FlatData.EventContentReleaseType EventContentReleaseType_ = SCHALE.Common.FlatData.EventContentReleaseType.None_, long EventContentStageRewardIdPermanent = 0, SCHALE.Common.FlatData.RewardTag RewardTagPermanent = SCHALE.Common.FlatData.RewardTag.Default, long MiniEventShortCutScenarioModeId = 0, @@ -447,7 +447,7 @@ public class EventContentSeasonExcelT this.OpenConditionContent_ = SCHALE.Common.FlatData.OpenConditionContent.Shop; this.EventDisplay = false; this.IconOrder = 0; - this.SubEventType_ = SCHALE.Common.FlatData.SubEventType.None; + this.SubEventType_ = SCHALE.Common.FlatData.SubEventType.None_; this.SubEvent = false; this.EventItemId = 0; this.MainEventId = 0; @@ -471,7 +471,7 @@ public class EventContentSeasonExcelT this.MinigameMissionBgImagePath = null; this.CardBgImagePath = null; this.EventAssist = false; - this.EventContentReleaseType_ = SCHALE.Common.FlatData.EventContentReleaseType.None; + this.EventContentReleaseType_ = SCHALE.Common.FlatData.EventContentReleaseType.None_; this.EventContentStageRewardIdPermanent = 0; this.RewardTagPermanent = SCHALE.Common.FlatData.RewardTag.Default; this.MiniEventShortCutScenarioModeId = 0; diff --git a/SCHALE.Common/FlatData/EventContentShopExcel.cs b/SCHALE.Common/FlatData/EventContentShopExcel.cs index 278e587..1a9c711 100644 --- a/SCHALE.Common/FlatData/EventContentShopExcel.cs +++ b/SCHALE.Common/FlatData/EventContentShopExcel.cs @@ -50,7 +50,7 @@ public struct EventContentShopExcel : IFlatbufferObject public byte[] GetSalePeriodToArray() { return __p.__vector_as_array(20); } public long PurchaseCooltimeMin { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PurchaseCountLimit { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType_ { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.PurchaseCountResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseCountResetType.None; } } + public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType_ { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.PurchaseCountResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseCountResetType.None_; } } public string BuyReportEventName { get { int o = __p.__offset(28); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBuyReportEventNameBytes() { return __p.__vector_as_span(28, 1); } @@ -72,7 +72,7 @@ public struct EventContentShopExcel : IFlatbufferObject StringOffset SalePeriodToOffset = default(StringOffset), long PurchaseCooltimeMin = 0, long PurchaseCountLimit = 0, - SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType_ = SCHALE.Common.FlatData.PurchaseCountResetType.None, + SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType_ = SCHALE.Common.FlatData.PurchaseCountResetType.None_, StringOffset BuyReportEventNameOffset = default(StringOffset), bool RestrictBuyWhenInventoryFull = false) { builder.StartTable(14); @@ -198,7 +198,7 @@ public class EventContentShopExcelT this.SalePeriodTo = null; this.PurchaseCooltimeMin = 0; this.PurchaseCountLimit = 0; - this.PurchaseCountResetType_ = SCHALE.Common.FlatData.PurchaseCountResetType.None; + this.PurchaseCountResetType_ = SCHALE.Common.FlatData.PurchaseCountResetType.None_; this.BuyReportEventName = null; this.RestrictBuyWhenInventoryFull = false; } diff --git a/SCHALE.Common/FlatData/EventContentStageExcel.cs b/SCHALE.Common/FlatData/EventContentStageExcel.cs index b081c34..5ec18c2 100644 --- a/SCHALE.Common/FlatData/EventContentStageExcel.cs +++ b/SCHALE.Common/FlatData/EventContentStageExcel.cs @@ -29,7 +29,7 @@ public struct EventContentStageExcel : IFlatbufferObject #endif public byte[] GetNameArray() { return __p.__vector_as_array(6); } public long EventContentId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None_; } } public string StageNumber { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStageNumberBytes() { return __p.__vector_as_span(12, 1); } @@ -47,7 +47,7 @@ public struct EventContentStageExcel : IFlatbufferObject public SCHALE.Common.FlatData.EventContentType OpenConditionContentType { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.EventContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentType.Stage; } } public long OpenConditionContentId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long BattleDuration { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long StageEnterCostId { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int StageEnterCostAmount { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int StageEnterEchelonCount { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -94,9 +94,9 @@ public struct EventContentStageExcel : IFlatbufferObject public ArraySegment? GetBgmIdBytes() { return __p.__vector_as_arraysegment(62); } #endif public byte[] GetBgmIdArray() { return __p.__vector_as_array(62); } - public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ { get { int o = __p.__offset(64); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None; } } + public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ { get { int o = __p.__offset(64); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None_; } } public long GroundID { get { int o = __p.__offset(66); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(68); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(68); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None_; } } public long BGMId { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool InstantClear { get { int o = __p.__offset(72); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long BuffContentId { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -126,7 +126,7 @@ public struct EventContentStageExcel : IFlatbufferObject long Id = 0, StringOffset NameOffset = default(StringOffset), long EventContentId = 0, - SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None, + SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None_, StringOffset StageNumberOffset = default(StringOffset), int StageDisplay = 0, long PrevStageId = 0, @@ -138,7 +138,7 @@ public struct EventContentStageExcel : IFlatbufferObject SCHALE.Common.FlatData.EventContentType OpenConditionContentType = SCHALE.Common.FlatData.EventContentType.Stage, long OpenConditionContentId = 0, long BattleDuration = 0, - SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_, long StageEnterCostId = 0, int StageEnterCostAmount = 0, int StageEnterEchelonCount = 0, @@ -153,9 +153,9 @@ public struct EventContentStageExcel : IFlatbufferObject SCHALE.Common.FlatData.StageTopography StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street, int RecommandLevel = 0, StringOffset BgmIdOffset = default(StringOffset), - SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None, + SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None_, long GroundID = 0, - SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, + SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None_, long BGMId = 0, bool InstantClear = false, long BuffContentId = 0, @@ -461,7 +461,7 @@ public class EventContentStageExcelT this.Id = 0; this.Name = null; this.EventContentId = 0; - this.StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None; + this.StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None_; this.StageNumber = null; this.StageDisplay = 0; this.PrevStageId = 0; @@ -473,7 +473,7 @@ public class EventContentStageExcelT this.OpenConditionContentType = SCHALE.Common.FlatData.EventContentType.Stage; this.OpenConditionContentId = 0; this.BattleDuration = 0; - this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.StageEnterCostId = 0; this.StageEnterCostAmount = 0; this.StageEnterEchelonCount = 0; @@ -488,9 +488,9 @@ public class EventContentStageExcelT this.StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street; this.RecommandLevel = 0; this.BgmId = null; - this.StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None; + this.StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None_; this.GroundID = 0; - this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; + this.ContentType_ = SCHALE.Common.FlatData.ContentType.None_; this.BGMId = 0; this.InstantClear = false; this.BuffContentId = 0; diff --git a/SCHALE.Common/FlatData/EventContentStageRewardExcel.cs b/SCHALE.Common/FlatData/EventContentStageRewardExcel.cs index a4fe859..67dbf79 100644 --- a/SCHALE.Common/FlatData/EventContentStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/EventContentStageRewardExcel.cs @@ -23,7 +23,7 @@ public struct EventContentStageRewardExcel : IFlatbufferObject public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.RewardTag RewardTag_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } public int RewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } @@ -32,7 +32,7 @@ public struct EventContentStageRewardExcel : IFlatbufferObject long GroupId = 0, SCHALE.Common.FlatData.RewardTag RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default, int RewardProb = 0, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardId = 0, int RewardAmount = 0, bool IsDisplayed = false) { @@ -102,7 +102,7 @@ public class EventContentStageRewardExcelT this.GroupId = 0; this.RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default; this.RewardProb = 0; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardId = 0; this.RewardAmount = 0; this.IsDisplayed = false; diff --git a/SCHALE.Common/FlatData/EventContentTreasureRewardExcel.cs b/SCHALE.Common/FlatData/EventContentTreasureRewardExcel.cs index 009477d..542124c 100644 --- a/SCHALE.Common/FlatData/EventContentTreasureRewardExcel.cs +++ b/SCHALE.Common/FlatData/EventContentTreasureRewardExcel.cs @@ -69,6 +69,13 @@ public struct EventContentTreasureRewardExcel : IFlatbufferObject public ArraySegment? GetTreasureSmallImagePathBytes() { return __p.__vector_as_arraysegment(22); } #endif public byte[] GetTreasureSmallImagePathArray() { return __p.__vector_as_array(22); } + public string TreasureSizeIconPath { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetTreasureSizeIconPathBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetTreasureSizeIconPathBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetTreasureSizeIconPathArray() { return __p.__vector_as_array(24); } public static Offset CreateEventContentTreasureRewardExcel(FlatBufferBuilder builder, long Id = 0, @@ -80,9 +87,11 @@ public struct EventContentTreasureRewardExcel : IFlatbufferObject VectorOffset RewardParcelIdOffset = default(VectorOffset), VectorOffset RewardParcelAmountOffset = default(VectorOffset), StringOffset CellUnderImagePathOffset = default(StringOffset), - StringOffset TreasureSmallImagePathOffset = default(StringOffset)) { - builder.StartTable(10); + StringOffset TreasureSmallImagePathOffset = default(StringOffset), + StringOffset TreasureSizeIconPathOffset = default(StringOffset)) { + builder.StartTable(11); EventContentTreasureRewardExcel.AddId(builder, Id); + EventContentTreasureRewardExcel.AddTreasureSizeIconPath(builder, TreasureSizeIconPathOffset); EventContentTreasureRewardExcel.AddTreasureSmallImagePath(builder, TreasureSmallImagePathOffset); EventContentTreasureRewardExcel.AddCellUnderImagePath(builder, CellUnderImagePathOffset); EventContentTreasureRewardExcel.AddRewardParcelAmount(builder, RewardParcelAmountOffset); @@ -95,7 +104,7 @@ public struct EventContentTreasureRewardExcel : IFlatbufferObject return EventContentTreasureRewardExcel.EndEventContentTreasureRewardExcel(builder); } - public static void StartEventContentTreasureRewardExcel(FlatBufferBuilder builder) { builder.StartTable(10); } + public static void StartEventContentTreasureRewardExcel(FlatBufferBuilder builder) { builder.StartTable(11); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } public static void AddLocalizeCodeID(FlatBufferBuilder builder, StringOffset localizeCodeIDOffset) { builder.AddOffset(1, localizeCodeIDOffset.Value, 0); } public static void AddCellUnderImageWidth(FlatBufferBuilder builder, int cellUnderImageWidth) { builder.AddInt(2, cellUnderImageWidth, 0); } @@ -121,6 +130,7 @@ public struct EventContentTreasureRewardExcel : IFlatbufferObject public static void StartRewardParcelAmountVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddCellUnderImagePath(FlatBufferBuilder builder, StringOffset cellUnderImagePathOffset) { builder.AddOffset(8, cellUnderImagePathOffset.Value, 0); } public static void AddTreasureSmallImagePath(FlatBufferBuilder builder, StringOffset treasureSmallImagePathOffset) { builder.AddOffset(9, treasureSmallImagePathOffset.Value, 0); } + public static void AddTreasureSizeIconPath(FlatBufferBuilder builder, StringOffset treasureSizeIconPathOffset) { builder.AddOffset(10, treasureSizeIconPathOffset.Value, 0); } public static Offset EndEventContentTreasureRewardExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); @@ -145,6 +155,7 @@ public struct EventContentTreasureRewardExcel : IFlatbufferObject for (var _j = 0; _j < this.RewardParcelAmountLength; ++_j) {_o.RewardParcelAmount.Add(TableEncryptionService.Convert(this.RewardParcelAmount(_j), key));} _o.CellUnderImagePath = TableEncryptionService.Convert(this.CellUnderImagePath, key); _o.TreasureSmallImagePath = TableEncryptionService.Convert(this.TreasureSmallImagePath, key); + _o.TreasureSizeIconPath = TableEncryptionService.Convert(this.TreasureSizeIconPath, key); } public static Offset Pack(FlatBufferBuilder builder, EventContentTreasureRewardExcelT _o) { if (_o == null) return default(Offset); @@ -166,6 +177,7 @@ public struct EventContentTreasureRewardExcel : IFlatbufferObject } var _CellUnderImagePath = _o.CellUnderImagePath == null ? default(StringOffset) : builder.CreateString(_o.CellUnderImagePath); var _TreasureSmallImagePath = _o.TreasureSmallImagePath == null ? default(StringOffset) : builder.CreateString(_o.TreasureSmallImagePath); + var _TreasureSizeIconPath = _o.TreasureSizeIconPath == null ? default(StringOffset) : builder.CreateString(_o.TreasureSizeIconPath); return CreateEventContentTreasureRewardExcel( builder, _o.Id, @@ -177,7 +189,8 @@ public struct EventContentTreasureRewardExcel : IFlatbufferObject _RewardParcelId, _RewardParcelAmount, _CellUnderImagePath, - _TreasureSmallImagePath); + _TreasureSmallImagePath, + _TreasureSizeIconPath); } } @@ -193,6 +206,7 @@ public class EventContentTreasureRewardExcelT public List RewardParcelAmount { get; set; } public string CellUnderImagePath { get; set; } public string TreasureSmallImagePath { get; set; } + public string TreasureSizeIconPath { get; set; } public EventContentTreasureRewardExcelT() { this.Id = 0; @@ -205,6 +219,7 @@ public class EventContentTreasureRewardExcelT this.RewardParcelAmount = null; this.CellUnderImagePath = null; this.TreasureSmallImagePath = null; + this.TreasureSizeIconPath = null; } } @@ -224,6 +239,7 @@ static public class EventContentTreasureRewardExcelVerify && verifier.VerifyVectorOfData(tablePos, 18 /*RewardParcelAmount*/, 8 /*long*/, false) && verifier.VerifyString(tablePos, 20 /*CellUnderImagePath*/, false) && verifier.VerifyString(tablePos, 22 /*TreasureSmallImagePath*/, false) + && verifier.VerifyString(tablePos, 24 /*TreasureSizeIconPath*/, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/ExternalBTTrigger.cs b/SCHALE.Common/FlatData/ExternalBTTrigger.cs index ed0b5d3..ca688ec 100644 --- a/SCHALE.Common/FlatData/ExternalBTTrigger.cs +++ b/SCHALE.Common/FlatData/ExternalBTTrigger.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ExternalBTTrigger : int { - None = 0, + None_ = 0, HPUnder = 1, ApplySkillEffectCategory = 2, HaveNextExSkillActiveGauge = 3, diff --git a/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcel.cs b/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcel.cs index 7affc03..0e98495 100644 --- a/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcel.cs +++ b/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcel.cs @@ -21,8 +21,8 @@ public struct FarmingDungeonLocationManageExcel : IFlatbufferObject public FarmingDungeonLocationManageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long FarmingDungeonLocationId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } - public SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDungeonType.None; } } + public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None_; } } + public SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDungeonType.None_; } } public SCHALE.Common.FlatData.SchoolDungeonType SchoolDungeonType_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.SchoolDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; } } public long Order { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string OpenStartDateTime { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } @@ -51,8 +51,8 @@ public struct FarmingDungeonLocationManageExcel : IFlatbufferObject public static Offset CreateFarmingDungeonLocationManageExcel(FlatBufferBuilder builder, long FarmingDungeonLocationId = 0, - SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, - SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType_ = SCHALE.Common.FlatData.WeekDungeonType.None, + SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None_, + SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType_ = SCHALE.Common.FlatData.WeekDungeonType.None_, SCHALE.Common.FlatData.SchoolDungeonType SchoolDungeonType_ = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA, long Order = 0, StringOffset OpenStartDateTimeOffset = default(StringOffset), @@ -142,8 +142,8 @@ public class FarmingDungeonLocationManageExcelT public FarmingDungeonLocationManageExcelT() { this.FarmingDungeonLocationId = 0; - this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; - this.WeekDungeonType_ = SCHALE.Common.FlatData.WeekDungeonType.None; + this.ContentType_ = SCHALE.Common.FlatData.ContentType.None_; + this.WeekDungeonType_ = SCHALE.Common.FlatData.WeekDungeonType.None_; this.SchoolDungeonType_ = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; this.Order = 0; this.OpenStartDateTime = null; diff --git a/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcelTable.cs b/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcelTable.cs deleted file mode 100644 index 1ec1c0e..0000000 --- a/SCHALE.Common/FlatData/FarmingDungeonLocationManageExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct FarmingDungeonLocationManageExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static FarmingDungeonLocationManageExcelTable GetRootAsFarmingDungeonLocationManageExcelTable(ByteBuffer _bb) { return GetRootAsFarmingDungeonLocationManageExcelTable(_bb, new FarmingDungeonLocationManageExcelTable()); } - public static FarmingDungeonLocationManageExcelTable GetRootAsFarmingDungeonLocationManageExcelTable(ByteBuffer _bb, FarmingDungeonLocationManageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public FarmingDungeonLocationManageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel?)(new SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateFarmingDungeonLocationManageExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - FarmingDungeonLocationManageExcelTable.AddDataList(builder, DataListOffset); - return FarmingDungeonLocationManageExcelTable.EndFarmingDungeonLocationManageExcelTable(builder); - } - - public static void StartFarmingDungeonLocationManageExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndFarmingDungeonLocationManageExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public FarmingDungeonLocationManageExcelTableT UnPack() { - var _o = new FarmingDungeonLocationManageExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(FarmingDungeonLocationManageExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("FarmingDungeonLocationManageExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, FarmingDungeonLocationManageExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FarmingDungeonLocationManageExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateFarmingDungeonLocationManageExcelTable( - builder, - _DataList); - } -} - -public class FarmingDungeonLocationManageExcelTableT -{ - public List DataList { get; set; } - - public FarmingDungeonLocationManageExcelTableT() { - this.DataList = null; - } -} - - -static public class FarmingDungeonLocationManageExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FarmingDungeonLocationManageExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/FavorLevelExcelTable.cs b/SCHALE.Common/FlatData/FavorLevelExcelTable.cs deleted file mode 100644 index fa67722..0000000 --- a/SCHALE.Common/FlatData/FavorLevelExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct FavorLevelExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static FavorLevelExcelTable GetRootAsFavorLevelExcelTable(ByteBuffer _bb) { return GetRootAsFavorLevelExcelTable(_bb, new FavorLevelExcelTable()); } - public static FavorLevelExcelTable GetRootAsFavorLevelExcelTable(ByteBuffer _bb, FavorLevelExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public FavorLevelExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.FavorLevelExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FavorLevelExcel?)(new SCHALE.Common.FlatData.FavorLevelExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateFavorLevelExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - FavorLevelExcelTable.AddDataList(builder, DataListOffset); - return FavorLevelExcelTable.EndFavorLevelExcelTable(builder); - } - - public static void StartFavorLevelExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndFavorLevelExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public FavorLevelExcelTableT UnPack() { - var _o = new FavorLevelExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(FavorLevelExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("FavorLevelExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, FavorLevelExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FavorLevelExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateFavorLevelExcelTable( - builder, - _DataList); - } -} - -public class FavorLevelExcelTableT -{ - public List DataList { get; set; } - - public FavorLevelExcelTableT() { - this.DataList = null; - } -} - - -static public class FavorLevelExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FavorLevelExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/FavorLevelRewardExcelTable.cs b/SCHALE.Common/FlatData/FavorLevelRewardExcelTable.cs deleted file mode 100644 index 128ceee..0000000 --- a/SCHALE.Common/FlatData/FavorLevelRewardExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct FavorLevelRewardExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static FavorLevelRewardExcelTable GetRootAsFavorLevelRewardExcelTable(ByteBuffer _bb) { return GetRootAsFavorLevelRewardExcelTable(_bb, new FavorLevelRewardExcelTable()); } - public static FavorLevelRewardExcelTable GetRootAsFavorLevelRewardExcelTable(ByteBuffer _bb, FavorLevelRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public FavorLevelRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.FavorLevelRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FavorLevelRewardExcel?)(new SCHALE.Common.FlatData.FavorLevelRewardExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateFavorLevelRewardExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - FavorLevelRewardExcelTable.AddDataList(builder, DataListOffset); - return FavorLevelRewardExcelTable.EndFavorLevelRewardExcelTable(builder); - } - - public static void StartFavorLevelRewardExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndFavorLevelRewardExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public FavorLevelRewardExcelTableT UnPack() { - var _o = new FavorLevelRewardExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(FavorLevelRewardExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("FavorLevelRewardExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, FavorLevelRewardExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FavorLevelRewardExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateFavorLevelRewardExcelTable( - builder, - _DataList); - } -} - -public class FavorLevelRewardExcelTableT -{ - public List DataList { get; set; } - - public FavorLevelRewardExcelTableT() { - this.DataList = null; - } -} - - -static public class FavorLevelRewardExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FavorLevelRewardExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/FieldContentStageExcel.cs b/SCHALE.Common/FlatData/FieldContentStageExcel.cs index 7b0ab69..f858fb4 100644 --- a/SCHALE.Common/FlatData/FieldContentStageExcel.cs +++ b/SCHALE.Common/FlatData/FieldContentStageExcel.cs @@ -24,7 +24,7 @@ public struct FieldContentStageExcel : IFlatbufferObject public long SeasonId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long AreaId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long GroupId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None_; } } public string Name { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetNameBytes() { return __p.__vector_as_span(14, 1); } @@ -33,7 +33,7 @@ public struct FieldContentStageExcel : IFlatbufferObject #endif public byte[] GetNameArray() { return __p.__vector_as_array(14); } public long BattleDuration { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long StageEnterCostId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int StageEnterCostAmount { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.StageTopography StageTopography_ { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } } @@ -49,10 +49,10 @@ public struct FieldContentStageExcel : IFlatbufferObject long SeasonId = 0, long AreaId = 0, long GroupId = 0, - SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None, + SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None_, StringOffset NameOffset = default(StringOffset), long BattleDuration = 0, - SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_, long StageEnterCostId = 0, int StageEnterCostAmount = 0, SCHALE.Common.FlatData.StageTopography StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street, @@ -180,10 +180,10 @@ public class FieldContentStageExcelT this.SeasonId = 0; this.AreaId = 0; this.GroupId = 0; - this.StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None; + this.StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None_; this.Name = null; this.BattleDuration = 0; - this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.StageEnterCostId = 0; this.StageEnterCostAmount = 0; this.StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street; diff --git a/SCHALE.Common/FlatData/FieldContentStageRewardExcel.cs b/SCHALE.Common/FlatData/FieldContentStageRewardExcel.cs index 82a3afb..616f9e1 100644 --- a/SCHALE.Common/FlatData/FieldContentStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/FieldContentStageRewardExcel.cs @@ -23,7 +23,7 @@ public struct FieldContentStageRewardExcel : IFlatbufferObject public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.RewardTag RewardTag_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } public int RewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } @@ -32,7 +32,7 @@ public struct FieldContentStageRewardExcel : IFlatbufferObject long GroupId = 0, SCHALE.Common.FlatData.RewardTag RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default, int RewardProb = 0, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardId = 0, int RewardAmount = 0, bool IsDisplayed = false) { @@ -102,7 +102,7 @@ public class FieldContentStageRewardExcelT this.GroupId = 0; this.RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default; this.RewardProb = 0; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardId = 0; this.RewardAmount = 0; this.IsDisplayed = false; diff --git a/SCHALE.Common/FlatData/FieldDateExcel.cs b/SCHALE.Common/FlatData/FieldDateExcel.cs index cc82031..3c3858e 100644 --- a/SCHALE.Common/FlatData/FieldDateExcel.cs +++ b/SCHALE.Common/FlatData/FieldDateExcel.cs @@ -20,8 +20,8 @@ public struct FieldDateExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public FieldDateExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public long UniqueId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long SeasonId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long SeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long UniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long OpenDate { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string DateLocalizeKey { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -46,8 +46,8 @@ public struct FieldDateExcel : IFlatbufferObject public float DateResultSpineOffsetX { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } public static Offset CreateFieldDateExcel(FlatBufferBuilder builder, - long UniqueId = 0, long SeasonId = 0, + long UniqueId = 0, long OpenDate = 0, StringOffset DateLocalizeKeyOffset = default(StringOffset), long EntrySceneId = 0, @@ -64,8 +64,8 @@ public struct FieldDateExcel : IFlatbufferObject FieldDateExcel.AddStartConditionId(builder, StartConditionId); FieldDateExcel.AddEntrySceneId(builder, EntrySceneId); FieldDateExcel.AddOpenDate(builder, OpenDate); - FieldDateExcel.AddSeasonId(builder, SeasonId); FieldDateExcel.AddUniqueId(builder, UniqueId); + FieldDateExcel.AddSeasonId(builder, SeasonId); FieldDateExcel.AddDateResultSpineOffsetX(builder, DateResultSpineOffsetX); FieldDateExcel.AddDateResultSpinePath(builder, DateResultSpinePathOffset); FieldDateExcel.AddEndConditionType(builder, EndConditionType); @@ -75,8 +75,8 @@ public struct FieldDateExcel : IFlatbufferObject } public static void StartFieldDateExcel(FlatBufferBuilder builder) { builder.StartTable(12); } - public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } - public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(1, seasonId, 0); } + public static void AddSeasonId(FlatBufferBuilder builder, long seasonId) { builder.AddLong(0, seasonId, 0); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(1, uniqueId, 0); } public static void AddOpenDate(FlatBufferBuilder builder, long openDate) { builder.AddLong(2, openDate, 0); } public static void AddDateLocalizeKey(FlatBufferBuilder builder, StringOffset dateLocalizeKeyOffset) { builder.AddOffset(3, dateLocalizeKeyOffset.Value, 0); } public static void AddEntrySceneId(FlatBufferBuilder builder, long entrySceneId) { builder.AddLong(4, entrySceneId, 0); } @@ -98,8 +98,8 @@ public struct FieldDateExcel : IFlatbufferObject } public void UnPackTo(FieldDateExcelT _o) { byte[] key = TableEncryptionService.CreateKey("FieldDate"); - _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); _o.SeasonId = TableEncryptionService.Convert(this.SeasonId, key); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); _o.OpenDate = TableEncryptionService.Convert(this.OpenDate, key); _o.DateLocalizeKey = TableEncryptionService.Convert(this.DateLocalizeKey, key); _o.EntrySceneId = TableEncryptionService.Convert(this.EntrySceneId, key); @@ -117,8 +117,8 @@ public struct FieldDateExcel : IFlatbufferObject var _DateResultSpinePath = _o.DateResultSpinePath == null ? default(StringOffset) : builder.CreateString(_o.DateResultSpinePath); return CreateFieldDateExcel( builder, - _o.UniqueId, _o.SeasonId, + _o.UniqueId, _o.OpenDate, _DateLocalizeKey, _o.EntrySceneId, @@ -134,8 +134,8 @@ public struct FieldDateExcel : IFlatbufferObject public class FieldDateExcelT { - public long UniqueId { get; set; } public long SeasonId { get; set; } + public long UniqueId { get; set; } public long OpenDate { get; set; } public string DateLocalizeKey { get; set; } public long EntrySceneId { get; set; } @@ -148,8 +148,8 @@ public class FieldDateExcelT public float DateResultSpineOffsetX { get; set; } public FieldDateExcelT() { - this.UniqueId = 0; this.SeasonId = 0; + this.UniqueId = 0; this.OpenDate = 0; this.DateLocalizeKey = null; this.EntrySceneId = 0; @@ -169,8 +169,8 @@ static public class FieldDateExcelVerify static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) - && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 6 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 4 /*SeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*UniqueId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 8 /*OpenDate*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 10 /*DateLocalizeKey*/, false) && verifier.VerifyField(tablePos, 12 /*EntrySceneId*/, 8 /*long*/, 8, false) diff --git a/SCHALE.Common/FlatData/FieldDialogType.cs b/SCHALE.Common/FlatData/FieldDialogType.cs index 11e87d1..0a7c7dc 100644 --- a/SCHALE.Common/FlatData/FieldDialogType.cs +++ b/SCHALE.Common/FlatData/FieldDialogType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum FieldDialogType : int { - None = 0, + None_ = 0, Talk = 1, Think = 2, Exclaim = 3, diff --git a/SCHALE.Common/FlatData/FieldInteractionExcel.cs b/SCHALE.Common/FlatData/FieldInteractionExcel.cs index 5292ed4..6ed41d5 100644 --- a/SCHALE.Common/FlatData/FieldInteractionExcel.cs +++ b/SCHALE.Common/FlatData/FieldInteractionExcel.cs @@ -20,17 +20,17 @@ public struct FieldInteractionExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public FieldInteractionExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public long UniqueId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long FieldDateId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public bool ShowEmoji { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public string KeywordLocalize { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public long FieldSeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long UniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FieldDateId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public bool ShowEmoji { get { int o = __p.__offset(10); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } + public string KeywordLocalize { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetKeywordLocalizeBytes() { return __p.__vector_as_span(10, 1); } + public Span GetKeywordLocalizeBytes() { return __p.__vector_as_span(12, 1); } #else - public ArraySegment? GetKeywordLocalizeBytes() { return __p.__vector_as_arraysegment(10); } + public ArraySegment? GetKeywordLocalizeBytes() { return __p.__vector_as_arraysegment(12); } #endif - public byte[] GetKeywordLocalizeArray() { return __p.__vector_as_array(10); } - public long FieldSeasonId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public byte[] GetKeywordLocalizeArray() { return __p.__vector_as_array(12); } public SCHALE.Common.FlatData.FieldInteractionType InteractionType(int j) { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.FieldInteractionType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.FieldInteractionType)0; } public int InteractionTypeLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T @@ -91,11 +91,11 @@ public struct FieldInteractionExcel : IFlatbufferObject public bool[] GetNegateConditionArray() { return __p.__vector_as_array(30); } public static Offset CreateFieldInteractionExcel(FlatBufferBuilder builder, + long FieldSeasonId = 0, long UniqueId = 0, long FieldDateId = 0, bool ShowEmoji = false, StringOffset KeywordLocalizeOffset = default(StringOffset), - long FieldSeasonId = 0, VectorOffset InteractionTypeOffset = default(VectorOffset), VectorOffset InteractionIdOffset = default(VectorOffset), SCHALE.Common.FlatData.FieldConditionClass ConditionClass = SCHALE.Common.FlatData.FieldConditionClass.AndOr, @@ -106,9 +106,9 @@ public struct FieldInteractionExcel : IFlatbufferObject VectorOffset ConditionIdOffset = default(VectorOffset), VectorOffset NegateConditionOffset = default(VectorOffset)) { builder.StartTable(14); - FieldInteractionExcel.AddFieldSeasonId(builder, FieldSeasonId); FieldInteractionExcel.AddFieldDateId(builder, FieldDateId); FieldInteractionExcel.AddUniqueId(builder, UniqueId); + FieldInteractionExcel.AddFieldSeasonId(builder, FieldSeasonId); FieldInteractionExcel.AddNegateCondition(builder, NegateConditionOffset); FieldInteractionExcel.AddConditionId(builder, ConditionIdOffset); FieldInteractionExcel.AddConditionType(builder, ConditionTypeOffset); @@ -124,11 +124,11 @@ public struct FieldInteractionExcel : IFlatbufferObject } public static void StartFieldInteractionExcel(FlatBufferBuilder builder) { builder.StartTable(14); } - public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } - public static void AddFieldDateId(FlatBufferBuilder builder, long fieldDateId) { builder.AddLong(1, fieldDateId, 0); } - public static void AddShowEmoji(FlatBufferBuilder builder, bool showEmoji) { builder.AddBool(2, showEmoji, false); } - public static void AddKeywordLocalize(FlatBufferBuilder builder, StringOffset keywordLocalizeOffset) { builder.AddOffset(3, keywordLocalizeOffset.Value, 0); } - public static void AddFieldSeasonId(FlatBufferBuilder builder, long fieldSeasonId) { builder.AddLong(4, fieldSeasonId, 0); } + public static void AddFieldSeasonId(FlatBufferBuilder builder, long fieldSeasonId) { builder.AddLong(0, fieldSeasonId, 0); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(1, uniqueId, 0); } + public static void AddFieldDateId(FlatBufferBuilder builder, long fieldDateId) { builder.AddLong(2, fieldDateId, 0); } + public static void AddShowEmoji(FlatBufferBuilder builder, bool showEmoji) { builder.AddBool(3, showEmoji, false); } + public static void AddKeywordLocalize(FlatBufferBuilder builder, StringOffset keywordLocalizeOffset) { builder.AddOffset(4, keywordLocalizeOffset.Value, 0); } public static void AddInteractionType(FlatBufferBuilder builder, VectorOffset interactionTypeOffset) { builder.AddOffset(5, interactionTypeOffset.Value, 0); } public static VectorOffset CreateInteractionTypeVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldInteractionType[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } public static VectorOffset CreateInteractionTypeVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.FieldInteractionType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } @@ -184,11 +184,11 @@ public struct FieldInteractionExcel : IFlatbufferObject } public void UnPackTo(FieldInteractionExcelT _o) { byte[] key = TableEncryptionService.CreateKey("FieldInteraction"); + _o.FieldSeasonId = TableEncryptionService.Convert(this.FieldSeasonId, key); _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); _o.FieldDateId = TableEncryptionService.Convert(this.FieldDateId, key); _o.ShowEmoji = TableEncryptionService.Convert(this.ShowEmoji, key); _o.KeywordLocalize = TableEncryptionService.Convert(this.KeywordLocalize, key); - _o.FieldSeasonId = TableEncryptionService.Convert(this.FieldSeasonId, key); _o.InteractionType = new List(); for (var _j = 0; _j < this.InteractionTypeLength; ++_j) {_o.InteractionType.Add(TableEncryptionService.Convert(this.InteractionType(_j), key));} _o.InteractionId = new List(); @@ -246,11 +246,11 @@ public struct FieldInteractionExcel : IFlatbufferObject } return CreateFieldInteractionExcel( builder, + _o.FieldSeasonId, _o.UniqueId, _o.FieldDateId, _o.ShowEmoji, _KeywordLocalize, - _o.FieldSeasonId, _InteractionType, _InteractionId, _o.ConditionClass, @@ -265,11 +265,11 @@ public struct FieldInteractionExcel : IFlatbufferObject public class FieldInteractionExcelT { + public long FieldSeasonId { get; set; } public long UniqueId { get; set; } public long FieldDateId { get; set; } public bool ShowEmoji { get; set; } public string KeywordLocalize { get; set; } - public long FieldSeasonId { get; set; } public List InteractionType { get; set; } public List InteractionId { get; set; } public SCHALE.Common.FlatData.FieldConditionClass ConditionClass { get; set; } @@ -281,11 +281,11 @@ public class FieldInteractionExcelT public List NegateCondition { get; set; } public FieldInteractionExcelT() { + this.FieldSeasonId = 0; this.UniqueId = 0; this.FieldDateId = 0; this.ShowEmoji = false; this.KeywordLocalize = null; - this.FieldSeasonId = 0; this.InteractionType = null; this.InteractionId = null; this.ConditionClass = SCHALE.Common.FlatData.FieldConditionClass.AndOr; @@ -304,11 +304,11 @@ static public class FieldInteractionExcelVerify static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) - && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 6 /*FieldDateId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 8 /*ShowEmoji*/, 1 /*bool*/, 1, false) - && verifier.VerifyString(tablePos, 10 /*KeywordLocalize*/, false) - && verifier.VerifyField(tablePos, 12 /*FieldSeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 4 /*FieldSeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*UniqueId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 8 /*FieldDateId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 10 /*ShowEmoji*/, 1 /*bool*/, 1, false) + && verifier.VerifyString(tablePos, 12 /*KeywordLocalize*/, false) && verifier.VerifyVectorOfData(tablePos, 14 /*InteractionType*/, 4 /*SCHALE.Common.FlatData.FieldInteractionType*/, false) && verifier.VerifyVectorOfData(tablePos, 16 /*InteractionId*/, 8 /*long*/, false) && verifier.VerifyField(tablePos, 18 /*ConditionClass*/, 4 /*SCHALE.Common.FlatData.FieldConditionClass*/, 4, false) diff --git a/SCHALE.Common/FlatData/FieldInteractionType.cs b/SCHALE.Common/FlatData/FieldInteractionType.cs index 29fa51f..bd959fa 100644 --- a/SCHALE.Common/FlatData/FieldInteractionType.cs +++ b/SCHALE.Common/FlatData/FieldInteractionType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum FieldInteractionType : int { - None = 0, + None_ = 0, Scenario = 1, Reward = 2, Dialog = 3, diff --git a/SCHALE.Common/FlatData/FieldMasteryExcel.cs b/SCHALE.Common/FlatData/FieldMasteryExcel.cs index be349b3..d039e96 100644 --- a/SCHALE.Common/FlatData/FieldMasteryExcel.cs +++ b/SCHALE.Common/FlatData/FieldMasteryExcel.cs @@ -24,7 +24,7 @@ public struct FieldMasteryExcel : IFlatbufferObject public long SeasonId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int Order { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long ExpAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType TokenType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType TokenType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long TokenId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long TokenRequirement { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.FieldConditionType AccomplishmentConditionType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.FieldConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FieldConditionType.Invalid; } } @@ -35,7 +35,7 @@ public struct FieldMasteryExcel : IFlatbufferObject long SeasonId = 0, int Order = 0, long ExpAmount = 0, - SCHALE.Common.FlatData.ParcelType TokenType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType TokenType = SCHALE.Common.FlatData.ParcelType.None_, long TokenId = 0, long TokenRequirement = 0, SCHALE.Common.FlatData.FieldConditionType AccomplishmentConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid, @@ -117,7 +117,7 @@ public class FieldMasteryExcelT this.SeasonId = 0; this.Order = 0; this.ExpAmount = 0; - this.TokenType = SCHALE.Common.FlatData.ParcelType.None; + this.TokenType = SCHALE.Common.FlatData.ParcelType.None_; this.TokenId = 0; this.TokenRequirement = 0; this.AccomplishmentConditionType = SCHALE.Common.FlatData.FieldConditionType.Invalid; diff --git a/SCHALE.Common/FlatData/FieldQuestExcel.cs b/SCHALE.Common/FlatData/FieldQuestExcel.cs index 041ed1f..437b878 100644 --- a/SCHALE.Common/FlatData/FieldQuestExcel.cs +++ b/SCHALE.Common/FlatData/FieldQuestExcel.cs @@ -20,8 +20,8 @@ public struct FieldQuestExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public FieldQuestExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public long UniqueId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long FieldSeasonId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FieldSeasonId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long UniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool IsDaily { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long FieldDateId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long Opendate { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -38,8 +38,8 @@ public struct FieldQuestExcel : IFlatbufferObject public uint QuestDescKey { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public static Offset CreateFieldQuestExcel(FlatBufferBuilder builder, - long UniqueId = 0, long FieldSeasonId = 0, + long UniqueId = 0, bool IsDaily = false, long FieldDateId = 0, long Opendate = 0, @@ -52,8 +52,8 @@ public struct FieldQuestExcel : IFlatbufferObject FieldQuestExcel.AddRewardId(builder, RewardId); FieldQuestExcel.AddOpendate(builder, Opendate); FieldQuestExcel.AddFieldDateId(builder, FieldDateId); - FieldQuestExcel.AddFieldSeasonId(builder, FieldSeasonId); FieldQuestExcel.AddUniqueId(builder, UniqueId); + FieldQuestExcel.AddFieldSeasonId(builder, FieldSeasonId); FieldQuestExcel.AddQuestDescKey(builder, QuestDescKey); FieldQuestExcel.AddQuestNamKey(builder, QuestNamKey); FieldQuestExcel.AddProb(builder, Prob); @@ -63,8 +63,8 @@ public struct FieldQuestExcel : IFlatbufferObject } public static void StartFieldQuestExcel(FlatBufferBuilder builder) { builder.StartTable(10); } - public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } - public static void AddFieldSeasonId(FlatBufferBuilder builder, long fieldSeasonId) { builder.AddLong(1, fieldSeasonId, 0); } + public static void AddFieldSeasonId(FlatBufferBuilder builder, long fieldSeasonId) { builder.AddLong(0, fieldSeasonId, 0); } + public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(1, uniqueId, 0); } public static void AddIsDaily(FlatBufferBuilder builder, bool isDaily) { builder.AddBool(2, isDaily, false); } public static void AddFieldDateId(FlatBufferBuilder builder, long fieldDateId) { builder.AddLong(3, fieldDateId, 0); } public static void AddOpendate(FlatBufferBuilder builder, long opendate) { builder.AddLong(4, opendate, 0); } @@ -84,8 +84,8 @@ public struct FieldQuestExcel : IFlatbufferObject } public void UnPackTo(FieldQuestExcelT _o) { byte[] key = TableEncryptionService.CreateKey("FieldQuest"); - _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); _o.FieldSeasonId = TableEncryptionService.Convert(this.FieldSeasonId, key); + _o.UniqueId = TableEncryptionService.Convert(this.UniqueId, key); _o.IsDaily = TableEncryptionService.Convert(this.IsDaily, key); _o.FieldDateId = TableEncryptionService.Convert(this.FieldDateId, key); _o.Opendate = TableEncryptionService.Convert(this.Opendate, key); @@ -100,8 +100,8 @@ public struct FieldQuestExcel : IFlatbufferObject var _AssetPath = _o.AssetPath == null ? default(StringOffset) : builder.CreateString(_o.AssetPath); return CreateFieldQuestExcel( builder, - _o.UniqueId, _o.FieldSeasonId, + _o.UniqueId, _o.IsDaily, _o.FieldDateId, _o.Opendate, @@ -115,8 +115,8 @@ public struct FieldQuestExcel : IFlatbufferObject public class FieldQuestExcelT { - public long UniqueId { get; set; } public long FieldSeasonId { get; set; } + public long UniqueId { get; set; } public bool IsDaily { get; set; } public long FieldDateId { get; set; } public long Opendate { get; set; } @@ -127,8 +127,8 @@ public class FieldQuestExcelT public uint QuestDescKey { get; set; } public FieldQuestExcelT() { - this.UniqueId = 0; this.FieldSeasonId = 0; + this.UniqueId = 0; this.IsDaily = false; this.FieldDateId = 0; this.Opendate = 0; @@ -146,8 +146,8 @@ static public class FieldQuestExcelVerify static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) - && verifier.VerifyField(tablePos, 4 /*UniqueId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 6 /*FieldSeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 4 /*FieldSeasonId*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*UniqueId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 8 /*IsDaily*/, 1 /*bool*/, 1, false) && verifier.VerifyField(tablePos, 10 /*FieldDateId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 12 /*Opendate*/, 8 /*long*/, 8, false) diff --git a/SCHALE.Common/FlatData/FieldRewardExcel.cs b/SCHALE.Common/FlatData/FieldRewardExcel.cs index 46a2d56..25252c4 100644 --- a/SCHALE.Common/FlatData/FieldRewardExcel.cs +++ b/SCHALE.Common/FlatData/FieldRewardExcel.cs @@ -22,14 +22,14 @@ public struct FieldRewardExcel : IFlatbufferObject public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RewardProb { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RewardAmount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public static Offset CreateFieldRewardExcel(FlatBufferBuilder builder, long GroupId = 0, int RewardProb = 0, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardId = 0, int RewardAmount = 0) { builder.StartTable(5); @@ -87,7 +87,7 @@ public class FieldRewardExcelT public FieldRewardExcelT() { this.GroupId = 0; this.RewardProb = 0; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardId = 0; this.RewardAmount = 0; } diff --git a/SCHALE.Common/FlatData/FieldSeasonExcel.cs b/SCHALE.Common/FlatData/FieldSeasonExcel.cs index 0cd8aec..d304f14 100644 --- a/SCHALE.Common/FlatData/FieldSeasonExcel.cs +++ b/SCHALE.Common/FlatData/FieldSeasonExcel.cs @@ -53,6 +53,20 @@ public struct FieldSeasonExcel : IFlatbufferObject public ArraySegment? GetMasteryImagePathBytes() { return __p.__vector_as_arraysegment(20); } #endif public byte[] GetMasteryImagePathArray() { return __p.__vector_as_array(20); } + public string FieldLobbyTitleImagePath { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetFieldLobbyTitleImagePathBytes() { return __p.__vector_as_span(22, 1); } +#else + public ArraySegment? GetFieldLobbyTitleImagePathBytes() { return __p.__vector_as_arraysegment(22); } +#endif + public byte[] GetFieldLobbyTitleImagePathArray() { return __p.__vector_as_array(22); } + public string KeywordLogoImagePath { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } +#if ENABLE_SPAN_T + public Span GetKeywordLogoImagePathBytes() { return __p.__vector_as_span(24, 1); } +#else + public ArraySegment? GetKeywordLogoImagePathBytes() { return __p.__vector_as_arraysegment(24); } +#endif + public byte[] GetKeywordLogoImagePathArray() { return __p.__vector_as_array(24); } public static Offset CreateFieldSeasonExcel(FlatBufferBuilder builder, long UniqueId = 0, @@ -63,13 +77,17 @@ public struct FieldSeasonExcel : IFlatbufferObject StringOffset EndDateOffset = default(StringOffset), long LobbyBGMChangeStageId = 0, StringOffset CharacterIconPathOffset = default(StringOffset), - StringOffset MasteryImagePathOffset = default(StringOffset)) { - builder.StartTable(9); + StringOffset MasteryImagePathOffset = default(StringOffset), + StringOffset FieldLobbyTitleImagePathOffset = default(StringOffset), + StringOffset KeywordLogoImagePathOffset = default(StringOffset)) { + builder.StartTable(11); FieldSeasonExcel.AddLobbyBGMChangeStageId(builder, LobbyBGMChangeStageId); FieldSeasonExcel.AddInstantEntryDateId(builder, InstantEntryDateId); FieldSeasonExcel.AddEntryDateId(builder, EntryDateId); FieldSeasonExcel.AddEventContentId(builder, EventContentId); FieldSeasonExcel.AddUniqueId(builder, UniqueId); + FieldSeasonExcel.AddKeywordLogoImagePath(builder, KeywordLogoImagePathOffset); + FieldSeasonExcel.AddFieldLobbyTitleImagePath(builder, FieldLobbyTitleImagePathOffset); FieldSeasonExcel.AddMasteryImagePath(builder, MasteryImagePathOffset); FieldSeasonExcel.AddCharacterIconPath(builder, CharacterIconPathOffset); FieldSeasonExcel.AddEndDate(builder, EndDateOffset); @@ -77,7 +95,7 @@ public struct FieldSeasonExcel : IFlatbufferObject return FieldSeasonExcel.EndFieldSeasonExcel(builder); } - public static void StartFieldSeasonExcel(FlatBufferBuilder builder) { builder.StartTable(9); } + public static void StartFieldSeasonExcel(FlatBufferBuilder builder) { builder.StartTable(11); } public static void AddUniqueId(FlatBufferBuilder builder, long uniqueId) { builder.AddLong(0, uniqueId, 0); } public static void AddEventContentId(FlatBufferBuilder builder, long eventContentId) { builder.AddLong(1, eventContentId, 0); } public static void AddEntryDateId(FlatBufferBuilder builder, long entryDateId) { builder.AddLong(2, entryDateId, 0); } @@ -87,6 +105,8 @@ public struct FieldSeasonExcel : IFlatbufferObject public static void AddLobbyBGMChangeStageId(FlatBufferBuilder builder, long lobbyBGMChangeStageId) { builder.AddLong(6, lobbyBGMChangeStageId, 0); } public static void AddCharacterIconPath(FlatBufferBuilder builder, StringOffset characterIconPathOffset) { builder.AddOffset(7, characterIconPathOffset.Value, 0); } public static void AddMasteryImagePath(FlatBufferBuilder builder, StringOffset masteryImagePathOffset) { builder.AddOffset(8, masteryImagePathOffset.Value, 0); } + public static void AddFieldLobbyTitleImagePath(FlatBufferBuilder builder, StringOffset fieldLobbyTitleImagePathOffset) { builder.AddOffset(9, fieldLobbyTitleImagePathOffset.Value, 0); } + public static void AddKeywordLogoImagePath(FlatBufferBuilder builder, StringOffset keywordLogoImagePathOffset) { builder.AddOffset(10, keywordLogoImagePathOffset.Value, 0); } public static Offset EndFieldSeasonExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); @@ -107,6 +127,8 @@ public struct FieldSeasonExcel : IFlatbufferObject _o.LobbyBGMChangeStageId = TableEncryptionService.Convert(this.LobbyBGMChangeStageId, key); _o.CharacterIconPath = TableEncryptionService.Convert(this.CharacterIconPath, key); _o.MasteryImagePath = TableEncryptionService.Convert(this.MasteryImagePath, key); + _o.FieldLobbyTitleImagePath = TableEncryptionService.Convert(this.FieldLobbyTitleImagePath, key); + _o.KeywordLogoImagePath = TableEncryptionService.Convert(this.KeywordLogoImagePath, key); } public static Offset Pack(FlatBufferBuilder builder, FieldSeasonExcelT _o) { if (_o == null) return default(Offset); @@ -114,6 +136,8 @@ public struct FieldSeasonExcel : IFlatbufferObject var _EndDate = _o.EndDate == null ? default(StringOffset) : builder.CreateString(_o.EndDate); var _CharacterIconPath = _o.CharacterIconPath == null ? default(StringOffset) : builder.CreateString(_o.CharacterIconPath); var _MasteryImagePath = _o.MasteryImagePath == null ? default(StringOffset) : builder.CreateString(_o.MasteryImagePath); + var _FieldLobbyTitleImagePath = _o.FieldLobbyTitleImagePath == null ? default(StringOffset) : builder.CreateString(_o.FieldLobbyTitleImagePath); + var _KeywordLogoImagePath = _o.KeywordLogoImagePath == null ? default(StringOffset) : builder.CreateString(_o.KeywordLogoImagePath); return CreateFieldSeasonExcel( builder, _o.UniqueId, @@ -124,7 +148,9 @@ public struct FieldSeasonExcel : IFlatbufferObject _EndDate, _o.LobbyBGMChangeStageId, _CharacterIconPath, - _MasteryImagePath); + _MasteryImagePath, + _FieldLobbyTitleImagePath, + _KeywordLogoImagePath); } } @@ -139,6 +165,8 @@ public class FieldSeasonExcelT public long LobbyBGMChangeStageId { get; set; } public string CharacterIconPath { get; set; } public string MasteryImagePath { get; set; } + public string FieldLobbyTitleImagePath { get; set; } + public string KeywordLogoImagePath { get; set; } public FieldSeasonExcelT() { this.UniqueId = 0; @@ -150,6 +178,8 @@ public class FieldSeasonExcelT this.LobbyBGMChangeStageId = 0; this.CharacterIconPath = null; this.MasteryImagePath = null; + this.FieldLobbyTitleImagePath = null; + this.KeywordLogoImagePath = null; } } @@ -168,6 +198,8 @@ static public class FieldSeasonExcelVerify && verifier.VerifyField(tablePos, 16 /*LobbyBGMChangeStageId*/, 8 /*long*/, 8, false) && verifier.VerifyString(tablePos, 18 /*CharacterIconPath*/, false) && verifier.VerifyString(tablePos, 20 /*MasteryImagePath*/, false) + && verifier.VerifyString(tablePos, 22 /*FieldLobbyTitleImagePath*/, false) + && verifier.VerifyString(tablePos, 24 /*KeywordLogoImagePath*/, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/FieldTutorialType.cs b/SCHALE.Common/FlatData/FieldTutorialType.cs index 77ba593..82f3b51 100644 --- a/SCHALE.Common/FlatData/FieldTutorialType.cs +++ b/SCHALE.Common/FlatData/FieldTutorialType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum FieldTutorialType : int { - None = 0, + None_ = 0, MasteryHUD = 1, QuestHUD = 2, WorldMapHUD = 3, diff --git a/SCHALE.Common/FlatData/FixedEchelonSettingExcelTable.cs b/SCHALE.Common/FlatData/FixedEchelonSettingExcelTable.cs deleted file mode 100644 index 856241b..0000000 --- a/SCHALE.Common/FlatData/FixedEchelonSettingExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct FixedEchelonSettingExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static FixedEchelonSettingExcelTable GetRootAsFixedEchelonSettingExcelTable(ByteBuffer _bb) { return GetRootAsFixedEchelonSettingExcelTable(_bb, new FixedEchelonSettingExcelTable()); } - public static FixedEchelonSettingExcelTable GetRootAsFixedEchelonSettingExcelTable(ByteBuffer _bb, FixedEchelonSettingExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public FixedEchelonSettingExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.FixedEchelonSettingExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FixedEchelonSettingExcel?)(new SCHALE.Common.FlatData.FixedEchelonSettingExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateFixedEchelonSettingExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - FixedEchelonSettingExcelTable.AddDataList(builder, DataListOffset); - return FixedEchelonSettingExcelTable.EndFixedEchelonSettingExcelTable(builder); - } - - public static void StartFixedEchelonSettingExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndFixedEchelonSettingExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public FixedEchelonSettingExcelTableT UnPack() { - var _o = new FixedEchelonSettingExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(FixedEchelonSettingExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("FixedEchelonSettingExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, FixedEchelonSettingExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FixedEchelonSettingExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateFixedEchelonSettingExcelTable( - builder, - _DataList); - } -} - -public class FixedEchelonSettingExcelTableT -{ - public List DataList { get; set; } - - public FixedEchelonSettingExcelTableT() { - this.DataList = null; - } -} - - -static public class FixedEchelonSettingExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FixedEchelonSettingExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/FloaterCommonExcel.cs b/SCHALE.Common/FlatData/FloaterCommonExcel.cs index 65114f4..051d48f 100644 --- a/SCHALE.Common/FlatData/FloaterCommonExcel.cs +++ b/SCHALE.Common/FlatData/FloaterCommonExcel.cs @@ -21,7 +21,7 @@ public struct FloaterCommonExcel : IFlatbufferObject public FloaterCommonExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None; } } + public SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TacticEntityType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEntityType.None_; } } public int FloaterOffsetPosX { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int FloaterOffsetPosY { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int FloaterRandomPosRangeX { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -29,7 +29,7 @@ public struct FloaterCommonExcel : IFlatbufferObject public static Offset CreateFloaterCommonExcel(FlatBufferBuilder builder, long Id = 0, - SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None, + SCHALE.Common.FlatData.TacticEntityType TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None_, int FloaterOffsetPosX = 0, int FloaterOffsetPosY = 0, int FloaterRandomPosRangeX = 0, @@ -93,7 +93,7 @@ public class FloaterCommonExcelT public FloaterCommonExcelT() { this.Id = 0; - this.TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None; + this.TacticEntityType_ = SCHALE.Common.FlatData.TacticEntityType.None_; this.FloaterOffsetPosX = 0; this.FloaterOffsetPosY = 0; this.FloaterRandomPosRangeX = 0; diff --git a/SCHALE.Common/FlatData/FontType.cs b/SCHALE.Common/FlatData/FontType.cs index 53d36f7..997bf23 100644 --- a/SCHALE.Common/FlatData/FontType.cs +++ b/SCHALE.Common/FlatData/FontType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum FontType : int { - None = 0, + None_ = 0, Damage = 1, Block = 2, Heal = 3, diff --git a/SCHALE.Common/FlatData/FormationLocationExcelTable.cs b/SCHALE.Common/FlatData/FormationLocationExcelTable.cs deleted file mode 100644 index 2e3e832..0000000 --- a/SCHALE.Common/FlatData/FormationLocationExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct FormationLocationExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static FormationLocationExcelTable GetRootAsFormationLocationExcelTable(ByteBuffer _bb) { return GetRootAsFormationLocationExcelTable(_bb, new FormationLocationExcelTable()); } - public static FormationLocationExcelTable GetRootAsFormationLocationExcelTable(ByteBuffer _bb, FormationLocationExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public FormationLocationExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.FormationLocationExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.FormationLocationExcel?)(new SCHALE.Common.FlatData.FormationLocationExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateFormationLocationExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - FormationLocationExcelTable.AddDataList(builder, DataListOffset); - return FormationLocationExcelTable.EndFormationLocationExcelTable(builder); - } - - public static void StartFormationLocationExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndFormationLocationExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public FormationLocationExcelTableT UnPack() { - var _o = new FormationLocationExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(FormationLocationExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("FormationLocationExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, FormationLocationExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.FormationLocationExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateFormationLocationExcelTable( - builder, - _DataList); - } -} - -public class FormationLocationExcelTableT -{ - public List DataList { get; set; } - - public FormationLocationExcelTableT() { - this.DataList = null; - } -} - - -static public class FormationLocationExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.FormationLocationExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/FurnitureExcel.cs b/SCHALE.Common/FlatData/FurnitureExcel.cs index caa765b..faeb695 100644 --- a/SCHALE.Common/FlatData/FurnitureExcel.cs +++ b/SCHALE.Common/FlatData/FurnitureExcel.cs @@ -94,8 +94,15 @@ public struct FurnitureExcel : IFlatbufferObject public long CraftQualityTier1 { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CraftQualityTier2 { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ShiftingCraftQuality { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.FurnitureFunctionType FurnitureFunctionType_ { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.FurnitureFunctionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FurnitureFunctionType.None; } } - public long FurnitureFunctionParameter { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public SCHALE.Common.FlatData.FurnitureFunctionType FurnitureFunctionType_ { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.FurnitureFunctionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FurnitureFunctionType.None_; } } + public long FurnitureFunctionParameter(int j) { int o = __p.__offset(68); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } + public int FurnitureFunctionParameterLength { get { int o = __p.__offset(68); return o != 0 ? __p.__vector_len(o) : 0; } } +#if ENABLE_SPAN_T + public Span GetFurnitureFunctionParameterBytes() { return __p.__vector_as_span(68, 8); } +#else + public ArraySegment? GetFurnitureFunctionParameterBytes() { return __p.__vector_as_arraysegment(68); } +#endif + public long[] GetFurnitureFunctionParameterArray() { return __p.__vector_as_array(68); } public long VideoId { get { int o = __p.__offset(70); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EventCollectionId { get { int o = __p.__offset(72); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FurnitureBubbleOffsetX { get { int o = __p.__offset(74); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -141,8 +148,8 @@ public struct FurnitureExcel : IFlatbufferObject long CraftQualityTier1 = 0, long CraftQualityTier2 = 0, long ShiftingCraftQuality = 0, - SCHALE.Common.FlatData.FurnitureFunctionType FurnitureFunctionType_ = SCHALE.Common.FlatData.FurnitureFunctionType.None, - long FurnitureFunctionParameter = 0, + SCHALE.Common.FlatData.FurnitureFunctionType FurnitureFunctionType_ = SCHALE.Common.FlatData.FurnitureFunctionType.None_, + VectorOffset FurnitureFunctionParameterOffset = default(VectorOffset), long VideoId = 0, long EventCollectionId = 0, long FurnitureBubbleOffsetX = 0, @@ -156,7 +163,6 @@ public struct FurnitureExcel : IFlatbufferObject FurnitureExcel.AddFurnitureBubbleOffsetX(builder, FurnitureBubbleOffsetX); FurnitureExcel.AddEventCollectionId(builder, EventCollectionId); FurnitureExcel.AddVideoId(builder, VideoId); - FurnitureExcel.AddFurnitureFunctionParameter(builder, FurnitureFunctionParameter); FurnitureExcel.AddShiftingCraftQuality(builder, ShiftingCraftQuality); FurnitureExcel.AddCraftQualityTier2(builder, CraftQualityTier2); FurnitureExcel.AddCraftQualityTier1(builder, CraftQualityTier1); @@ -173,6 +179,7 @@ public struct FurnitureExcel : IFlatbufferObject FurnitureExcel.AddCafeCharacterStateMake(builder, CafeCharacterStateMakeOffset); FurnitureExcel.AddCafeCharacterStateAdd(builder, CafeCharacterStateAddOffset); FurnitureExcel.AddCafeCharacterStateReq(builder, CafeCharacterStateReqOffset); + FurnitureExcel.AddFurnitureFunctionParameter(builder, FurnitureFunctionParameterOffset); FurnitureExcel.AddFurnitureFunctionType_(builder, FurnitureFunctionType_); FurnitureExcel.AddTags(builder, TagsOffset); FurnitureExcel.AddCornerPrefab(builder, CornerPrefabOffset); @@ -234,7 +241,12 @@ public struct FurnitureExcel : IFlatbufferObject public static void AddCraftQualityTier2(FlatBufferBuilder builder, long craftQualityTier2) { builder.AddLong(29, craftQualityTier2, 0); } public static void AddShiftingCraftQuality(FlatBufferBuilder builder, long shiftingCraftQuality) { builder.AddLong(30, shiftingCraftQuality, 0); } public static void AddFurnitureFunctionType_(FlatBufferBuilder builder, SCHALE.Common.FlatData.FurnitureFunctionType furnitureFunctionType_) { builder.AddInt(31, (int)furnitureFunctionType_, 0); } - public static void AddFurnitureFunctionParameter(FlatBufferBuilder builder, long furnitureFunctionParameter) { builder.AddLong(32, furnitureFunctionParameter, 0); } + public static void AddFurnitureFunctionParameter(FlatBufferBuilder builder, VectorOffset furnitureFunctionParameterOffset) { builder.AddOffset(32, furnitureFunctionParameterOffset.Value, 0); } + public static VectorOffset CreateFurnitureFunctionParameterVector(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); for (int i = data.Length - 1; i >= 0; i--) builder.AddLong(data[i]); return builder.EndVector(); } + public static VectorOffset CreateFurnitureFunctionParameterVectorBlock(FlatBufferBuilder builder, long[] data) { builder.StartVector(8, data.Length, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFurnitureFunctionParameterVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(8, data.Count, 8); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateFurnitureFunctionParameterVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartFurnitureFunctionParameterVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(8, numElems, 8); } public static void AddVideoId(FlatBufferBuilder builder, long videoId) { builder.AddLong(33, videoId, 0); } public static void AddEventCollectionId(FlatBufferBuilder builder, long eventCollectionId) { builder.AddLong(34, eventCollectionId, 0); } public static void AddFurnitureBubbleOffsetX(FlatBufferBuilder builder, long furnitureBubbleOffsetX) { builder.AddLong(35, furnitureBubbleOffsetX, 0); } @@ -307,7 +319,8 @@ public struct FurnitureExcel : IFlatbufferObject _o.CraftQualityTier2 = TableEncryptionService.Convert(this.CraftQualityTier2, key); _o.ShiftingCraftQuality = TableEncryptionService.Convert(this.ShiftingCraftQuality, key); _o.FurnitureFunctionType_ = TableEncryptionService.Convert(this.FurnitureFunctionType_, key); - _o.FurnitureFunctionParameter = TableEncryptionService.Convert(this.FurnitureFunctionParameter, key); + _o.FurnitureFunctionParameter = new List(); + for (var _j = 0; _j < this.FurnitureFunctionParameterLength; ++_j) {_o.FurnitureFunctionParameter.Add(TableEncryptionService.Convert(this.FurnitureFunctionParameter(_j), key));} _o.VideoId = TableEncryptionService.Convert(this.VideoId, key); _o.EventCollectionId = TableEncryptionService.Convert(this.EventCollectionId, key); _o.FurnitureBubbleOffsetX = TableEncryptionService.Convert(this.FurnitureBubbleOffsetX, key); @@ -334,6 +347,11 @@ public struct FurnitureExcel : IFlatbufferObject var __Tags = _o.Tags.ToArray(); _Tags = CreateTagsVector(builder, __Tags); } + var _FurnitureFunctionParameter = default(VectorOffset); + if (_o.FurnitureFunctionParameter != null) { + var __FurnitureFunctionParameter = _o.FurnitureFunctionParameter.ToArray(); + _FurnitureFunctionParameter = CreateFurnitureFunctionParameterVector(builder, __FurnitureFunctionParameter); + } var _CafeCharacterStateReq = default(VectorOffset); if (_o.CafeCharacterStateReq != null) { var __CafeCharacterStateReq = new StringOffset[_o.CafeCharacterStateReq.Count]; @@ -392,7 +410,7 @@ public struct FurnitureExcel : IFlatbufferObject _o.CraftQualityTier2, _o.ShiftingCraftQuality, _o.FurnitureFunctionType_, - _o.FurnitureFunctionParameter, + _FurnitureFunctionParameter, _o.VideoId, _o.EventCollectionId, _o.FurnitureBubbleOffsetX, @@ -438,7 +456,7 @@ public class FurnitureExcelT public long CraftQualityTier2 { get; set; } public long ShiftingCraftQuality { get; set; } public SCHALE.Common.FlatData.FurnitureFunctionType FurnitureFunctionType_ { get; set; } - public long FurnitureFunctionParameter { get; set; } + public List FurnitureFunctionParameter { get; set; } public long VideoId { get; set; } public long EventCollectionId { get; set; } public long FurnitureBubbleOffsetX { get; set; } @@ -480,8 +498,8 @@ public class FurnitureExcelT this.CraftQualityTier1 = 0; this.CraftQualityTier2 = 0; this.ShiftingCraftQuality = 0; - this.FurnitureFunctionType_ = SCHALE.Common.FlatData.FurnitureFunctionType.None; - this.FurnitureFunctionParameter = 0; + this.FurnitureFunctionType_ = SCHALE.Common.FlatData.FurnitureFunctionType.None_; + this.FurnitureFunctionParameter = null; this.VideoId = 0; this.EventCollectionId = 0; this.FurnitureBubbleOffsetX = 0; @@ -531,7 +549,7 @@ static public class FurnitureExcelVerify && verifier.VerifyField(tablePos, 62 /*CraftQualityTier2*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 64 /*ShiftingCraftQuality*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 66 /*FurnitureFunctionType_*/, 4 /*SCHALE.Common.FlatData.FurnitureFunctionType*/, 4, false) - && verifier.VerifyField(tablePos, 68 /*FurnitureFunctionParameter*/, 8 /*long*/, 8, false) + && verifier.VerifyVectorOfData(tablePos, 68 /*FurnitureFunctionParameter*/, 8 /*long*/, false) && verifier.VerifyField(tablePos, 70 /*VideoId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 72 /*EventCollectionId*/, 8 /*long*/, 8, false) && verifier.VerifyField(tablePos, 74 /*FurnitureBubbleOffsetX*/, 8 /*long*/, 8, false) diff --git a/SCHALE.Common/FlatData/FurnitureFunctionType.cs b/SCHALE.Common/FlatData/FurnitureFunctionType.cs index 5380adf..cbd3ad0 100644 --- a/SCHALE.Common/FlatData/FurnitureFunctionType.cs +++ b/SCHALE.Common/FlatData/FurnitureFunctionType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum FurnitureFunctionType : int { - None = 0, + None_ = 0, EventCollection = 1, VideoPlay = 2, TrophyCollection = 3, diff --git a/SCHALE.Common/FlatData/FurnitureLocation.cs b/SCHALE.Common/FlatData/FurnitureLocation.cs index 8676705..e00822c 100644 --- a/SCHALE.Common/FlatData/FurnitureLocation.cs +++ b/SCHALE.Common/FlatData/FurnitureLocation.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum FurnitureLocation : int { - None = 0, + None_ = 0, Inventory = 1, Floor = 2, WallLeft = 3, diff --git a/SCHALE.Common/FlatData/FurnitureTemplateElementExcel.cs b/SCHALE.Common/FlatData/FurnitureTemplateElementExcel.cs index 08f9a45..2b32235 100644 --- a/SCHALE.Common/FlatData/FurnitureTemplateElementExcel.cs +++ b/SCHALE.Common/FlatData/FurnitureTemplateElementExcel.cs @@ -22,7 +22,7 @@ public struct FurnitureTemplateElementExcel : IFlatbufferObject public long FurnitureTemplateId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FurnitureId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.FurnitureLocation Location { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.FurnitureLocation)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FurnitureLocation.None; } } + public SCHALE.Common.FlatData.FurnitureLocation Location { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.FurnitureLocation)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.FurnitureLocation.None_; } } public float PositionX { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } public float PositionY { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } public float Rotation { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetFloat(o + __p.bb_pos) : (float)0.0f; } } @@ -31,7 +31,7 @@ public struct FurnitureTemplateElementExcel : IFlatbufferObject public static Offset CreateFurnitureTemplateElementExcel(FlatBufferBuilder builder, long FurnitureTemplateId = 0, long FurnitureId = 0, - SCHALE.Common.FlatData.FurnitureLocation Location = SCHALE.Common.FlatData.FurnitureLocation.None, + SCHALE.Common.FlatData.FurnitureLocation Location = SCHALE.Common.FlatData.FurnitureLocation.None_, float PositionX = 0.0f, float PositionY = 0.0f, float Rotation = 0.0f, @@ -101,7 +101,7 @@ public class FurnitureTemplateElementExcelT public FurnitureTemplateElementExcelT() { this.FurnitureTemplateId = 0; this.FurnitureId = 0; - this.Location = SCHALE.Common.FlatData.FurnitureLocation.None; + this.Location = SCHALE.Common.FlatData.FurnitureLocation.None_; this.PositionX = 0.0f; this.PositionY = 0.0f; this.Rotation = 0.0f; diff --git a/SCHALE.Common/FlatData/GachaDisplayTag.cs b/SCHALE.Common/FlatData/GachaDisplayTag.cs index e89566d..39072ab 100644 --- a/SCHALE.Common/FlatData/GachaDisplayTag.cs +++ b/SCHALE.Common/FlatData/GachaDisplayTag.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum GachaDisplayTag : int { - None = 0, + None_ = 0, Limited = 1, TwoStar = 2, ThreeStar = 3, diff --git a/SCHALE.Common/FlatData/GachaElementExcel.cs b/SCHALE.Common/FlatData/GachaElementExcel.cs index f868ef0..d02147d 100644 --- a/SCHALE.Common/FlatData/GachaElementExcel.cs +++ b/SCHALE.Common/FlatData/GachaElementExcel.cs @@ -22,7 +22,7 @@ public struct GachaElementExcel : IFlatbufferObject public long ID { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long GachaGroupID { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ParcelID { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.Rarity Rarity_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.Rarity)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Rarity.N; } } public int ParcelAmountMin { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -33,7 +33,7 @@ public struct GachaElementExcel : IFlatbufferObject public static Offset CreateGachaElementExcel(FlatBufferBuilder builder, long ID = 0, long GachaGroupID = 0, - SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_, long ParcelID = 0, SCHALE.Common.FlatData.Rarity Rarity_ = SCHALE.Common.FlatData.Rarity.N, int ParcelAmountMin = 0, @@ -115,7 +115,7 @@ public class GachaElementExcelT public GachaElementExcelT() { this.ID = 0; this.GachaGroupID = 0; - this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_; this.ParcelID = 0; this.Rarity_ = SCHALE.Common.FlatData.Rarity.N; this.ParcelAmountMin = 0; diff --git a/SCHALE.Common/FlatData/GachaElementRecursiveExcel.cs b/SCHALE.Common/FlatData/GachaElementRecursiveExcel.cs index e51f870..98e6b4d 100644 --- a/SCHALE.Common/FlatData/GachaElementRecursiveExcel.cs +++ b/SCHALE.Common/FlatData/GachaElementRecursiveExcel.cs @@ -22,7 +22,7 @@ public struct GachaElementRecursiveExcel : IFlatbufferObject public long ID { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long GachaGroupID { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ParcelID { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int ParcelAmountMin { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int ParcelAmountMax { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -32,7 +32,7 @@ public struct GachaElementRecursiveExcel : IFlatbufferObject public static Offset CreateGachaElementRecursiveExcel(FlatBufferBuilder builder, long ID = 0, long GachaGroupID = 0, - SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_, long ParcelID = 0, int ParcelAmountMin = 0, int ParcelAmountMax = 0, @@ -108,7 +108,7 @@ public class GachaElementRecursiveExcelT public GachaElementRecursiveExcelT() { this.ID = 0; this.GachaGroupID = 0; - this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_; this.ParcelID = 0; this.ParcelAmountMin = 0; this.ParcelAmountMax = 0; diff --git a/SCHALE.Common/FlatData/GachaGroupExcel.cs b/SCHALE.Common/FlatData/GachaGroupExcel.cs index a51e7b2..5748c3e 100644 --- a/SCHALE.Common/FlatData/GachaGroupExcel.cs +++ b/SCHALE.Common/FlatData/GachaGroupExcel.cs @@ -29,13 +29,13 @@ public struct GachaGroupExcel : IFlatbufferObject #endif public byte[] GetNameKrArray() { return __p.__vector_as_array(6); } public bool IsRecursive { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.GachaGroupType GroupType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.GachaGroupType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaGroupType.None; } } + public SCHALE.Common.FlatData.GachaGroupType GroupType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.GachaGroupType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaGroupType.None_; } } public static Offset CreateGachaGroupExcel(FlatBufferBuilder builder, long ID = 0, StringOffset NameKrOffset = default(StringOffset), bool IsRecursive = false, - SCHALE.Common.FlatData.GachaGroupType GroupType = SCHALE.Common.FlatData.GachaGroupType.None) { + SCHALE.Common.FlatData.GachaGroupType GroupType = SCHALE.Common.FlatData.GachaGroupType.None_) { builder.StartTable(4); GachaGroupExcel.AddID(builder, ID); GachaGroupExcel.AddGroupType(builder, GroupType); @@ -88,7 +88,7 @@ public class GachaGroupExcelT this.ID = 0; this.NameKr = null; this.IsRecursive = false; - this.GroupType = SCHALE.Common.FlatData.GachaGroupType.None; + this.GroupType = SCHALE.Common.FlatData.GachaGroupType.None_; } } diff --git a/SCHALE.Common/FlatData/GachaGroupType.cs b/SCHALE.Common/FlatData/GachaGroupType.cs index c88beef..0f9bf58 100644 --- a/SCHALE.Common/FlatData/GachaGroupType.cs +++ b/SCHALE.Common/FlatData/GachaGroupType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum GachaGroupType : int { - None = 0, + None_ = 0, Reward_General = 1, System_Craft = 2, Reward_Pack = 3, diff --git a/SCHALE.Common/FlatData/GachaRewardType.cs b/SCHALE.Common/FlatData/GachaRewardType.cs index 2896198..2977762 100644 --- a/SCHALE.Common/FlatData/GachaRewardType.cs +++ b/SCHALE.Common/FlatData/GachaRewardType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum GachaRewardType : int { - None = 0, + None_ = 0, Eligma = 1, Eleph = 2, }; diff --git a/SCHALE.Common/FlatData/GachaTicketType.cs b/SCHALE.Common/FlatData/GachaTicketType.cs index 6c2dabf..64de7b6 100644 --- a/SCHALE.Common/FlatData/GachaTicketType.cs +++ b/SCHALE.Common/FlatData/GachaTicketType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum GachaTicketType : int { - None = 0, + None_ = 0, PackageThreeStar = 1, ThreeStar = 2, TwoStar = 3, diff --git a/SCHALE.Common/FlatData/GetStickerConditionType.cs b/SCHALE.Common/FlatData/GetStickerConditionType.cs index b0e20cd..11654f4 100644 --- a/SCHALE.Common/FlatData/GetStickerConditionType.cs +++ b/SCHALE.Common/FlatData/GetStickerConditionType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum GetStickerConditionType : int { - None = 0, + None_ = 0, Reset_StikcerGetCondition_AccountLevel = 1, Reset_StickerGetCondition_ScenarioModeId = 2, Reset_StickerGetCondition_EnemyKillCount = 3, diff --git a/SCHALE.Common/FlatData/GoodsExcel.cs b/SCHALE.Common/FlatData/GoodsExcel.cs index d694dee..6a00618 100644 --- a/SCHALE.Common/FlatData/GoodsExcel.cs +++ b/SCHALE.Common/FlatData/GoodsExcel.cs @@ -62,7 +62,7 @@ public struct GoodsExcel : IFlatbufferObject public ArraySegment? GetConsumeCondition_Bytes() { return __p.__vector_as_arraysegment(18); } #endif public SCHALE.Common.FlatData.ConsumeCondition[] GetConsumeCondition_Array() { int o = __p.__offset(18); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ConsumeCondition[] a = new SCHALE.Common.FlatData.ConsumeCondition[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ConsumeCondition)__p.bb.GetInt(p + i * 4); } return a; } - public SCHALE.Common.FlatData.GachaTicketType ConsumeGachaTicketType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.GachaTicketType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaTicketType.None; } } + public SCHALE.Common.FlatData.GachaTicketType ConsumeGachaTicketType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.GachaTicketType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaTicketType.None_; } } public long ConsumeGachaTicketTypeAmount { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ProductIdAOS { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ProductIdiOS { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -117,7 +117,7 @@ public struct GoodsExcel : IFlatbufferObject VectorOffset ConsumeParcelIdOffset = default(VectorOffset), VectorOffset ConsumeParcelAmountOffset = default(VectorOffset), VectorOffset ConsumeCondition_Offset = default(VectorOffset), - SCHALE.Common.FlatData.GachaTicketType ConsumeGachaTicketType = SCHALE.Common.FlatData.GachaTicketType.None, + SCHALE.Common.FlatData.GachaTicketType ConsumeGachaTicketType = SCHALE.Common.FlatData.GachaTicketType.None_, long ConsumeGachaTicketTypeAmount = 0, long ProductIdAOS = 0, long ProductIdiOS = 0, @@ -353,7 +353,7 @@ public class GoodsExcelT this.ConsumeParcelId = null; this.ConsumeParcelAmount = null; this.ConsumeCondition_ = null; - this.ConsumeGachaTicketType = SCHALE.Common.FlatData.GachaTicketType.None; + this.ConsumeGachaTicketType = SCHALE.Common.FlatData.GachaTicketType.None_; this.ConsumeGachaTicketTypeAmount = 0; this.ProductIdAOS = 0; this.ProductIdiOS = 0; diff --git a/SCHALE.Common/FlatData/GroundExcel.cs b/SCHALE.Common/FlatData/GroundExcel.cs index 94b1a62..fd619d6 100644 --- a/SCHALE.Common/FlatData/GroundExcel.cs +++ b/SCHALE.Common/FlatData/GroundExcel.cs @@ -66,9 +66,9 @@ public struct GroundExcel : IFlatbufferObject public long BGMId { get { int o = __p.__offset(76); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool WarningUI { get { int o = __p.__offset(78); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public bool TSSHatchOpen { get { int o = __p.__offset(80); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.TacticSpeed ForcedTacticSpeed { get { int o = __p.__offset(82); return o != 0 ? (SCHALE.Common.FlatData.TacticSpeed)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticSpeed.None; } } - public SCHALE.Common.FlatData.TacticSkillUse ForcedSkillUse { get { int o = __p.__offset(84); return o != 0 ? (SCHALE.Common.FlatData.TacticSkillUse)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticSkillUse.None; } } - public SCHALE.Common.FlatData.ShowSkillCutIn ShowNPCSkillCutIn { get { int o = __p.__offset(86); return o != 0 ? (SCHALE.Common.FlatData.ShowSkillCutIn)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShowSkillCutIn.None; } } + public SCHALE.Common.FlatData.TacticSpeed ForcedTacticSpeed { get { int o = __p.__offset(82); return o != 0 ? (SCHALE.Common.FlatData.TacticSpeed)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticSpeed.None_; } } + public SCHALE.Common.FlatData.TacticSkillUse ForcedSkillUse { get { int o = __p.__offset(84); return o != 0 ? (SCHALE.Common.FlatData.TacticSkillUse)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticSkillUse.None_; } } + public SCHALE.Common.FlatData.ShowSkillCutIn ShowNPCSkillCutIn { get { int o = __p.__offset(86); return o != 0 ? (SCHALE.Common.FlatData.ShowSkillCutIn)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShowSkillCutIn.None_; } } public bool ImmuneHitBeforeTimeOutEnd { get { int o = __p.__offset(88); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public bool UIBattleHideFromScratch { get { int o = __p.__offset(90); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public string BattleReadyTimelinePath { get { int o = __p.__offset(92); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } @@ -152,9 +152,9 @@ public struct GroundExcel : IFlatbufferObject long BGMId = 0, bool WarningUI = false, bool TSSHatchOpen = false, - SCHALE.Common.FlatData.TacticSpeed ForcedTacticSpeed = SCHALE.Common.FlatData.TacticSpeed.None, - SCHALE.Common.FlatData.TacticSkillUse ForcedSkillUse = SCHALE.Common.FlatData.TacticSkillUse.None, - SCHALE.Common.FlatData.ShowSkillCutIn ShowNPCSkillCutIn = SCHALE.Common.FlatData.ShowSkillCutIn.None, + SCHALE.Common.FlatData.TacticSpeed ForcedTacticSpeed = SCHALE.Common.FlatData.TacticSpeed.None_, + SCHALE.Common.FlatData.TacticSkillUse ForcedSkillUse = SCHALE.Common.FlatData.TacticSkillUse.None_, + SCHALE.Common.FlatData.ShowSkillCutIn ShowNPCSkillCutIn = SCHALE.Common.FlatData.ShowSkillCutIn.None_, bool ImmuneHitBeforeTimeOutEnd = false, bool UIBattleHideFromScratch = false, StringOffset BattleReadyTimelinePathOffset = default(StringOffset), @@ -577,9 +577,9 @@ public class GroundExcelT this.BGMId = 0; this.WarningUI = false; this.TSSHatchOpen = false; - this.ForcedTacticSpeed = SCHALE.Common.FlatData.TacticSpeed.None; - this.ForcedSkillUse = SCHALE.Common.FlatData.TacticSkillUse.None; - this.ShowNPCSkillCutIn = SCHALE.Common.FlatData.ShowSkillCutIn.None; + this.ForcedTacticSpeed = SCHALE.Common.FlatData.TacticSpeed.None_; + this.ForcedSkillUse = SCHALE.Common.FlatData.TacticSkillUse.None_; + this.ShowNPCSkillCutIn = SCHALE.Common.FlatData.ShowSkillCutIn.None_; this.ImmuneHitBeforeTimeOutEnd = false; this.UIBattleHideFromScratch = false; this.BattleReadyTimelinePath = null; diff --git a/SCHALE.Common/FlatData/GroundExcelTable.cs b/SCHALE.Common/FlatData/GroundExcelTable.cs deleted file mode 100644 index f3586a7..0000000 --- a/SCHALE.Common/FlatData/GroundExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct GroundExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static GroundExcelTable GetRootAsGroundExcelTable(ByteBuffer _bb) { return GetRootAsGroundExcelTable(_bb, new GroundExcelTable()); } - public static GroundExcelTable GetRootAsGroundExcelTable(ByteBuffer _bb, GroundExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public GroundExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.GroundExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GroundExcel?)(new SCHALE.Common.FlatData.GroundExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateGroundExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - GroundExcelTable.AddDataList(builder, DataListOffset); - return GroundExcelTable.EndGroundExcelTable(builder); - } - - public static void StartGroundExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndGroundExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public GroundExcelTableT UnPack() { - var _o = new GroundExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(GroundExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("GroundExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, GroundExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GroundExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateGroundExcelTable( - builder, - _DataList); - } -} - -public class GroundExcelTableT -{ - public List DataList { get; set; } - - public GroundExcelTableT() { - this.DataList = null; - } -} - - -static public class GroundExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GroundExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/GroundModuleRewardExcel.cs b/SCHALE.Common/FlatData/GroundModuleRewardExcel.cs index 0a6d4d6..9b9652b 100644 --- a/SCHALE.Common/FlatData/GroundModuleRewardExcel.cs +++ b/SCHALE.Common/FlatData/GroundModuleRewardExcel.cs @@ -21,7 +21,7 @@ public struct GroundModuleRewardExcel : IFlatbufferObject public GroundModuleRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public uint GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardParcelId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RewardParcelAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RewardParcelProbability { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -36,7 +36,7 @@ public struct GroundModuleRewardExcel : IFlatbufferObject public static Offset CreateGroundModuleRewardExcel(FlatBufferBuilder builder, uint GroupId = 0, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardParcelId = 0, long RewardParcelAmount = 0, long RewardParcelProbability = 0, @@ -107,7 +107,7 @@ public class GroundModuleRewardExcelT public GroundModuleRewardExcelT() { this.GroupId = 0; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardParcelId = 0; this.RewardParcelAmount = 0; this.RewardParcelProbability = 0; diff --git a/SCHALE.Common/FlatData/GroundModuleRewardExcelTable.cs b/SCHALE.Common/FlatData/GroundModuleRewardExcelTable.cs deleted file mode 100644 index 81c03d7..0000000 --- a/SCHALE.Common/FlatData/GroundModuleRewardExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct GroundModuleRewardExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static GroundModuleRewardExcelTable GetRootAsGroundModuleRewardExcelTable(ByteBuffer _bb) { return GetRootAsGroundModuleRewardExcelTable(_bb, new GroundModuleRewardExcelTable()); } - public static GroundModuleRewardExcelTable GetRootAsGroundModuleRewardExcelTable(ByteBuffer _bb, GroundModuleRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public GroundModuleRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.GroundModuleRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.GroundModuleRewardExcel?)(new SCHALE.Common.FlatData.GroundModuleRewardExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateGroundModuleRewardExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - GroundModuleRewardExcelTable.AddDataList(builder, DataListOffset); - return GroundModuleRewardExcelTable.EndGroundModuleRewardExcelTable(builder); - } - - public static void StartGroundModuleRewardExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndGroundModuleRewardExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public GroundModuleRewardExcelTableT UnPack() { - var _o = new GroundModuleRewardExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(GroundModuleRewardExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("GroundModuleRewardExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, GroundModuleRewardExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.GroundModuleRewardExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateGroundModuleRewardExcelTable( - builder, - _DataList); - } -} - -public class GroundModuleRewardExcelTableT -{ - public List DataList { get; set; } - - public GroundModuleRewardExcelTableT() { - this.DataList = null; - } -} - - -static public class GroundModuleRewardExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.GroundModuleRewardExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/GroundNodeFlat.cs b/SCHALE.Common/FlatData/GroundNodeFlat.cs index 120f243..c1dbdb5 100644 --- a/SCHALE.Common/FlatData/GroundNodeFlat.cs +++ b/SCHALE.Common/FlatData/GroundNodeFlat.cs @@ -24,16 +24,16 @@ public struct GroundNodeFlat : IFlatbufferObject public int Y { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool IsCanNotUseSkill { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public SCHALE.Common.FlatData.GroundVector3? Position { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.GroundVector3?)(new SCHALE.Common.FlatData.GroundVector3()).__assign(__p.__indirect(o + __p.bb_pos), __p.bb) : null; } } - public SCHALE.Common.FlatData.GroundNodeType NodeType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.GroundNodeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GroundNodeType.None; } } - public SCHALE.Common.FlatData.GroundNodeType OriginalNodeType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.GroundNodeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GroundNodeType.None; } } + public SCHALE.Common.FlatData.GroundNodeType NodeType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.GroundNodeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GroundNodeType.None_; } } + public SCHALE.Common.FlatData.GroundNodeType OriginalNodeType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.GroundNodeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GroundNodeType.None_; } } public static Offset CreateGroundNodeFlat(FlatBufferBuilder builder, int X = 0, int Y = 0, bool IsCanNotUseSkill = false, Offset PositionOffset = default(Offset), - SCHALE.Common.FlatData.GroundNodeType NodeType = SCHALE.Common.FlatData.GroundNodeType.None, - SCHALE.Common.FlatData.GroundNodeType OriginalNodeType = SCHALE.Common.FlatData.GroundNodeType.None) { + SCHALE.Common.FlatData.GroundNodeType NodeType = SCHALE.Common.FlatData.GroundNodeType.None_, + SCHALE.Common.FlatData.GroundNodeType OriginalNodeType = SCHALE.Common.FlatData.GroundNodeType.None_) { builder.StartTable(6); GroundNodeFlat.AddOriginalNodeType(builder, OriginalNodeType); GroundNodeFlat.AddNodeType(builder, NodeType); @@ -97,8 +97,8 @@ public class GroundNodeFlatT this.Y = 0; this.IsCanNotUseSkill = false; this.Position = null; - this.NodeType = SCHALE.Common.FlatData.GroundNodeType.None; - this.OriginalNodeType = SCHALE.Common.FlatData.GroundNodeType.None; + this.NodeType = SCHALE.Common.FlatData.GroundNodeType.None_; + this.OriginalNodeType = SCHALE.Common.FlatData.GroundNodeType.None_; } } diff --git a/SCHALE.Common/FlatData/GroundNodeType.cs b/SCHALE.Common/FlatData/GroundNodeType.cs index 8621847..fa9b97b 100644 --- a/SCHALE.Common/FlatData/GroundNodeType.cs +++ b/SCHALE.Common/FlatData/GroundNodeType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum GroundNodeType : int { - None = 0, + None_ = 0, WalkAble = 1, JumpAble = 2, TSSOnly = 3, diff --git a/SCHALE.Common/FlatData/GrowthCategory.cs b/SCHALE.Common/FlatData/GrowthCategory.cs index ae59f55..7c57175 100644 --- a/SCHALE.Common/FlatData/GrowthCategory.cs +++ b/SCHALE.Common/FlatData/GrowthCategory.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum GrowthCategory : int { - None = 0, + None_ = 0, LevelUp = 1, Transcend = 2, SkillLevelUp = 3, diff --git a/SCHALE.Common/FlatData/GuideMissionExcel.cs b/SCHALE.Common/FlatData/GuideMissionExcel.cs index d8d5083..d28895f 100644 --- a/SCHALE.Common/FlatData/GuideMissionExcel.cs +++ b/SCHALE.Common/FlatData/GuideMissionExcel.cs @@ -44,7 +44,7 @@ public struct GuideMissionExcel : IFlatbufferObject public byte[] GetToastImagePathArray() { return __p.__vector_as_array(20); } public string ShortcutUI(int j) { int o = __p.__offset(22); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int ShortcutUILength { get { int o = __p.__offset(22); return o != 0 ? __p.__vector_len(o) : 0; } } - public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.MissionCompleteConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCompleteConditionType.None; } } + public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.MissionCompleteConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCompleteConditionType.None_; } } public long CompleteConditionCount { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CompleteConditionParameter(int j) { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int CompleteConditionParameterLength { get { int o = __p.__offset(28); return o != 0 ? __p.__vector_len(o) : 0; } } @@ -99,7 +99,7 @@ public struct GuideMissionExcel : IFlatbufferObject SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always, StringOffset ToastImagePathOffset = default(StringOffset), VectorOffset ShortcutUIOffset = default(VectorOffset), - SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None, + SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None_, long CompleteConditionCount = 0, VectorOffset CompleteConditionParameterOffset = default(VectorOffset), VectorOffset CompleteConditionParameterTagOffset = default(VectorOffset), @@ -314,7 +314,7 @@ public class GuideMissionExcelT this.ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; this.ToastImagePath = null; this.ShortcutUI = null; - this.CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None; + this.CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None_; this.CompleteConditionCount = 0; this.CompleteConditionParameter = null; this.CompleteConditionParameterTag = null; diff --git a/SCHALE.Common/FlatData/GuideMissionSeasonExcel.cs b/SCHALE.Common/FlatData/GuideMissionSeasonExcel.cs index 7b92a5d..a2565f7 100644 --- a/SCHALE.Common/FlatData/GuideMissionSeasonExcel.cs +++ b/SCHALE.Common/FlatData/GuideMissionSeasonExcel.cs @@ -111,10 +111,10 @@ public struct GuideMissionSeasonExcel : IFlatbufferObject public ArraySegment? GetTitleImageBytes() { return __p.__vector_as_arraysegment(40); } #endif public byte[] GetTitleImageArray() { return __p.__vector_as_array(40); } - public SCHALE.Common.FlatData.ParcelType RequirementParcelType { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RequirementParcelType { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RequirementParcelId { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RequirementParcelAmount { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.GuideMissionTabType TabType { get { int o = __p.__offset(48); return o != 0 ? (SCHALE.Common.FlatData.GuideMissionTabType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GuideMissionTabType.None; } } + public SCHALE.Common.FlatData.GuideMissionTabType TabType { get { int o = __p.__offset(48); return o != 0 ? (SCHALE.Common.FlatData.GuideMissionTabType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GuideMissionTabType.None_; } } public bool IsPermanent { get { int o = __p.__offset(50); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long PreSeasonId { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -138,10 +138,10 @@ public struct GuideMissionSeasonExcel : IFlatbufferObject StringOffset LobbyBannerImageOffset = default(StringOffset), StringOffset BackgroundImageOffset = default(StringOffset), StringOffset TitleImageOffset = default(StringOffset), - SCHALE.Common.FlatData.ParcelType RequirementParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RequirementParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RequirementParcelId = 0, int RequirementParcelAmount = 0, - SCHALE.Common.FlatData.GuideMissionTabType TabType = SCHALE.Common.FlatData.GuideMissionTabType.None, + SCHALE.Common.FlatData.GuideMissionTabType TabType = SCHALE.Common.FlatData.GuideMissionTabType.None_, bool IsPermanent = false, long PreSeasonId = 0) { builder.StartTable(25); @@ -328,10 +328,10 @@ public class GuideMissionSeasonExcelT this.LobbyBannerImage = null; this.BackgroundImage = null; this.TitleImage = null; - this.RequirementParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RequirementParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RequirementParcelId = 0; this.RequirementParcelAmount = 0; - this.TabType = SCHALE.Common.FlatData.GuideMissionTabType.None; + this.TabType = SCHALE.Common.FlatData.GuideMissionTabType.None_; this.IsPermanent = false; this.PreSeasonId = 0; } diff --git a/SCHALE.Common/FlatData/GuideMissionTabType.cs b/SCHALE.Common/FlatData/GuideMissionTabType.cs index bcfa8ce..0ef7f91 100644 --- a/SCHALE.Common/FlatData/GuideMissionTabType.cs +++ b/SCHALE.Common/FlatData/GuideMissionTabType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum GuideMissionTabType : int { - None = 0, + None_ = 0, Daily = 1, StageClear = 2, }; diff --git a/SCHALE.Common/FlatData/ItemExcel.cs b/SCHALE.Common/FlatData/ItemExcel.cs index 5625b9b..0e7ebd0 100644 --- a/SCHALE.Common/FlatData/ItemExcel.cs +++ b/SCHALE.Common/FlatData/ItemExcel.cs @@ -44,11 +44,11 @@ public struct ItemExcel : IFlatbufferObject public int StackableMax { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int StackableFunction { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool ImmediateUse { get { int o = __p.__offset(26); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.ParcelType UsingResultParcelType { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType UsingResultParcelType { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long UsingResultId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long UsingResultAmount { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.MailType MailType_ { get { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.MailType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MailType.System; } } - public SCHALE.Common.FlatData.ParcelType ExpiryChangeParcelType { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ExpiryChangeParcelType { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ExpiryChangeId { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ExpiryChangeAmount { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool CanTierUpgrade { get { int o = __p.__offset(42); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } @@ -83,7 +83,7 @@ public struct ItemExcel : IFlatbufferObject public byte[] GetExpirationDateTimeArray() { return __p.__vector_as_array(60); } public int ExpirationNotifyDateIn { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long ShortcutTypeId { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.GachaTicketType GachaTicket { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.GachaTicketType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaTicketType.None; } } + public SCHALE.Common.FlatData.GachaTicketType GachaTicket { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.GachaTicketType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaTicketType.None_; } } public static Offset CreateItemExcel(FlatBufferBuilder builder, long Id = 0, @@ -98,11 +98,11 @@ public struct ItemExcel : IFlatbufferObject int StackableMax = 0, int StackableFunction = 0, bool ImmediateUse = false, - SCHALE.Common.FlatData.ParcelType UsingResultParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType UsingResultParcelType = SCHALE.Common.FlatData.ParcelType.None_, long UsingResultId = 0, long UsingResultAmount = 0, SCHALE.Common.FlatData.MailType MailType_ = SCHALE.Common.FlatData.MailType.System, - SCHALE.Common.FlatData.ParcelType ExpiryChangeParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ExpiryChangeParcelType = SCHALE.Common.FlatData.ParcelType.None_, long ExpiryChangeId = 0, long ExpiryChangeAmount = 0, bool CanTierUpgrade = false, @@ -117,7 +117,7 @@ public struct ItemExcel : IFlatbufferObject StringOffset ExpirationDateTimeOffset = default(StringOffset), int ExpirationNotifyDateIn = 0, long ShortcutTypeId = 0, - SCHALE.Common.FlatData.GachaTicketType GachaTicket = SCHALE.Common.FlatData.GachaTicketType.None) { + SCHALE.Common.FlatData.GachaTicketType GachaTicket = SCHALE.Common.FlatData.GachaTicketType.None_) { builder.StartTable(32); ItemExcel.AddShortcutTypeId(builder, ShortcutTypeId); ItemExcel.AddShiftingCraftQuality(builder, ShiftingCraftQuality); @@ -343,11 +343,11 @@ public class ItemExcelT this.StackableMax = 0; this.StackableFunction = 0; this.ImmediateUse = false; - this.UsingResultParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.UsingResultParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.UsingResultId = 0; this.UsingResultAmount = 0; this.MailType_ = SCHALE.Common.FlatData.MailType.System; - this.ExpiryChangeParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ExpiryChangeParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.ExpiryChangeId = 0; this.ExpiryChangeAmount = 0; this.CanTierUpgrade = false; @@ -362,7 +362,7 @@ public class ItemExcelT this.ExpirationDateTime = null; this.ExpirationNotifyDateIn = 0; this.ShortcutTypeId = 0; - this.GachaTicket = SCHALE.Common.FlatData.GachaTicketType.None; + this.GachaTicket = SCHALE.Common.FlatData.GachaTicketType.None_; } } diff --git a/SCHALE.Common/FlatData/JudgeGrade.cs b/SCHALE.Common/FlatData/JudgeGrade.cs index 971886f..8395c70 100644 --- a/SCHALE.Common/FlatData/JudgeGrade.cs +++ b/SCHALE.Common/FlatData/JudgeGrade.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum JudgeGrade : int { - None = 0, + None_ = 0, Miss = 1, Attack = 2, Critical = 3, diff --git a/SCHALE.Common/FlatData/LimitedStageExcel.cs b/SCHALE.Common/FlatData/LimitedStageExcel.cs index 6be0696..2b07c8b 100644 --- a/SCHALE.Common/FlatData/LimitedStageExcel.cs +++ b/SCHALE.Common/FlatData/LimitedStageExcel.cs @@ -29,7 +29,7 @@ public struct LimitedStageExcel : IFlatbufferObject #endif public byte[] GetNameArray() { return __p.__vector_as_array(6); } public long SeasonId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None_; } } public string StageNumber { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetStageNumberBytes() { return __p.__vector_as_span(12, 1); } @@ -42,7 +42,7 @@ public struct LimitedStageExcel : IFlatbufferObject public long OpenDate { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long OpenEventPoint { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long BattleDuration { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long StageEnterCostId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int StageEnterCostAmount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int StageEnterEchelonCount { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -89,9 +89,9 @@ public struct LimitedStageExcel : IFlatbufferObject public ArraySegment? GetBgmIdBytes() { return __p.__vector_as_arraysegment(52); } #endif public byte[] GetBgmIdArray() { return __p.__vector_as_array(52); } - public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ { get { int o = __p.__offset(54); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None; } } + public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ { get { int o = __p.__offset(54); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None_; } } public long GroundID { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None_; } } public long BGMId { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool InstantClear { get { int o = __p.__offset(62); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long BuffContentId { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -101,14 +101,14 @@ public struct LimitedStageExcel : IFlatbufferObject long Id = 0, StringOffset NameOffset = default(StringOffset), long SeasonId = 0, - SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None, + SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None_, StringOffset StageNumberOffset = default(StringOffset), int StageDisplay = 0, long PrevStageId = 0, long OpenDate = 0, long OpenEventPoint = 0, long BattleDuration = 0, - SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_, long StageEnterCostId = 0, int StageEnterCostAmount = 0, int StageEnterEchelonCount = 0, @@ -123,9 +123,9 @@ public struct LimitedStageExcel : IFlatbufferObject SCHALE.Common.FlatData.StageTopography StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street, int RecommandLevel = 0, StringOffset BgmIdOffset = default(StringOffset), - SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None, + SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None_, long GroundID = 0, - SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, + SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None_, long BGMId = 0, bool InstantClear = false, long BuffContentId = 0, @@ -348,14 +348,14 @@ public class LimitedStageExcelT this.Id = 0; this.Name = null; this.SeasonId = 0; - this.StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None; + this.StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None_; this.StageNumber = null; this.StageDisplay = 0; this.PrevStageId = 0; this.OpenDate = 0; this.OpenEventPoint = 0; this.BattleDuration = 0; - this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.StageEnterCostId = 0; this.StageEnterCostAmount = 0; this.StageEnterEchelonCount = 0; @@ -370,9 +370,9 @@ public class LimitedStageExcelT this.StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street; this.RecommandLevel = 0; this.BgmId = null; - this.StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None; + this.StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None_; this.GroundID = 0; - this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; + this.ContentType_ = SCHALE.Common.FlatData.ContentType.None_; this.BGMId = 0; this.InstantClear = false; this.BuffContentId = 0; diff --git a/SCHALE.Common/FlatData/LimitedStageRewardExcel.cs b/SCHALE.Common/FlatData/LimitedStageRewardExcel.cs index 5910bb3..0338555 100644 --- a/SCHALE.Common/FlatData/LimitedStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/LimitedStageRewardExcel.cs @@ -23,7 +23,7 @@ public struct LimitedStageRewardExcel : IFlatbufferObject public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.RewardTag RewardTag_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } public int RewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RewardAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } @@ -32,7 +32,7 @@ public struct LimitedStageRewardExcel : IFlatbufferObject long GroupId = 0, SCHALE.Common.FlatData.RewardTag RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default, int RewardProb = 0, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardId = 0, int RewardAmount = 0, bool IsDisplayed = false) { @@ -102,7 +102,7 @@ public class LimitedStageRewardExcelT this.GroupId = 0; this.RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default; this.RewardProb = 0; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardId = 0; this.RewardAmount = 0; this.IsDisplayed = false; diff --git a/SCHALE.Common/FlatData/LocalizeCharProfileExcel.cs b/SCHALE.Common/FlatData/LocalizeCharProfileExcel.cs index fe3a937..e148b1f 100644 --- a/SCHALE.Common/FlatData/LocalizeCharProfileExcel.cs +++ b/SCHALE.Common/FlatData/LocalizeCharProfileExcel.cs @@ -266,99 +266,99 @@ public struct LocalizeCharProfileExcel : IFlatbufferObject public ArraySegment? GetProfileIntroductionJpBytes() { return __p.__vector_as_arraysegment(74); } #endif public byte[] GetProfileIntroductionJpArray() { return __p.__vector_as_array(74); } - public string CharacterSsrNewKr { get { int o = __p.__offset(76); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public string CharacterSSRNewKr { get { int o = __p.__offset(76); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetCharacterSsrNewKrBytes() { return __p.__vector_as_span(76, 1); } + public Span GetCharacterSSRNewKrBytes() { return __p.__vector_as_span(76, 1); } #else - public ArraySegment? GetCharacterSsrNewKrBytes() { return __p.__vector_as_arraysegment(76); } + public ArraySegment? GetCharacterSSRNewKrBytes() { return __p.__vector_as_arraysegment(76); } #endif - public byte[] GetCharacterSsrNewKrArray() { return __p.__vector_as_array(76); } - public string CharacterSsrNewJp { get { int o = __p.__offset(78); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetCharacterSSRNewKrArray() { return __p.__vector_as_array(76); } + public string CharacterSSRNewJp { get { int o = __p.__offset(78); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetCharacterSsrNewJpBytes() { return __p.__vector_as_span(78, 1); } + public Span GetCharacterSSRNewJpBytes() { return __p.__vector_as_span(78, 1); } #else - public ArraySegment? GetCharacterSsrNewJpBytes() { return __p.__vector_as_arraysegment(78); } + public ArraySegment? GetCharacterSSRNewJpBytes() { return __p.__vector_as_arraysegment(78); } #endif - public byte[] GetCharacterSsrNewJpArray() { return __p.__vector_as_array(78); } + public byte[] GetCharacterSSRNewJpArray() { return __p.__vector_as_array(78); } public static Offset CreateLocalizeCharProfileExcel(FlatBufferBuilder builder, - long character_id = 0, - StringOffset status_message_krOffset = default(StringOffset), - StringOffset status_message_jpOffset = default(StringOffset), - StringOffset full_name_krOffset = default(StringOffset), - StringOffset full_name_jpOffset = default(StringOffset), - StringOffset family_name_krOffset = default(StringOffset), - StringOffset family_name_ruby_krOffset = default(StringOffset), - StringOffset personal_name_krOffset = default(StringOffset), - StringOffset personal_name_ruby_krOffset = default(StringOffset), - StringOffset family_name_jpOffset = default(StringOffset), - StringOffset family_name_ruby_jpOffset = default(StringOffset), - StringOffset personal_name_jpOffset = default(StringOffset), - StringOffset personal_name_ruby_jpOffset = default(StringOffset), - StringOffset school_year_krOffset = default(StringOffset), - StringOffset school_year_jpOffset = default(StringOffset), - StringOffset character_age_krOffset = default(StringOffset), - StringOffset character_age_jpOffset = default(StringOffset), - StringOffset birth_dayOffset = default(StringOffset), - StringOffset birthday_krOffset = default(StringOffset), - StringOffset birthday_jpOffset = default(StringOffset), - StringOffset char_height_krOffset = default(StringOffset), - StringOffset char_height_jpOffset = default(StringOffset), - StringOffset designer_name_krOffset = default(StringOffset), - StringOffset designer_name_jpOffset = default(StringOffset), - StringOffset illustrator_name_krOffset = default(StringOffset), - StringOffset illustrator_name_jpOffset = default(StringOffset), - StringOffset character_voice_krOffset = default(StringOffset), - StringOffset character_voice_jpOffset = default(StringOffset), - StringOffset hobby_krOffset = default(StringOffset), - StringOffset hobby_jpOffset = default(StringOffset), - StringOffset weapon_name_krOffset = default(StringOffset), - StringOffset weapon_desc_krOffset = default(StringOffset), - StringOffset weapon_name_jpOffset = default(StringOffset), - StringOffset weapon_desc_jpOffset = default(StringOffset), - StringOffset profile_introduction_krOffset = default(StringOffset), - StringOffset profile_introduction_jpOffset = default(StringOffset), - StringOffset character_ssr_new_krOffset = default(StringOffset), - StringOffset character_ssr_new_jpOffset = default(StringOffset)) { + long CharacterId = 0, + StringOffset StatusMessageKrOffset = default(StringOffset), + StringOffset StatusMessageJpOffset = default(StringOffset), + StringOffset FullNameKrOffset = default(StringOffset), + StringOffset FullNameJpOffset = default(StringOffset), + StringOffset FamilyNameKrOffset = default(StringOffset), + StringOffset FamilyNameRubyKrOffset = default(StringOffset), + StringOffset PersonalNameKrOffset = default(StringOffset), + StringOffset PersonalNameRubyKrOffset = default(StringOffset), + StringOffset FamilyNameJpOffset = default(StringOffset), + StringOffset FamilyNameRubyJpOffset = default(StringOffset), + StringOffset PersonalNameJpOffset = default(StringOffset), + StringOffset PersonalNameRubyJpOffset = default(StringOffset), + StringOffset SchoolYearKrOffset = default(StringOffset), + StringOffset SchoolYearJpOffset = default(StringOffset), + StringOffset CharacterAgeKrOffset = default(StringOffset), + StringOffset CharacterAgeJpOffset = default(StringOffset), + StringOffset BirthDayOffset = default(StringOffset), + StringOffset BirthdayKrOffset = default(StringOffset), + StringOffset BirthdayJpOffset = default(StringOffset), + StringOffset CharHeightKrOffset = default(StringOffset), + StringOffset CharHeightJpOffset = default(StringOffset), + StringOffset DesignerNameKrOffset = default(StringOffset), + StringOffset DesignerNameJpOffset = default(StringOffset), + StringOffset IllustratorNameKrOffset = default(StringOffset), + StringOffset IllustratorNameJpOffset = default(StringOffset), + StringOffset CharacterVoiceKrOffset = default(StringOffset), + StringOffset CharacterVoiceJpOffset = default(StringOffset), + StringOffset HobbyKrOffset = default(StringOffset), + StringOffset HobbyJpOffset = default(StringOffset), + StringOffset WeaponNameKrOffset = default(StringOffset), + StringOffset WeaponDescKrOffset = default(StringOffset), + StringOffset WeaponNameJpOffset = default(StringOffset), + StringOffset WeaponDescJpOffset = default(StringOffset), + StringOffset ProfileIntroductionKrOffset = default(StringOffset), + StringOffset ProfileIntroductionJpOffset = default(StringOffset), + StringOffset CharacterSSRNewKrOffset = default(StringOffset), + StringOffset CharacterSSRNewJpOffset = default(StringOffset)) { builder.StartTable(38); - LocalizeCharProfileExcel.AddCharacterId(builder, character_id); - LocalizeCharProfileExcel.AddCharacterSsrNewJp(builder, character_ssr_new_jpOffset); - LocalizeCharProfileExcel.AddCharacterSsrNewKr(builder, character_ssr_new_krOffset); - LocalizeCharProfileExcel.AddProfileIntroductionJp(builder, profile_introduction_jpOffset); - LocalizeCharProfileExcel.AddProfileIntroductionKr(builder, profile_introduction_krOffset); - LocalizeCharProfileExcel.AddWeaponDescJp(builder, weapon_desc_jpOffset); - LocalizeCharProfileExcel.AddWeaponNameJp(builder, weapon_name_jpOffset); - LocalizeCharProfileExcel.AddWeaponDescKr(builder, weapon_desc_krOffset); - LocalizeCharProfileExcel.AddWeaponNameKr(builder, weapon_name_krOffset); - LocalizeCharProfileExcel.AddHobbyJp(builder, hobby_jpOffset); - LocalizeCharProfileExcel.AddHobbyKr(builder, hobby_krOffset); - LocalizeCharProfileExcel.AddCharacterVoiceJp(builder, character_voice_jpOffset); - LocalizeCharProfileExcel.AddCharacterVoiceKr(builder, character_voice_krOffset); - LocalizeCharProfileExcel.AddIllustratorNameJp(builder, illustrator_name_jpOffset); - LocalizeCharProfileExcel.AddIllustratorNameKr(builder, illustrator_name_krOffset); - LocalizeCharProfileExcel.AddDesignerNameJp(builder, designer_name_jpOffset); - LocalizeCharProfileExcel.AddDesignerNameKr(builder, designer_name_krOffset); - LocalizeCharProfileExcel.AddCharHeightJp(builder, char_height_jpOffset); - LocalizeCharProfileExcel.AddCharHeightKr(builder, char_height_krOffset); - LocalizeCharProfileExcel.AddBirthdayJp(builder, birthday_jpOffset); - LocalizeCharProfileExcel.AddBirthdayKr(builder, birthday_krOffset); - LocalizeCharProfileExcel.AddBirthDay(builder, birth_dayOffset); - LocalizeCharProfileExcel.AddCharacterAgeJp(builder, character_age_jpOffset); - LocalizeCharProfileExcel.AddCharacterAgeKr(builder, character_age_krOffset); - LocalizeCharProfileExcel.AddSchoolYearJp(builder, school_year_jpOffset); - LocalizeCharProfileExcel.AddSchoolYearKr(builder, school_year_krOffset); - LocalizeCharProfileExcel.AddPersonalNameRubyJp(builder, personal_name_ruby_jpOffset); - LocalizeCharProfileExcel.AddPersonalNameJp(builder, personal_name_jpOffset); - LocalizeCharProfileExcel.AddFamilyNameRubyJp(builder, family_name_ruby_jpOffset); - LocalizeCharProfileExcel.AddFamilyNameJp(builder, family_name_jpOffset); - LocalizeCharProfileExcel.AddPersonalNameRubyKr(builder, personal_name_ruby_krOffset); - LocalizeCharProfileExcel.AddPersonalNameKr(builder, personal_name_krOffset); - LocalizeCharProfileExcel.AddFamilyNameRubyKr(builder, family_name_ruby_krOffset); - LocalizeCharProfileExcel.AddFamilyNameKr(builder, family_name_krOffset); - LocalizeCharProfileExcel.AddFullNameJp(builder, full_name_jpOffset); - LocalizeCharProfileExcel.AddFullNameKr(builder, full_name_krOffset); - LocalizeCharProfileExcel.AddStatusMessageJp(builder, status_message_jpOffset); - LocalizeCharProfileExcel.AddStatusMessageKr(builder, status_message_krOffset); + LocalizeCharProfileExcel.AddCharacterId(builder, CharacterId); + LocalizeCharProfileExcel.AddCharacterSSRNewJp(builder, CharacterSSRNewJpOffset); + LocalizeCharProfileExcel.AddCharacterSSRNewKr(builder, CharacterSSRNewKrOffset); + LocalizeCharProfileExcel.AddProfileIntroductionJp(builder, ProfileIntroductionJpOffset); + LocalizeCharProfileExcel.AddProfileIntroductionKr(builder, ProfileIntroductionKrOffset); + LocalizeCharProfileExcel.AddWeaponDescJp(builder, WeaponDescJpOffset); + LocalizeCharProfileExcel.AddWeaponNameJp(builder, WeaponNameJpOffset); + LocalizeCharProfileExcel.AddWeaponDescKr(builder, WeaponDescKrOffset); + LocalizeCharProfileExcel.AddWeaponNameKr(builder, WeaponNameKrOffset); + LocalizeCharProfileExcel.AddHobbyJp(builder, HobbyJpOffset); + LocalizeCharProfileExcel.AddHobbyKr(builder, HobbyKrOffset); + LocalizeCharProfileExcel.AddCharacterVoiceJp(builder, CharacterVoiceJpOffset); + LocalizeCharProfileExcel.AddCharacterVoiceKr(builder, CharacterVoiceKrOffset); + LocalizeCharProfileExcel.AddIllustratorNameJp(builder, IllustratorNameJpOffset); + LocalizeCharProfileExcel.AddIllustratorNameKr(builder, IllustratorNameKrOffset); + LocalizeCharProfileExcel.AddDesignerNameJp(builder, DesignerNameJpOffset); + LocalizeCharProfileExcel.AddDesignerNameKr(builder, DesignerNameKrOffset); + LocalizeCharProfileExcel.AddCharHeightJp(builder, CharHeightJpOffset); + LocalizeCharProfileExcel.AddCharHeightKr(builder, CharHeightKrOffset); + LocalizeCharProfileExcel.AddBirthdayJp(builder, BirthdayJpOffset); + LocalizeCharProfileExcel.AddBirthdayKr(builder, BirthdayKrOffset); + LocalizeCharProfileExcel.AddBirthDay(builder, BirthDayOffset); + LocalizeCharProfileExcel.AddCharacterAgeJp(builder, CharacterAgeJpOffset); + LocalizeCharProfileExcel.AddCharacterAgeKr(builder, CharacterAgeKrOffset); + LocalizeCharProfileExcel.AddSchoolYearJp(builder, SchoolYearJpOffset); + LocalizeCharProfileExcel.AddSchoolYearKr(builder, SchoolYearKrOffset); + LocalizeCharProfileExcel.AddPersonalNameRubyJp(builder, PersonalNameRubyJpOffset); + LocalizeCharProfileExcel.AddPersonalNameJp(builder, PersonalNameJpOffset); + LocalizeCharProfileExcel.AddFamilyNameRubyJp(builder, FamilyNameRubyJpOffset); + LocalizeCharProfileExcel.AddFamilyNameJp(builder, FamilyNameJpOffset); + LocalizeCharProfileExcel.AddPersonalNameRubyKr(builder, PersonalNameRubyKrOffset); + LocalizeCharProfileExcel.AddPersonalNameKr(builder, PersonalNameKrOffset); + LocalizeCharProfileExcel.AddFamilyNameRubyKr(builder, FamilyNameRubyKrOffset); + LocalizeCharProfileExcel.AddFamilyNameKr(builder, FamilyNameKrOffset); + LocalizeCharProfileExcel.AddFullNameJp(builder, FullNameJpOffset); + LocalizeCharProfileExcel.AddFullNameKr(builder, FullNameKrOffset); + LocalizeCharProfileExcel.AddStatusMessageJp(builder, StatusMessageJpOffset); + LocalizeCharProfileExcel.AddStatusMessageKr(builder, StatusMessageKrOffset); return LocalizeCharProfileExcel.EndLocalizeCharProfileExcel(builder); } @@ -399,8 +399,8 @@ public struct LocalizeCharProfileExcel : IFlatbufferObject public static void AddWeaponDescJp(FlatBufferBuilder builder, StringOffset weaponDescJpOffset) { builder.AddOffset(33, weaponDescJpOffset.Value, 0); } public static void AddProfileIntroductionKr(FlatBufferBuilder builder, StringOffset profileIntroductionKrOffset) { builder.AddOffset(34, profileIntroductionKrOffset.Value, 0); } public static void AddProfileIntroductionJp(FlatBufferBuilder builder, StringOffset profileIntroductionJpOffset) { builder.AddOffset(35, profileIntroductionJpOffset.Value, 0); } - public static void AddCharacterSsrNewKr(FlatBufferBuilder builder, StringOffset characterSsrNewKrOffset) { builder.AddOffset(36, characterSsrNewKrOffset.Value, 0); } - public static void AddCharacterSsrNewJp(FlatBufferBuilder builder, StringOffset characterSsrNewJpOffset) { builder.AddOffset(37, characterSsrNewJpOffset.Value, 0); } + public static void AddCharacterSSRNewKr(FlatBufferBuilder builder, StringOffset characterSSRNewKrOffset) { builder.AddOffset(36, characterSSRNewKrOffset.Value, 0); } + public static void AddCharacterSSRNewJp(FlatBufferBuilder builder, StringOffset characterSSRNewJpOffset) { builder.AddOffset(37, characterSSRNewJpOffset.Value, 0); } public static Offset EndLocalizeCharProfileExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); @@ -448,88 +448,88 @@ public struct LocalizeCharProfileExcel : IFlatbufferObject _o.WeaponDescJp = TableEncryptionService.Convert(this.WeaponDescJp, key); _o.ProfileIntroductionKr = TableEncryptionService.Convert(this.ProfileIntroductionKr, key); _o.ProfileIntroductionJp = TableEncryptionService.Convert(this.ProfileIntroductionJp, key); - _o.CharacterSsrNewKr = TableEncryptionService.Convert(this.CharacterSsrNewKr, key); - _o.CharacterSsrNewJp = TableEncryptionService.Convert(this.CharacterSsrNewJp, key); + _o.CharacterSSRNewKr = TableEncryptionService.Convert(this.CharacterSSRNewKr, key); + _o.CharacterSSRNewJp = TableEncryptionService.Convert(this.CharacterSSRNewJp, key); } public static Offset Pack(FlatBufferBuilder builder, LocalizeCharProfileExcelT _o) { if (_o == null) return default(Offset); - var _status_message_kr = _o.StatusMessageKr == null ? default(StringOffset) : builder.CreateString(_o.StatusMessageKr); - var _status_message_jp = _o.StatusMessageJp == null ? default(StringOffset) : builder.CreateString(_o.StatusMessageJp); - var _full_name_kr = _o.FullNameKr == null ? default(StringOffset) : builder.CreateString(_o.FullNameKr); - var _full_name_jp = _o.FullNameJp == null ? default(StringOffset) : builder.CreateString(_o.FullNameJp); - var _family_name_kr = _o.FamilyNameKr == null ? default(StringOffset) : builder.CreateString(_o.FamilyNameKr); - var _family_name_ruby_kr = _o.FamilyNameRubyKr == null ? default(StringOffset) : builder.CreateString(_o.FamilyNameRubyKr); - var _personal_name_kr = _o.PersonalNameKr == null ? default(StringOffset) : builder.CreateString(_o.PersonalNameKr); - var _personal_name_ruby_kr = _o.PersonalNameRubyKr == null ? default(StringOffset) : builder.CreateString(_o.PersonalNameRubyKr); - var _family_name_jp = _o.FamilyNameJp == null ? default(StringOffset) : builder.CreateString(_o.FamilyNameJp); - var _family_name_ruby_jp = _o.FamilyNameRubyJp == null ? default(StringOffset) : builder.CreateString(_o.FamilyNameRubyJp); - var _personal_name_jp = _o.PersonalNameJp == null ? default(StringOffset) : builder.CreateString(_o.PersonalNameJp); - var _personal_name_ruby_jp = _o.PersonalNameRubyJp == null ? default(StringOffset) : builder.CreateString(_o.PersonalNameRubyJp); - var _school_year_kr = _o.SchoolYearKr == null ? default(StringOffset) : builder.CreateString(_o.SchoolYearKr); - var _school_year_jp = _o.SchoolYearJp == null ? default(StringOffset) : builder.CreateString(_o.SchoolYearJp); - var _character_age_kr = _o.CharacterAgeKr == null ? default(StringOffset) : builder.CreateString(_o.CharacterAgeKr); - var _character_age_jp = _o.CharacterAgeJp == null ? default(StringOffset) : builder.CreateString(_o.CharacterAgeJp); - var _birth_day = _o.BirthDay == null ? default(StringOffset) : builder.CreateString(_o.BirthDay); - var _birthday_kr = _o.BirthdayKr == null ? default(StringOffset) : builder.CreateString(_o.BirthdayKr); - var _birthday_jp = _o.BirthdayJp == null ? default(StringOffset) : builder.CreateString(_o.BirthdayJp); - var _char_height_kr = _o.CharHeightKr == null ? default(StringOffset) : builder.CreateString(_o.CharHeightKr); - var _char_height_jp = _o.CharHeightJp == null ? default(StringOffset) : builder.CreateString(_o.CharHeightJp); - var _designer_name_kr = _o.DesignerNameKr == null ? default(StringOffset) : builder.CreateString(_o.DesignerNameKr); - var _designer_name_jp = _o.DesignerNameJp == null ? default(StringOffset) : builder.CreateString(_o.DesignerNameJp); - var _illustrator_name_kr = _o.IllustratorNameKr == null ? default(StringOffset) : builder.CreateString(_o.IllustratorNameKr); - var _illustrator_name_jp = _o.IllustratorNameJp == null ? default(StringOffset) : builder.CreateString(_o.IllustratorNameJp); - var _character_voice_kr = _o.CharacterVoiceKr == null ? default(StringOffset) : builder.CreateString(_o.CharacterVoiceKr); - var _character_voice_jp = _o.CharacterVoiceJp == null ? default(StringOffset) : builder.CreateString(_o.CharacterVoiceJp); - var _hobby_kr = _o.HobbyKr == null ? default(StringOffset) : builder.CreateString(_o.HobbyKr); - var _hobby_jp = _o.HobbyJp == null ? default(StringOffset) : builder.CreateString(_o.HobbyJp); - var _weapon_name_kr = _o.WeaponNameKr == null ? default(StringOffset) : builder.CreateString(_o.WeaponNameKr); - var _weapon_desc_kr = _o.WeaponDescKr == null ? default(StringOffset) : builder.CreateString(_o.WeaponDescKr); - var _weapon_name_jp = _o.WeaponNameJp == null ? default(StringOffset) : builder.CreateString(_o.WeaponNameJp); - var _weapon_desc_jp = _o.WeaponDescJp == null ? default(StringOffset) : builder.CreateString(_o.WeaponDescJp); - var _profile_introduction_kr = _o.ProfileIntroductionKr == null ? default(StringOffset) : builder.CreateString(_o.ProfileIntroductionKr); - var _profile_introduction_jp = _o.ProfileIntroductionJp == null ? default(StringOffset) : builder.CreateString(_o.ProfileIntroductionJp); - var _character_ssr_new_kr = _o.CharacterSsrNewKr == null ? default(StringOffset) : builder.CreateString(_o.CharacterSsrNewKr); - var _character_ssr_new_jp = _o.CharacterSsrNewJp == null ? default(StringOffset) : builder.CreateString(_o.CharacterSsrNewJp); + var _StatusMessageKr = _o.StatusMessageKr == null ? default(StringOffset) : builder.CreateString(_o.StatusMessageKr); + var _StatusMessageJp = _o.StatusMessageJp == null ? default(StringOffset) : builder.CreateString(_o.StatusMessageJp); + var _FullNameKr = _o.FullNameKr == null ? default(StringOffset) : builder.CreateString(_o.FullNameKr); + var _FullNameJp = _o.FullNameJp == null ? default(StringOffset) : builder.CreateString(_o.FullNameJp); + var _FamilyNameKr = _o.FamilyNameKr == null ? default(StringOffset) : builder.CreateString(_o.FamilyNameKr); + var _FamilyNameRubyKr = _o.FamilyNameRubyKr == null ? default(StringOffset) : builder.CreateString(_o.FamilyNameRubyKr); + var _PersonalNameKr = _o.PersonalNameKr == null ? default(StringOffset) : builder.CreateString(_o.PersonalNameKr); + var _PersonalNameRubyKr = _o.PersonalNameRubyKr == null ? default(StringOffset) : builder.CreateString(_o.PersonalNameRubyKr); + var _FamilyNameJp = _o.FamilyNameJp == null ? default(StringOffset) : builder.CreateString(_o.FamilyNameJp); + var _FamilyNameRubyJp = _o.FamilyNameRubyJp == null ? default(StringOffset) : builder.CreateString(_o.FamilyNameRubyJp); + var _PersonalNameJp = _o.PersonalNameJp == null ? default(StringOffset) : builder.CreateString(_o.PersonalNameJp); + var _PersonalNameRubyJp = _o.PersonalNameRubyJp == null ? default(StringOffset) : builder.CreateString(_o.PersonalNameRubyJp); + var _SchoolYearKr = _o.SchoolYearKr == null ? default(StringOffset) : builder.CreateString(_o.SchoolYearKr); + var _SchoolYearJp = _o.SchoolYearJp == null ? default(StringOffset) : builder.CreateString(_o.SchoolYearJp); + var _CharacterAgeKr = _o.CharacterAgeKr == null ? default(StringOffset) : builder.CreateString(_o.CharacterAgeKr); + var _CharacterAgeJp = _o.CharacterAgeJp == null ? default(StringOffset) : builder.CreateString(_o.CharacterAgeJp); + var _BirthDay = _o.BirthDay == null ? default(StringOffset) : builder.CreateString(_o.BirthDay); + var _BirthdayKr = _o.BirthdayKr == null ? default(StringOffset) : builder.CreateString(_o.BirthdayKr); + var _BirthdayJp = _o.BirthdayJp == null ? default(StringOffset) : builder.CreateString(_o.BirthdayJp); + var _CharHeightKr = _o.CharHeightKr == null ? default(StringOffset) : builder.CreateString(_o.CharHeightKr); + var _CharHeightJp = _o.CharHeightJp == null ? default(StringOffset) : builder.CreateString(_o.CharHeightJp); + var _DesignerNameKr = _o.DesignerNameKr == null ? default(StringOffset) : builder.CreateString(_o.DesignerNameKr); + var _DesignerNameJp = _o.DesignerNameJp == null ? default(StringOffset) : builder.CreateString(_o.DesignerNameJp); + var _IllustratorNameKr = _o.IllustratorNameKr == null ? default(StringOffset) : builder.CreateString(_o.IllustratorNameKr); + var _IllustratorNameJp = _o.IllustratorNameJp == null ? default(StringOffset) : builder.CreateString(_o.IllustratorNameJp); + var _CharacterVoiceKr = _o.CharacterVoiceKr == null ? default(StringOffset) : builder.CreateString(_o.CharacterVoiceKr); + var _CharacterVoiceJp = _o.CharacterVoiceJp == null ? default(StringOffset) : builder.CreateString(_o.CharacterVoiceJp); + var _HobbyKr = _o.HobbyKr == null ? default(StringOffset) : builder.CreateString(_o.HobbyKr); + var _HobbyJp = _o.HobbyJp == null ? default(StringOffset) : builder.CreateString(_o.HobbyJp); + var _WeaponNameKr = _o.WeaponNameKr == null ? default(StringOffset) : builder.CreateString(_o.WeaponNameKr); + var _WeaponDescKr = _o.WeaponDescKr == null ? default(StringOffset) : builder.CreateString(_o.WeaponDescKr); + var _WeaponNameJp = _o.WeaponNameJp == null ? default(StringOffset) : builder.CreateString(_o.WeaponNameJp); + var _WeaponDescJp = _o.WeaponDescJp == null ? default(StringOffset) : builder.CreateString(_o.WeaponDescJp); + var _ProfileIntroductionKr = _o.ProfileIntroductionKr == null ? default(StringOffset) : builder.CreateString(_o.ProfileIntroductionKr); + var _ProfileIntroductionJp = _o.ProfileIntroductionJp == null ? default(StringOffset) : builder.CreateString(_o.ProfileIntroductionJp); + var _CharacterSSRNewKr = _o.CharacterSSRNewKr == null ? default(StringOffset) : builder.CreateString(_o.CharacterSSRNewKr); + var _CharacterSSRNewJp = _o.CharacterSSRNewJp == null ? default(StringOffset) : builder.CreateString(_o.CharacterSSRNewJp); return CreateLocalizeCharProfileExcel( builder, _o.CharacterId, - _status_message_kr, - _status_message_jp, - _full_name_kr, - _full_name_jp, - _family_name_kr, - _family_name_ruby_kr, - _personal_name_kr, - _personal_name_ruby_kr, - _family_name_jp, - _family_name_ruby_jp, - _personal_name_jp, - _personal_name_ruby_jp, - _school_year_kr, - _school_year_jp, - _character_age_kr, - _character_age_jp, - _birth_day, - _birthday_kr, - _birthday_jp, - _char_height_kr, - _char_height_jp, - _designer_name_kr, - _designer_name_jp, - _illustrator_name_kr, - _illustrator_name_jp, - _character_voice_kr, - _character_voice_jp, - _hobby_kr, - _hobby_jp, - _weapon_name_kr, - _weapon_desc_kr, - _weapon_name_jp, - _weapon_desc_jp, - _profile_introduction_kr, - _profile_introduction_jp, - _character_ssr_new_kr, - _character_ssr_new_jp); + _StatusMessageKr, + _StatusMessageJp, + _FullNameKr, + _FullNameJp, + _FamilyNameKr, + _FamilyNameRubyKr, + _PersonalNameKr, + _PersonalNameRubyKr, + _FamilyNameJp, + _FamilyNameRubyJp, + _PersonalNameJp, + _PersonalNameRubyJp, + _SchoolYearKr, + _SchoolYearJp, + _CharacterAgeKr, + _CharacterAgeJp, + _BirthDay, + _BirthdayKr, + _BirthdayJp, + _CharHeightKr, + _CharHeightJp, + _DesignerNameKr, + _DesignerNameJp, + _IllustratorNameKr, + _IllustratorNameJp, + _CharacterVoiceKr, + _CharacterVoiceJp, + _HobbyKr, + _HobbyJp, + _WeaponNameKr, + _WeaponDescKr, + _WeaponNameJp, + _WeaponDescJp, + _ProfileIntroductionKr, + _ProfileIntroductionJp, + _CharacterSSRNewKr, + _CharacterSSRNewJp); } } @@ -571,8 +571,8 @@ public class LocalizeCharProfileExcelT public string WeaponDescJp { get; set; } public string ProfileIntroductionKr { get; set; } public string ProfileIntroductionJp { get; set; } - public string CharacterSsrNewKr { get; set; } - public string CharacterSsrNewJp { get; set; } + public string CharacterSSRNewKr { get; set; } + public string CharacterSSRNewJp { get; set; } public LocalizeCharProfileExcelT() { this.CharacterId = 0; @@ -611,8 +611,8 @@ public class LocalizeCharProfileExcelT this.WeaponDescJp = null; this.ProfileIntroductionKr = null; this.ProfileIntroductionJp = null; - this.CharacterSsrNewKr = null; - this.CharacterSsrNewJp = null; + this.CharacterSSRNewKr = null; + this.CharacterSSRNewJp = null; } } @@ -658,8 +658,8 @@ static public class LocalizeCharProfileExcelVerify && verifier.VerifyString(tablePos, 70 /*WeaponDescJp*/, false) && verifier.VerifyString(tablePos, 72 /*ProfileIntroductionKr*/, false) && verifier.VerifyString(tablePos, 74 /*ProfileIntroductionJp*/, false) - && verifier.VerifyString(tablePos, 76 /*CharacterSsrNewKr*/, false) - && verifier.VerifyString(tablePos, 78 /*CharacterSsrNewJp*/, false) + && verifier.VerifyString(tablePos, 76 /*CharacterSSRNewKr*/, false) + && verifier.VerifyString(tablePos, 78 /*CharacterSSRNewJp*/, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/LocalizeCharProfileExcelTable.cs b/SCHALE.Common/FlatData/LocalizeCharProfileExcelTable.cs index 889e95f..bb86732 100644 --- a/SCHALE.Common/FlatData/LocalizeCharProfileExcelTable.cs +++ b/SCHALE.Common/FlatData/LocalizeCharProfileExcelTable.cs @@ -24,9 +24,9 @@ public struct LocalizeCharProfileExcelTable : IFlatbufferObject public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } public static Offset CreateLocalizeCharProfileExcelTable(FlatBufferBuilder builder, - VectorOffset data_listOffset = default(VectorOffset)) { + VectorOffset DataListOffset = default(VectorOffset)) { builder.StartTable(1); - LocalizeCharProfileExcelTable.AddDataList(builder, data_listOffset); + LocalizeCharProfileExcelTable.AddDataList(builder, DataListOffset); return LocalizeCharProfileExcelTable.EndLocalizeCharProfileExcelTable(builder); } @@ -53,15 +53,15 @@ public struct LocalizeCharProfileExcelTable : IFlatbufferObject } public static Offset Pack(FlatBufferBuilder builder, LocalizeCharProfileExcelTableT _o) { if (_o == null) return default(Offset); - var _data_list = default(VectorOffset); + var _DataList = default(VectorOffset); if (_o.DataList != null) { - var __data_list = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __data_list.Length; ++_j) { __data_list[_j] = SCHALE.Common.FlatData.LocalizeCharProfileExcel.Pack(builder, _o.DataList[_j]); } - _data_list = CreateDataListVector(builder, __data_list); + var __DataList = new Offset[_o.DataList.Count]; + for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.LocalizeCharProfileExcel.Pack(builder, _o.DataList[_j]); } + _DataList = CreateDataListVector(builder, __DataList); } return CreateLocalizeCharProfileExcelTable( builder, - _data_list); + _DataList); } } diff --git a/SCHALE.Common/FlatData/LocalizeErrorExcel.cs b/SCHALE.Common/FlatData/LocalizeErrorExcel.cs index 2de46bb..5bcdd09 100644 --- a/SCHALE.Common/FlatData/LocalizeErrorExcel.cs +++ b/SCHALE.Common/FlatData/LocalizeErrorExcel.cs @@ -21,7 +21,7 @@ public struct LocalizeErrorExcel : IFlatbufferObject public LocalizeErrorExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public uint Key { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - public SCHALE.Common.FlatData.WebAPIErrorLevel ErrorLevel { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.WebAPIErrorLevel)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WebAPIErrorLevel.None; } } + public SCHALE.Common.FlatData.WebAPIErrorLevel ErrorLevel { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.WebAPIErrorLevel)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WebAPIErrorLevel.None_; } } public string Kr { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetKrBytes() { return __p.__vector_as_span(8, 1); } @@ -39,7 +39,7 @@ public struct LocalizeErrorExcel : IFlatbufferObject public static Offset CreateLocalizeErrorExcel(FlatBufferBuilder builder, uint Key = 0, - SCHALE.Common.FlatData.WebAPIErrorLevel ErrorLevel = SCHALE.Common.FlatData.WebAPIErrorLevel.None, + SCHALE.Common.FlatData.WebAPIErrorLevel ErrorLevel = SCHALE.Common.FlatData.WebAPIErrorLevel.None_, StringOffset KrOffset = default(StringOffset), StringOffset JpOffset = default(StringOffset)) { builder.StartTable(4); @@ -93,7 +93,7 @@ public class LocalizeErrorExcelT public LocalizeErrorExcelT() { this.Key = 0; - this.ErrorLevel = SCHALE.Common.FlatData.WebAPIErrorLevel.None; + this.ErrorLevel = SCHALE.Common.FlatData.WebAPIErrorLevel.None_; this.Kr = null; this.Jp = null; } diff --git a/SCHALE.Common/FlatData/LogicEffectCategory.cs b/SCHALE.Common/FlatData/LogicEffectCategory.cs index 3f3900f..70934b7 100644 --- a/SCHALE.Common/FlatData/LogicEffectCategory.cs +++ b/SCHALE.Common/FlatData/LogicEffectCategory.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum LogicEffectCategory : int { - None = 0, + None_ = 0, Attack = 1, Heal = 2, Buff = 3, diff --git a/SCHALE.Common/FlatData/LogicEffectCommonVisualExcel.cs b/SCHALE.Common/FlatData/LogicEffectCommonVisualExcel.cs index 34f6d27..88d353e 100644 --- a/SCHALE.Common/FlatData/LogicEffectCommonVisualExcel.cs +++ b/SCHALE.Common/FlatData/LogicEffectCommonVisualExcel.cs @@ -43,7 +43,7 @@ public struct LogicEffectCommonVisualExcel : IFlatbufferObject public ArraySegment? GetParticleEnterPathBytes() { return __p.__vector_as_arraysegment(10); } #endif public byte[] GetParticleEnterPathArray() { return __p.__vector_as_array(10); } - public SCHALE.Common.FlatData.EffectBone ParticleEnterSocket { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } + public SCHALE.Common.FlatData.EffectBone ParticleEnterSocket { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None_; } } public string ParticleLoopPath { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetParticleLoopPathBytes() { return __p.__vector_as_span(14, 1); } @@ -51,7 +51,7 @@ public struct LogicEffectCommonVisualExcel : IFlatbufferObject public ArraySegment? GetParticleLoopPathBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetParticleLoopPathArray() { return __p.__vector_as_array(14); } - public SCHALE.Common.FlatData.EffectBone ParticleLoopSocket { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } + public SCHALE.Common.FlatData.EffectBone ParticleLoopSocket { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None_; } } public string ParticleEndPath { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetParticleEndPathBytes() { return __p.__vector_as_span(18, 1); } @@ -59,7 +59,7 @@ public struct LogicEffectCommonVisualExcel : IFlatbufferObject public ArraySegment? GetParticleEndPathBytes() { return __p.__vector_as_arraysegment(18); } #endif public byte[] GetParticleEndPathArray() { return __p.__vector_as_array(18); } - public SCHALE.Common.FlatData.EffectBone ParticleEndSocket { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } + public SCHALE.Common.FlatData.EffectBone ParticleEndSocket { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None_; } } public string ParticleApplyPath { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetParticleApplyPathBytes() { return __p.__vector_as_span(22, 1); } @@ -67,7 +67,7 @@ public struct LogicEffectCommonVisualExcel : IFlatbufferObject public ArraySegment? GetParticleApplyPathBytes() { return __p.__vector_as_arraysegment(22); } #endif public byte[] GetParticleApplyPathArray() { return __p.__vector_as_array(22); } - public SCHALE.Common.FlatData.EffectBone ParticleApplySocket { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } + public SCHALE.Common.FlatData.EffectBone ParticleApplySocket { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None_; } } public string ParticleRemovedPath { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetParticleRemovedPathBytes() { return __p.__vector_as_span(26, 1); } @@ -75,22 +75,22 @@ public struct LogicEffectCommonVisualExcel : IFlatbufferObject public ArraySegment? GetParticleRemovedPathBytes() { return __p.__vector_as_arraysegment(26); } #endif public byte[] GetParticleRemovedPathArray() { return __p.__vector_as_array(26); } - public SCHALE.Common.FlatData.EffectBone ParticleRemovedSocket { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None; } } + public SCHALE.Common.FlatData.EffectBone ParticleRemovedSocket { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.EffectBone)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EffectBone.None_; } } public static Offset CreateLogicEffectCommonVisualExcel(FlatBufferBuilder builder, uint StringID = 0, StringOffset IconSpriteNameOffset = default(StringOffset), VectorOffset IconDispelColorOffset = default(VectorOffset), StringOffset ParticleEnterPathOffset = default(StringOffset), - SCHALE.Common.FlatData.EffectBone ParticleEnterSocket = SCHALE.Common.FlatData.EffectBone.None, + SCHALE.Common.FlatData.EffectBone ParticleEnterSocket = SCHALE.Common.FlatData.EffectBone.None_, StringOffset ParticleLoopPathOffset = default(StringOffset), - SCHALE.Common.FlatData.EffectBone ParticleLoopSocket = SCHALE.Common.FlatData.EffectBone.None, + SCHALE.Common.FlatData.EffectBone ParticleLoopSocket = SCHALE.Common.FlatData.EffectBone.None_, StringOffset ParticleEndPathOffset = default(StringOffset), - SCHALE.Common.FlatData.EffectBone ParticleEndSocket = SCHALE.Common.FlatData.EffectBone.None, + SCHALE.Common.FlatData.EffectBone ParticleEndSocket = SCHALE.Common.FlatData.EffectBone.None_, StringOffset ParticleApplyPathOffset = default(StringOffset), - SCHALE.Common.FlatData.EffectBone ParticleApplySocket = SCHALE.Common.FlatData.EffectBone.None, + SCHALE.Common.FlatData.EffectBone ParticleApplySocket = SCHALE.Common.FlatData.EffectBone.None_, StringOffset ParticleRemovedPathOffset = default(StringOffset), - SCHALE.Common.FlatData.EffectBone ParticleRemovedSocket = SCHALE.Common.FlatData.EffectBone.None) { + SCHALE.Common.FlatData.EffectBone ParticleRemovedSocket = SCHALE.Common.FlatData.EffectBone.None_) { builder.StartTable(13); LogicEffectCommonVisualExcel.AddParticleRemovedSocket(builder, ParticleRemovedSocket); LogicEffectCommonVisualExcel.AddParticleRemovedPath(builder, ParticleRemovedPathOffset); @@ -205,15 +205,15 @@ public class LogicEffectCommonVisualExcelT this.IconSpriteName = null; this.IconDispelColor = null; this.ParticleEnterPath = null; - this.ParticleEnterSocket = SCHALE.Common.FlatData.EffectBone.None; + this.ParticleEnterSocket = SCHALE.Common.FlatData.EffectBone.None_; this.ParticleLoopPath = null; - this.ParticleLoopSocket = SCHALE.Common.FlatData.EffectBone.None; + this.ParticleLoopSocket = SCHALE.Common.FlatData.EffectBone.None_; this.ParticleEndPath = null; - this.ParticleEndSocket = SCHALE.Common.FlatData.EffectBone.None; + this.ParticleEndSocket = SCHALE.Common.FlatData.EffectBone.None_; this.ParticleApplyPath = null; - this.ParticleApplySocket = SCHALE.Common.FlatData.EffectBone.None; + this.ParticleApplySocket = SCHALE.Common.FlatData.EffectBone.None_; this.ParticleRemovedPath = null; - this.ParticleRemovedSocket = SCHALE.Common.FlatData.EffectBone.None; + this.ParticleRemovedSocket = SCHALE.Common.FlatData.EffectBone.None_; } } diff --git a/SCHALE.Common/FlatData/LogicEffectSound.cs b/SCHALE.Common/FlatData/LogicEffectSound.cs index eb6fd7f..07c229d 100644 --- a/SCHALE.Common/FlatData/LogicEffectSound.cs +++ b/SCHALE.Common/FlatData/LogicEffectSound.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum LogicEffectSound : int { - None = 0, + None_ = 0, Damage = 1, Heal = 2, Knockback = 3, diff --git a/SCHALE.Common/FlatData/MeetupConditionPrintType.cs b/SCHALE.Common/FlatData/MeetupConditionPrintType.cs index a156fde..ae2dee0 100644 --- a/SCHALE.Common/FlatData/MeetupConditionPrintType.cs +++ b/SCHALE.Common/FlatData/MeetupConditionPrintType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum MeetupConditionPrintType : int { - None = 0, + None_ = 0, Lock = 1, Hide = 2, }; diff --git a/SCHALE.Common/FlatData/MeetupConditionType.cs b/SCHALE.Common/FlatData/MeetupConditionType.cs index 0394e1e..d47f766 100644 --- a/SCHALE.Common/FlatData/MeetupConditionType.cs +++ b/SCHALE.Common/FlatData/MeetupConditionType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum MeetupConditionType : int { - None = 0, + None_ = 0, EventContentStageClear = 1, ScenarioClear = 2, }; diff --git a/SCHALE.Common/FlatData/MemoryLobbyCategory.cs b/SCHALE.Common/FlatData/MemoryLobbyCategory.cs index 0661a28..2e45caf 100644 --- a/SCHALE.Common/FlatData/MemoryLobbyCategory.cs +++ b/SCHALE.Common/FlatData/MemoryLobbyCategory.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum MemoryLobbyCategory : int { - None = 0, + None_ = 0, UILobbySpecial = 1, UILobbySpecial2 = 2, }; diff --git a/SCHALE.Common/FlatData/MemoryLobbyExcel.cs b/SCHALE.Common/FlatData/MemoryLobbyExcel.cs index 4a7661b..8527ba5 100644 --- a/SCHALE.Common/FlatData/MemoryLobbyExcel.cs +++ b/SCHALE.Common/FlatData/MemoryLobbyExcel.cs @@ -21,86 +21,86 @@ public struct MemoryLobbyExcel : IFlatbufferObject public MemoryLobbyExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ProductionStep Productionstep { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } - public uint Localizeetcid { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - public long Characterid { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public string Prefabname { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public SCHALE.Common.FlatData.ProductionStep ProductionStep_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ProductionStep)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductionStep.ToDo; } } + public uint LocalizeEtcId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } + public long CharacterId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string PrefabName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetPrefabnameBytes() { return __p.__vector_as_span(12, 1); } + public Span GetPrefabNameBytes() { return __p.__vector_as_span(12, 1); } #else - public ArraySegment? GetPrefabnameBytes() { return __p.__vector_as_arraysegment(12); } + public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(12); } #endif - public byte[] GetPrefabnameArray() { return __p.__vector_as_array(12); } - public SCHALE.Common.FlatData.MemoryLobbyCategory Memorylobbycategory { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.MemoryLobbyCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MemoryLobbyCategory.None; } } - public string SlottextureName { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetPrefabNameArray() { return __p.__vector_as_array(12); } + public SCHALE.Common.FlatData.MemoryLobbyCategory MemoryLobbyCategory_ { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.MemoryLobbyCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MemoryLobbyCategory.None_; } } + public string SlotTextureName { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetSlottextureNameBytes() { return __p.__vector_as_span(16, 1); } + public Span GetSlotTextureNameBytes() { return __p.__vector_as_span(16, 1); } #else - public ArraySegment? GetSlottextureNameBytes() { return __p.__vector_as_arraysegment(16); } + public ArraySegment? GetSlotTextureNameBytes() { return __p.__vector_as_arraysegment(16); } #endif - public byte[] GetSlottextureNameArray() { return __p.__vector_as_array(16); } - public string Rewardtexturename { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetSlotTextureNameArray() { return __p.__vector_as_array(16); } + public string RewardTextureName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetRewardtexturenameBytes() { return __p.__vector_as_span(18, 1); } + public Span GetRewardTextureNameBytes() { return __p.__vector_as_span(18, 1); } #else - public ArraySegment? GetRewardtexturenameBytes() { return __p.__vector_as_arraysegment(18); } + public ArraySegment? GetRewardTextureNameBytes() { return __p.__vector_as_arraysegment(18); } #endif - public byte[] GetRewardtexturenameArray() { return __p.__vector_as_array(18); } - public long Bgmid { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public string Audioclipjp { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetRewardTextureNameArray() { return __p.__vector_as_array(18); } + public long BGMId { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public string AudioClipJp { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetAudioclipjpBytes() { return __p.__vector_as_span(22, 1); } + public Span GetAudioClipJpBytes() { return __p.__vector_as_span(22, 1); } #else - public ArraySegment? GetAudioclipjpBytes() { return __p.__vector_as_arraysegment(22); } + public ArraySegment? GetAudioClipJpBytes() { return __p.__vector_as_arraysegment(22); } #endif - public byte[] GetAudioclipjpArray() { return __p.__vector_as_array(22); } - public string Audioclipkr { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } + public byte[] GetAudioClipJpArray() { return __p.__vector_as_array(22); } + public string AudioClipKr { get { int o = __p.__offset(24); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T - public Span GetAudioclipkrBytes() { return __p.__vector_as_span(24, 1); } + public Span GetAudioClipKrBytes() { return __p.__vector_as_span(24, 1); } #else - public ArraySegment? GetAudioclipkrBytes() { return __p.__vector_as_arraysegment(24); } + public ArraySegment? GetAudioClipKrBytes() { return __p.__vector_as_arraysegment(24); } #endif - public byte[] GetAudioclipkrArray() { return __p.__vector_as_array(24); } + public byte[] GetAudioClipKrArray() { return __p.__vector_as_array(24); } public static Offset CreateMemoryLobbyExcel(FlatBufferBuilder builder, - long id = 0, - SCHALE.Common.FlatData.ProductionStep productionstep = SCHALE.Common.FlatData.ProductionStep.ToDo, - uint localizeetcid = 0, - long characterid = 0, - StringOffset prefabnameOffset = default(StringOffset), - SCHALE.Common.FlatData.MemoryLobbyCategory memorylobbycategory = SCHALE.Common.FlatData.MemoryLobbyCategory.None, - StringOffset slottexture_nameOffset = default(StringOffset), - StringOffset rewardtexturenameOffset = default(StringOffset), - long bgmid = 0, - StringOffset audioclipjpOffset = default(StringOffset), - StringOffset audioclipkrOffset = default(StringOffset)) { + long Id = 0, + SCHALE.Common.FlatData.ProductionStep ProductionStep_ = SCHALE.Common.FlatData.ProductionStep.ToDo, + uint LocalizeEtcId = 0, + long CharacterId = 0, + StringOffset PrefabNameOffset = default(StringOffset), + SCHALE.Common.FlatData.MemoryLobbyCategory MemoryLobbyCategory_ = SCHALE.Common.FlatData.MemoryLobbyCategory.None_, + StringOffset SlotTextureNameOffset = default(StringOffset), + StringOffset RewardTextureNameOffset = default(StringOffset), + long BGMId = 0, + StringOffset AudioClipJpOffset = default(StringOffset), + StringOffset AudioClipKrOffset = default(StringOffset)) { builder.StartTable(11); - MemoryLobbyExcel.AddBgmid(builder, bgmid); - MemoryLobbyExcel.AddCharacterid(builder, characterid); - MemoryLobbyExcel.AddId(builder, id); - MemoryLobbyExcel.AddAudioclipkr(builder, audioclipkrOffset); - MemoryLobbyExcel.AddAudioclipjp(builder, audioclipjpOffset); - MemoryLobbyExcel.AddRewardtexturename(builder, rewardtexturenameOffset); - MemoryLobbyExcel.AddSlottextureName(builder, slottexture_nameOffset); - MemoryLobbyExcel.AddMemorylobbycategory(builder, memorylobbycategory); - MemoryLobbyExcel.AddPrefabname(builder, prefabnameOffset); - MemoryLobbyExcel.AddLocalizeetcid(builder, localizeetcid); - MemoryLobbyExcel.AddProductionstep(builder, productionstep); + MemoryLobbyExcel.AddBGMId(builder, BGMId); + MemoryLobbyExcel.AddCharacterId(builder, CharacterId); + MemoryLobbyExcel.AddId(builder, Id); + MemoryLobbyExcel.AddAudioClipKr(builder, AudioClipKrOffset); + MemoryLobbyExcel.AddAudioClipJp(builder, AudioClipJpOffset); + MemoryLobbyExcel.AddRewardTextureName(builder, RewardTextureNameOffset); + MemoryLobbyExcel.AddSlotTextureName(builder, SlotTextureNameOffset); + MemoryLobbyExcel.AddMemoryLobbyCategory_(builder, MemoryLobbyCategory_); + MemoryLobbyExcel.AddPrefabName(builder, PrefabNameOffset); + MemoryLobbyExcel.AddLocalizeEtcId(builder, LocalizeEtcId); + MemoryLobbyExcel.AddProductionStep_(builder, ProductionStep_); return MemoryLobbyExcel.EndMemoryLobbyExcel(builder); } public static void StartMemoryLobbyExcel(FlatBufferBuilder builder) { builder.StartTable(11); } public static void AddId(FlatBufferBuilder builder, long id) { builder.AddLong(0, id, 0); } - public static void AddProductionstep(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionstep) { builder.AddInt(1, (int)productionstep, 0); } - public static void AddLocalizeetcid(FlatBufferBuilder builder, uint localizeetcid) { builder.AddUint(2, localizeetcid, 0); } - public static void AddCharacterid(FlatBufferBuilder builder, long characterid) { builder.AddLong(3, characterid, 0); } - public static void AddPrefabname(FlatBufferBuilder builder, StringOffset prefabnameOffset) { builder.AddOffset(4, prefabnameOffset.Value, 0); } - public static void AddMemorylobbycategory(FlatBufferBuilder builder, SCHALE.Common.FlatData.MemoryLobbyCategory memorylobbycategory) { builder.AddInt(5, (int)memorylobbycategory, 0); } - public static void AddSlottextureName(FlatBufferBuilder builder, StringOffset slottextureNameOffset) { builder.AddOffset(6, slottextureNameOffset.Value, 0); } - public static void AddRewardtexturename(FlatBufferBuilder builder, StringOffset rewardtexturenameOffset) { builder.AddOffset(7, rewardtexturenameOffset.Value, 0); } - public static void AddBgmid(FlatBufferBuilder builder, long bgmid) { builder.AddLong(8, bgmid, 0); } - public static void AddAudioclipjp(FlatBufferBuilder builder, StringOffset audioclipjpOffset) { builder.AddOffset(9, audioclipjpOffset.Value, 0); } - public static void AddAudioclipkr(FlatBufferBuilder builder, StringOffset audioclipkrOffset) { builder.AddOffset(10, audioclipkrOffset.Value, 0); } + public static void AddProductionStep_(FlatBufferBuilder builder, SCHALE.Common.FlatData.ProductionStep productionStep_) { builder.AddInt(1, (int)productionStep_, 0); } + public static void AddLocalizeEtcId(FlatBufferBuilder builder, uint localizeEtcId) { builder.AddUint(2, localizeEtcId, 0); } + public static void AddCharacterId(FlatBufferBuilder builder, long characterId) { builder.AddLong(3, characterId, 0); } + public static void AddPrefabName(FlatBufferBuilder builder, StringOffset prefabNameOffset) { builder.AddOffset(4, prefabNameOffset.Value, 0); } + public static void AddMemoryLobbyCategory_(FlatBufferBuilder builder, SCHALE.Common.FlatData.MemoryLobbyCategory memoryLobbyCategory_) { builder.AddInt(5, (int)memoryLobbyCategory_, 0); } + public static void AddSlotTextureName(FlatBufferBuilder builder, StringOffset slotTextureNameOffset) { builder.AddOffset(6, slotTextureNameOffset.Value, 0); } + public static void AddRewardTextureName(FlatBufferBuilder builder, StringOffset rewardTextureNameOffset) { builder.AddOffset(7, rewardTextureNameOffset.Value, 0); } + public static void AddBGMId(FlatBufferBuilder builder, long bGMId) { builder.AddLong(8, bGMId, 0); } + public static void AddAudioClipJp(FlatBufferBuilder builder, StringOffset audioClipJpOffset) { builder.AddOffset(9, audioClipJpOffset.Value, 0); } + public static void AddAudioClipKr(FlatBufferBuilder builder, StringOffset audioClipKrOffset) { builder.AddOffset(10, audioClipKrOffset.Value, 0); } public static Offset EndMemoryLobbyExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); @@ -113,66 +113,66 @@ public struct MemoryLobbyExcel : IFlatbufferObject public void UnPackTo(MemoryLobbyExcelT _o) { byte[] key = TableEncryptionService.CreateKey("MemoryLobby"); _o.Id = TableEncryptionService.Convert(this.Id, key); - _o.Productionstep = TableEncryptionService.Convert(this.Productionstep, key); - _o.Localizeetcid = TableEncryptionService.Convert(this.Localizeetcid, key); - _o.Characterid = TableEncryptionService.Convert(this.Characterid, key); - _o.Prefabname = TableEncryptionService.Convert(this.Prefabname, key); - _o.Memorylobbycategory = TableEncryptionService.Convert(this.Memorylobbycategory, key); - _o.SlottextureName = TableEncryptionService.Convert(this.SlottextureName, key); - _o.Rewardtexturename = TableEncryptionService.Convert(this.Rewardtexturename, key); - _o.Bgmid = TableEncryptionService.Convert(this.Bgmid, key); - _o.Audioclipjp = TableEncryptionService.Convert(this.Audioclipjp, key); - _o.Audioclipkr = TableEncryptionService.Convert(this.Audioclipkr, key); + _o.ProductionStep_ = TableEncryptionService.Convert(this.ProductionStep_, key); + _o.LocalizeEtcId = TableEncryptionService.Convert(this.LocalizeEtcId, key); + _o.CharacterId = TableEncryptionService.Convert(this.CharacterId, key); + _o.PrefabName = TableEncryptionService.Convert(this.PrefabName, key); + _o.MemoryLobbyCategory_ = TableEncryptionService.Convert(this.MemoryLobbyCategory_, key); + _o.SlotTextureName = TableEncryptionService.Convert(this.SlotTextureName, key); + _o.RewardTextureName = TableEncryptionService.Convert(this.RewardTextureName, key); + _o.BGMId = TableEncryptionService.Convert(this.BGMId, key); + _o.AudioClipJp = TableEncryptionService.Convert(this.AudioClipJp, key); + _o.AudioClipKr = TableEncryptionService.Convert(this.AudioClipKr, key); } public static Offset Pack(FlatBufferBuilder builder, MemoryLobbyExcelT _o) { if (_o == null) return default(Offset); - var _prefabname = _o.Prefabname == null ? default(StringOffset) : builder.CreateString(_o.Prefabname); - var _slottexture_name = _o.SlottextureName == null ? default(StringOffset) : builder.CreateString(_o.SlottextureName); - var _rewardtexturename = _o.Rewardtexturename == null ? default(StringOffset) : builder.CreateString(_o.Rewardtexturename); - var _audioclipjp = _o.Audioclipjp == null ? default(StringOffset) : builder.CreateString(_o.Audioclipjp); - var _audioclipkr = _o.Audioclipkr == null ? default(StringOffset) : builder.CreateString(_o.Audioclipkr); + var _PrefabName = _o.PrefabName == null ? default(StringOffset) : builder.CreateString(_o.PrefabName); + var _SlotTextureName = _o.SlotTextureName == null ? default(StringOffset) : builder.CreateString(_o.SlotTextureName); + var _RewardTextureName = _o.RewardTextureName == null ? default(StringOffset) : builder.CreateString(_o.RewardTextureName); + var _AudioClipJp = _o.AudioClipJp == null ? default(StringOffset) : builder.CreateString(_o.AudioClipJp); + var _AudioClipKr = _o.AudioClipKr == null ? default(StringOffset) : builder.CreateString(_o.AudioClipKr); return CreateMemoryLobbyExcel( builder, _o.Id, - _o.Productionstep, - _o.Localizeetcid, - _o.Characterid, - _prefabname, - _o.Memorylobbycategory, - _slottexture_name, - _rewardtexturename, - _o.Bgmid, - _audioclipjp, - _audioclipkr); + _o.ProductionStep_, + _o.LocalizeEtcId, + _o.CharacterId, + _PrefabName, + _o.MemoryLobbyCategory_, + _SlotTextureName, + _RewardTextureName, + _o.BGMId, + _AudioClipJp, + _AudioClipKr); } } public class MemoryLobbyExcelT { public long Id { get; set; } - public SCHALE.Common.FlatData.ProductionStep Productionstep { get; set; } - public uint Localizeetcid { get; set; } - public long Characterid { get; set; } - public string Prefabname { get; set; } - public SCHALE.Common.FlatData.MemoryLobbyCategory Memorylobbycategory { get; set; } - public string SlottextureName { get; set; } - public string Rewardtexturename { get; set; } - public long Bgmid { get; set; } - public string Audioclipjp { get; set; } - public string Audioclipkr { get; set; } + public SCHALE.Common.FlatData.ProductionStep ProductionStep_ { get; set; } + public uint LocalizeEtcId { get; set; } + public long CharacterId { get; set; } + public string PrefabName { get; set; } + public SCHALE.Common.FlatData.MemoryLobbyCategory MemoryLobbyCategory_ { get; set; } + public string SlotTextureName { get; set; } + public string RewardTextureName { get; set; } + public long BGMId { get; set; } + public string AudioClipJp { get; set; } + public string AudioClipKr { get; set; } public MemoryLobbyExcelT() { this.Id = 0; - this.Productionstep = SCHALE.Common.FlatData.ProductionStep.ToDo; - this.Localizeetcid = 0; - this.Characterid = 0; - this.Prefabname = null; - this.Memorylobbycategory = SCHALE.Common.FlatData.MemoryLobbyCategory.None; - this.SlottextureName = null; - this.Rewardtexturename = null; - this.Bgmid = 0; - this.Audioclipjp = null; - this.Audioclipkr = null; + this.ProductionStep_ = SCHALE.Common.FlatData.ProductionStep.ToDo; + this.LocalizeEtcId = 0; + this.CharacterId = 0; + this.PrefabName = null; + this.MemoryLobbyCategory_ = SCHALE.Common.FlatData.MemoryLobbyCategory.None_; + this.SlotTextureName = null; + this.RewardTextureName = null; + this.BGMId = 0; + this.AudioClipJp = null; + this.AudioClipKr = null; } } @@ -183,16 +183,16 @@ static public class MemoryLobbyExcelVerify { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*Id*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 6 /*Productionstep*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) - && verifier.VerifyField(tablePos, 8 /*Localizeetcid*/, 4 /*uint*/, 4, false) - && verifier.VerifyField(tablePos, 10 /*Characterid*/, 8 /*long*/, 8, false) - && verifier.VerifyString(tablePos, 12 /*Prefabname*/, false) - && verifier.VerifyField(tablePos, 14 /*Memorylobbycategory*/, 4 /*SCHALE.Common.FlatData.MemoryLobbyCategory*/, 4, false) - && verifier.VerifyString(tablePos, 16 /*SlottextureName*/, false) - && verifier.VerifyString(tablePos, 18 /*Rewardtexturename*/, false) - && verifier.VerifyField(tablePos, 20 /*Bgmid*/, 8 /*long*/, 8, false) - && verifier.VerifyString(tablePos, 22 /*Audioclipjp*/, false) - && verifier.VerifyString(tablePos, 24 /*Audioclipkr*/, false) + && verifier.VerifyField(tablePos, 6 /*ProductionStep_*/, 4 /*SCHALE.Common.FlatData.ProductionStep*/, 4, false) + && verifier.VerifyField(tablePos, 8 /*LocalizeEtcId*/, 4 /*uint*/, 4, false) + && verifier.VerifyField(tablePos, 10 /*CharacterId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 12 /*PrefabName*/, false) + && verifier.VerifyField(tablePos, 14 /*MemoryLobbyCategory_*/, 4 /*SCHALE.Common.FlatData.MemoryLobbyCategory*/, 4, false) + && verifier.VerifyString(tablePos, 16 /*SlotTextureName*/, false) + && verifier.VerifyString(tablePos, 18 /*RewardTextureName*/, false) + && verifier.VerifyField(tablePos, 20 /*BGMId*/, 8 /*long*/, 8, false) + && verifier.VerifyString(tablePos, 22 /*AudioClipJp*/, false) + && verifier.VerifyString(tablePos, 24 /*AudioClipKr*/, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/MemoryLobbyExcelTable.cs b/SCHALE.Common/FlatData/MemoryLobbyExcelTable.cs deleted file mode 100644 index 524bf24..0000000 --- a/SCHALE.Common/FlatData/MemoryLobbyExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct MemoryLobbyExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static MemoryLobbyExcelTable GetRootAsMemoryLobbyExcelTable(ByteBuffer _bb) { return GetRootAsMemoryLobbyExcelTable(_bb, new MemoryLobbyExcelTable()); } - public static MemoryLobbyExcelTable GetRootAsMemoryLobbyExcelTable(ByteBuffer _bb, MemoryLobbyExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public MemoryLobbyExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.MemoryLobbyExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.MemoryLobbyExcel?)(new SCHALE.Common.FlatData.MemoryLobbyExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateMemoryLobbyExcelTable(FlatBufferBuilder builder, - VectorOffset data_listOffset = default(VectorOffset)) { - builder.StartTable(1); - MemoryLobbyExcelTable.AddDataList(builder, data_listOffset); - return MemoryLobbyExcelTable.EndMemoryLobbyExcelTable(builder); - } - - public static void StartMemoryLobbyExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndMemoryLobbyExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public MemoryLobbyExcelTableT UnPack() { - var _o = new MemoryLobbyExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(MemoryLobbyExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("MemoryLobbyExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, MemoryLobbyExcelTableT _o) { - if (_o == null) return default(Offset); - var _data_list = default(VectorOffset); - if (_o.DataList != null) { - var __data_list = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __data_list.Length; ++_j) { __data_list[_j] = SCHALE.Common.FlatData.MemoryLobbyExcel.Pack(builder, _o.DataList[_j]); } - _data_list = CreateDataListVector(builder, __data_list); - } - return CreateMemoryLobbyExcelTable( - builder, - _data_list); - } -} - -public class MemoryLobbyExcelTableT -{ - public List DataList { get; set; } - - public MemoryLobbyExcelTableT() { - this.DataList = null; - } -} - - -static public class MemoryLobbyExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.MemoryLobbyExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/MiniGameDefenseInfoExcel.cs b/SCHALE.Common/FlatData/MiniGameDefenseInfoExcel.cs index 6120eed..f870e5f 100644 --- a/SCHALE.Common/FlatData/MiniGameDefenseInfoExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameDefenseInfoExcel.cs @@ -21,14 +21,14 @@ public struct MiniGameDefenseInfoExcel : IFlatbufferObject public MiniGameDefenseInfoExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType DefenseBattleParcelType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType DefenseBattleParcelType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long DefenseBattleParcelId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long DefenseBattleMultiplierMax { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool DisableRootMotion { get { int o = __p.__offset(12); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public static Offset CreateMiniGameDefenseInfoExcel(FlatBufferBuilder builder, long EventContentId = 0, - SCHALE.Common.FlatData.ParcelType DefenseBattleParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType DefenseBattleParcelType = SCHALE.Common.FlatData.ParcelType.None_, long DefenseBattleParcelId = 0, long DefenseBattleMultiplierMax = 0, bool DisableRootMotion = false) { @@ -86,7 +86,7 @@ public class MiniGameDefenseInfoExcelT public MiniGameDefenseInfoExcelT() { this.EventContentId = 0; - this.DefenseBattleParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.DefenseBattleParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.DefenseBattleParcelId = 0; this.DefenseBattleMultiplierMax = 0; this.DisableRootMotion = false; diff --git a/SCHALE.Common/FlatData/MiniGameDefenseStageExcel.cs b/SCHALE.Common/FlatData/MiniGameDefenseStageExcel.cs index a7172d9..0afc4f1 100644 --- a/SCHALE.Common/FlatData/MiniGameDefenseStageExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameDefenseStageExcel.cs @@ -29,14 +29,14 @@ public struct MiniGameDefenseStageExcel : IFlatbufferObject #endif public byte[] GetNameArray() { return __p.__vector_as_array(6); } public long EventContentId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None_; } } public uint StageDifficultyLocalize { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public int StageNumber { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int StageDisplay { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long PrevStageId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.EchelonExtensionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EchelonExtensionType.Base; } } public long BattleDuration { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType StageEnterCostType { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long StageEnterCostId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int StageEnterCostAmount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long EventContentStageRewardId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -59,7 +59,7 @@ public struct MiniGameDefenseStageExcel : IFlatbufferObject public SCHALE.Common.FlatData.StageTopography StageTopography_ { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } } public int RecommandLevel { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long GroundID { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(42); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None_; } } public SCHALE.Common.FlatData.StarGoalType StarGoal(int j) { int o = __p.__offset(44); return o != 0 ? (SCHALE.Common.FlatData.StarGoalType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.StarGoalType)0; } public int StarGoalLength { get { int o = __p.__offset(44); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T @@ -92,14 +92,14 @@ public struct MiniGameDefenseStageExcel : IFlatbufferObject long Id = 0, StringOffset NameOffset = default(StringOffset), long EventContentId = 0, - SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None, + SCHALE.Common.FlatData.StageDifficulty StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None_, uint StageDifficultyLocalize = 0, int StageNumber = 0, int StageDisplay = 0, long PrevStageId = 0, SCHALE.Common.FlatData.EchelonExtensionType EchelonExtensionType_ = SCHALE.Common.FlatData.EchelonExtensionType.Base, long BattleDuration = 0, - SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_, long StageEnterCostId = 0, int StageEnterCostAmount = 0, long EventContentStageRewardId = 0, @@ -108,7 +108,7 @@ public struct MiniGameDefenseStageExcel : IFlatbufferObject SCHALE.Common.FlatData.StageTopography StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street, int RecommandLevel = 0, long GroundID = 0, - SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, + SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None_, VectorOffset StarGoalOffset = default(VectorOffset), VectorOffset StarGoalAmountOffset = default(VectorOffset), StringOffset DefenseFormationBGPrefabOffset = default(StringOffset), @@ -328,14 +328,14 @@ public class MiniGameDefenseStageExcelT this.Id = 0; this.Name = null; this.EventContentId = 0; - this.StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None; + this.StageDifficulty_ = SCHALE.Common.FlatData.StageDifficulty.None_; this.StageDifficultyLocalize = 0; this.StageNumber = 0; this.StageDisplay = 0; this.PrevStageId = 0; this.EchelonExtensionType_ = SCHALE.Common.FlatData.EchelonExtensionType.Base; this.BattleDuration = 0; - this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None; + this.StageEnterCostType = SCHALE.Common.FlatData.ParcelType.None_; this.StageEnterCostId = 0; this.StageEnterCostAmount = 0; this.EventContentStageRewardId = 0; @@ -344,7 +344,7 @@ public class MiniGameDefenseStageExcelT this.StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street; this.RecommandLevel = 0; this.GroundID = 0; - this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; + this.ContentType_ = SCHALE.Common.FlatData.ContentType.None_; this.StarGoal = null; this.StarGoalAmount = null; this.DefenseFormationBGPrefab = null; diff --git a/SCHALE.Common/FlatData/MiniGameDreamEndingExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamEndingExcel.cs index d453dd7..5a91d49 100644 --- a/SCHALE.Common/FlatData/MiniGameDreamEndingExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameDreamEndingExcel.cs @@ -22,7 +22,7 @@ public struct MiniGameDreamEndingExcel : IFlatbufferObject public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EndingId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerEndingType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerEndingType.None; } } + public SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerEndingType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerEndingType.None_; } } public int Order { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long ScenarioGroupId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.DreamMakerEndingCondition EndingCondition(int j) { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerEndingCondition)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.DreamMakerEndingCondition)0; } @@ -45,7 +45,7 @@ public struct MiniGameDreamEndingExcel : IFlatbufferObject public static Offset CreateMiniGameDreamEndingExcel(FlatBufferBuilder builder, long EventContentId = 0, long EndingId = 0, - SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType_ = SCHALE.Common.FlatData.DreamMakerEndingType.None, + SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType_ = SCHALE.Common.FlatData.DreamMakerEndingType.None_, int Order = 0, long ScenarioGroupId = 0, VectorOffset EndingConditionOffset = default(VectorOffset), @@ -137,7 +137,7 @@ public class MiniGameDreamEndingExcelT public MiniGameDreamEndingExcelT() { this.EventContentId = 0; this.EndingId = 0; - this.DreamMakerEndingType_ = SCHALE.Common.FlatData.DreamMakerEndingType.None; + this.DreamMakerEndingType_ = SCHALE.Common.FlatData.DreamMakerEndingType.None_; this.Order = 0; this.ScenarioGroupId = 0; this.EndingCondition = null; diff --git a/SCHALE.Common/FlatData/MiniGameDreamEndingRewardExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamEndingRewardExcel.cs index 2dcf43e..66b16ba 100644 --- a/SCHALE.Common/FlatData/MiniGameDreamEndingRewardExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameDreamEndingRewardExcel.cs @@ -23,8 +23,8 @@ public struct MiniGameDreamEndingRewardExcel : IFlatbufferObject public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EndingId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public uint LocalizeEtcId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - public SCHALE.Common.FlatData.DreamMakerEndingRewardType DreamMakerEndingRewardType_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerEndingRewardType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerEndingRewardType.None; } } - public SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerEndingType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerEndingType.None; } } + public SCHALE.Common.FlatData.DreamMakerEndingRewardType DreamMakerEndingRewardType_ { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerEndingRewardType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerEndingRewardType.None_; } } + public SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerEndingType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerEndingType.None_; } } public SCHALE.Common.FlatData.ParcelType RewardParcelType(int j) { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } public int RewardParcelTypeLength { get { int o = __p.__offset(14); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T @@ -54,8 +54,8 @@ public struct MiniGameDreamEndingRewardExcel : IFlatbufferObject long EventContentId = 0, long EndingId = 0, uint LocalizeEtcId = 0, - SCHALE.Common.FlatData.DreamMakerEndingRewardType DreamMakerEndingRewardType_ = SCHALE.Common.FlatData.DreamMakerEndingRewardType.None, - SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType_ = SCHALE.Common.FlatData.DreamMakerEndingType.None, + SCHALE.Common.FlatData.DreamMakerEndingRewardType DreamMakerEndingRewardType_ = SCHALE.Common.FlatData.DreamMakerEndingRewardType.None_, + SCHALE.Common.FlatData.DreamMakerEndingType DreamMakerEndingType_ = SCHALE.Common.FlatData.DreamMakerEndingType.None_, VectorOffset RewardParcelTypeOffset = default(VectorOffset), VectorOffset RewardParcelIdOffset = default(VectorOffset), VectorOffset RewardParcelAmountOffset = default(VectorOffset)) { @@ -163,8 +163,8 @@ public class MiniGameDreamEndingRewardExcelT this.EventContentId = 0; this.EndingId = 0; this.LocalizeEtcId = 0; - this.DreamMakerEndingRewardType_ = SCHALE.Common.FlatData.DreamMakerEndingRewardType.None; - this.DreamMakerEndingType_ = SCHALE.Common.FlatData.DreamMakerEndingType.None; + this.DreamMakerEndingRewardType_ = SCHALE.Common.FlatData.DreamMakerEndingRewardType.None_; + this.DreamMakerEndingType_ = SCHALE.Common.FlatData.DreamMakerEndingType.None_; this.RewardParcelType = null; this.RewardParcelId = null; this.RewardParcelAmount = null; diff --git a/SCHALE.Common/FlatData/MiniGameDreamInfoExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamInfoExcel.cs index 64196d4..eeee349 100644 --- a/SCHALE.Common/FlatData/MiniGameDreamInfoExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameDreamInfoExcel.cs @@ -21,14 +21,14 @@ public struct MiniGameDreamInfoExcel : IFlatbufferObject public MiniGameDreamInfoExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.DreamMakerMultiplierCondition DreamMakerMultiplierCondition_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerMultiplierCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerMultiplierCondition.None; } } + public SCHALE.Common.FlatData.DreamMakerMultiplierCondition DreamMakerMultiplierCondition_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerMultiplierCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerMultiplierCondition.None_; } } public long DreamMakerMultiplierConditionValue { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long DreamMakerMultiplierMax { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long DreamMakerDays { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long DreamMakerActionPoint { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType DreamMakerParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType DreamMakerParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long DreamMakerParcelId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType DreamMakerDailyPointParcelType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType DreamMakerDailyPointParcelType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long DreamMakerDailyPointId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long DreamMakerParameterTransfer { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ScheduleCostGoodsId { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -36,14 +36,14 @@ public struct MiniGameDreamInfoExcel : IFlatbufferObject public static Offset CreateMiniGameDreamInfoExcel(FlatBufferBuilder builder, long EventContentId = 0, - SCHALE.Common.FlatData.DreamMakerMultiplierCondition DreamMakerMultiplierCondition_ = SCHALE.Common.FlatData.DreamMakerMultiplierCondition.None, + SCHALE.Common.FlatData.DreamMakerMultiplierCondition DreamMakerMultiplierCondition_ = SCHALE.Common.FlatData.DreamMakerMultiplierCondition.None_, long DreamMakerMultiplierConditionValue = 0, long DreamMakerMultiplierMax = 0, long DreamMakerDays = 0, long DreamMakerActionPoint = 0, - SCHALE.Common.FlatData.ParcelType DreamMakerParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType DreamMakerParcelType = SCHALE.Common.FlatData.ParcelType.None_, long DreamMakerParcelId = 0, - SCHALE.Common.FlatData.ParcelType DreamMakerDailyPointParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType DreamMakerDailyPointParcelType = SCHALE.Common.FlatData.ParcelType.None_, long DreamMakerDailyPointId = 0, long DreamMakerParameterTransfer = 0, long ScheduleCostGoodsId = 0, @@ -142,14 +142,14 @@ public class MiniGameDreamInfoExcelT public MiniGameDreamInfoExcelT() { this.EventContentId = 0; - this.DreamMakerMultiplierCondition_ = SCHALE.Common.FlatData.DreamMakerMultiplierCondition.None; + this.DreamMakerMultiplierCondition_ = SCHALE.Common.FlatData.DreamMakerMultiplierCondition.None_; this.DreamMakerMultiplierConditionValue = 0; this.DreamMakerMultiplierMax = 0; this.DreamMakerDays = 0; this.DreamMakerActionPoint = 0; - this.DreamMakerParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.DreamMakerParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.DreamMakerParcelId = 0; - this.DreamMakerDailyPointParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.DreamMakerDailyPointParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.DreamMakerDailyPointId = 0; this.DreamMakerParameterTransfer = 0; this.ScheduleCostGoodsId = 0; diff --git a/SCHALE.Common/FlatData/MiniGameDreamParameterExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamParameterExcel.cs index 2e6d898..bfcc3f3 100644 --- a/SCHALE.Common/FlatData/MiniGameDreamParameterExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameDreamParameterExcel.cs @@ -22,7 +22,7 @@ public struct MiniGameDreamParameterExcel : IFlatbufferObject public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.DreamMakerParameterType ParameterType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerParameterType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerParameterType.None; } } + public SCHALE.Common.FlatData.DreamMakerParameterType ParameterType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerParameterType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerParameterType.None_; } } public uint LocalizeEtcId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public string IconPath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -39,7 +39,7 @@ public struct MiniGameDreamParameterExcel : IFlatbufferObject public static Offset CreateMiniGameDreamParameterExcel(FlatBufferBuilder builder, long Id = 0, long EventContentId = 0, - SCHALE.Common.FlatData.DreamMakerParameterType ParameterType = SCHALE.Common.FlatData.DreamMakerParameterType.None, + SCHALE.Common.FlatData.DreamMakerParameterType ParameterType = SCHALE.Common.FlatData.DreamMakerParameterType.None_, uint LocalizeEtcId = 0, StringOffset IconPathOffset = default(StringOffset), long ParameterBase = 0, @@ -122,7 +122,7 @@ public class MiniGameDreamParameterExcelT public MiniGameDreamParameterExcelT() { this.Id = 0; this.EventContentId = 0; - this.ParameterType = SCHALE.Common.FlatData.DreamMakerParameterType.None; + this.ParameterType = SCHALE.Common.FlatData.DreamMakerParameterType.None_; this.LocalizeEtcId = 0; this.IconPath = null; this.ParameterBase = 0; diff --git a/SCHALE.Common/FlatData/MiniGameDreamScheduleResultExcel.cs b/SCHALE.Common/FlatData/MiniGameDreamScheduleResultExcel.cs index aeac49a..71e2f04 100644 --- a/SCHALE.Common/FlatData/MiniGameDreamScheduleResultExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameDreamScheduleResultExcel.cs @@ -22,7 +22,7 @@ public struct MiniGameDreamScheduleResultExcel : IFlatbufferObject public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EventContentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.DreamMakerResult DreamMakerResult_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerResult)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerResult.None; } } + public SCHALE.Common.FlatData.DreamMakerResult DreamMakerResult_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerResult)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerResult.None_; } } public long DreamMakerScheduleGroup { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int Prob { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.DreamMakerParameterType RewardParameter(int j) { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerParameterType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.DreamMakerParameterType)0; } @@ -49,20 +49,20 @@ public struct MiniGameDreamScheduleResultExcel : IFlatbufferObject public ArraySegment? GetRewardParameterAmountBytes() { return __p.__vector_as_arraysegment(18); } #endif public long[] GetRewardParameterAmountArray() { return __p.__vector_as_array(18); } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardParcelId { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RewardParcelAmount { get { int o = __p.__offset(24); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateMiniGameDreamScheduleResultExcel(FlatBufferBuilder builder, long Id = 0, long EventContentId = 0, - SCHALE.Common.FlatData.DreamMakerResult DreamMakerResult_ = SCHALE.Common.FlatData.DreamMakerResult.None, + SCHALE.Common.FlatData.DreamMakerResult DreamMakerResult_ = SCHALE.Common.FlatData.DreamMakerResult.None_, long DreamMakerScheduleGroup = 0, int Prob = 0, VectorOffset RewardParameterOffset = default(VectorOffset), VectorOffset RewardParameterOperationTypeOffset = default(VectorOffset), VectorOffset RewardParameterAmountOffset = default(VectorOffset), - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardParcelId = 0, long RewardParcelAmount = 0) { builder.StartTable(11); @@ -183,13 +183,13 @@ public class MiniGameDreamScheduleResultExcelT public MiniGameDreamScheduleResultExcelT() { this.Id = 0; this.EventContentId = 0; - this.DreamMakerResult_ = SCHALE.Common.FlatData.DreamMakerResult.None; + this.DreamMakerResult_ = SCHALE.Common.FlatData.DreamMakerResult.None_; this.DreamMakerScheduleGroup = 0; this.Prob = 0; this.RewardParameter = null; this.RewardParameterOperationType = null; this.RewardParameterAmount = null; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardParcelId = 0; this.RewardParcelAmount = 0; } diff --git a/SCHALE.Common/FlatData/MiniGameMissionExcel.cs b/SCHALE.Common/FlatData/MiniGameMissionExcel.cs index 96b6430..eca223f 100644 --- a/SCHALE.Common/FlatData/MiniGameMissionExcel.cs +++ b/SCHALE.Common/FlatData/MiniGameMissionExcel.cs @@ -32,7 +32,7 @@ public struct MiniGameMissionExcel : IFlatbufferObject public byte[] GetGroupNameArray() { return __p.__vector_as_array(10); } public SCHALE.Common.FlatData.MissionCategory Category { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.MissionCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCategory.Challenge; } } public uint Description { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - public SCHALE.Common.FlatData.MissionResetType ResetType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.MissionResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionResetType.None; } } + public SCHALE.Common.FlatData.MissionResetType ResetType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.MissionResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionResetType.None_; } } public SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.MissionToastDisplayConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; } } public string ToastImagePath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -55,7 +55,7 @@ public struct MiniGameMissionExcel : IFlatbufferObject public long AccountLevel { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string ShortcutUI(int j) { int o = __p.__offset(32); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int ShortcutUILength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } - public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.MissionCompleteConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCompleteConditionType.None; } } + public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get { int o = __p.__offset(34); return o != 0 ? (SCHALE.Common.FlatData.MissionCompleteConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCompleteConditionType.None_; } } public bool IsCompleteExtensionTime { get { int o = __p.__offset(36); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long CompleteConditionCount { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CompleteConditionParameter(int j) { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } @@ -113,7 +113,7 @@ public struct MiniGameMissionExcel : IFlatbufferObject StringOffset GroupNameOffset = default(StringOffset), SCHALE.Common.FlatData.MissionCategory Category = SCHALE.Common.FlatData.MissionCategory.Challenge, uint Description = 0, - SCHALE.Common.FlatData.MissionResetType ResetType = SCHALE.Common.FlatData.MissionResetType.None, + SCHALE.Common.FlatData.MissionResetType ResetType = SCHALE.Common.FlatData.MissionResetType.None_, SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always, StringOffset ToastImagePathOffset = default(StringOffset), bool ViewFlag = false, @@ -122,7 +122,7 @@ public struct MiniGameMissionExcel : IFlatbufferObject SCHALE.Common.FlatData.AccountState AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn, long AccountLevel = 0, VectorOffset ShortcutUIOffset = default(VectorOffset), - SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None, + SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None_, bool IsCompleteExtensionTime = false, long CompleteConditionCount = 0, VectorOffset CompleteConditionParameterOffset = default(VectorOffset), @@ -366,7 +366,7 @@ public class MiniGameMissionExcelT this.GroupName = null; this.Category = SCHALE.Common.FlatData.MissionCategory.Challenge; this.Description = 0; - this.ResetType = SCHALE.Common.FlatData.MissionResetType.None; + this.ResetType = SCHALE.Common.FlatData.MissionResetType.None_; this.ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; this.ToastImagePath = null; this.ViewFlag = false; @@ -375,7 +375,7 @@ public class MiniGameMissionExcelT this.AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn; this.AccountLevel = 0; this.ShortcutUI = null; - this.CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None; + this.CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None_; this.IsCompleteExtensionTime = false; this.CompleteConditionCount = 0; this.CompleteConditionParameter = null; diff --git a/SCHALE.Common/FlatData/MinigameDreamVoiceExcel.cs b/SCHALE.Common/FlatData/MinigameDreamVoiceExcel.cs index ffe9356..9978016 100644 --- a/SCHALE.Common/FlatData/MinigameDreamVoiceExcel.cs +++ b/SCHALE.Common/FlatData/MinigameDreamVoiceExcel.cs @@ -22,13 +22,13 @@ public struct MinigameDreamVoiceExcel : IFlatbufferObject public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long UniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.DreamMakerVoiceCondition VoiceCondition { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerVoiceCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerVoiceCondition.None; } } + public SCHALE.Common.FlatData.DreamMakerVoiceCondition VoiceCondition { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.DreamMakerVoiceCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.DreamMakerVoiceCondition.None_; } } public uint VoiceClip { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public static Offset CreateMinigameDreamVoiceExcel(FlatBufferBuilder builder, long EventContentId = 0, long UniqueId = 0, - SCHALE.Common.FlatData.DreamMakerVoiceCondition VoiceCondition = SCHALE.Common.FlatData.DreamMakerVoiceCondition.None, + SCHALE.Common.FlatData.DreamMakerVoiceCondition VoiceCondition = SCHALE.Common.FlatData.DreamMakerVoiceCondition.None_, uint VoiceClip = 0) { builder.StartTable(4); MinigameDreamVoiceExcel.AddUniqueId(builder, UniqueId); @@ -80,7 +80,7 @@ public class MinigameDreamVoiceExcelT public MinigameDreamVoiceExcelT() { this.EventContentId = 0; this.UniqueId = 0; - this.VoiceCondition = SCHALE.Common.FlatData.DreamMakerVoiceCondition.None; + this.VoiceCondition = SCHALE.Common.FlatData.DreamMakerVoiceCondition.None_; this.VoiceClip = 0; } } diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterExcel.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterExcel.cs index 5c8d8f3..71498e3 100644 --- a/SCHALE.Common/FlatData/MinigameTBGEncounterExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterExcel.cs @@ -24,8 +24,8 @@ public struct MinigameTBGEncounterExcel : IFlatbufferObject public long UniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool AllThema { get { int o = __p.__offset(8); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public int ThemaIndex { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.TBGThemaType ThemaType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.TBGThemaType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGThemaType.None; } } - public SCHALE.Common.FlatData.TBGObjectType ObjectType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.TBGObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGObjectType.None; } } + public SCHALE.Common.FlatData.TBGThemaType ThemaType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.TBGThemaType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGThemaType.None_; } } + public SCHALE.Common.FlatData.TBGObjectType ObjectType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.TBGObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGObjectType.None_; } } public string EnemyImagePath { get { int o = __p.__offset(16); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetEnemyImagePathBytes() { return __p.__vector_as_span(16, 1); } @@ -139,8 +139,8 @@ public struct MinigameTBGEncounterExcel : IFlatbufferObject long UniqueId = 0, bool AllThema = false, int ThemaIndex = 0, - SCHALE.Common.FlatData.TBGThemaType ThemaType = SCHALE.Common.FlatData.TBGThemaType.None, - SCHALE.Common.FlatData.TBGObjectType ObjectType = SCHALE.Common.FlatData.TBGObjectType.None, + SCHALE.Common.FlatData.TBGThemaType ThemaType = SCHALE.Common.FlatData.TBGThemaType.None_, + SCHALE.Common.FlatData.TBGObjectType ObjectType = SCHALE.Common.FlatData.TBGObjectType.None_, StringOffset EnemyImagePathOffset = default(StringOffset), StringOffset EnemyPrefabNameOffset = default(StringOffset), StringOffset EnemyNameLocalizeOffset = default(StringOffset), @@ -320,8 +320,8 @@ public class MinigameTBGEncounterExcelT this.UniqueId = 0; this.AllThema = false; this.ThemaIndex = 0; - this.ThemaType = SCHALE.Common.FlatData.TBGThemaType.None; - this.ObjectType = SCHALE.Common.FlatData.TBGObjectType.None; + this.ThemaType = SCHALE.Common.FlatData.TBGThemaType.None_; + this.ObjectType = SCHALE.Common.FlatData.TBGObjectType.None_; this.EnemyImagePath = null; this.EnemyPrefabName = null; this.EnemyNameLocalize = null; diff --git a/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcel.cs b/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcel.cs index 481536d..1985d8e 100644 --- a/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGEncounterRewardExcel.cs @@ -22,9 +22,9 @@ public struct MinigameTBGEncounterRewardExcel : IFlatbufferObject public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long UniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.TBGOptionSuccessType TBGOptionSuccessType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.TBGOptionSuccessType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGOptionSuccessType.None; } } + public SCHALE.Common.FlatData.TBGOptionSuccessType TBGOptionSuccessType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.TBGOptionSuccessType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGOptionSuccessType.None_; } } public long Paremeter { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ParcelId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long Amount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int Prob { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -32,9 +32,9 @@ public struct MinigameTBGEncounterRewardExcel : IFlatbufferObject public static Offset CreateMinigameTBGEncounterRewardExcel(FlatBufferBuilder builder, long GroupId = 0, long UniqueId = 0, - SCHALE.Common.FlatData.TBGOptionSuccessType TBGOptionSuccessType_ = SCHALE.Common.FlatData.TBGOptionSuccessType.None, + SCHALE.Common.FlatData.TBGOptionSuccessType TBGOptionSuccessType_ = SCHALE.Common.FlatData.TBGOptionSuccessType.None_, long Paremeter = 0, - SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_, long ParcelId = 0, long Amount = 0, int Prob = 0) { @@ -108,9 +108,9 @@ public class MinigameTBGEncounterRewardExcelT public MinigameTBGEncounterRewardExcelT() { this.GroupId = 0; this.UniqueId = 0; - this.TBGOptionSuccessType_ = SCHALE.Common.FlatData.TBGOptionSuccessType.None; + this.TBGOptionSuccessType_ = SCHALE.Common.FlatData.TBGOptionSuccessType.None_; this.Paremeter = 0; - this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_; this.ParcelId = 0; this.Amount = 0; this.Prob = 0; diff --git a/SCHALE.Common/FlatData/MinigameTBGItemExcel.cs b/SCHALE.Common/FlatData/MinigameTBGItemExcel.cs index e0bdbf7..2d90e49 100644 --- a/SCHALE.Common/FlatData/MinigameTBGItemExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGItemExcel.cs @@ -21,8 +21,8 @@ public struct MinigameTBGItemExcel : IFlatbufferObject public MinigameTBGItemExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long UniqueId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.TBGItemType ItemType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TBGItemType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGItemType.None; } } - public SCHALE.Common.FlatData.TBGItemEffectType TBGItemEffectType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.TBGItemEffectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGItemEffectType.None; } } + public SCHALE.Common.FlatData.TBGItemType ItemType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TBGItemType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGItemType.None_; } } + public SCHALE.Common.FlatData.TBGItemEffectType TBGItemEffectType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.TBGItemEffectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGItemEffectType.None_; } } public int ItemParameter { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public string LocalizeETCId { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -57,8 +57,8 @@ public struct MinigameTBGItemExcel : IFlatbufferObject public static Offset CreateMinigameTBGItemExcel(FlatBufferBuilder builder, long UniqueId = 0, - SCHALE.Common.FlatData.TBGItemType ItemType = SCHALE.Common.FlatData.TBGItemType.None, - SCHALE.Common.FlatData.TBGItemEffectType TBGItemEffectType_ = SCHALE.Common.FlatData.TBGItemEffectType.None, + SCHALE.Common.FlatData.TBGItemType ItemType = SCHALE.Common.FlatData.TBGItemType.None_, + SCHALE.Common.FlatData.TBGItemEffectType TBGItemEffectType_ = SCHALE.Common.FlatData.TBGItemEffectType.None_, int ItemParameter = 0, StringOffset LocalizeETCIdOffset = default(StringOffset), StringOffset IconOffset = default(StringOffset), @@ -149,8 +149,8 @@ public class MinigameTBGItemExcelT public MinigameTBGItemExcelT() { this.UniqueId = 0; - this.ItemType = SCHALE.Common.FlatData.TBGItemType.None; - this.TBGItemEffectType_ = SCHALE.Common.FlatData.TBGItemEffectType.None; + this.ItemType = SCHALE.Common.FlatData.TBGItemType.None_; + this.TBGItemEffectType_ = SCHALE.Common.FlatData.TBGItemEffectType.None_; this.ItemParameter = 0; this.LocalizeETCId = null; this.Icon = null; diff --git a/SCHALE.Common/FlatData/MinigameTBGObjectExcel.cs b/SCHALE.Common/FlatData/MinigameTBGObjectExcel.cs index 7c20cce..ad12719 100644 --- a/SCHALE.Common/FlatData/MinigameTBGObjectExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGObjectExcel.cs @@ -35,8 +35,8 @@ public struct MinigameTBGObjectExcel : IFlatbufferObject public ArraySegment? GetPrefabNameBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetPrefabNameArray() { return __p.__vector_as_array(8); } - public SCHALE.Common.FlatData.TBGObjectType ObjectType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.TBGObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGObjectType.None; } } - public SCHALE.Common.FlatData.ParcelType ObjectCostType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.TBGObjectType ObjectType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.TBGObjectType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGObjectType.None_; } } + public SCHALE.Common.FlatData.ParcelType ObjectCostType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ObjectCostId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int ObjectCostAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool Disposable { get { int o = __p.__offset(18); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } @@ -46,8 +46,8 @@ public struct MinigameTBGObjectExcel : IFlatbufferObject long UniqueId = 0, StringOffset KeyOffset = default(StringOffset), StringOffset PrefabNameOffset = default(StringOffset), - SCHALE.Common.FlatData.TBGObjectType ObjectType = SCHALE.Common.FlatData.TBGObjectType.None, - SCHALE.Common.FlatData.ParcelType ObjectCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.TBGObjectType ObjectType = SCHALE.Common.FlatData.TBGObjectType.None_, + SCHALE.Common.FlatData.ParcelType ObjectCostType = SCHALE.Common.FlatData.ParcelType.None_, long ObjectCostId = 0, int ObjectCostAmount = 0, bool Disposable = false, @@ -130,8 +130,8 @@ public class MinigameTBGObjectExcelT this.UniqueId = 0; this.Key = null; this.PrefabName = null; - this.ObjectType = SCHALE.Common.FlatData.TBGObjectType.None; - this.ObjectCostType = SCHALE.Common.FlatData.ParcelType.None; + this.ObjectType = SCHALE.Common.FlatData.TBGObjectType.None_; + this.ObjectCostType = SCHALE.Common.FlatData.ParcelType.None_; this.ObjectCostId = 0; this.ObjectCostAmount = 0; this.Disposable = false; diff --git a/SCHALE.Common/FlatData/MinigameTBGSeasonExcel.cs b/SCHALE.Common/FlatData/MinigameTBGSeasonExcel.cs index dd55676..debf1d5 100644 --- a/SCHALE.Common/FlatData/MinigameTBGSeasonExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGSeasonExcel.cs @@ -56,9 +56,9 @@ public struct MinigameTBGSeasonExcel : IFlatbufferObject public ArraySegment? GetEchelonSlot4PortraitBytes() { return __p.__vector_as_arraysegment(26); } #endif public byte[] GetEchelonSlot4PortraitArray() { return __p.__vector_as_array(26); } - public SCHALE.Common.FlatData.ParcelType EventUseCostType { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType EventUseCostType { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long EventUseCostId { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType EchelonRevivalCostType { get { int o = __p.__offset(32); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType EchelonRevivalCostType { get { int o = __p.__offset(32); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long EchelonRevivalCostId { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int EchelonRevivalCostAmount { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int EnemyBossHP { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -99,9 +99,9 @@ public struct MinigameTBGSeasonExcel : IFlatbufferObject StringOffset EchelonSlot2PortraitOffset = default(StringOffset), StringOffset EchelonSlot3PortraitOffset = default(StringOffset), StringOffset EchelonSlot4PortraitOffset = default(StringOffset), - SCHALE.Common.FlatData.ParcelType EventUseCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType EventUseCostType = SCHALE.Common.FlatData.ParcelType.None_, long EventUseCostId = 0, - SCHALE.Common.FlatData.ParcelType EchelonRevivalCostType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType EchelonRevivalCostType = SCHALE.Common.FlatData.ParcelType.None_, long EchelonRevivalCostId = 0, int EchelonRevivalCostAmount = 0, int EnemyBossHP = 0, @@ -307,9 +307,9 @@ public class MinigameTBGSeasonExcelT this.EchelonSlot2Portrait = null; this.EchelonSlot3Portrait = null; this.EchelonSlot4Portrait = null; - this.EventUseCostType = SCHALE.Common.FlatData.ParcelType.None; + this.EventUseCostType = SCHALE.Common.FlatData.ParcelType.None_; this.EventUseCostId = 0; - this.EchelonRevivalCostType = SCHALE.Common.FlatData.ParcelType.None; + this.EchelonRevivalCostType = SCHALE.Common.FlatData.ParcelType.None_; this.EchelonRevivalCostId = 0; this.EchelonRevivalCostAmount = 0; this.EnemyBossHP = 0; diff --git a/SCHALE.Common/FlatData/MinigameTBGThemaExcel.cs b/SCHALE.Common/FlatData/MinigameTBGThemaExcel.cs index 5ef0ab9..c7842bb 100644 --- a/SCHALE.Common/FlatData/MinigameTBGThemaExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGThemaExcel.cs @@ -23,7 +23,7 @@ public struct MinigameTBGThemaExcel : IFlatbufferObject public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long UniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int ThemaIndex { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.TBGThemaType ThemaType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.TBGThemaType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGThemaType.None; } } + public SCHALE.Common.FlatData.TBGThemaType ThemaType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.TBGThemaType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGThemaType.None_; } } public string ThemaMap { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetThemaMapBytes() { return __p.__vector_as_span(12, 1); } @@ -84,7 +84,7 @@ public struct MinigameTBGThemaExcel : IFlatbufferObject long EventContentId = 0, long UniqueId = 0, int ThemaIndex = 0, - SCHALE.Common.FlatData.TBGThemaType ThemaType = SCHALE.Common.FlatData.TBGThemaType.None, + SCHALE.Common.FlatData.TBGThemaType ThemaType = SCHALE.Common.FlatData.TBGThemaType.None_, StringOffset ThemaMapOffset = default(StringOffset), StringOffset ThemaMapBGOffset = default(StringOffset), VectorOffset PortalConditionOffset = default(VectorOffset), @@ -231,7 +231,7 @@ public class MinigameTBGThemaExcelT this.EventContentId = 0; this.UniqueId = 0; this.ThemaIndex = 0; - this.ThemaType = SCHALE.Common.FlatData.TBGThemaType.None; + this.ThemaType = SCHALE.Common.FlatData.TBGThemaType.None_; this.ThemaMap = null; this.ThemaMapBG = null; this.PortalCondition = null; diff --git a/SCHALE.Common/FlatData/MinigameTBGVoiceExcel.cs b/SCHALE.Common/FlatData/MinigameTBGVoiceExcel.cs index 590d467..3cd1418 100644 --- a/SCHALE.Common/FlatData/MinigameTBGVoiceExcel.cs +++ b/SCHALE.Common/FlatData/MinigameTBGVoiceExcel.cs @@ -22,13 +22,13 @@ public struct MinigameTBGVoiceExcel : IFlatbufferObject public long EventContentId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long UniqueId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.TBGVoiceCondition VoiceCondition { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.TBGVoiceCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGVoiceCondition.None; } } + public SCHALE.Common.FlatData.TBGVoiceCondition VoiceCondition { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.TBGVoiceCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TBGVoiceCondition.None_; } } public uint VoiceId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public static Offset CreateMinigameTBGVoiceExcel(FlatBufferBuilder builder, long EventContentId = 0, long UniqueId = 0, - SCHALE.Common.FlatData.TBGVoiceCondition VoiceCondition = SCHALE.Common.FlatData.TBGVoiceCondition.None, + SCHALE.Common.FlatData.TBGVoiceCondition VoiceCondition = SCHALE.Common.FlatData.TBGVoiceCondition.None_, uint VoiceId = 0) { builder.StartTable(4); MinigameTBGVoiceExcel.AddUniqueId(builder, UniqueId); @@ -80,7 +80,7 @@ public class MinigameTBGVoiceExcelT public MinigameTBGVoiceExcelT() { this.EventContentId = 0; this.UniqueId = 0; - this.VoiceCondition = SCHALE.Common.FlatData.TBGVoiceCondition.None; + this.VoiceCondition = SCHALE.Common.FlatData.TBGVoiceCondition.None_; this.VoiceId = 0; } } diff --git a/SCHALE.Common/FlatData/MissionCompleteConditionType.cs b/SCHALE.Common/FlatData/MissionCompleteConditionType.cs index 866a592..9a2aabd 100644 --- a/SCHALE.Common/FlatData/MissionCompleteConditionType.cs +++ b/SCHALE.Common/FlatData/MissionCompleteConditionType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum MissionCompleteConditionType : int { - None = 0, + None_ = 0, Reset_DailyLogin = 1, Reset_DailyLoginCount = 2, Reset_CompleteMission = 3, @@ -177,6 +177,8 @@ public enum MissionCompleteConditionType : int Reset_ClearCharacterLimitDefense = 167, Reset_ClearTimeLimitDefenseFromSecond = 168, Reset_JoinMultiFloorRaidCount = 169, + Reset_GivePresentCharacterCount = 170, + Reset_CharacterInviteCount = 171, }; diff --git a/SCHALE.Common/FlatData/MissionExcel.cs b/SCHALE.Common/FlatData/MissionExcel.cs index e3de8e1..0c27a95 100644 --- a/SCHALE.Common/FlatData/MissionExcel.cs +++ b/SCHALE.Common/FlatData/MissionExcel.cs @@ -23,7 +23,7 @@ public struct MissionExcel : IFlatbufferObject public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.MissionCategory Category { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.MissionCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCategory.Challenge; } } public uint Description { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - public SCHALE.Common.FlatData.MissionResetType ResetType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.MissionResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionResetType.None; } } + public SCHALE.Common.FlatData.MissionResetType ResetType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.MissionResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionResetType.None_; } } public SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.MissionToastDisplayConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; } } public string ToastImagePath { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -56,7 +56,7 @@ public struct MissionExcel : IFlatbufferObject public ArraySegment? GetStartableEndDateBytes() { return __p.__vector_as_arraysegment(26); } #endif public byte[] GetStartableEndDateArray() { return __p.__vector_as_array(26); } - public SCHALE.Common.FlatData.ContentType DateAutoRefer { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public SCHALE.Common.FlatData.ContentType DateAutoRefer { get { int o = __p.__offset(28); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None_; } } public long DisplayOrder { get { int o = __p.__offset(30); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PreMissionId(int j) { int o = __p.__offset(32); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int PreMissionIdLength { get { int o = __p.__offset(32); return o != 0 ? __p.__vector_len(o) : 0; } } @@ -79,7 +79,7 @@ public struct MissionExcel : IFlatbufferObject public string ShortcutUI(int j) { int o = __p.__offset(40); return o != 0 ? __p.__string(__p.__vector(o) + j * 4) : null; } public int ShortcutUILength { get { int o = __p.__offset(40); return o != 0 ? __p.__vector_len(o) : 0; } } public long ChallengeStageShortcut { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get { int o = __p.__offset(44); return o != 0 ? (SCHALE.Common.FlatData.MissionCompleteConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCompleteConditionType.None; } } + public SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType { get { int o = __p.__offset(44); return o != 0 ? (SCHALE.Common.FlatData.MissionCompleteConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.MissionCompleteConditionType.None_; } } public long CompleteConditionCount { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CompleteConditionParameter(int j) { int o = __p.__offset(48); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int CompleteConditionParameterLength { get { int o = __p.__offset(48); return o != 0 ? __p.__vector_len(o) : 0; } } @@ -133,7 +133,7 @@ public struct MissionExcel : IFlatbufferObject long Id = 0, SCHALE.Common.FlatData.MissionCategory Category = SCHALE.Common.FlatData.MissionCategory.Challenge, uint Description = 0, - SCHALE.Common.FlatData.MissionResetType ResetType = SCHALE.Common.FlatData.MissionResetType.None, + SCHALE.Common.FlatData.MissionResetType ResetType = SCHALE.Common.FlatData.MissionResetType.None_, SCHALE.Common.FlatData.MissionToastDisplayConditionType ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always, StringOffset ToastImagePathOffset = default(StringOffset), bool ViewFlag = false, @@ -142,7 +142,7 @@ public struct MissionExcel : IFlatbufferObject StringOffset EndDateOffset = default(StringOffset), long EndDay = 0, StringOffset StartableEndDateOffset = default(StringOffset), - SCHALE.Common.FlatData.ContentType DateAutoRefer = SCHALE.Common.FlatData.ContentType.None, + SCHALE.Common.FlatData.ContentType DateAutoRefer = SCHALE.Common.FlatData.ContentType.None_, long DisplayOrder = 0, VectorOffset PreMissionIdOffset = default(VectorOffset), SCHALE.Common.FlatData.AccountState AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn, @@ -150,7 +150,7 @@ public struct MissionExcel : IFlatbufferObject VectorOffset ContentTagsOffset = default(VectorOffset), VectorOffset ShortcutUIOffset = default(VectorOffset), long ChallengeStageShortcut = 0, - SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None, + SCHALE.Common.FlatData.MissionCompleteConditionType CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None_, long CompleteConditionCount = 0, VectorOffset CompleteConditionParameterOffset = default(VectorOffset), VectorOffset CompleteConditionParameterTagOffset = default(VectorOffset), @@ -423,7 +423,7 @@ public class MissionExcelT this.Id = 0; this.Category = SCHALE.Common.FlatData.MissionCategory.Challenge; this.Description = 0; - this.ResetType = SCHALE.Common.FlatData.MissionResetType.None; + this.ResetType = SCHALE.Common.FlatData.MissionResetType.None_; this.ToastDisplayType = SCHALE.Common.FlatData.MissionToastDisplayConditionType.Always; this.ToastImagePath = null; this.ViewFlag = false; @@ -432,7 +432,7 @@ public class MissionExcelT this.EndDate = null; this.EndDay = 0; this.StartableEndDate = null; - this.DateAutoRefer = SCHALE.Common.FlatData.ContentType.None; + this.DateAutoRefer = SCHALE.Common.FlatData.ContentType.None_; this.DisplayOrder = 0; this.PreMissionId = null; this.AccountType = SCHALE.Common.FlatData.AccountState.WaitingSignIn; @@ -440,7 +440,7 @@ public class MissionExcelT this.ContentTags = null; this.ShortcutUI = null; this.ChallengeStageShortcut = 0; - this.CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None; + this.CompleteConditionType = SCHALE.Common.FlatData.MissionCompleteConditionType.None_; this.CompleteConditionCount = 0; this.CompleteConditionParameter = null; this.CompleteConditionParameterTag = null; diff --git a/SCHALE.Common/FlatData/MissionResetType.cs b/SCHALE.Common/FlatData/MissionResetType.cs index 4be47bc..e389dee 100644 --- a/SCHALE.Common/FlatData/MissionResetType.cs +++ b/SCHALE.Common/FlatData/MissionResetType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum MissionResetType : int { - None = 0, + None_ = 0, Daily = 1, Weekly = 2, Limit = 3, diff --git a/SCHALE.Common/FlatData/MultiFloorRaidRewardExcel.cs b/SCHALE.Common/FlatData/MultiFloorRaidRewardExcel.cs index cfd614c..c1d4c3c 100644 --- a/SCHALE.Common/FlatData/MultiFloorRaidRewardExcel.cs +++ b/SCHALE.Common/FlatData/MultiFloorRaidRewardExcel.cs @@ -22,14 +22,14 @@ public struct MultiFloorRaidRewardExcel : IFlatbufferObject public long RewardGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ClearStageRewardProb { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ClearStageRewardParcelUniqueID { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ClearStageRewardAmount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateMultiFloorRaidRewardExcel(FlatBufferBuilder builder, long RewardGroupId = 0, long ClearStageRewardProb = 0, - SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long ClearStageRewardParcelUniqueID = 0, long ClearStageRewardAmount = 0) { builder.StartTable(5); @@ -87,7 +87,7 @@ public class MultiFloorRaidRewardExcelT public MultiFloorRaidRewardExcelT() { this.RewardGroupId = 0; this.ClearStageRewardProb = 0; - this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.ClearStageRewardParcelUniqueID = 0; this.ClearStageRewardAmount = 0; } diff --git a/SCHALE.Common/FlatData/Nation.cs b/SCHALE.Common/FlatData/Nation.cs index 7308189..762fff9 100644 --- a/SCHALE.Common/FlatData/Nation.cs +++ b/SCHALE.Common/FlatData/Nation.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum Nation : int { - None = 0, + None_ = 0, All = 1, JP = 2, GL = 3, diff --git a/SCHALE.Common/FlatData/NoticeType.cs b/SCHALE.Common/FlatData/NoticeType.cs index 49d6003..802b6f3 100644 --- a/SCHALE.Common/FlatData/NoticeType.cs +++ b/SCHALE.Common/FlatData/NoticeType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum NoticeType : int { - None = 0, + None_ = 0, Notice = 1, Event = 2, }; diff --git a/SCHALE.Common/FlatData/ObstacleCoverType.cs b/SCHALE.Common/FlatData/ObstacleCoverType.cs index ce23d88..1a659b3 100644 --- a/SCHALE.Common/FlatData/ObstacleCoverType.cs +++ b/SCHALE.Common/FlatData/ObstacleCoverType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ObstacleCoverType : int { - None = 0, + None_ = 0, Cover = 1, Shelter = 2, }; diff --git a/SCHALE.Common/FlatData/ObstacleStatExcelTable.cs b/SCHALE.Common/FlatData/ObstacleStatExcelTable.cs deleted file mode 100644 index 8b5d619..0000000 --- a/SCHALE.Common/FlatData/ObstacleStatExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct ObstacleStatExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static ObstacleStatExcelTable GetRootAsObstacleStatExcelTable(ByteBuffer _bb) { return GetRootAsObstacleStatExcelTable(_bb, new ObstacleStatExcelTable()); } - public static ObstacleStatExcelTable GetRootAsObstacleStatExcelTable(ByteBuffer _bb, ObstacleStatExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public ObstacleStatExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.ObstacleStatExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ObstacleStatExcel?)(new SCHALE.Common.FlatData.ObstacleStatExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateObstacleStatExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - ObstacleStatExcelTable.AddDataList(builder, DataListOffset); - return ObstacleStatExcelTable.EndObstacleStatExcelTable(builder); - } - - public static void StartObstacleStatExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndObstacleStatExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public ObstacleStatExcelTableT UnPack() { - var _o = new ObstacleStatExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(ObstacleStatExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("ObstacleStatExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, ObstacleStatExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ObstacleStatExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateObstacleStatExcelTable( - builder, - _DataList); - } -} - -public class ObstacleStatExcelTableT -{ - public List DataList { get; set; } - - public ObstacleStatExcelTableT() { - this.DataList = null; - } -} - - -static public class ObstacleStatExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ObstacleStatExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/OpenConditionContent.cs b/SCHALE.Common/FlatData/OpenConditionContent.cs index 1be7fef..d8005d2 100644 --- a/SCHALE.Common/FlatData/OpenConditionContent.cs +++ b/SCHALE.Common/FlatData/OpenConditionContent.cs @@ -28,7 +28,7 @@ public enum OpenConditionContent : int Story_Sub = 18, Story_Replay = 19, WeekDungeon = 20, - None = 21, + None_ = 21, Shop_Gem = 22, Craft = 23, Student = 24, diff --git a/SCHALE.Common/FlatData/OpenConditionExcelTable.cs b/SCHALE.Common/FlatData/OpenConditionExcelTable.cs deleted file mode 100644 index 62db18e..0000000 --- a/SCHALE.Common/FlatData/OpenConditionExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct OpenConditionExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static OpenConditionExcelTable GetRootAsOpenConditionExcelTable(ByteBuffer _bb) { return GetRootAsOpenConditionExcelTable(_bb, new OpenConditionExcelTable()); } - public static OpenConditionExcelTable GetRootAsOpenConditionExcelTable(ByteBuffer _bb, OpenConditionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public OpenConditionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.OpenConditionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.OpenConditionExcel?)(new SCHALE.Common.FlatData.OpenConditionExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateOpenConditionExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - OpenConditionExcelTable.AddDataList(builder, DataListOffset); - return OpenConditionExcelTable.EndOpenConditionExcelTable(builder); - } - - public static void StartOpenConditionExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndOpenConditionExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public OpenConditionExcelTableT UnPack() { - var _o = new OpenConditionExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(OpenConditionExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("OpenConditionExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, OpenConditionExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.OpenConditionExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateOpenConditionExcelTable( - builder, - _DataList); - } -} - -public class OpenConditionExcelTableT -{ - public List DataList { get; set; } - - public OpenConditionExcelTableT() { - this.DataList = null; - } -} - - -static public class OpenConditionExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.OpenConditionExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/OperatorCondition.cs b/SCHALE.Common/FlatData/OperatorCondition.cs index 06b069f..b7f0d78 100644 --- a/SCHALE.Common/FlatData/OperatorCondition.cs +++ b/SCHALE.Common/FlatData/OperatorCondition.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum OperatorCondition : int { - None = 0, + None_ = 0, StrategyStart = 1, StrategyVictory = 2, StrategyDefeat = 3, diff --git a/SCHALE.Common/FlatData/OperatorExcel.cs b/SCHALE.Common/FlatData/OperatorExcel.cs index 9425a37..51615be 100644 --- a/SCHALE.Common/FlatData/OperatorExcel.cs +++ b/SCHALE.Common/FlatData/OperatorExcel.cs @@ -28,7 +28,7 @@ public struct OperatorExcel : IFlatbufferObject public ArraySegment? GetGroupIdBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetGroupIdArray() { return __p.__vector_as_array(6); } - public SCHALE.Common.FlatData.OperatorCondition OperatorCondition_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.OperatorCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.OperatorCondition.None; } } + public SCHALE.Common.FlatData.OperatorCondition OperatorCondition_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.OperatorCondition)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.OperatorCondition.None_; } } public int OutputSequence { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int RandomWeight { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int OutputDelay { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -61,7 +61,7 @@ public struct OperatorExcel : IFlatbufferObject public static Offset CreateOperatorExcel(FlatBufferBuilder builder, long UniqueId = 0, StringOffset GroupIdOffset = default(StringOffset), - SCHALE.Common.FlatData.OperatorCondition OperatorCondition_ = SCHALE.Common.FlatData.OperatorCondition.None, + SCHALE.Common.FlatData.OperatorCondition OperatorCondition_ = SCHALE.Common.FlatData.OperatorCondition.None_, int OutputSequence = 0, int RandomWeight = 0, int OutputDelay = 0, @@ -175,7 +175,7 @@ public class OperatorExcelT public OperatorExcelT() { this.UniqueId = 0; this.GroupId = null; - this.OperatorCondition_ = SCHALE.Common.FlatData.OperatorCondition.None; + this.OperatorCondition_ = SCHALE.Common.FlatData.OperatorCondition.None_; this.OutputSequence = 0; this.RandomWeight = 0; this.OutputDelay = 0; diff --git a/SCHALE.Common/FlatData/ParcelAutoSynthExcel.cs b/SCHALE.Common/FlatData/ParcelAutoSynthExcel.cs index c26b2f8..9ff5623 100644 --- a/SCHALE.Common/FlatData/ParcelAutoSynthExcel.cs +++ b/SCHALE.Common/FlatData/ParcelAutoSynthExcel.cs @@ -20,24 +20,24 @@ public struct ParcelAutoSynthExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public ParcelAutoSynthExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public SCHALE.Common.FlatData.ParcelType RequireParcelType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RequireParcelType { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RequireParcelId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RequireParcelAmount { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long SynthStartAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long SynthEndAmount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool SynthMaxItem { get { int o = __p.__offset(14); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.ParcelType ResultParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ResultParcelType { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ResultParcelId { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ResultParcelAmount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateParcelAutoSynthExcel(FlatBufferBuilder builder, - SCHALE.Common.FlatData.ParcelType RequireParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RequireParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RequireParcelId = 0, long RequireParcelAmount = 0, long SynthStartAmount = 0, long SynthEndAmount = 0, bool SynthMaxItem = false, - SCHALE.Common.FlatData.ParcelType ResultParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ResultParcelType = SCHALE.Common.FlatData.ParcelType.None_, long ResultParcelId = 0, long ResultParcelAmount = 0) { builder.StartTable(9); @@ -113,13 +113,13 @@ public class ParcelAutoSynthExcelT public long ResultParcelAmount { get; set; } public ParcelAutoSynthExcelT() { - this.RequireParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RequireParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RequireParcelId = 0; this.RequireParcelAmount = 0; this.SynthStartAmount = 0; this.SynthEndAmount = 0; this.SynthMaxItem = false; - this.ResultParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ResultParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.ResultParcelId = 0; this.ResultParcelAmount = 0; } diff --git a/SCHALE.Common/FlatData/ParcelChangeReason.cs b/SCHALE.Common/FlatData/ParcelChangeReason.cs index e4a88b9..a036ad6 100644 --- a/SCHALE.Common/FlatData/ParcelChangeReason.cs +++ b/SCHALE.Common/FlatData/ParcelChangeReason.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ParcelChangeReason : int { - None = 0, + None_ = 0, Acquire_NewAccount = 1, Acquire_PlayReward = 2, Acquire_ChapterReward = 3, diff --git a/SCHALE.Common/FlatData/ParcelType.cs b/SCHALE.Common/FlatData/ParcelType.cs index 5abce02..d11811e 100644 --- a/SCHALE.Common/FlatData/ParcelType.cs +++ b/SCHALE.Common/FlatData/ParcelType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ParcelType : int { - None = 0, + None_ = 0, Character = 1, Currency = 2, Equipment = 3, diff --git a/SCHALE.Common/FlatData/PickupDuplicateBonusExcel.cs b/SCHALE.Common/FlatData/PickupDuplicateBonusExcel.cs index 24f0686..c21053e 100644 --- a/SCHALE.Common/FlatData/PickupDuplicateBonusExcel.cs +++ b/SCHALE.Common/FlatData/PickupDuplicateBonusExcel.cs @@ -24,7 +24,7 @@ public struct PickupDuplicateBonusExcel : IFlatbufferObject public SCHALE.Common.FlatData.ShopCategoryType ShopCategoryType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } public long ShopId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PickupCharacterId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardParcelId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RewardParcelAmount { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -33,7 +33,7 @@ public struct PickupDuplicateBonusExcel : IFlatbufferObject SCHALE.Common.FlatData.ShopCategoryType ShopCategoryType_ = SCHALE.Common.FlatData.ShopCategoryType.General, long ShopId = 0, long PickupCharacterId = 0, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardParcelId = 0, long RewardParcelAmount = 0) { builder.StartTable(7); @@ -103,7 +103,7 @@ public class PickupDuplicateBonusExcelT this.ShopCategoryType_ = SCHALE.Common.FlatData.ShopCategoryType.General; this.ShopId = 0; this.PickupCharacterId = 0; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardParcelId = 0; this.RewardParcelAmount = 0; } diff --git a/SCHALE.Common/FlatData/PotentialStatBonusRateType.cs b/SCHALE.Common/FlatData/PotentialStatBonusRateType.cs index e75bd9d..c667de9 100644 --- a/SCHALE.Common/FlatData/PotentialStatBonusRateType.cs +++ b/SCHALE.Common/FlatData/PotentialStatBonusRateType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum PotentialStatBonusRateType : int { - None = 0, + None_ = 0, MaxHP = 1, AttackPower = 2, HealPower = 3, diff --git a/SCHALE.Common/FlatData/PresetCharacterGroupExcel.cs b/SCHALE.Common/FlatData/PresetCharacterGroupExcel.cs index 4154a50..8342306 100644 --- a/SCHALE.Common/FlatData/PresetCharacterGroupExcel.cs +++ b/SCHALE.Common/FlatData/PresetCharacterGroupExcel.cs @@ -53,11 +53,11 @@ public struct PresetCharacterGroupExcel : IFlatbufferObject public bool EquipCharacterGear { get { int o = __p.__offset(52); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public int EquipCharacterGearTier { get { int o = __p.__offset(54); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int EquipCharacterGearLevel { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType01 { get { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PotentialStatBonusRateType.None; } } + public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType01 { get { int o = __p.__offset(58); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PotentialStatBonusRateType.None_; } } public int PotentialLevel01 { get { int o = __p.__offset(60); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType02 { get { int o = __p.__offset(62); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PotentialStatBonusRateType.None; } } + public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType02 { get { int o = __p.__offset(62); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PotentialStatBonusRateType.None_; } } public int PotentialLevel02 { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType03 { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PotentialStatBonusRateType.None; } } + public SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType03 { get { int o = __p.__offset(66); return o != 0 ? (SCHALE.Common.FlatData.PotentialStatBonusRateType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PotentialStatBonusRateType.None_; } } public int PotentialLevel03 { get { int o = __p.__offset(68); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public static Offset CreatePresetCharacterGroupExcel(FlatBufferBuilder builder, @@ -88,11 +88,11 @@ public struct PresetCharacterGroupExcel : IFlatbufferObject bool EquipCharacterGear = false, int EquipCharacterGearTier = 0, int EquipCharacterGearLevel = 0, - SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType01 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None, + SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType01 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None_, int PotentialLevel01 = 0, - SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType02 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None, + SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType02 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None_, int PotentialLevel02 = 0, - SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType03 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None, + SCHALE.Common.FlatData.PotentialStatBonusRateType PotentialType03 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None_, int PotentialLevel03 = 0) { builder.StartTable(33); PresetCharacterGroupExcel.AddPresetCharacterGroupId(builder, PresetCharacterGroupId); @@ -315,11 +315,11 @@ public class PresetCharacterGroupExcelT this.EquipCharacterGear = false; this.EquipCharacterGearTier = 0; this.EquipCharacterGearLevel = 0; - this.PotentialType01 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None; + this.PotentialType01 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None_; this.PotentialLevel01 = 0; - this.PotentialType02 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None; + this.PotentialType02 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None_; this.PotentialLevel02 = 0; - this.PotentialType03 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None; + this.PotentialType03 = SCHALE.Common.FlatData.PotentialStatBonusRateType.None_; this.PotentialLevel03 = 0; } } diff --git a/SCHALE.Common/FlatData/PresetParcelsExcel.cs b/SCHALE.Common/FlatData/PresetParcelsExcel.cs index 2ebb1c7..526f7f2 100644 --- a/SCHALE.Common/FlatData/PresetParcelsExcel.cs +++ b/SCHALE.Common/FlatData/PresetParcelsExcel.cs @@ -20,13 +20,13 @@ public struct PresetParcelsExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public PresetParcelsExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ParcelId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PresetGroupId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ParcelAmount { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreatePresetParcelsExcel(FlatBufferBuilder builder, - SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_, long ParcelId = 0, long PresetGroupId = 0, long ParcelAmount = 0) { @@ -78,7 +78,7 @@ public class PresetParcelsExcelT public long ParcelAmount { get; set; } public PresetParcelsExcelT() { - this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_; this.ParcelId = 0; this.PresetGroupId = 0; this.ParcelAmount = 0; diff --git a/SCHALE.Common/FlatData/ProductCategory.cs b/SCHALE.Common/FlatData/ProductCategory.cs index d7c69fb..e610712 100644 --- a/SCHALE.Common/FlatData/ProductCategory.cs +++ b/SCHALE.Common/FlatData/ProductCategory.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ProductCategory : int { - None = 0, + None_ = 0, Gem = 1, Monthly = 2, Package = 3, diff --git a/SCHALE.Common/FlatData/ProductDisplayTag.cs b/SCHALE.Common/FlatData/ProductDisplayTag.cs index 87ce808..a240c82 100644 --- a/SCHALE.Common/FlatData/ProductDisplayTag.cs +++ b/SCHALE.Common/FlatData/ProductDisplayTag.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ProductDisplayTag : int { - None = 0, + None_ = 0, New = 1, Hot = 2, Sale = 3, diff --git a/SCHALE.Common/FlatData/ProductExcel.cs b/SCHALE.Common/FlatData/ProductExcel.cs index e2dccb9..059ffaa 100644 --- a/SCHALE.Common/FlatData/ProductExcel.cs +++ b/SCHALE.Common/FlatData/ProductExcel.cs @@ -28,7 +28,7 @@ public struct ProductExcel : IFlatbufferObject public ArraySegment? GetProductIdBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetProductIdArray() { return __p.__vector_as_array(6); } - public SCHALE.Common.FlatData.StoreType StoreType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StoreType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StoreType.None; } } + public SCHALE.Common.FlatData.StoreType StoreType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StoreType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StoreType.None_; } } public long Price { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string PriceReference { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -37,7 +37,7 @@ public struct ProductExcel : IFlatbufferObject public ArraySegment? GetPriceReferenceBytes() { return __p.__vector_as_arraysegment(12); } #endif public byte[] GetPriceReferenceArray() { return __p.__vector_as_array(12); } - public SCHALE.Common.FlatData.PurchasePeriodType PurchasePeriodType_ { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.PurchasePeriodType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchasePeriodType.None; } } + public SCHALE.Common.FlatData.PurchasePeriodType PurchasePeriodType_ { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.PurchasePeriodType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchasePeriodType.None_; } } public long PurchasePeriodLimit { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ParcelType ParcelType_(int j) { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } public int ParcelType_Length { get { int o = __p.__offset(18); return o != 0 ? __p.__vector_len(o) : 0; } } @@ -67,10 +67,10 @@ public struct ProductExcel : IFlatbufferObject public static Offset CreateProductExcel(FlatBufferBuilder builder, long Id = 0, StringOffset ProductIdOffset = default(StringOffset), - SCHALE.Common.FlatData.StoreType StoreType_ = SCHALE.Common.FlatData.StoreType.None, + SCHALE.Common.FlatData.StoreType StoreType_ = SCHALE.Common.FlatData.StoreType.None_, long Price = 0, StringOffset PriceReferenceOffset = default(StringOffset), - SCHALE.Common.FlatData.PurchasePeriodType PurchasePeriodType_ = SCHALE.Common.FlatData.PurchasePeriodType.None, + SCHALE.Common.FlatData.PurchasePeriodType PurchasePeriodType_ = SCHALE.Common.FlatData.PurchasePeriodType.None_, long PurchasePeriodLimit = 0, VectorOffset ParcelType_Offset = default(VectorOffset), VectorOffset ParcelIdOffset = default(VectorOffset), @@ -190,10 +190,10 @@ public class ProductExcelT public ProductExcelT() { this.Id = 0; this.ProductId = null; - this.StoreType_ = SCHALE.Common.FlatData.StoreType.None; + this.StoreType_ = SCHALE.Common.FlatData.StoreType.None_; this.Price = 0; this.PriceReference = null; - this.PurchasePeriodType_ = SCHALE.Common.FlatData.PurchasePeriodType.None; + this.PurchasePeriodType_ = SCHALE.Common.FlatData.PurchasePeriodType.None_; this.PurchasePeriodLimit = 0; this.ParcelType_ = null; this.ParcelId = null; diff --git a/SCHALE.Common/FlatData/ProductMonthlyExcel.cs b/SCHALE.Common/FlatData/ProductMonthlyExcel.cs index c2a5372..3347d14 100644 --- a/SCHALE.Common/FlatData/ProductMonthlyExcel.cs +++ b/SCHALE.Common/FlatData/ProductMonthlyExcel.cs @@ -28,7 +28,7 @@ public struct ProductMonthlyExcel : IFlatbufferObject public ArraySegment? GetProductIdBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetProductIdArray() { return __p.__vector_as_array(6); } - public SCHALE.Common.FlatData.StoreType StoreType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StoreType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StoreType.None; } } + public SCHALE.Common.FlatData.StoreType StoreType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.StoreType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StoreType.None_; } } public long Price { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string PriceReference { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -93,7 +93,7 @@ public struct ProductMonthlyExcel : IFlatbufferObject public static Offset CreateProductMonthlyExcel(FlatBufferBuilder builder, long Id = 0, StringOffset ProductIdOffset = default(StringOffset), - SCHALE.Common.FlatData.StoreType StoreType_ = SCHALE.Common.FlatData.StoreType.None, + SCHALE.Common.FlatData.StoreType StoreType_ = SCHALE.Common.FlatData.StoreType.None_, long Price = 0, StringOffset PriceReferenceOffset = default(StringOffset), SCHALE.Common.FlatData.ProductTagType ProductTagType_ = SCHALE.Common.FlatData.ProductTagType.Monthly, @@ -279,7 +279,7 @@ public class ProductMonthlyExcelT public ProductMonthlyExcelT() { this.Id = 0; this.ProductId = null; - this.StoreType_ = SCHALE.Common.FlatData.StoreType.None; + this.StoreType_ = SCHALE.Common.FlatData.StoreType.None_; this.Price = 0; this.PriceReference = null; this.ProductTagType_ = SCHALE.Common.FlatData.ProductTagType.Monthly; diff --git a/SCHALE.Common/FlatData/ProjectileAction.cs b/SCHALE.Common/FlatData/ProjectileAction.cs index 40c6d4e..4e2eab1 100644 --- a/SCHALE.Common/FlatData/ProjectileAction.cs +++ b/SCHALE.Common/FlatData/ProjectileAction.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ProjectileAction : int { - None = 0, + None_ = 0, Damage = 1, Heal = 2, }; diff --git a/SCHALE.Common/FlatData/PurchaseCountResetType.cs b/SCHALE.Common/FlatData/PurchaseCountResetType.cs index bf7fed6..60f1ce6 100644 --- a/SCHALE.Common/FlatData/PurchaseCountResetType.cs +++ b/SCHALE.Common/FlatData/PurchaseCountResetType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum PurchaseCountResetType : int { - None = 0, + None_ = 0, Day = 1, Week = 2, Month = 3, diff --git a/SCHALE.Common/FlatData/PurchasePeriodType.cs b/SCHALE.Common/FlatData/PurchasePeriodType.cs index 740a7e7..1e46bb1 100644 --- a/SCHALE.Common/FlatData/PurchasePeriodType.cs +++ b/SCHALE.Common/FlatData/PurchasePeriodType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum PurchasePeriodType : int { - None = 0, + None_ = 0, Day = 1, Week = 2, Month = 3, diff --git a/SCHALE.Common/FlatData/PurchaseSourceType.cs b/SCHALE.Common/FlatData/PurchaseSourceType.cs index 55c70e9..6563524 100644 --- a/SCHALE.Common/FlatData/PurchaseSourceType.cs +++ b/SCHALE.Common/FlatData/PurchaseSourceType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum PurchaseSourceType : int { - None = 0, + None_ = 0, Product = 1, ProductMonthly = 2, }; diff --git a/SCHALE.Common/FlatData/PurchaseStatusCode.cs b/SCHALE.Common/FlatData/PurchaseStatusCode.cs index a4c5ac2..8e8a433 100644 --- a/SCHALE.Common/FlatData/PurchaseStatusCode.cs +++ b/SCHALE.Common/FlatData/PurchaseStatusCode.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum PurchaseStatusCode : int { - None = 0, + None_ = 0, Start = 1, PublishSuccess = 2, End = 3, diff --git a/SCHALE.Common/FlatData/RaidSeasonType.cs b/SCHALE.Common/FlatData/RaidSeasonType.cs index dbe2d49..94df58b 100644 --- a/SCHALE.Common/FlatData/RaidSeasonType.cs +++ b/SCHALE.Common/FlatData/RaidSeasonType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum RaidSeasonType : int { - None = 0, + None_ = 0, Open = 1, Close = 2, Settlement = 3, diff --git a/SCHALE.Common/FlatData/RaidStageExcel.cs b/SCHALE.Common/FlatData/RaidStageExcel.cs index 97865a8..f07b3ed 100644 --- a/SCHALE.Common/FlatData/RaidStageExcel.cs +++ b/SCHALE.Common/FlatData/RaidStageExcel.cs @@ -73,7 +73,7 @@ public struct RaidStageExcel : IFlatbufferObject public ArraySegment? GetEnterTimeLineBytes() { return __p.__vector_as_arraysegment(34); } #endif public byte[] GetEnterTimeLineArray() { return __p.__vector_as_array(34); } - public SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment_ { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.TacticEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEnvironment.None; } } + public SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment_ { get { int o = __p.__offset(36); return o != 0 ? (SCHALE.Common.FlatData.TacticEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TacticEnvironment.None_; } } public long DefaultClearScore { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long MaximumScore { get { int o = __p.__offset(40); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PerSecondMinusScore { get { int o = __p.__offset(42); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -137,7 +137,7 @@ public struct RaidStageExcel : IFlatbufferObject long GroundId = 0, StringOffset GroundDevNameOffset = default(StringOffset), StringOffset EnterTimeLineOffset = default(StringOffset), - SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment_ = SCHALE.Common.FlatData.TacticEnvironment.None, + SCHALE.Common.FlatData.TacticEnvironment TacticEnvironment_ = SCHALE.Common.FlatData.TacticEnvironment.None_, long DefaultClearScore = 0, long MaximumScore = 0, long PerSecondMinusScore = 0, @@ -427,7 +427,7 @@ public class RaidStageExcelT this.GroundId = 0; this.GroundDevName = null; this.EnterTimeLine = null; - this.TacticEnvironment_ = SCHALE.Common.FlatData.TacticEnvironment.None; + this.TacticEnvironment_ = SCHALE.Common.FlatData.TacticEnvironment.None_; this.DefaultClearScore = 0; this.MaximumScore = 0; this.PerSecondMinusScore = 0; diff --git a/SCHALE.Common/FlatData/RaidStageRewardExcel.cs b/SCHALE.Common/FlatData/RaidStageRewardExcel.cs index 9dc9b32..73f023c 100644 --- a/SCHALE.Common/FlatData/RaidStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/RaidStageRewardExcel.cs @@ -23,7 +23,7 @@ public struct RaidStageRewardExcel : IFlatbufferObject public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool IsClearStageRewardHideInfo { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long ClearStageRewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ClearStageRewardParcelUniqueID { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string ClearStageRewardParcelUniqueName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -38,7 +38,7 @@ public struct RaidStageRewardExcel : IFlatbufferObject long GroupId = 0, bool IsClearStageRewardHideInfo = false, long ClearStageRewardProb = 0, - SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long ClearStageRewardParcelUniqueID = 0, StringOffset ClearStageRewardParcelUniqueNameOffset = default(StringOffset), long ClearStageRewardAmount = 0) { @@ -109,7 +109,7 @@ public class RaidStageRewardExcelT this.GroupId = 0; this.IsClearStageRewardHideInfo = false; this.ClearStageRewardProb = 0; - this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.ClearStageRewardParcelUniqueID = 0; this.ClearStageRewardParcelUniqueName = null; this.ClearStageRewardAmount = 0; diff --git a/SCHALE.Common/FlatData/RaidStatus.cs b/SCHALE.Common/FlatData/RaidStatus.cs index 18bd2d9..a12cf03 100644 --- a/SCHALE.Common/FlatData/RaidStatus.cs +++ b/SCHALE.Common/FlatData/RaidStatus.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum RaidStatus : int { - None = 0, + None_ = 0, Playing = 1, Clear = 2, Close = 3, diff --git a/SCHALE.Common/FlatData/RankingSearchType.cs b/SCHALE.Common/FlatData/RankingSearchType.cs index b8023bc..efd9c3d 100644 --- a/SCHALE.Common/FlatData/RankingSearchType.cs +++ b/SCHALE.Common/FlatData/RankingSearchType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum RankingSearchType : int { - None = 0, + None_ = 0, Rank = 1, Score = 2, }; diff --git a/SCHALE.Common/FlatData/RecipeCraftExcel.cs b/SCHALE.Common/FlatData/RecipeCraftExcel.cs index 178486a..f211ffb 100644 --- a/SCHALE.Common/FlatData/RecipeCraftExcel.cs +++ b/SCHALE.Common/FlatData/RecipeCraftExcel.cs @@ -28,7 +28,7 @@ public struct RecipeCraftExcel : IFlatbufferObject public ArraySegment? GetDevNameBytes() { return __p.__vector_as_arraysegment(6); } #endif public byte[] GetDevNameArray() { return __p.__vector_as_array(6); } - public SCHALE.Common.FlatData.RecipeType RecipeType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.RecipeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RecipeType.None; } } + public SCHALE.Common.FlatData.RecipeType RecipeType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.RecipeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RecipeType.None_; } } public long RecipeIngredientId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string RecipeIngredientDevName { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -75,7 +75,7 @@ public struct RecipeCraftExcel : IFlatbufferObject public static Offset CreateRecipeCraftExcel(FlatBufferBuilder builder, long Id = 0, StringOffset DevNameOffset = default(StringOffset), - SCHALE.Common.FlatData.RecipeType RecipeType_ = SCHALE.Common.FlatData.RecipeType.None, + SCHALE.Common.FlatData.RecipeType RecipeType_ = SCHALE.Common.FlatData.RecipeType.None_, long RecipeIngredientId = 0, StringOffset RecipeIngredientDevNameOffset = default(StringOffset), VectorOffset ParcelType_Offset = default(VectorOffset), @@ -221,7 +221,7 @@ public class RecipeCraftExcelT public RecipeCraftExcelT() { this.Id = 0; this.DevName = null; - this.RecipeType_ = SCHALE.Common.FlatData.RecipeType.None; + this.RecipeType_ = SCHALE.Common.FlatData.RecipeType.None_; this.RecipeIngredientId = 0; this.RecipeIngredientDevName = null; this.ParcelType_ = null; diff --git a/SCHALE.Common/FlatData/RecipeExcel.cs b/SCHALE.Common/FlatData/RecipeExcel.cs index 6b618a2..0121861 100644 --- a/SCHALE.Common/FlatData/RecipeExcel.cs +++ b/SCHALE.Common/FlatData/RecipeExcel.cs @@ -21,7 +21,7 @@ public struct RecipeExcel : IFlatbufferObject public RecipeExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.RecipeType RecipeType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RecipeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RecipeType.None; } } + public SCHALE.Common.FlatData.RecipeType RecipeType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RecipeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RecipeType.None_; } } public long RecipeIngredientId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RecipeSelectionGroupId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ParcelType ParcelType_(int j) { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } @@ -59,7 +59,7 @@ public struct RecipeExcel : IFlatbufferObject public static Offset CreateRecipeExcel(FlatBufferBuilder builder, long Id = 0, - SCHALE.Common.FlatData.RecipeType RecipeType_ = SCHALE.Common.FlatData.RecipeType.None, + SCHALE.Common.FlatData.RecipeType RecipeType_ = SCHALE.Common.FlatData.RecipeType.None_, long RecipeIngredientId = 0, long RecipeSelectionGroupId = 0, VectorOffset ParcelType_Offset = default(VectorOffset), @@ -179,7 +179,7 @@ public class RecipeExcelT public RecipeExcelT() { this.Id = 0; - this.RecipeType_ = SCHALE.Common.FlatData.RecipeType.None; + this.RecipeType_ = SCHALE.Common.FlatData.RecipeType.None_; this.RecipeIngredientId = 0; this.RecipeSelectionGroupId = 0; this.ParcelType_ = null; diff --git a/SCHALE.Common/FlatData/RecipeIngredientExcel.cs b/SCHALE.Common/FlatData/RecipeIngredientExcel.cs index a4b574d..ae119c6 100644 --- a/SCHALE.Common/FlatData/RecipeIngredientExcel.cs +++ b/SCHALE.Common/FlatData/RecipeIngredientExcel.cs @@ -21,7 +21,7 @@ public struct RecipeIngredientExcel : IFlatbufferObject public RecipeIngredientExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.RecipeType RecipeType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RecipeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RecipeType.None; } } + public SCHALE.Common.FlatData.RecipeType RecipeType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RecipeType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RecipeType.None_; } } public SCHALE.Common.FlatData.ParcelType CostParcelType(int j) { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ParcelType)0; } public int CostParcelTypeLength { get { int o = __p.__offset(8); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T @@ -74,7 +74,7 @@ public struct RecipeIngredientExcel : IFlatbufferObject public static Offset CreateRecipeIngredientExcel(FlatBufferBuilder builder, long Id = 0, - SCHALE.Common.FlatData.RecipeType RecipeType_ = SCHALE.Common.FlatData.RecipeType.None, + SCHALE.Common.FlatData.RecipeType RecipeType_ = SCHALE.Common.FlatData.RecipeType.None_, VectorOffset CostParcelTypeOffset = default(VectorOffset), VectorOffset CostIdOffset = default(VectorOffset), VectorOffset CostAmountOffset = default(VectorOffset), @@ -222,7 +222,7 @@ public class RecipeIngredientExcelT public RecipeIngredientExcelT() { this.Id = 0; - this.RecipeType_ = SCHALE.Common.FlatData.RecipeType.None; + this.RecipeType_ = SCHALE.Common.FlatData.RecipeType.None_; this.CostParcelType = null; this.CostId = null; this.CostAmount = null; diff --git a/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcel.cs b/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcel.cs index 1e14b4e..b542b29 100644 --- a/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcel.cs +++ b/SCHALE.Common/FlatData/RecipeSelectionAutoUseExcel.cs @@ -21,7 +21,7 @@ public struct RecipeSelectionAutoUseExcel : IFlatbufferObject public RecipeSelectionAutoUseExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long TargetItemId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long Priority(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int PriorityLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } @@ -34,7 +34,7 @@ public struct RecipeSelectionAutoUseExcel : IFlatbufferObject public static Offset CreateRecipeSelectionAutoUseExcel(FlatBufferBuilder builder, long Id = 0, - SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_, long TargetItemId = 0, VectorOffset PriorityOffset = default(VectorOffset)) { builder.StartTable(4); @@ -97,7 +97,7 @@ public class RecipeSelectionAutoUseExcelT public RecipeSelectionAutoUseExcelT() { this.Id = 0; - this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_; this.TargetItemId = 0; this.Priority = null; } diff --git a/SCHALE.Common/FlatData/RecipeSelectionGroupExcel.cs b/SCHALE.Common/FlatData/RecipeSelectionGroupExcel.cs index 6a354fd..56edd60 100644 --- a/SCHALE.Common/FlatData/RecipeSelectionGroupExcel.cs +++ b/SCHALE.Common/FlatData/RecipeSelectionGroupExcel.cs @@ -22,7 +22,7 @@ public struct RecipeSelectionGroupExcel : IFlatbufferObject public long RecipeSelectionGroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RecipeSelectionGroupComponentId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ParcelType_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ParcelId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ResultAmountMin { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ResultAmountMax { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -30,7 +30,7 @@ public struct RecipeSelectionGroupExcel : IFlatbufferObject public static Offset CreateRecipeSelectionGroupExcel(FlatBufferBuilder builder, long RecipeSelectionGroupId = 0, long RecipeSelectionGroupComponentId = 0, - SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_, long ParcelId = 0, long ResultAmountMin = 0, long ResultAmountMax = 0) { @@ -94,7 +94,7 @@ public class RecipeSelectionGroupExcelT public RecipeSelectionGroupExcelT() { this.RecipeSelectionGroupId = 0; this.RecipeSelectionGroupComponentId = 0; - this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None; + this.ParcelType_ = SCHALE.Common.FlatData.ParcelType.None_; this.ParcelId = 0; this.ResultAmountMin = 0; this.ResultAmountMax = 0; diff --git a/SCHALE.Common/FlatData/RecipeType.cs b/SCHALE.Common/FlatData/RecipeType.cs index 995eaf5..a6d0722 100644 --- a/SCHALE.Common/FlatData/RecipeType.cs +++ b/SCHALE.Common/FlatData/RecipeType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum RecipeType : int { - None = 0, + None_ = 0, Craft = 1, SkillLevelUp = 2, CharacterTranscendence = 3, diff --git a/SCHALE.Common/FlatData/ResetContentType.cs b/SCHALE.Common/FlatData/ResetContentType.cs index 3171214..dc5fcdb 100644 --- a/SCHALE.Common/FlatData/ResetContentType.cs +++ b/SCHALE.Common/FlatData/ResetContentType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ResetContentType : int { - None = 0, + None_ = 0, HardStagePlay = 1, StarategyMapHeal = 2, ShopRefresh = 3, diff --git a/SCHALE.Common/FlatData/ScenarioBGEffectExcel.cs b/SCHALE.Common/FlatData/ScenarioBGEffectExcel.cs index 015ef8c..6b2f4fb 100644 --- a/SCHALE.Common/FlatData/ScenarioBGEffectExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioBGEffectExcel.cs @@ -35,7 +35,7 @@ public struct ScenarioBGEffectExcel : IFlatbufferObject public ArraySegment? GetEffect2Bytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetEffect2Array() { return __p.__vector_as_array(8); } - public SCHALE.Common.FlatData.ScenarioBGScroll Scroll { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ScenarioBGScroll)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioBGScroll.None; } } + public SCHALE.Common.FlatData.ScenarioBGScroll Scroll { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ScenarioBGScroll)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioBGScroll.None_; } } public long ScrollTime { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ScrollFrom { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ScrollTo { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -44,7 +44,7 @@ public struct ScenarioBGEffectExcel : IFlatbufferObject uint Name = 0, StringOffset EffectOffset = default(StringOffset), StringOffset Effect2Offset = default(StringOffset), - SCHALE.Common.FlatData.ScenarioBGScroll Scroll = SCHALE.Common.FlatData.ScenarioBGScroll.None, + SCHALE.Common.FlatData.ScenarioBGScroll Scroll = SCHALE.Common.FlatData.ScenarioBGScroll.None_, long ScrollTime = 0, long ScrollFrom = 0, long ScrollTo = 0) { @@ -116,7 +116,7 @@ public class ScenarioBGEffectExcelT this.Name = 0; this.Effect = null; this.Effect2 = null; - this.Scroll = SCHALE.Common.FlatData.ScenarioBGScroll.None; + this.Scroll = SCHALE.Common.FlatData.ScenarioBGScroll.None_; this.ScrollTime = 0; this.ScrollFrom = 0; this.ScrollTo = 0; diff --git a/SCHALE.Common/FlatData/ScenarioBGNameExcel.cs b/SCHALE.Common/FlatData/ScenarioBGNameExcel.cs index 0a5b5a1..59996fe 100644 --- a/SCHALE.Common/FlatData/ScenarioBGNameExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioBGNameExcel.cs @@ -29,7 +29,7 @@ public struct ScenarioBGNameExcel : IFlatbufferObject public ArraySegment? GetBGFileNameBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetBGFileNameArray() { return __p.__vector_as_array(8); } - public SCHALE.Common.FlatData.ScenarioBGType BGType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ScenarioBGType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioBGType.None; } } + public SCHALE.Common.FlatData.ScenarioBGType BGType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ScenarioBGType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioBGType.None_; } } public string AnimationRoot { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetAnimationRootBytes() { return __p.__vector_as_span(12, 1); } @@ -52,7 +52,7 @@ public struct ScenarioBGNameExcel : IFlatbufferObject uint Name = 0, SCHALE.Common.FlatData.ProductionStep ProductionStep_ = SCHALE.Common.FlatData.ProductionStep.ToDo, StringOffset BGFileNameOffset = default(StringOffset), - SCHALE.Common.FlatData.ScenarioBGType BGType = SCHALE.Common.FlatData.ScenarioBGType.None, + SCHALE.Common.FlatData.ScenarioBGType BGType = SCHALE.Common.FlatData.ScenarioBGType.None_, StringOffset AnimationRootOffset = default(StringOffset), StringOffset AnimationNameOffset = default(StringOffset), float SpineScale = 0.0f, @@ -137,7 +137,7 @@ public class ScenarioBGNameExcelT this.Name = 0; this.ProductionStep_ = SCHALE.Common.FlatData.ProductionStep.ToDo; this.BGFileName = null; - this.BGType = SCHALE.Common.FlatData.ScenarioBGType.None; + this.BGType = SCHALE.Common.FlatData.ScenarioBGType.None_; this.AnimationRoot = null; this.AnimationName = null; this.SpineScale = 0.0f; diff --git a/SCHALE.Common/FlatData/ScenarioBGScroll.cs b/SCHALE.Common/FlatData/ScenarioBGScroll.cs index 36ecf24..0436b89 100644 --- a/SCHALE.Common/FlatData/ScenarioBGScroll.cs +++ b/SCHALE.Common/FlatData/ScenarioBGScroll.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ScenarioBGScroll : int { - None = 0, + None_ = 0, Vertical = 1, Horizontal = 2, }; diff --git a/SCHALE.Common/FlatData/ScenarioBGType.cs b/SCHALE.Common/FlatData/ScenarioBGType.cs index 9a00c21..7d7360f 100644 --- a/SCHALE.Common/FlatData/ScenarioBGType.cs +++ b/SCHALE.Common/FlatData/ScenarioBGType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ScenarioBGType : int { - None = 0, + None_ = 0, Image = 1, BlurRT = 2, Spine = 3, diff --git a/SCHALE.Common/FlatData/ScenarioCharacterBehaviors.cs b/SCHALE.Common/FlatData/ScenarioCharacterBehaviors.cs index 9e1d4b2..8b1fbab 100644 --- a/SCHALE.Common/FlatData/ScenarioCharacterBehaviors.cs +++ b/SCHALE.Common/FlatData/ScenarioCharacterBehaviors.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ScenarioCharacterBehaviors : int { - None = 0, + None_ = 0, Appear = 1, Disappear = 2, AppearToLeft = 3, diff --git a/SCHALE.Common/FlatData/ScenarioCharacterNameExcel.cs b/SCHALE.Common/FlatData/ScenarioCharacterNameExcel.cs index 04edd8a..2d1c3bc 100644 --- a/SCHALE.Common/FlatData/ScenarioCharacterNameExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioCharacterNameExcel.cs @@ -50,7 +50,7 @@ public struct ScenarioCharacterNameExcel : IFlatbufferObject public ArraySegment? GetNicknameJPBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetNicknameJPArray() { return __p.__vector_as_array(14); } - public SCHALE.Common.FlatData.ScenarioCharacterShapes Shape { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ScenarioCharacterShapes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioCharacterShapes.None; } } + public SCHALE.Common.FlatData.ScenarioCharacterShapes Shape { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.ScenarioCharacterShapes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioCharacterShapes.None_; } } public string SpinePrefabName { get { int o = __p.__offset(18); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetSpinePrefabNameBytes() { return __p.__vector_as_span(18, 1); } @@ -73,7 +73,7 @@ public struct ScenarioCharacterNameExcel : IFlatbufferObject StringOffset NicknameKROffset = default(StringOffset), StringOffset NameJPOffset = default(StringOffset), StringOffset NicknameJPOffset = default(StringOffset), - SCHALE.Common.FlatData.ScenarioCharacterShapes Shape = SCHALE.Common.FlatData.ScenarioCharacterShapes.None, + SCHALE.Common.FlatData.ScenarioCharacterShapes Shape = SCHALE.Common.FlatData.ScenarioCharacterShapes.None_, StringOffset SpinePrefabNameOffset = default(StringOffset), StringOffset SmallPortraitOffset = default(StringOffset)) { builder.StartTable(9); @@ -161,7 +161,7 @@ public class ScenarioCharacterNameExcelT this.NicknameKR = null; this.NameJP = null; this.NicknameJP = null; - this.Shape = SCHALE.Common.FlatData.ScenarioCharacterShapes.None; + this.Shape = SCHALE.Common.FlatData.ScenarioCharacterShapes.None_; this.SpinePrefabName = null; this.SmallPortrait = null; } diff --git a/SCHALE.Common/FlatData/ScenarioCharacterShapes.cs b/SCHALE.Common/FlatData/ScenarioCharacterShapes.cs index 2dc7138..d0638a5 100644 --- a/SCHALE.Common/FlatData/ScenarioCharacterShapes.cs +++ b/SCHALE.Common/FlatData/ScenarioCharacterShapes.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ScenarioCharacterShapes : int { - None = 0, + None_ = 0, Signal = 1, BlackSilhouette = 2, Closeup = 4, diff --git a/SCHALE.Common/FlatData/ScenarioContentCollectionExcel.cs b/SCHALE.Common/FlatData/ScenarioContentCollectionExcel.cs index 41025d0..f07d629 100644 --- a/SCHALE.Common/FlatData/ScenarioContentCollectionExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioContentCollectionExcel.cs @@ -22,7 +22,7 @@ public struct ScenarioContentCollectionExcel : IFlatbufferObject public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long GroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.CollectionUnlockType UnlockConditionType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.CollectionUnlockType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CollectionUnlockType.None; } } + public SCHALE.Common.FlatData.CollectionUnlockType UnlockConditionType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.CollectionUnlockType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.CollectionUnlockType.None_; } } public long UnlockConditionParameter(int j) { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int UnlockConditionParameterLength { get { int o = __p.__offset(10); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T @@ -68,7 +68,7 @@ public struct ScenarioContentCollectionExcel : IFlatbufferObject public static Offset CreateScenarioContentCollectionExcel(FlatBufferBuilder builder, long Id = 0, long GroupId = 0, - SCHALE.Common.FlatData.CollectionUnlockType UnlockConditionType = SCHALE.Common.FlatData.CollectionUnlockType.None, + SCHALE.Common.FlatData.CollectionUnlockType UnlockConditionType = SCHALE.Common.FlatData.CollectionUnlockType.None_, VectorOffset UnlockConditionParameterOffset = default(VectorOffset), SCHALE.Common.FlatData.MultipleConditionCheckType MultipleConditionCheckType_ = SCHALE.Common.FlatData.MultipleConditionCheckType.And, long UnlockConditionCount = 0, @@ -189,7 +189,7 @@ public class ScenarioContentCollectionExcelT public ScenarioContentCollectionExcelT() { this.Id = 0; this.GroupId = 0; - this.UnlockConditionType = SCHALE.Common.FlatData.CollectionUnlockType.None; + this.UnlockConditionType = SCHALE.Common.FlatData.CollectionUnlockType.None_; this.UnlockConditionParameter = null; this.MultipleConditionCheckType_ = SCHALE.Common.FlatData.MultipleConditionCheckType.And; this.UnlockConditionCount = 0; diff --git a/SCHALE.Common/FlatData/ScenarioEffectDepth.cs b/SCHALE.Common/FlatData/ScenarioEffectDepth.cs index 6a9a93e..d8af849 100644 --- a/SCHALE.Common/FlatData/ScenarioEffectDepth.cs +++ b/SCHALE.Common/FlatData/ScenarioEffectDepth.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ScenarioEffectDepth : int { - None = 0, + None_ = 0, AboveBg = 1, AboveCharacter = 2, AboveAll = 3, diff --git a/SCHALE.Common/FlatData/ScenarioExcel.cs b/SCHALE.Common/FlatData/ScenarioExcel.cs index 0f1ffea..9a7630f 100644 --- a/SCHALE.Common/FlatData/ScenarioExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioExcel.cs @@ -20,14 +20,14 @@ public struct ScenarioExcel : IFlatbufferObject public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } public ScenarioExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - public SCHALE.Common.FlatData.ScenarioBGType None(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ScenarioBGType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ScenarioBGType)0; } - public int NoneLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } + public SCHALE.Common.FlatData.ScenarioBGType None_(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ScenarioBGType)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ScenarioBGType)0; } + public int None_Length { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T - public Span GetNoneBytes() { return __p.__vector_as_span(4, 4); } + public Span GetNone_Bytes() { return __p.__vector_as_span(4, 4); } #else - public ArraySegment? GetNoneBytes() { return __p.__vector_as_arraysegment(4); } + public ArraySegment? GetNone_Bytes() { return __p.__vector_as_arraysegment(4); } #endif - public SCHALE.Common.FlatData.ScenarioBGType[] GetNoneArray() { int o = __p.__offset(4); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ScenarioBGType[] a = new SCHALE.Common.FlatData.ScenarioBGType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ScenarioBGType)__p.bb.GetInt(p + i * 4); } return a; } + public SCHALE.Common.FlatData.ScenarioBGType[] GetNone_Array() { int o = __p.__offset(4); if (o == 0) return null; int p = __p.__vector(o); int l = __p.__vector_len(o); SCHALE.Common.FlatData.ScenarioBGType[] a = new SCHALE.Common.FlatData.ScenarioBGType[l]; for (int i = 0; i < l; i++) { a[i] = (SCHALE.Common.FlatData.ScenarioBGType)__p.bb.GetInt(p + i * 4); } return a; } public SCHALE.Common.FlatData.ScenarioCharacterAction Idle(int j) { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ScenarioCharacterAction)__p.bb.GetInt(__p.__vector(o) + j * 4) : (SCHALE.Common.FlatData.ScenarioCharacterAction)0; } public int IdleLength { get { int o = __p.__offset(6); return o != 0 ? __p.__vector_len(o) : 0; } } #if ENABLE_SPAN_T @@ -45,7 +45,7 @@ public struct ScenarioExcel : IFlatbufferObject public SCHALE.Common.FlatData.ScenarioContentType Prologue { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ScenarioContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioContentType.Prologue; } } public static Offset CreateScenarioExcel(FlatBufferBuilder builder, - VectorOffset NoneOffset = default(VectorOffset), + VectorOffset None_Offset = default(VectorOffset), VectorOffset IdleOffset = default(VectorOffset), SCHALE.Common.FlatData.DialogCategory Cafe = SCHALE.Common.FlatData.DialogCategory.Cafe, SCHALE.Common.FlatData.DialogType Talk = SCHALE.Common.FlatData.DialogType.Talk, @@ -63,17 +63,17 @@ public struct ScenarioExcel : IFlatbufferObject ScenarioExcel.AddTalk(builder, Talk); ScenarioExcel.AddCafe(builder, Cafe); ScenarioExcel.AddIdle(builder, IdleOffset); - ScenarioExcel.AddNone(builder, NoneOffset); + ScenarioExcel.AddNone_(builder, None_Offset); return ScenarioExcel.EndScenarioExcel(builder); } public static void StartScenarioExcel(FlatBufferBuilder builder) { builder.StartTable(9); } - public static void AddNone(FlatBufferBuilder builder, VectorOffset noneOffset) { builder.AddOffset(0, noneOffset.Value, 0); } - public static VectorOffset CreateNoneVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioBGType[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } - public static VectorOffset CreateNoneVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioBGType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateNoneVectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateNoneVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartNoneVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } + public static void AddNone_(FlatBufferBuilder builder, VectorOffset none_Offset) { builder.AddOffset(0, none_Offset.Value, 0); } + public static VectorOffset CreateNone_Vector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioBGType[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } + public static VectorOffset CreateNone_VectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioBGType[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNone_VectorBlock(FlatBufferBuilder builder, ArraySegment data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } + public static VectorOffset CreateNone_VectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add(dataPtr, sizeInBytes); return builder.EndVector(); } + public static void StartNone_Vector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } public static void AddIdle(FlatBufferBuilder builder, VectorOffset idleOffset) { builder.AddOffset(1, idleOffset.Value, 0); } public static VectorOffset CreateIdleVector(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioCharacterAction[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddInt((int)data[i]); return builder.EndVector(); } public static VectorOffset CreateIdleVectorBlock(FlatBufferBuilder builder, SCHALE.Common.FlatData.ScenarioCharacterAction[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } @@ -98,8 +98,8 @@ public struct ScenarioExcel : IFlatbufferObject } public void UnPackTo(ScenarioExcelT _o) { byte[] key = TableEncryptionService.CreateKey("Scenario"); - _o.None = new List(); - for (var _j = 0; _j < this.NoneLength; ++_j) {_o.None.Add(TableEncryptionService.Convert(this.None(_j), key));} + _o.None_ = new List(); + for (var _j = 0; _j < this.None_Length; ++_j) {_o.None_.Add(TableEncryptionService.Convert(this.None_(_j), key));} _o.Idle = new List(); for (var _j = 0; _j < this.IdleLength; ++_j) {_o.Idle.Add(TableEncryptionService.Convert(this.Idle(_j), key));} _o.Cafe = TableEncryptionService.Convert(this.Cafe, key); @@ -112,10 +112,10 @@ public struct ScenarioExcel : IFlatbufferObject } public static Offset Pack(FlatBufferBuilder builder, ScenarioExcelT _o) { if (_o == null) return default(Offset); - var _None = default(VectorOffset); - if (_o.None != null) { - var __None = _o.None.ToArray(); - _None = CreateNoneVector(builder, __None); + var _None_ = default(VectorOffset); + if (_o.None_ != null) { + var __None_ = _o.None_.ToArray(); + _None_ = CreateNone_Vector(builder, __None_); } var _Idle = default(VectorOffset); if (_o.Idle != null) { @@ -124,7 +124,7 @@ public struct ScenarioExcel : IFlatbufferObject } return CreateScenarioExcel( builder, - _None, + _None_, _Idle, _o.Cafe, _o.Talk, @@ -138,7 +138,7 @@ public struct ScenarioExcel : IFlatbufferObject public class ScenarioExcelT { - public List None { get; set; } + public List None_ { get; set; } public List Idle { get; set; } public SCHALE.Common.FlatData.DialogCategory Cafe { get; set; } public SCHALE.Common.FlatData.DialogType Talk { get; set; } @@ -149,7 +149,7 @@ public class ScenarioExcelT public SCHALE.Common.FlatData.ScenarioContentType Prologue { get; set; } public ScenarioExcelT() { - this.None = null; + this.None_ = null; this.Idle = null; this.Cafe = SCHALE.Common.FlatData.DialogCategory.Cafe; this.Talk = SCHALE.Common.FlatData.DialogType.Talk; @@ -167,7 +167,7 @@ static public class ScenarioExcelVerify static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) { return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfData(tablePos, 4 /*None*/, 4 /*SCHALE.Common.FlatData.ScenarioBGType*/, false) + && verifier.VerifyVectorOfData(tablePos, 4 /*None_*/, 4 /*SCHALE.Common.FlatData.ScenarioBGType*/, false) && verifier.VerifyVectorOfData(tablePos, 6 /*Idle*/, 4 /*SCHALE.Common.FlatData.ScenarioCharacterAction*/, false) && verifier.VerifyField(tablePos, 8 /*Cafe*/, 4 /*SCHALE.Common.FlatData.DialogCategory*/, 4, false) && verifier.VerifyField(tablePos, 10 /*Talk*/, 4 /*SCHALE.Common.FlatData.DialogType*/, 4, false) diff --git a/SCHALE.Common/FlatData/ScenarioModeExcel.cs b/SCHALE.Common/FlatData/ScenarioModeExcel.cs index 985d11f..db62488 100644 --- a/SCHALE.Common/FlatData/ScenarioModeExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioModeExcel.cs @@ -21,8 +21,8 @@ public struct ScenarioModeExcel : IFlatbufferObject public ScenarioModeExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long ModeId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ScenarioModeTypes ModeType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ScenarioModeTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioModeTypes.None; } } - public SCHALE.Common.FlatData.ScenarioModeSubTypes SubType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ScenarioModeSubTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioModeSubTypes.None; } } + public SCHALE.Common.FlatData.ScenarioModeTypes ModeType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ScenarioModeTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioModeTypes.None_; } } + public SCHALE.Common.FlatData.ScenarioModeSubTypes SubType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ScenarioModeSubTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioModeSubTypes.None_; } } public long VolumeId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ChapterId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EpisodeId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -69,13 +69,13 @@ public struct ScenarioModeExcel : IFlatbufferObject public bool IsScenarioSpecialReward { get { int o = __p.__offset(42); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long AccountLevelLimit { get { int o = __p.__offset(44); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ClearedStageId { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.Club NeedClub { get { int o = __p.__offset(48); return o != 0 ? (SCHALE.Common.FlatData.Club)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Club.None; } } + public SCHALE.Common.FlatData.Club NeedClub { get { int o = __p.__offset(48); return o != 0 ? (SCHALE.Common.FlatData.Club)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Club.None_; } } public int NeedClubStudentCount { get { int o = __p.__offset(50); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long EventContentId { get { int o = __p.__offset(52); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.EventContentType EventContentType_ { get { int o = __p.__offset(54); return o != 0 ? (SCHALE.Common.FlatData.EventContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.EventContentType.Stage; } } public long EventContentCondition { get { int o = __p.__offset(56); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EventContentConditionGroup { get { int o = __p.__offset(58); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.StageDifficulty MapDifficulty { get { int o = __p.__offset(60); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None; } } + public SCHALE.Common.FlatData.StageDifficulty MapDifficulty { get { int o = __p.__offset(60); return o != 0 ? (SCHALE.Common.FlatData.StageDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageDifficulty.None_; } } public int StepIndex { get { int o = __p.__offset(62); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public int RecommendLevel { get { int o = __p.__offset(64); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public string EventIconParcelPath { get { int o = __p.__offset(66); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } @@ -101,8 +101,8 @@ public struct ScenarioModeExcel : IFlatbufferObject public static Offset CreateScenarioModeExcel(FlatBufferBuilder builder, long ModeId = 0, - SCHALE.Common.FlatData.ScenarioModeTypes ModeType = SCHALE.Common.FlatData.ScenarioModeTypes.None, - SCHALE.Common.FlatData.ScenarioModeSubTypes SubType = SCHALE.Common.FlatData.ScenarioModeSubTypes.None, + SCHALE.Common.FlatData.ScenarioModeTypes ModeType = SCHALE.Common.FlatData.ScenarioModeTypes.None_, + SCHALE.Common.FlatData.ScenarioModeSubTypes SubType = SCHALE.Common.FlatData.ScenarioModeSubTypes.None_, long VolumeId = 0, long ChapterId = 0, long EpisodeId = 0, @@ -122,13 +122,13 @@ public struct ScenarioModeExcel : IFlatbufferObject bool IsScenarioSpecialReward = false, long AccountLevelLimit = 0, long ClearedStageId = 0, - SCHALE.Common.FlatData.Club NeedClub = SCHALE.Common.FlatData.Club.None, + SCHALE.Common.FlatData.Club NeedClub = SCHALE.Common.FlatData.Club.None_, int NeedClubStudentCount = 0, long EventContentId = 0, SCHALE.Common.FlatData.EventContentType EventContentType_ = SCHALE.Common.FlatData.EventContentType.Stage, long EventContentCondition = 0, long EventContentConditionGroup = 0, - SCHALE.Common.FlatData.StageDifficulty MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None, + SCHALE.Common.FlatData.StageDifficulty MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None_, int StepIndex = 0, int RecommendLevel = 0, StringOffset EventIconParcelPathOffset = default(StringOffset), @@ -399,8 +399,8 @@ public class ScenarioModeExcelT public ScenarioModeExcelT() { this.ModeId = 0; - this.ModeType = SCHALE.Common.FlatData.ScenarioModeTypes.None; - this.SubType = SCHALE.Common.FlatData.ScenarioModeSubTypes.None; + this.ModeType = SCHALE.Common.FlatData.ScenarioModeTypes.None_; + this.SubType = SCHALE.Common.FlatData.ScenarioModeSubTypes.None_; this.VolumeId = 0; this.ChapterId = 0; this.EpisodeId = 0; @@ -420,13 +420,13 @@ public class ScenarioModeExcelT this.IsScenarioSpecialReward = false; this.AccountLevelLimit = 0; this.ClearedStageId = 0; - this.NeedClub = SCHALE.Common.FlatData.Club.None; + this.NeedClub = SCHALE.Common.FlatData.Club.None_; this.NeedClubStudentCount = 0; this.EventContentId = 0; this.EventContentType_ = SCHALE.Common.FlatData.EventContentType.Stage; this.EventContentCondition = 0; this.EventContentConditionGroup = 0; - this.MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None; + this.MapDifficulty = SCHALE.Common.FlatData.StageDifficulty.None_; this.StepIndex = 0; this.RecommendLevel = 0; this.EventIconParcelPath = null; diff --git a/SCHALE.Common/FlatData/ScenarioModeExcelTable.cs b/SCHALE.Common/FlatData/ScenarioModeExcelTable.cs deleted file mode 100644 index 9bf1cdf..0000000 --- a/SCHALE.Common/FlatData/ScenarioModeExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct ScenarioModeExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static ScenarioModeExcelTable GetRootAsScenarioModeExcelTable(ByteBuffer _bb) { return GetRootAsScenarioModeExcelTable(_bb, new ScenarioModeExcelTable()); } - public static ScenarioModeExcelTable GetRootAsScenarioModeExcelTable(ByteBuffer _bb, ScenarioModeExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public ScenarioModeExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.ScenarioModeExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.ScenarioModeExcel?)(new SCHALE.Common.FlatData.ScenarioModeExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateScenarioModeExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - ScenarioModeExcelTable.AddDataList(builder, DataListOffset); - return ScenarioModeExcelTable.EndScenarioModeExcelTable(builder); - } - - public static void StartScenarioModeExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndScenarioModeExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public ScenarioModeExcelTableT UnPack() { - var _o = new ScenarioModeExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(ScenarioModeExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("ScenarioModeExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, ScenarioModeExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.ScenarioModeExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateScenarioModeExcelTable( - builder, - _DataList); - } -} - -public class ScenarioModeExcelTableT -{ - public List DataList { get; set; } - - public ScenarioModeExcelTableT() { - this.DataList = null; - } -} - - -static public class ScenarioModeExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.ScenarioModeExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/ScenarioModeReplayTypes.cs b/SCHALE.Common/FlatData/ScenarioModeReplayTypes.cs index a9baf71..08ef6d5 100644 --- a/SCHALE.Common/FlatData/ScenarioModeReplayTypes.cs +++ b/SCHALE.Common/FlatData/ScenarioModeReplayTypes.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ScenarioModeReplayTypes : int { - None = 0, + None_ = 0, Event = 1, Favor = 2, Work = 3, diff --git a/SCHALE.Common/FlatData/ScenarioModeRewardExcel.cs b/SCHALE.Common/FlatData/ScenarioModeRewardExcel.cs index 42ae17f..c1d052a 100644 --- a/SCHALE.Common/FlatData/ScenarioModeRewardExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioModeRewardExcel.cs @@ -23,7 +23,7 @@ public struct ScenarioModeRewardExcel : IFlatbufferObject public long ScenarioModeRewardId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.RewardTag RewardTag_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } public int RewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardParcelId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int RewardParcelAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public bool IsDisplayed { get { int o = __p.__offset(16); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } @@ -32,7 +32,7 @@ public struct ScenarioModeRewardExcel : IFlatbufferObject long ScenarioModeRewardId = 0, SCHALE.Common.FlatData.RewardTag RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default, int RewardProb = 0, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardParcelId = 0, int RewardParcelAmount = 0, bool IsDisplayed = false) { @@ -102,7 +102,7 @@ public class ScenarioModeRewardExcelT this.ScenarioModeRewardId = 0; this.RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default; this.RewardProb = 0; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardParcelId = 0; this.RewardParcelAmount = 0; this.IsDisplayed = false; diff --git a/SCHALE.Common/FlatData/ScenarioModeSubTypes.cs b/SCHALE.Common/FlatData/ScenarioModeSubTypes.cs index 1f27cfa..7d2ad1b 100644 --- a/SCHALE.Common/FlatData/ScenarioModeSubTypes.cs +++ b/SCHALE.Common/FlatData/ScenarioModeSubTypes.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ScenarioModeSubTypes : int { - None = 0, + None_ = 0, Club = 1, }; diff --git a/SCHALE.Common/FlatData/ScenarioModeTypes.cs b/SCHALE.Common/FlatData/ScenarioModeTypes.cs index 994be87..a6171a2 100644 --- a/SCHALE.Common/FlatData/ScenarioModeTypes.cs +++ b/SCHALE.Common/FlatData/ScenarioModeTypes.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ScenarioModeTypes : int { - None = 0, + None_ = 0, Main = 1, Sub = 2, Replay = 3, diff --git a/SCHALE.Common/FlatData/ScenarioReplayExcel.cs b/SCHALE.Common/FlatData/ScenarioReplayExcel.cs index 8bdd7d0..00b1e1b 100644 --- a/SCHALE.Common/FlatData/ScenarioReplayExcel.cs +++ b/SCHALE.Common/FlatData/ScenarioReplayExcel.cs @@ -22,7 +22,7 @@ public struct ScenarioReplayExcel : IFlatbufferObject public long ModeId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long VolumeId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ScenarioModeReplayTypes ReplayType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ScenarioModeReplayTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioModeReplayTypes.None; } } + public SCHALE.Common.FlatData.ScenarioModeReplayTypes ReplayType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ScenarioModeReplayTypes)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ScenarioModeReplayTypes.None_; } } public long ChapterId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long EpisodeId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long FrontScenarioGroupId(int j) { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } @@ -47,7 +47,7 @@ public struct ScenarioReplayExcel : IFlatbufferObject public static Offset CreateScenarioReplayExcel(FlatBufferBuilder builder, long ModeId = 0, long VolumeId = 0, - SCHALE.Common.FlatData.ScenarioModeReplayTypes ReplayType = SCHALE.Common.FlatData.ScenarioModeReplayTypes.None, + SCHALE.Common.FlatData.ScenarioModeReplayTypes ReplayType = SCHALE.Common.FlatData.ScenarioModeReplayTypes.None_, long ChapterId = 0, long EpisodeId = 0, VectorOffset FrontScenarioGroupIdOffset = default(VectorOffset), @@ -151,7 +151,7 @@ public class ScenarioReplayExcelT public ScenarioReplayExcelT() { this.ModeId = 0; this.VolumeId = 0; - this.ReplayType = SCHALE.Common.FlatData.ScenarioModeReplayTypes.None; + this.ReplayType = SCHALE.Common.FlatData.ScenarioModeReplayTypes.None_; this.ChapterId = 0; this.EpisodeId = 0; this.FrontScenarioGroupId = null; diff --git a/SCHALE.Common/FlatData/ScenarioType.cs b/SCHALE.Common/FlatData/ScenarioType.cs index f520d6d..eb2b402 100644 --- a/SCHALE.Common/FlatData/ScenarioType.cs +++ b/SCHALE.Common/FlatData/ScenarioType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ScenarioType : int { - None = 0, + None_ = 0, Title = 1, Place = 2, }; diff --git a/SCHALE.Common/FlatData/ScenarioTypes.cs b/SCHALE.Common/FlatData/ScenarioTypes.cs index 3c9aedf..630d12e 100644 --- a/SCHALE.Common/FlatData/ScenarioTypes.cs +++ b/SCHALE.Common/FlatData/ScenarioTypes.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ScenarioTypes : int { - None = 0, + None_ = 0, Title = 1, Place = 2, }; diff --git a/SCHALE.Common/FlatData/School.cs b/SCHALE.Common/FlatData/School.cs index 7b92ce4..802f6e7 100644 --- a/SCHALE.Common/FlatData/School.cs +++ b/SCHALE.Common/FlatData/School.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum School : int { - None = 0, + None_ = 0, Hyakkiyako = 1, RedWinter = 2, Trinity = 3, diff --git a/SCHALE.Common/FlatData/SchoolDungeonRewardExcel.cs b/SCHALE.Common/FlatData/SchoolDungeonRewardExcel.cs index 4fc5c6c..1474b24 100644 --- a/SCHALE.Common/FlatData/SchoolDungeonRewardExcel.cs +++ b/SCHALE.Common/FlatData/SchoolDungeonRewardExcel.cs @@ -23,7 +23,7 @@ public struct SchoolDungeonRewardExcel : IFlatbufferObject public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.SchoolDungeonType DungeonType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.SchoolDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; } } public SCHALE.Common.FlatData.RewardTag RewardTag_ { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.RewardTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.RewardTag.Default; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardParcelId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RewardParcelAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RewardParcelProbability { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -33,7 +33,7 @@ public struct SchoolDungeonRewardExcel : IFlatbufferObject long GroupId = 0, SCHALE.Common.FlatData.SchoolDungeonType DungeonType = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA, SCHALE.Common.FlatData.RewardTag RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardParcelId = 0, long RewardParcelAmount = 0, long RewardParcelProbability = 0, @@ -109,7 +109,7 @@ public class SchoolDungeonRewardExcelT this.GroupId = 0; this.DungeonType = SCHALE.Common.FlatData.SchoolDungeonType.SchoolA; this.RewardTag_ = SCHALE.Common.FlatData.RewardTag.Default; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardParcelId = 0; this.RewardParcelAmount = 0; this.RewardParcelProbability = 0; diff --git a/SCHALE.Common/FlatData/SchoolDungeonRewardExcelTable.cs b/SCHALE.Common/FlatData/SchoolDungeonRewardExcelTable.cs deleted file mode 100644 index 036342e..0000000 --- a/SCHALE.Common/FlatData/SchoolDungeonRewardExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct SchoolDungeonRewardExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static SchoolDungeonRewardExcelTable GetRootAsSchoolDungeonRewardExcelTable(ByteBuffer _bb) { return GetRootAsSchoolDungeonRewardExcelTable(_bb, new SchoolDungeonRewardExcelTable()); } - public static SchoolDungeonRewardExcelTable GetRootAsSchoolDungeonRewardExcelTable(ByteBuffer _bb, SchoolDungeonRewardExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public SchoolDungeonRewardExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.SchoolDungeonRewardExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.SchoolDungeonRewardExcel?)(new SCHALE.Common.FlatData.SchoolDungeonRewardExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateSchoolDungeonRewardExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - SchoolDungeonRewardExcelTable.AddDataList(builder, DataListOffset); - return SchoolDungeonRewardExcelTable.EndSchoolDungeonRewardExcelTable(builder); - } - - public static void StartSchoolDungeonRewardExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndSchoolDungeonRewardExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public SchoolDungeonRewardExcelTableT UnPack() { - var _o = new SchoolDungeonRewardExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(SchoolDungeonRewardExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("SchoolDungeonRewardExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, SchoolDungeonRewardExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.SchoolDungeonRewardExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateSchoolDungeonRewardExcelTable( - builder, - _DataList); - } -} - -public class SchoolDungeonRewardExcelTableT -{ - public List DataList { get; set; } - - public SchoolDungeonRewardExcelTableT() { - this.DataList = null; - } -} - - -static public class SchoolDungeonRewardExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.SchoolDungeonRewardExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/SchoolDungeonStageExcelTable.cs b/SCHALE.Common/FlatData/SchoolDungeonStageExcelTable.cs deleted file mode 100644 index a36666f..0000000 --- a/SCHALE.Common/FlatData/SchoolDungeonStageExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct SchoolDungeonStageExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static SchoolDungeonStageExcelTable GetRootAsSchoolDungeonStageExcelTable(ByteBuffer _bb) { return GetRootAsSchoolDungeonStageExcelTable(_bb, new SchoolDungeonStageExcelTable()); } - public static SchoolDungeonStageExcelTable GetRootAsSchoolDungeonStageExcelTable(ByteBuffer _bb, SchoolDungeonStageExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public SchoolDungeonStageExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.SchoolDungeonStageExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.SchoolDungeonStageExcel?)(new SCHALE.Common.FlatData.SchoolDungeonStageExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateSchoolDungeonStageExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - SchoolDungeonStageExcelTable.AddDataList(builder, DataListOffset); - return SchoolDungeonStageExcelTable.EndSchoolDungeonStageExcelTable(builder); - } - - public static void StartSchoolDungeonStageExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndSchoolDungeonStageExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public SchoolDungeonStageExcelTableT UnPack() { - var _o = new SchoolDungeonStageExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(SchoolDungeonStageExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("SchoolDungeonStageExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, SchoolDungeonStageExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.SchoolDungeonStageExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateSchoolDungeonStageExcelTable( - builder, - _DataList); - } -} - -public class SchoolDungeonStageExcelTableT -{ - public List DataList { get; set; } - - public SchoolDungeonStageExcelTableT() { - this.DataList = null; - } -} - - -static public class SchoolDungeonStageExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.SchoolDungeonStageExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/SchoolDungeonType.cs b/SCHALE.Common/FlatData/SchoolDungeonType.cs index 6e959fd..dbd82ae 100644 --- a/SCHALE.Common/FlatData/SchoolDungeonType.cs +++ b/SCHALE.Common/FlatData/SchoolDungeonType.cs @@ -10,7 +10,7 @@ public enum SchoolDungeonType : int SchoolA = 0, SchoolB = 1, SchoolC = 2, - None = 3, + None_ = 3, }; diff --git a/SCHALE.Common/FlatData/ShiftingCraftRecipeExcel.cs b/SCHALE.Common/FlatData/ShiftingCraftRecipeExcel.cs index 7961239..c5e2151 100644 --- a/SCHALE.Common/FlatData/ShiftingCraftRecipeExcel.cs +++ b/SCHALE.Common/FlatData/ShiftingCraftRecipeExcel.cs @@ -23,7 +23,7 @@ public struct ShiftingCraftRecipeExcel : IFlatbufferObject public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long DisplayOrder { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int NotificationId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } - public SCHALE.Common.FlatData.ParcelType ResultParcel { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ResultParcel { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ResultId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ResultAmount { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RequireItemId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -43,7 +43,7 @@ public struct ShiftingCraftRecipeExcel : IFlatbufferObject long Id = 0, long DisplayOrder = 0, int NotificationId = 0, - SCHALE.Common.FlatData.ParcelType ResultParcel = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ResultParcel = SCHALE.Common.FlatData.ParcelType.None_, long ResultId = 0, long ResultAmount = 0, long RequireItemId = 0, @@ -148,7 +148,7 @@ public class ShiftingCraftRecipeExcelT this.Id = 0; this.DisplayOrder = 0; this.NotificationId = 0; - this.ResultParcel = SCHALE.Common.FlatData.ParcelType.None; + this.ResultParcel = SCHALE.Common.FlatData.ParcelType.None_; this.ResultId = 0; this.ResultAmount = 0; this.RequireItemId = 0; diff --git a/SCHALE.Common/FlatData/ShopCashExcel.cs b/SCHALE.Common/FlatData/ShopCashExcel.cs index 56f75cd..d9eb339 100644 --- a/SCHALE.Common/FlatData/ShopCashExcel.cs +++ b/SCHALE.Common/FlatData/ShopCashExcel.cs @@ -22,7 +22,7 @@ public struct ShopCashExcel : IFlatbufferObject public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long CashProductId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.PurchaseSourceType PackageType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.PurchaseSourceType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseSourceType.None; } } + public SCHALE.Common.FlatData.PurchaseSourceType PackageType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.PurchaseSourceType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseSourceType.None_; } } public uint LocalizeEtcId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public string IconPath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -33,8 +33,8 @@ public struct ShopCashExcel : IFlatbufferObject public byte[] GetIconPathArray() { return __p.__vector_as_array(12); } public long DisplayOrder { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RenewalDisplayOrder { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ProductCategory CategoryType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ProductCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductCategory.None; } } - public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ProductDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductDisplayTag.None; } } + public SCHALE.Common.FlatData.ProductCategory CategoryType { get { int o = __p.__offset(18); return o != 0 ? (SCHALE.Common.FlatData.ProductCategory)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductCategory.None_; } } + public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get { int o = __p.__offset(20); return o != 0 ? (SCHALE.Common.FlatData.ProductDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductDisplayTag.None_; } } public string SalePeriodFrom { get { int o = __p.__offset(22); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetSalePeriodFromBytes() { return __p.__vector_as_span(22, 1); } @@ -65,13 +65,13 @@ public struct ShopCashExcel : IFlatbufferObject public static Offset CreateShopCashExcel(FlatBufferBuilder builder, long Id = 0, long CashProductId = 0, - SCHALE.Common.FlatData.PurchaseSourceType PackageType = SCHALE.Common.FlatData.PurchaseSourceType.None, + SCHALE.Common.FlatData.PurchaseSourceType PackageType = SCHALE.Common.FlatData.PurchaseSourceType.None_, uint LocalizeEtcId = 0, StringOffset IconPathOffset = default(StringOffset), long DisplayOrder = 0, long RenewalDisplayOrder = 0, - SCHALE.Common.FlatData.ProductCategory CategoryType = SCHALE.Common.FlatData.ProductCategory.None, - SCHALE.Common.FlatData.ProductDisplayTag DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None, + SCHALE.Common.FlatData.ProductCategory CategoryType = SCHALE.Common.FlatData.ProductCategory.None_, + SCHALE.Common.FlatData.ProductDisplayTag DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None_, StringOffset SalePeriodFromOffset = default(StringOffset), StringOffset SalePeriodToOffset = default(StringOffset), bool PeriodTag = false, @@ -199,13 +199,13 @@ public class ShopCashExcelT public ShopCashExcelT() { this.Id = 0; this.CashProductId = 0; - this.PackageType = SCHALE.Common.FlatData.PurchaseSourceType.None; + this.PackageType = SCHALE.Common.FlatData.PurchaseSourceType.None_; this.LocalizeEtcId = 0; this.IconPath = null; this.DisplayOrder = 0; this.RenewalDisplayOrder = 0; - this.CategoryType = SCHALE.Common.FlatData.ProductCategory.None; - this.DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None; + this.CategoryType = SCHALE.Common.FlatData.ProductCategory.None_; + this.DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None_; this.SalePeriodFrom = null; this.SalePeriodTo = null; this.PeriodTag = false; diff --git a/SCHALE.Common/FlatData/ShopExcel.cs b/SCHALE.Common/FlatData/ShopExcel.cs index 8fe58bc..368222a 100644 --- a/SCHALE.Common/FlatData/ShopExcel.cs +++ b/SCHALE.Common/FlatData/ShopExcel.cs @@ -49,7 +49,7 @@ public struct ShopExcel : IFlatbufferObject public byte[] GetSalePeriodToArray() { return __p.__vector_as_array(18); } public long PurchaseCooltimeMin { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PurchaseCountLimit { get { int o = __p.__offset(22); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType_ { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.PurchaseCountResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseCountResetType.None; } } + public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType_ { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.PurchaseCountResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseCountResetType.None_; } } public string BuyReportEventName { get { int o = __p.__offset(26); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetBuyReportEventNameBytes() { return __p.__vector_as_span(26, 1); } @@ -58,7 +58,7 @@ public struct ShopExcel : IFlatbufferObject #endif public byte[] GetBuyReportEventNameArray() { return __p.__vector_as_array(26); } public bool RestrictBuyWhenInventoryFull { get { int o = __p.__offset(28); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } - public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.ProductDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductDisplayTag.None; } } + public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get { int o = __p.__offset(30); return o != 0 ? (SCHALE.Common.FlatData.ProductDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductDisplayTag.None_; } } public int ShopUpdateGroupId { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public static Offset CreateShopExcel(FlatBufferBuilder builder, @@ -72,10 +72,10 @@ public struct ShopExcel : IFlatbufferObject StringOffset SalePeriodToOffset = default(StringOffset), long PurchaseCooltimeMin = 0, long PurchaseCountLimit = 0, - SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType_ = SCHALE.Common.FlatData.PurchaseCountResetType.None, + SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType_ = SCHALE.Common.FlatData.PurchaseCountResetType.None_, StringOffset BuyReportEventNameOffset = default(StringOffset), bool RestrictBuyWhenInventoryFull = false, - SCHALE.Common.FlatData.ProductDisplayTag DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None, + SCHALE.Common.FlatData.ProductDisplayTag DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None_, int ShopUpdateGroupId = 0) { builder.StartTable(15); ShopExcel.AddPurchaseCountLimit(builder, PurchaseCountLimit); @@ -204,10 +204,10 @@ public class ShopExcelT this.SalePeriodTo = null; this.PurchaseCooltimeMin = 0; this.PurchaseCountLimit = 0; - this.PurchaseCountResetType_ = SCHALE.Common.FlatData.PurchaseCountResetType.None; + this.PurchaseCountResetType_ = SCHALE.Common.FlatData.PurchaseCountResetType.None_; this.BuyReportEventName = null; this.RestrictBuyWhenInventoryFull = false; - this.DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None; + this.DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None_; this.ShopUpdateGroupId = 0; } } diff --git a/SCHALE.Common/FlatData/ShopFilterClassifiedExcel.cs b/SCHALE.Common/FlatData/ShopFilterClassifiedExcel.cs index 1f9cc53..d6ee725 100644 --- a/SCHALE.Common/FlatData/ShopFilterClassifiedExcel.cs +++ b/SCHALE.Common/FlatData/ShopFilterClassifiedExcel.cs @@ -22,7 +22,7 @@ public struct ShopFilterClassifiedExcel : IFlatbufferObject public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ShopCategoryType CategoryType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ShopCategoryType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopCategoryType.General; } } - public SCHALE.Common.FlatData.ParcelType ConsumeParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ConsumeParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ConsumeParcelId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public SCHALE.Common.FlatData.ShopFilterType ShopFilterType_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.ShopFilterType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopFilterType.GachaTicket; } } public long GoodsId { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -30,7 +30,7 @@ public struct ShopFilterClassifiedExcel : IFlatbufferObject public static Offset CreateShopFilterClassifiedExcel(FlatBufferBuilder builder, long Id = 0, SCHALE.Common.FlatData.ShopCategoryType CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General, - SCHALE.Common.FlatData.ParcelType ConsumeParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ConsumeParcelType = SCHALE.Common.FlatData.ParcelType.None_, long ConsumeParcelId = 0, SCHALE.Common.FlatData.ShopFilterType ShopFilterType_ = SCHALE.Common.FlatData.ShopFilterType.GachaTicket, long GoodsId = 0) { @@ -94,7 +94,7 @@ public class ShopFilterClassifiedExcelT public ShopFilterClassifiedExcelT() { this.Id = 0; this.CategoryType = SCHALE.Common.FlatData.ShopCategoryType.General; - this.ConsumeParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ConsumeParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.ConsumeParcelId = 0; this.ShopFilterType_ = SCHALE.Common.FlatData.ShopFilterType.GachaTicket; this.GoodsId = 0; diff --git a/SCHALE.Common/FlatData/ShopFreeRecruitExcel.cs b/SCHALE.Common/FlatData/ShopFreeRecruitExcel.cs index 7ac49aa..74128f1 100644 --- a/SCHALE.Common/FlatData/ShopFreeRecruitExcel.cs +++ b/SCHALE.Common/FlatData/ShopFreeRecruitExcel.cs @@ -35,7 +35,7 @@ public struct ShopFreeRecruitExcel : IFlatbufferObject public ArraySegment? GetFreeRecruitPeriodToBytes() { return __p.__vector_as_arraysegment(8); } #endif public byte[] GetFreeRecruitPeriodToArray() { return __p.__vector_as_array(8); } - public SCHALE.Common.FlatData.ShopFreeRecruitType FreeRecruitType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ShopFreeRecruitType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopFreeRecruitType.None; } } + public SCHALE.Common.FlatData.ShopFreeRecruitType FreeRecruitType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ShopFreeRecruitType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ShopFreeRecruitType.None_; } } public string FreeRecruitDecorationImagePath { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetFreeRecruitDecorationImagePathBytes() { return __p.__vector_as_span(12, 1); } @@ -56,7 +56,7 @@ public struct ShopFreeRecruitExcel : IFlatbufferObject long Id = 0, StringOffset FreeRecruitPeriodFromOffset = default(StringOffset), StringOffset FreeRecruitPeriodToOffset = default(StringOffset), - SCHALE.Common.FlatData.ShopFreeRecruitType FreeRecruitType = SCHALE.Common.FlatData.ShopFreeRecruitType.None, + SCHALE.Common.FlatData.ShopFreeRecruitType FreeRecruitType = SCHALE.Common.FlatData.ShopFreeRecruitType.None_, StringOffset FreeRecruitDecorationImagePathOffset = default(StringOffset), VectorOffset ShopRecruitIdOffset = default(VectorOffset)) { builder.StartTable(6); @@ -134,7 +134,7 @@ public class ShopFreeRecruitExcelT this.Id = 0; this.FreeRecruitPeriodFrom = null; this.FreeRecruitPeriodTo = null; - this.FreeRecruitType = SCHALE.Common.FlatData.ShopFreeRecruitType.None; + this.FreeRecruitType = SCHALE.Common.FlatData.ShopFreeRecruitType.None_; this.FreeRecruitDecorationImagePath = null; this.ShopRecruitId = null; } diff --git a/SCHALE.Common/FlatData/ShopFreeRecruitType.cs b/SCHALE.Common/FlatData/ShopFreeRecruitType.cs index cf017e6..4ebce7d 100644 --- a/SCHALE.Common/FlatData/ShopFreeRecruitType.cs +++ b/SCHALE.Common/FlatData/ShopFreeRecruitType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ShopFreeRecruitType : int { - None = 0, + None_ = 0, Accumulation = 1, Reset = 2, }; diff --git a/SCHALE.Common/FlatData/ShopInfoExcel.cs b/SCHALE.Common/FlatData/ShopInfoExcel.cs index 296c051..f03b2fc 100644 --- a/SCHALE.Common/FlatData/ShopInfoExcel.cs +++ b/SCHALE.Common/FlatData/ShopInfoExcel.cs @@ -70,7 +70,7 @@ public struct ShopInfoExcel : IFlatbufferObject public ArraySegment? GetShopProductUpdateTimeBytes() { return __p.__vector_as_arraysegment(24); } #endif public byte[] GetShopProductUpdateTimeArray() { return __p.__vector_as_array(24); } - public SCHALE.Common.FlatData.ParcelType DisplayParcelType { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType DisplayParcelType { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long DisplayParcelId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool IsShopVisible { get { int o = __p.__offset(30); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public int DisplayOrder { get { int o = __p.__offset(32); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } @@ -100,7 +100,7 @@ public struct ShopInfoExcel : IFlatbufferObject StringOffset OpenPeriodFromOffset = default(StringOffset), StringOffset OpenPeriodToOffset = default(StringOffset), StringOffset ShopProductUpdateTimeOffset = default(StringOffset), - SCHALE.Common.FlatData.ParcelType DisplayParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType DisplayParcelType = SCHALE.Common.FlatData.ParcelType.None_, long DisplayParcelId = 0, bool IsShopVisible = false, int DisplayOrder = 0, @@ -332,7 +332,7 @@ public class ShopInfoExcelT this.OpenPeriodFrom = null; this.OpenPeriodTo = null; this.ShopProductUpdateTime = null; - this.DisplayParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.DisplayParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.DisplayParcelId = 0; this.IsShopVisible = false; this.DisplayOrder = 0; diff --git a/SCHALE.Common/FlatData/ShopRecruitExcel.cs b/SCHALE.Common/FlatData/ShopRecruitExcel.cs index 9261e52..68c8b61 100644 --- a/SCHALE.Common/FlatData/ShopRecruitExcel.cs +++ b/SCHALE.Common/FlatData/ShopRecruitExcel.cs @@ -32,7 +32,7 @@ public struct ShopRecruitExcel : IFlatbufferObject public ArraySegment? GetGoodsDevNameBytes() { return __p.__vector_as_arraysegment(14); } #endif public byte[] GetGoodsDevNameArray() { return __p.__vector_as_array(14); } - public SCHALE.Common.FlatData.GachaDisplayTag DisplayTag { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.GachaDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaDisplayTag.None; } } + public SCHALE.Common.FlatData.GachaDisplayTag DisplayTag { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.GachaDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GachaDisplayTag.None_; } } public long DisplayOrder { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string GachaBannerPath { get { int o = __p.__offset(20); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -76,7 +76,7 @@ public struct ShopRecruitExcel : IFlatbufferObject public long RecruitSellectionShopId { get { int o = __p.__offset(34); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PurchaseCooltimeMin { get { int o = __p.__offset(36); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PurchaseCountLimit { get { int o = __p.__offset(38); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType_ { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.PurchaseCountResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseCountResetType.None; } } + public SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType_ { get { int o = __p.__offset(40); return o != 0 ? (SCHALE.Common.FlatData.PurchaseCountResetType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.PurchaseCountResetType.None_; } } public bool IsNewbie { get { int o = __p.__offset(42); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public bool IsSelectRecruit { get { int o = __p.__offset(44); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long DirectPayInvisibleTokenId { get { int o = __p.__offset(46); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -90,7 +90,7 @@ public struct ShopRecruitExcel : IFlatbufferObject long OneGachaGoodsId = 0, long TenGachaGoodsId = 0, StringOffset GoodsDevNameOffset = default(StringOffset), - SCHALE.Common.FlatData.GachaDisplayTag DisplayTag = SCHALE.Common.FlatData.GachaDisplayTag.None, + SCHALE.Common.FlatData.GachaDisplayTag DisplayTag = SCHALE.Common.FlatData.GachaDisplayTag.None_, long DisplayOrder = 0, StringOffset GachaBannerPathOffset = default(StringOffset), VectorOffset VideoIdOffset = default(VectorOffset), @@ -102,7 +102,7 @@ public struct ShopRecruitExcel : IFlatbufferObject long RecruitSellectionShopId = 0, long PurchaseCooltimeMin = 0, long PurchaseCountLimit = 0, - SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType_ = SCHALE.Common.FlatData.PurchaseCountResetType.None, + SCHALE.Common.FlatData.PurchaseCountResetType PurchaseCountResetType_ = SCHALE.Common.FlatData.PurchaseCountResetType.None_, bool IsNewbie = false, bool IsSelectRecruit = false, long DirectPayInvisibleTokenId = 0, @@ -288,7 +288,7 @@ public class ShopRecruitExcelT this.OneGachaGoodsId = 0; this.TenGachaGoodsId = 0; this.GoodsDevName = null; - this.DisplayTag = SCHALE.Common.FlatData.GachaDisplayTag.None; + this.DisplayTag = SCHALE.Common.FlatData.GachaDisplayTag.None_; this.DisplayOrder = 0; this.GachaBannerPath = null; this.VideoId = null; @@ -300,7 +300,7 @@ public class ShopRecruitExcelT this.RecruitSellectionShopId = 0; this.PurchaseCooltimeMin = 0; this.PurchaseCountLimit = 0; - this.PurchaseCountResetType_ = SCHALE.Common.FlatData.PurchaseCountResetType.None; + this.PurchaseCountResetType_ = SCHALE.Common.FlatData.PurchaseCountResetType.None_; this.IsNewbie = false; this.IsSelectRecruit = false; this.DirectPayInvisibleTokenId = 0; diff --git a/SCHALE.Common/FlatData/ShopRefreshExcel.cs b/SCHALE.Common/FlatData/ShopRefreshExcel.cs index 547fb04..a5e2670 100644 --- a/SCHALE.Common/FlatData/ShopRefreshExcel.cs +++ b/SCHALE.Common/FlatData/ShopRefreshExcel.cs @@ -37,7 +37,7 @@ public struct ShopRefreshExcel : IFlatbufferObject public ArraySegment? GetBuyReportEventNameBytes() { return __p.__vector_as_arraysegment(24); } #endif public byte[] GetBuyReportEventNameArray() { return __p.__vector_as_array(24); } - public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ProductDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductDisplayTag.None; } } + public SCHALE.Common.FlatData.ProductDisplayTag DisplayTag { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ProductDisplayTag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ProductDisplayTag.None_; } } public static Offset CreateShopRefreshExcel(FlatBufferBuilder builder, long Id = 0, @@ -51,7 +51,7 @@ public struct ShopRefreshExcel : IFlatbufferObject int RefreshGroup = 0, int Prob = 0, StringOffset BuyReportEventNameOffset = default(StringOffset), - SCHALE.Common.FlatData.ProductDisplayTag DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None) { + SCHALE.Common.FlatData.ProductDisplayTag DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None_) { builder.StartTable(12); ShopRefreshExcel.AddDisplayOrder(builder, DisplayOrder); ShopRefreshExcel.AddVisibleAmount(builder, VisibleAmount); @@ -152,7 +152,7 @@ public class ShopRefreshExcelT this.RefreshGroup = 0; this.Prob = 0; this.BuyReportEventName = null; - this.DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None; + this.DisplayTag = SCHALE.Common.FlatData.ProductDisplayTag.None_; } } diff --git a/SCHALE.Common/FlatData/ShortcutContentType.cs b/SCHALE.Common/FlatData/ShortcutContentType.cs index 4a9894d..49d8029 100644 --- a/SCHALE.Common/FlatData/ShortcutContentType.cs +++ b/SCHALE.Common/FlatData/ShortcutContentType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ShortcutContentType : int { - None = 0, + None_ = 0, CampaignStage = 1, EventStage = 2, Blood = 3, diff --git a/SCHALE.Common/FlatData/ShowSkillCutIn.cs b/SCHALE.Common/FlatData/ShowSkillCutIn.cs index 8cf36cc..54fe8a6 100644 --- a/SCHALE.Common/FlatData/ShowSkillCutIn.cs +++ b/SCHALE.Common/FlatData/ShowSkillCutIn.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ShowSkillCutIn : int { - None = 0, + None_ = 0, Once = 1, Always = 2, }; diff --git a/SCHALE.Common/FlatData/SkillCategory.cs b/SCHALE.Common/FlatData/SkillCategory.cs index 56549eb..5106e4e 100644 --- a/SCHALE.Common/FlatData/SkillCategory.cs +++ b/SCHALE.Common/FlatData/SkillCategory.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum SkillCategory : int { - None = 0, + None_ = 0, }; diff --git a/SCHALE.Common/FlatData/SkillPriorityCheckCondition.cs b/SCHALE.Common/FlatData/SkillPriorityCheckCondition.cs index 065b6d2..244c514 100644 --- a/SCHALE.Common/FlatData/SkillPriorityCheckCondition.cs +++ b/SCHALE.Common/FlatData/SkillPriorityCheckCondition.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum SkillPriorityCheckCondition : int { - None = 0, + None_ = 0, HPRateUnder = 1, DebuffCountOver = 2, BuffCountOver = 3, diff --git a/SCHALE.Common/FlatData/SortingTarget.cs b/SCHALE.Common/FlatData/SortingTarget.cs index e434986..4fa8245 100644 --- a/SCHALE.Common/FlatData/SortingTarget.cs +++ b/SCHALE.Common/FlatData/SortingTarget.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum SortingTarget : int { - None = 0, + None_ = 0, Rarity = 1, Level = 2, StarGrade = 3, diff --git a/SCHALE.Common/FlatData/SquadType.cs b/SCHALE.Common/FlatData/SquadType.cs index 4daaf4c..3e1543e 100644 --- a/SCHALE.Common/FlatData/SquadType.cs +++ b/SCHALE.Common/FlatData/SquadType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum SquadType : int { - None = 0, + None_ = 0, Main = 1, Support = 2, TSS = 3, diff --git a/SCHALE.Common/FlatData/StageDifficulty.cs b/SCHALE.Common/FlatData/StageDifficulty.cs index 5aa0c37..2088cdb 100644 --- a/SCHALE.Common/FlatData/StageDifficulty.cs +++ b/SCHALE.Common/FlatData/StageDifficulty.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum StageDifficulty : int { - None = 0, + None_ = 0, Normal = 1, Hard = 2, VeryHard = 3, diff --git a/SCHALE.Common/FlatData/StarGoalType.cs b/SCHALE.Common/FlatData/StarGoalType.cs index a82c8da..a3c3b88 100644 --- a/SCHALE.Common/FlatData/StarGoalType.cs +++ b/SCHALE.Common/FlatData/StarGoalType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum StarGoalType : int { - None = 0, + None_ = 0, AllAlive = 1, Clear = 2, GetBoxes = 3, diff --git a/SCHALE.Common/FlatData/StatLevelInterpolationExcelTable.cs b/SCHALE.Common/FlatData/StatLevelInterpolationExcelTable.cs deleted file mode 100644 index 788cf1c..0000000 --- a/SCHALE.Common/FlatData/StatLevelInterpolationExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct StatLevelInterpolationExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static StatLevelInterpolationExcelTable GetRootAsStatLevelInterpolationExcelTable(ByteBuffer _bb) { return GetRootAsStatLevelInterpolationExcelTable(_bb, new StatLevelInterpolationExcelTable()); } - public static StatLevelInterpolationExcelTable GetRootAsStatLevelInterpolationExcelTable(ByteBuffer _bb, StatLevelInterpolationExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public StatLevelInterpolationExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.StatLevelInterpolationExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StatLevelInterpolationExcel?)(new SCHALE.Common.FlatData.StatLevelInterpolationExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateStatLevelInterpolationExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - StatLevelInterpolationExcelTable.AddDataList(builder, DataListOffset); - return StatLevelInterpolationExcelTable.EndStatLevelInterpolationExcelTable(builder); - } - - public static void StartStatLevelInterpolationExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndStatLevelInterpolationExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public StatLevelInterpolationExcelTableT UnPack() { - var _o = new StatLevelInterpolationExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(StatLevelInterpolationExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("StatLevelInterpolationExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, StatLevelInterpolationExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.StatLevelInterpolationExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateStatLevelInterpolationExcelTable( - builder, - _DataList); - } -} - -public class StatLevelInterpolationExcelTableT -{ - public List DataList { get; set; } - - public StatLevelInterpolationExcelTableT() { - this.DataList = null; - } -} - - -static public class StatLevelInterpolationExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.StatLevelInterpolationExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/StatType.cs b/SCHALE.Common/FlatData/StatType.cs index 41c6a2d..fb9bbfe 100644 --- a/SCHALE.Common/FlatData/StatType.cs +++ b/SCHALE.Common/FlatData/StatType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum StatType : int { - None = 0, + None_ = 0, MaxHP = 1, AttackPower = 2, DefensePower = 3, diff --git a/SCHALE.Common/FlatData/StickerCheckPassType.cs b/SCHALE.Common/FlatData/StickerCheckPassType.cs index b544a09..d3a4235 100644 --- a/SCHALE.Common/FlatData/StickerCheckPassType.cs +++ b/SCHALE.Common/FlatData/StickerCheckPassType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum StickerCheckPassType : int { - None = 0, + None_ = 0, ClearScenarioModeId = 1, ClearCampaignStageId = 2, }; diff --git a/SCHALE.Common/FlatData/StickerGetConditionType.cs b/SCHALE.Common/FlatData/StickerGetConditionType.cs index fb21d8f..a1dee87 100644 --- a/SCHALE.Common/FlatData/StickerGetConditionType.cs +++ b/SCHALE.Common/FlatData/StickerGetConditionType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum StickerGetConditionType : int { - None = 0, + None_ = 0, StickerCheckPass = 1, GetStickerCondition = 2, }; diff --git a/SCHALE.Common/FlatData/StickerGroupExcel.cs b/SCHALE.Common/FlatData/StickerGroupExcel.cs index 0537a5d..9621ee2 100644 --- a/SCHALE.Common/FlatData/StickerGroupExcel.cs +++ b/SCHALE.Common/FlatData/StickerGroupExcel.cs @@ -43,7 +43,7 @@ public struct StickerGroupExcel : IFlatbufferObject #endif public byte[] GetStickerGroupIconpathArray() { return __p.__vector_as_array(10); } public long PageCompleteSlot { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType PageCompleteRewardParcelType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType PageCompleteRewardParcelType { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long PageCompleteRewardParcelId { get { int o = __p.__offset(16); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public int PageCompleteRewardAmount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public uint LocalizeTitle { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } @@ -62,7 +62,7 @@ public struct StickerGroupExcel : IFlatbufferObject StringOffset UniqueLayoutPathOffset = default(StringOffset), StringOffset StickerGroupIconpathOffset = default(StringOffset), long PageCompleteSlot = 0, - SCHALE.Common.FlatData.ParcelType PageCompleteRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType PageCompleteRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long PageCompleteRewardParcelId = 0, int PageCompleteRewardAmount = 0, uint LocalizeTitle = 0, @@ -160,7 +160,7 @@ public class StickerGroupExcelT this.UniqueLayoutPath = null; this.StickerGroupIconpath = null; this.PageCompleteSlot = 0; - this.PageCompleteRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.PageCompleteRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.PageCompleteRewardParcelId = 0; this.PageCompleteRewardAmount = 0; this.LocalizeTitle = 0; diff --git a/SCHALE.Common/FlatData/StickerGroupExcelTable.cs b/SCHALE.Common/FlatData/StickerGroupExcelTable.cs deleted file mode 100644 index c7137b7..0000000 --- a/SCHALE.Common/FlatData/StickerGroupExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct StickerGroupExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static StickerGroupExcelTable GetRootAsStickerGroupExcelTable(ByteBuffer _bb) { return GetRootAsStickerGroupExcelTable(_bb, new StickerGroupExcelTable()); } - public static StickerGroupExcelTable GetRootAsStickerGroupExcelTable(ByteBuffer _bb, StickerGroupExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public StickerGroupExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.StickerGroupExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StickerGroupExcel?)(new SCHALE.Common.FlatData.StickerGroupExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateStickerGroupExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - StickerGroupExcelTable.AddDataList(builder, DataListOffset); - return StickerGroupExcelTable.EndStickerGroupExcelTable(builder); - } - - public static void StartStickerGroupExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndStickerGroupExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public StickerGroupExcelTableT UnPack() { - var _o = new StickerGroupExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(StickerGroupExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("StickerGroupExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, StickerGroupExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.StickerGroupExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateStickerGroupExcelTable( - builder, - _DataList); - } -} - -public class StickerGroupExcelTableT -{ - public List DataList { get; set; } - - public StickerGroupExcelTableT() { - this.DataList = null; - } -} - - -static public class StickerGroupExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.StickerGroupExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/StickerPageContentExcel.cs b/SCHALE.Common/FlatData/StickerPageContentExcel.cs index 77a7abb..68494a0 100644 --- a/SCHALE.Common/FlatData/StickerPageContentExcel.cs +++ b/SCHALE.Common/FlatData/StickerPageContentExcel.cs @@ -24,9 +24,9 @@ public struct StickerPageContentExcel : IFlatbufferObject public long StickerGroupId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long StickerPageId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long StickerSlot { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.StickerGetConditionType StickerGetConditionType_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.StickerGetConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StickerGetConditionType.None; } } - public SCHALE.Common.FlatData.StickerCheckPassType StickerCheckPassType_ { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.StickerCheckPassType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StickerCheckPassType.None; } } - public SCHALE.Common.FlatData.GetStickerConditionType GetStickerConditionType_ { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.GetStickerConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GetStickerConditionType.None; } } + public SCHALE.Common.FlatData.StickerGetConditionType StickerGetConditionType_ { get { int o = __p.__offset(12); return o != 0 ? (SCHALE.Common.FlatData.StickerGetConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StickerGetConditionType.None_; } } + public SCHALE.Common.FlatData.StickerCheckPassType StickerCheckPassType_ { get { int o = __p.__offset(14); return o != 0 ? (SCHALE.Common.FlatData.StickerCheckPassType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StickerCheckPassType.None_; } } + public SCHALE.Common.FlatData.GetStickerConditionType GetStickerConditionType_ { get { int o = __p.__offset(16); return o != 0 ? (SCHALE.Common.FlatData.GetStickerConditionType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.GetStickerConditionType.None_; } } public long StickerGetConditionCount { get { int o = __p.__offset(18); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long StickerGetConditionParameter(int j) { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(__p.__vector(o) + j * 8) : (long)0; } public int StickerGetConditionParameterLength { get { int o = __p.__offset(20); return o != 0 ? __p.__vector_len(o) : 0; } } @@ -72,9 +72,9 @@ public struct StickerPageContentExcel : IFlatbufferObject long StickerGroupId = 0, long StickerPageId = 0, long StickerSlot = 0, - SCHALE.Common.FlatData.StickerGetConditionType StickerGetConditionType_ = SCHALE.Common.FlatData.StickerGetConditionType.None, - SCHALE.Common.FlatData.StickerCheckPassType StickerCheckPassType_ = SCHALE.Common.FlatData.StickerCheckPassType.None, - SCHALE.Common.FlatData.GetStickerConditionType GetStickerConditionType_ = SCHALE.Common.FlatData.GetStickerConditionType.None, + SCHALE.Common.FlatData.StickerGetConditionType StickerGetConditionType_ = SCHALE.Common.FlatData.StickerGetConditionType.None_, + SCHALE.Common.FlatData.StickerCheckPassType StickerCheckPassType_ = SCHALE.Common.FlatData.StickerCheckPassType.None_, + SCHALE.Common.FlatData.GetStickerConditionType GetStickerConditionType_ = SCHALE.Common.FlatData.GetStickerConditionType.None_, long StickerGetConditionCount = 0, VectorOffset StickerGetConditionParameterOffset = default(VectorOffset), VectorOffset StickerGetConditionParameterTagOffset = default(VectorOffset), @@ -209,9 +209,9 @@ public class StickerPageContentExcelT this.StickerGroupId = 0; this.StickerPageId = 0; this.StickerSlot = 0; - this.StickerGetConditionType_ = SCHALE.Common.FlatData.StickerGetConditionType.None; - this.StickerCheckPassType_ = SCHALE.Common.FlatData.StickerCheckPassType.None; - this.GetStickerConditionType_ = SCHALE.Common.FlatData.GetStickerConditionType.None; + this.StickerGetConditionType_ = SCHALE.Common.FlatData.StickerGetConditionType.None_; + this.StickerCheckPassType_ = SCHALE.Common.FlatData.StickerCheckPassType.None_; + this.GetStickerConditionType_ = SCHALE.Common.FlatData.GetStickerConditionType.None_; this.StickerGetConditionCount = 0; this.StickerGetConditionParameter = null; this.StickerGetConditionParameterTag = null; diff --git a/SCHALE.Common/FlatData/StickerPageContentExcelTable.cs b/SCHALE.Common/FlatData/StickerPageContentExcelTable.cs deleted file mode 100644 index e55e9e1..0000000 --- a/SCHALE.Common/FlatData/StickerPageContentExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct StickerPageContentExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static StickerPageContentExcelTable GetRootAsStickerPageContentExcelTable(ByteBuffer _bb) { return GetRootAsStickerPageContentExcelTable(_bb, new StickerPageContentExcelTable()); } - public static StickerPageContentExcelTable GetRootAsStickerPageContentExcelTable(ByteBuffer _bb, StickerPageContentExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public StickerPageContentExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.StickerPageContentExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.StickerPageContentExcel?)(new SCHALE.Common.FlatData.StickerPageContentExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateStickerPageContentExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - StickerPageContentExcelTable.AddDataList(builder, DataListOffset); - return StickerPageContentExcelTable.EndStickerPageContentExcelTable(builder); - } - - public static void StartStickerPageContentExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndStickerPageContentExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public StickerPageContentExcelTableT UnPack() { - var _o = new StickerPageContentExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(StickerPageContentExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("StickerPageContentExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, StickerPageContentExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.StickerPageContentExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateStickerPageContentExcelTable( - builder, - _DataList); - } -} - -public class StickerPageContentExcelTableT -{ - public List DataList { get; set; } - - public StickerPageContentExcelTableT() { - this.DataList = null; - } -} - - -static public class StickerPageContentExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.StickerPageContentExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/StoreType.cs b/SCHALE.Common/FlatData/StoreType.cs index 81ef88b..23c23d8 100644 --- a/SCHALE.Common/FlatData/StoreType.cs +++ b/SCHALE.Common/FlatData/StoreType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum StoreType : int { - None = 0, + None_ = 0, GooglePlay = 1, AppStore = 2, OneStore = 3, diff --git a/SCHALE.Common/FlatData/StoryStrategyExcel.cs b/SCHALE.Common/FlatData/StoryStrategyExcel.cs index 8e0654a..34ff265 100644 --- a/SCHALE.Common/FlatData/StoryStrategyExcel.cs +++ b/SCHALE.Common/FlatData/StoryStrategyExcel.cs @@ -54,8 +54,8 @@ public struct StoryStrategyExcel : IFlatbufferObject public byte[] GetStrategyMapBGArray() { return __p.__vector_as_array(18); } public int MaxTurn { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public SCHALE.Common.FlatData.StageTopography StageTopography_ { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.StageTopography)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StageTopography.Street; } } - public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None; } } - public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None; } } + public SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ { get { int o = __p.__offset(24); return o != 0 ? (SCHALE.Common.FlatData.StrategyEnvironment)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.StrategyEnvironment.None_; } } + public SCHALE.Common.FlatData.ContentType ContentType_ { get { int o = __p.__offset(26); return o != 0 ? (SCHALE.Common.FlatData.ContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ContentType.None_; } } public long BGMId { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string FirstClearReportEventName { get { int o = __p.__offset(30); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -76,8 +76,8 @@ public struct StoryStrategyExcel : IFlatbufferObject StringOffset StrategyMapBGOffset = default(StringOffset), int MaxTurn = 0, SCHALE.Common.FlatData.StageTopography StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street, - SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None, - SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None, + SCHALE.Common.FlatData.StrategyEnvironment StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None_, + SCHALE.Common.FlatData.ContentType ContentType_ = SCHALE.Common.FlatData.ContentType.None_, long BGMId = 0, StringOffset FirstClearReportEventNameOffset = default(StringOffset)) { builder.StartTable(14); @@ -193,8 +193,8 @@ public class StoryStrategyExcelT this.StrategyMapBG = null; this.MaxTurn = 0; this.StageTopography_ = SCHALE.Common.FlatData.StageTopography.Street; - this.StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None; - this.ContentType_ = SCHALE.Common.FlatData.ContentType.None; + this.StrategyEnvironment_ = SCHALE.Common.FlatData.StrategyEnvironment.None_; + this.ContentType_ = SCHALE.Common.FlatData.ContentType.None_; this.BGMId = 0; this.FirstClearReportEventName = null; } diff --git a/SCHALE.Common/FlatData/StrategyAIType.cs b/SCHALE.Common/FlatData/StrategyAIType.cs index 54dd976..c645da2 100644 --- a/SCHALE.Common/FlatData/StrategyAIType.cs +++ b/SCHALE.Common/FlatData/StrategyAIType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum StrategyAIType : int { - None = 0, + None_ = 0, Guard = 1, Pursuit = 2, }; diff --git a/SCHALE.Common/FlatData/StrategyEnvironment.cs b/SCHALE.Common/FlatData/StrategyEnvironment.cs index b7688e1..3f32515 100644 --- a/SCHALE.Common/FlatData/StrategyEnvironment.cs +++ b/SCHALE.Common/FlatData/StrategyEnvironment.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum StrategyEnvironment : int { - None = 0, + None_ = 0, MapFog = 1, }; diff --git a/SCHALE.Common/FlatData/StrategyObjectType.cs b/SCHALE.Common/FlatData/StrategyObjectType.cs index 74a09cb..78ce493 100644 --- a/SCHALE.Common/FlatData/StrategyObjectType.cs +++ b/SCHALE.Common/FlatData/StrategyObjectType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum StrategyObjectType : int { - None = 0, + None_ = 0, Start = 1, Heal = 2, Skill = 3, diff --git a/SCHALE.Common/FlatData/SubEventType.cs b/SCHALE.Common/FlatData/SubEventType.cs index 519e57c..4a2d944 100644 --- a/SCHALE.Common/FlatData/SubEventType.cs +++ b/SCHALE.Common/FlatData/SubEventType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum SubEventType : int { - None = 0, + None_ = 0, SubEvent = 1, SubEventPermanent = 2, }; diff --git a/SCHALE.Common/FlatData/TBGItemEffectType.cs b/SCHALE.Common/FlatData/TBGItemEffectType.cs index 179f25a..569aead 100644 --- a/SCHALE.Common/FlatData/TBGItemEffectType.cs +++ b/SCHALE.Common/FlatData/TBGItemEffectType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TBGItemEffectType : int { - None = 0, + None_ = 0, PermanentContinuity = 1, TemporaryContinuation = 2, Immediately = 3, diff --git a/SCHALE.Common/FlatData/TBGItemType.cs b/SCHALE.Common/FlatData/TBGItemType.cs index 286c3d8..ada11d3 100644 --- a/SCHALE.Common/FlatData/TBGItemType.cs +++ b/SCHALE.Common/FlatData/TBGItemType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TBGItemType : int { - None = 0, + None_ = 0, Dice = 1, Heal = 2, HealExpansion = 3, diff --git a/SCHALE.Common/FlatData/TBGObjectType.cs b/SCHALE.Common/FlatData/TBGObjectType.cs index 51da459..f4dddab 100644 --- a/SCHALE.Common/FlatData/TBGObjectType.cs +++ b/SCHALE.Common/FlatData/TBGObjectType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TBGObjectType : int { - None = 0, + None_ = 0, EnemyBoss = 1, EnemyMinion = 2, Random = 3, diff --git a/SCHALE.Common/FlatData/TBGOptionSuccessType.cs b/SCHALE.Common/FlatData/TBGOptionSuccessType.cs index 38ed854..7f34963 100644 --- a/SCHALE.Common/FlatData/TBGOptionSuccessType.cs +++ b/SCHALE.Common/FlatData/TBGOptionSuccessType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TBGOptionSuccessType : int { - None = 0, + None_ = 0, TBGItemAcquire = 1, ItemAcquire = 2, TBGDiceAcquire = 3, diff --git a/SCHALE.Common/FlatData/TBGPortalCondition.cs b/SCHALE.Common/FlatData/TBGPortalCondition.cs index 0200853..4448bf4 100644 --- a/SCHALE.Common/FlatData/TBGPortalCondition.cs +++ b/SCHALE.Common/FlatData/TBGPortalCondition.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TBGPortalCondition : int { - None = 0, + None_ = 0, ObjectAllEncounter = 1, Round = 2, }; diff --git a/SCHALE.Common/FlatData/TBGProbModifyCondition.cs b/SCHALE.Common/FlatData/TBGProbModifyCondition.cs index fbeb4d9..c081ecc 100644 --- a/SCHALE.Common/FlatData/TBGProbModifyCondition.cs +++ b/SCHALE.Common/FlatData/TBGProbModifyCondition.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TBGProbModifyCondition : int { - None = 0, + None_ = 0, AllyRevive = 1, DicePlayFail = 2, }; diff --git a/SCHALE.Common/FlatData/TBGThemaType.cs b/SCHALE.Common/FlatData/TBGThemaType.cs index 70331b7..f1b27e2 100644 --- a/SCHALE.Common/FlatData/TBGThemaType.cs +++ b/SCHALE.Common/FlatData/TBGThemaType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TBGThemaType : int { - None = 0, + None_ = 0, Normal = 1, Hidden = 2, }; diff --git a/SCHALE.Common/FlatData/TBGTileType.cs b/SCHALE.Common/FlatData/TBGTileType.cs index 3dcf5cb..363f36f 100644 --- a/SCHALE.Common/FlatData/TBGTileType.cs +++ b/SCHALE.Common/FlatData/TBGTileType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TBGTileType : int { - None = 0, + None_ = 0, Start = 1, Movable = 2, UnMovable = 3, diff --git a/SCHALE.Common/FlatData/TBGVoiceCondition.cs b/SCHALE.Common/FlatData/TBGVoiceCondition.cs index d8d63a4..c1e15a6 100644 --- a/SCHALE.Common/FlatData/TBGVoiceCondition.cs +++ b/SCHALE.Common/FlatData/TBGVoiceCondition.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TBGVoiceCondition : int { - None = 0, + None_ = 0, DiceResultSuccess = 1, DiceResultFailBattle = 2, DiceResultFailRandom = 3, diff --git a/SCHALE.Common/FlatData/TacticEntityType.cs b/SCHALE.Common/FlatData/TacticEntityType.cs index 0e00b1a..4e02a06 100644 --- a/SCHALE.Common/FlatData/TacticEntityType.cs +++ b/SCHALE.Common/FlatData/TacticEntityType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TacticEntityType : int { - None = 0, + None_ = 0, Student = 1, Minion = 2, Elite = 4, diff --git a/SCHALE.Common/FlatData/TacticEnvironment.cs b/SCHALE.Common/FlatData/TacticEnvironment.cs index ba7a249..cda0eff 100644 --- a/SCHALE.Common/FlatData/TacticEnvironment.cs +++ b/SCHALE.Common/FlatData/TacticEnvironment.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TacticEnvironment : int { - None = 0, + None_ = 0, WarFog = 1, }; diff --git a/SCHALE.Common/FlatData/TacticRole.cs b/SCHALE.Common/FlatData/TacticRole.cs index ff40d5d..99afea8 100644 --- a/SCHALE.Common/FlatData/TacticRole.cs +++ b/SCHALE.Common/FlatData/TacticRole.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TacticRole : int { - None = 0, + None_ = 0, DamageDealer = 1, Tanker = 2, Supporter = 3, diff --git a/SCHALE.Common/FlatData/TacticSimulatorSettingExcel.cs b/SCHALE.Common/FlatData/TacticSimulatorSettingExcel.cs index ef3b469..931cb30 100644 --- a/SCHALE.Common/FlatData/TacticSimulatorSettingExcel.cs +++ b/SCHALE.Common/FlatData/TacticSimulatorSettingExcel.cs @@ -21,28 +21,20 @@ public struct TacticSimulatorSettingExcel : IFlatbufferObject public TacticSimulatorSettingExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long GroundId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long GetExp { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long GetStarGrade { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public long Equipment { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } + public long FixedEchelonId { get { int o = __p.__offset(6); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateTacticSimulatorSettingExcel(FlatBufferBuilder builder, long GroundId = 0, - long GetExp = 0, - long GetStarGrade = 0, - long Equipment = 0) { - builder.StartTable(4); - TacticSimulatorSettingExcel.AddEquipment(builder, Equipment); - TacticSimulatorSettingExcel.AddGetStarGrade(builder, GetStarGrade); - TacticSimulatorSettingExcel.AddGetExp(builder, GetExp); + long FixedEchelonId = 0) { + builder.StartTable(2); + TacticSimulatorSettingExcel.AddFixedEchelonId(builder, FixedEchelonId); TacticSimulatorSettingExcel.AddGroundId(builder, GroundId); return TacticSimulatorSettingExcel.EndTacticSimulatorSettingExcel(builder); } - public static void StartTacticSimulatorSettingExcel(FlatBufferBuilder builder) { builder.StartTable(4); } + public static void StartTacticSimulatorSettingExcel(FlatBufferBuilder builder) { builder.StartTable(2); } public static void AddGroundId(FlatBufferBuilder builder, long groundId) { builder.AddLong(0, groundId, 0); } - public static void AddGetExp(FlatBufferBuilder builder, long getExp) { builder.AddLong(1, getExp, 0); } - public static void AddGetStarGrade(FlatBufferBuilder builder, long getStarGrade) { builder.AddLong(2, getStarGrade, 0); } - public static void AddEquipment(FlatBufferBuilder builder, long equipment) { builder.AddLong(3, equipment, 0); } + public static void AddFixedEchelonId(FlatBufferBuilder builder, long fixedEchelonId) { builder.AddLong(1, fixedEchelonId, 0); } public static Offset EndTacticSimulatorSettingExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); @@ -55,33 +47,25 @@ public struct TacticSimulatorSettingExcel : IFlatbufferObject public void UnPackTo(TacticSimulatorSettingExcelT _o) { byte[] key = TableEncryptionService.CreateKey("TacticSimulatorSetting"); _o.GroundId = TableEncryptionService.Convert(this.GroundId, key); - _o.GetExp = TableEncryptionService.Convert(this.GetExp, key); - _o.GetStarGrade = TableEncryptionService.Convert(this.GetStarGrade, key); - _o.Equipment = TableEncryptionService.Convert(this.Equipment, key); + _o.FixedEchelonId = TableEncryptionService.Convert(this.FixedEchelonId, key); } public static Offset Pack(FlatBufferBuilder builder, TacticSimulatorSettingExcelT _o) { if (_o == null) return default(Offset); return CreateTacticSimulatorSettingExcel( builder, _o.GroundId, - _o.GetExp, - _o.GetStarGrade, - _o.Equipment); + _o.FixedEchelonId); } } public class TacticSimulatorSettingExcelT { public long GroundId { get; set; } - public long GetExp { get; set; } - public long GetStarGrade { get; set; } - public long Equipment { get; set; } + public long FixedEchelonId { get; set; } public TacticSimulatorSettingExcelT() { this.GroundId = 0; - this.GetExp = 0; - this.GetStarGrade = 0; - this.Equipment = 0; + this.FixedEchelonId = 0; } } @@ -92,9 +76,7 @@ static public class TacticSimulatorSettingExcelVerify { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*GroundId*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 6 /*GetExp*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 8 /*GetStarGrade*/, 8 /*long*/, 8, false) - && verifier.VerifyField(tablePos, 10 /*Equipment*/, 8 /*long*/, 8, false) + && verifier.VerifyField(tablePos, 6 /*FixedEchelonId*/, 8 /*long*/, 8, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/TacticSkillUse.cs b/SCHALE.Common/FlatData/TacticSkillUse.cs index 7c6388f..bb1186a 100644 --- a/SCHALE.Common/FlatData/TacticSkillUse.cs +++ b/SCHALE.Common/FlatData/TacticSkillUse.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TacticSkillUse : int { - None = 0, + None_ = 0, Auto = 1, Manual = 2, }; diff --git a/SCHALE.Common/FlatData/TacticSpeed.cs b/SCHALE.Common/FlatData/TacticSpeed.cs index c493bba..35a2211 100644 --- a/SCHALE.Common/FlatData/TacticSpeed.cs +++ b/SCHALE.Common/FlatData/TacticSpeed.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TacticSpeed : int { - None = 0, + None_ = 0, Slow = 1, Normal = 2, Fast = 3, diff --git a/SCHALE.Common/FlatData/Tag.cs b/SCHALE.Common/FlatData/Tag.cs index 5c55409..3040ecc 100644 --- a/SCHALE.Common/FlatData/Tag.cs +++ b/SCHALE.Common/FlatData/Tag.cs @@ -96,7 +96,7 @@ public enum Tag : int aR = 86, ar = 87, aS = 88, - @as = 89, + as_ = 89, aT = 90, at = 91, aU = 92, @@ -902,7 +902,7 @@ public enum Tag : int iE = 892, ie = 893, iF = 894, - @if = 895, + if_ = 895, iG = 896, ig = 897, iH = 898, @@ -918,7 +918,7 @@ public enum Tag : int iM = 908, im = 909, iN = 910, - @in = 911, + in_ = 911, iO = 912, io = 913, iP = 914, @@ -928,7 +928,7 @@ public enum Tag : int iR = 918, ir = 919, iS = 920, - @is = 921, + is_ = 921, iT = 922, it = 923, iU = 924, @@ -1550,7 +1550,7 @@ public enum Tag : int oQ = 1540, oq = 1541, oR = 1542, - or = 1543, + or_ = 1543, oS = 1544, os = 1545, oT = 1546, diff --git a/SCHALE.Common/FlatData/TagExcel.cs b/SCHALE.Common/FlatData/TagExcel.cs index b7245df..b10fa5b 100644 --- a/SCHALE.Common/FlatData/TagExcel.cs +++ b/SCHALE.Common/FlatData/TagExcel.cs @@ -21,20 +21,20 @@ public struct TagExcel : IFlatbufferObject public TagExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public SCHALE.Common.FlatData.Tag Furniture { get { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.Tag)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Tag.A; } } - public SCHALE.Common.FlatData.Club None { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Club)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Club.None; } } + public SCHALE.Common.FlatData.Club None_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.Club)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.Club.None_; } } public static Offset CreateTagExcel(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag Furniture = SCHALE.Common.FlatData.Tag.A, - SCHALE.Common.FlatData.Club None = SCHALE.Common.FlatData.Club.None) { + SCHALE.Common.FlatData.Club None_ = SCHALE.Common.FlatData.Club.None_) { builder.StartTable(2); - TagExcel.AddNone(builder, None); + TagExcel.AddNone_(builder, None_); TagExcel.AddFurniture(builder, Furniture); return TagExcel.EndTagExcel(builder); } public static void StartTagExcel(FlatBufferBuilder builder) { builder.StartTable(2); } public static void AddFurniture(FlatBufferBuilder builder, SCHALE.Common.FlatData.Tag furniture) { builder.AddInt(0, (int)furniture, 0); } - public static void AddNone(FlatBufferBuilder builder, SCHALE.Common.FlatData.Club none) { builder.AddInt(1, (int)none, 0); } + public static void AddNone_(FlatBufferBuilder builder, SCHALE.Common.FlatData.Club none_) { builder.AddInt(1, (int)none_, 0); } public static Offset EndTagExcel(FlatBufferBuilder builder) { int o = builder.EndTable(); return new Offset(o); @@ -47,25 +47,25 @@ public struct TagExcel : IFlatbufferObject public void UnPackTo(TagExcelT _o) { byte[] key = TableEncryptionService.CreateKey("Tag"); _o.Furniture = TableEncryptionService.Convert(this.Furniture, key); - _o.None = TableEncryptionService.Convert(this.None, key); + _o.None_ = TableEncryptionService.Convert(this.None_, key); } public static Offset Pack(FlatBufferBuilder builder, TagExcelT _o) { if (_o == null) return default(Offset); return CreateTagExcel( builder, _o.Furniture, - _o.None); + _o.None_); } } public class TagExcelT { public SCHALE.Common.FlatData.Tag Furniture { get; set; } - public SCHALE.Common.FlatData.Club None { get; set; } + public SCHALE.Common.FlatData.Club None_ { get; set; } public TagExcelT() { this.Furniture = SCHALE.Common.FlatData.Tag.A; - this.None = SCHALE.Common.FlatData.Club.None; + this.None_ = SCHALE.Common.FlatData.Club.None_; } } @@ -76,7 +76,7 @@ static public class TagExcelVerify { return verifier.VerifyTableStart(tablePos) && verifier.VerifyField(tablePos, 4 /*Furniture*/, 4 /*SCHALE.Common.FlatData.Tag*/, 4, false) - && verifier.VerifyField(tablePos, 6 /*None*/, 4 /*SCHALE.Common.FlatData.Club*/, 4, false) + && verifier.VerifyField(tablePos, 6 /*None_*/, 4 /*SCHALE.Common.FlatData.Club*/, 4, false) && verifier.VerifyTableEnd(tablePos); } } diff --git a/SCHALE.Common/FlatData/TargetingCellType.cs b/SCHALE.Common/FlatData/TargetingCellType.cs index b55fbb0..360bf4d 100644 --- a/SCHALE.Common/FlatData/TargetingCellType.cs +++ b/SCHALE.Common/FlatData/TargetingCellType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TargetingCellType : int { - None = 0, + None_ = 0, Near = 1, Far = 2, }; diff --git a/SCHALE.Common/FlatData/TargetingUnitType.cs b/SCHALE.Common/FlatData/TargetingUnitType.cs index 8a0328a..2da451b 100644 --- a/SCHALE.Common/FlatData/TargetingUnitType.cs +++ b/SCHALE.Common/FlatData/TargetingUnitType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TargetingUnitType : int { - None = 0, + None_ = 0, Near = 1, Far = 2, MinHp = 3, diff --git a/SCHALE.Common/FlatData/TileState.cs b/SCHALE.Common/FlatData/TileState.cs index 0a9d631..65b82ba 100644 --- a/SCHALE.Common/FlatData/TileState.cs +++ b/SCHALE.Common/FlatData/TileState.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TileState : int { - None = 0, + None_ = 0, PartiallyConquested = 1, FullyConquested = 2, }; diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonExcel.cs b/SCHALE.Common/FlatData/TimeAttackDungeonExcel.cs index 64b27fc..67bd849 100644 --- a/SCHALE.Common/FlatData/TimeAttackDungeonExcel.cs +++ b/SCHALE.Common/FlatData/TimeAttackDungeonExcel.cs @@ -21,7 +21,7 @@ public struct TimeAttackDungeonExcel : IFlatbufferObject public TimeAttackDungeonExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TimeAttackDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TimeAttackDungeonType.None; } } + public SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TimeAttackDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TimeAttackDungeonType.None_; } } public uint LocalizeEtcKey { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public string IconPath { get { int o = __p.__offset(10); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -34,7 +34,7 @@ public struct TimeAttackDungeonExcel : IFlatbufferObject public static Offset CreateTimeAttackDungeonExcel(FlatBufferBuilder builder, long Id = 0, - SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType_ = SCHALE.Common.FlatData.TimeAttackDungeonType.None, + SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType_ = SCHALE.Common.FlatData.TimeAttackDungeonType.None_, uint LocalizeEtcKey = 0, StringOffset IconPathOffset = default(StringOffset), long InformationGroupID = 0) { @@ -93,7 +93,7 @@ public class TimeAttackDungeonExcelT public TimeAttackDungeonExcelT() { this.Id = 0; - this.TimeAttackDungeonType_ = SCHALE.Common.FlatData.TimeAttackDungeonType.None; + this.TimeAttackDungeonType_ = SCHALE.Common.FlatData.TimeAttackDungeonType.None_; this.LocalizeEtcKey = 0; this.IconPath = null; this.InformationGroupID = 0; diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcel.cs b/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcel.cs index 77541ce..4eaeb9c 100644 --- a/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcel.cs +++ b/SCHALE.Common/FlatData/TimeAttackDungeonGeasExcel.cs @@ -21,7 +21,7 @@ public struct TimeAttackDungeonGeasExcel : IFlatbufferObject public TimeAttackDungeonGeasExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TimeAttackDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TimeAttackDungeonType.None; } } + public SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TimeAttackDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TimeAttackDungeonType.None_; } } public uint LocalizeEtcKey { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public long BattleDuration { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ClearDefaultPoint { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -63,7 +63,7 @@ public struct TimeAttackDungeonGeasExcel : IFlatbufferObject public static Offset CreateTimeAttackDungeonGeasExcel(FlatBufferBuilder builder, long Id = 0, - SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType_ = SCHALE.Common.FlatData.TimeAttackDungeonType.None, + SCHALE.Common.FlatData.TimeAttackDungeonType TimeAttackDungeonType_ = SCHALE.Common.FlatData.TimeAttackDungeonType.None_, uint LocalizeEtcKey = 0, long BattleDuration = 0, long ClearDefaultPoint = 0, @@ -256,7 +256,7 @@ public class TimeAttackDungeonGeasExcelT public TimeAttackDungeonGeasExcelT() { this.Id = 0; - this.TimeAttackDungeonType_ = SCHALE.Common.FlatData.TimeAttackDungeonType.None; + this.TimeAttackDungeonType_ = SCHALE.Common.FlatData.TimeAttackDungeonType.None_; this.LocalizeEtcKey = 0; this.BattleDuration = 0; this.ClearDefaultPoint = 0; diff --git a/SCHALE.Common/FlatData/TimeAttackDungeonType.cs b/SCHALE.Common/FlatData/TimeAttackDungeonType.cs index b868a11..08ab95c 100644 --- a/SCHALE.Common/FlatData/TimeAttackDungeonType.cs +++ b/SCHALE.Common/FlatData/TimeAttackDungeonType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TimeAttackDungeonType : int { - None = 0, + None_ = 0, Defense = 1, Shooting = 2, Destruction = 3, diff --git a/SCHALE.Common/FlatData/ToastExcel.cs b/SCHALE.Common/FlatData/ToastExcel.cs index 7a6945b..8f73191 100644 --- a/SCHALE.Common/FlatData/ToastExcel.cs +++ b/SCHALE.Common/FlatData/ToastExcel.cs @@ -21,14 +21,14 @@ public struct ToastExcel : IFlatbufferObject public ToastExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public uint Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } - public SCHALE.Common.FlatData.ToastType ToastType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ToastType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ToastType.None; } } + public SCHALE.Common.FlatData.ToastType ToastType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.ToastType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ToastType.None_; } } public uint MissionId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public uint TextId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public long LifeTime { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public static Offset CreateToastExcel(FlatBufferBuilder builder, uint Id = 0, - SCHALE.Common.FlatData.ToastType ToastType_ = SCHALE.Common.FlatData.ToastType.None, + SCHALE.Common.FlatData.ToastType ToastType_ = SCHALE.Common.FlatData.ToastType.None_, uint MissionId = 0, uint TextId = 0, long LifeTime = 0) { @@ -86,7 +86,7 @@ public class ToastExcelT public ToastExcelT() { this.Id = 0; - this.ToastType_ = SCHALE.Common.FlatData.ToastType.None; + this.ToastType_ = SCHALE.Common.FlatData.ToastType.None_; this.MissionId = 0; this.TextId = 0; this.LifeTime = 0; diff --git a/SCHALE.Common/FlatData/ToastType.cs b/SCHALE.Common/FlatData/ToastType.cs index ae4c7b0..8eff532 100644 --- a/SCHALE.Common/FlatData/ToastType.cs +++ b/SCHALE.Common/FlatData/ToastType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum ToastType : int { - None = 0, + None_ = 0, Tactic_Left = 1, Tactic_Right = 2, Social_Center = 3, diff --git a/SCHALE.Common/FlatData/TutorialFailureContentType.cs b/SCHALE.Common/FlatData/TutorialFailureContentType.cs index 5cf9d74..54006a4 100644 --- a/SCHALE.Common/FlatData/TutorialFailureContentType.cs +++ b/SCHALE.Common/FlatData/TutorialFailureContentType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum TutorialFailureContentType : int { - None = 0, + None_ = 0, Campaign = 1, WeekDungeon = 2, Raid = 3, diff --git a/SCHALE.Common/FlatData/TutorialFailureImageExcel.cs b/SCHALE.Common/FlatData/TutorialFailureImageExcel.cs index c2e88ee..23b1b6a 100644 --- a/SCHALE.Common/FlatData/TutorialFailureImageExcel.cs +++ b/SCHALE.Common/FlatData/TutorialFailureImageExcel.cs @@ -21,7 +21,7 @@ public struct TutorialFailureImageExcel : IFlatbufferObject public TutorialFailureImageExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long Id { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.TutorialFailureContentType Contents { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TutorialFailureContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TutorialFailureContentType.None; } } + public SCHALE.Common.FlatData.TutorialFailureContentType Contents { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.TutorialFailureContentType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.TutorialFailureContentType.None_; } } public string Type { get { int o = __p.__offset(8); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T public Span GetTypeBytes() { return __p.__vector_as_span(8, 1); } @@ -46,7 +46,7 @@ public struct TutorialFailureImageExcel : IFlatbufferObject public static Offset CreateTutorialFailureImageExcel(FlatBufferBuilder builder, long Id = 0, - SCHALE.Common.FlatData.TutorialFailureContentType Contents = SCHALE.Common.FlatData.TutorialFailureContentType.None, + SCHALE.Common.FlatData.TutorialFailureContentType Contents = SCHALE.Common.FlatData.TutorialFailureContentType.None_, StringOffset TypeOffset = default(StringOffset), StringOffset ImagePathKrOffset = default(StringOffset), StringOffset ImagePathJpOffset = default(StringOffset)) { @@ -107,7 +107,7 @@ public class TutorialFailureImageExcelT public TutorialFailureImageExcelT() { this.Id = 0; - this.Contents = SCHALE.Common.FlatData.TutorialFailureContentType.None; + this.Contents = SCHALE.Common.FlatData.TutorialFailureContentType.None_; this.Type = null; this.ImagePathKr = null; this.ImagePathJp = null; diff --git a/SCHALE.Common/FlatData/UnitType.cs b/SCHALE.Common/FlatData/UnitType.cs index fc422e2..9975fb6 100644 --- a/SCHALE.Common/FlatData/UnitType.cs +++ b/SCHALE.Common/FlatData/UnitType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum UnitType : int { - None = 0, + None_ = 0, AR = 1, RF = 2, HG = 3, diff --git a/SCHALE.Common/FlatData/WeaponType.cs b/SCHALE.Common/FlatData/WeaponType.cs index 6ad0d27..0034794 100644 --- a/SCHALE.Common/FlatData/WeaponType.cs +++ b/SCHALE.Common/FlatData/WeaponType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum WeaponType : int { - None = 0, + None_ = 0, SG = 1, SMG = 2, AR = 3, diff --git a/SCHALE.Common/FlatData/WebAPIErrorLevel.cs b/SCHALE.Common/FlatData/WebAPIErrorLevel.cs index 062ac27..0e617ae 100644 --- a/SCHALE.Common/FlatData/WebAPIErrorLevel.cs +++ b/SCHALE.Common/FlatData/WebAPIErrorLevel.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum WebAPIErrorLevel : int { - None = 0, + None_ = 0, Warning = 1, Error = 2, }; diff --git a/SCHALE.Common/FlatData/WeekDungeonExcel.cs b/SCHALE.Common/FlatData/WeekDungeonExcel.cs index 2951b93..a5a5a06 100644 --- a/SCHALE.Common/FlatData/WeekDungeonExcel.cs +++ b/SCHALE.Common/FlatData/WeekDungeonExcel.cs @@ -21,7 +21,7 @@ public struct WeekDungeonExcel : IFlatbufferObject public WeekDungeonExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long StageId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDungeonType.None; } } + public SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDungeonType.None_; } } public int Difficulty { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetInt(o + __p.bb_pos) : (int)0; } } public long BattleDuration { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long PrevStageId { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -84,7 +84,7 @@ public struct WeekDungeonExcel : IFlatbufferObject public static Offset CreateWeekDungeonExcel(FlatBufferBuilder builder, long StageId = 0, - SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType_ = SCHALE.Common.FlatData.WeekDungeonType.None, + SCHALE.Common.FlatData.WeekDungeonType WeekDungeonType_ = SCHALE.Common.FlatData.WeekDungeonType.None_, int Difficulty = 0, long BattleDuration = 0, long PrevStageId = 0, @@ -292,7 +292,7 @@ public class WeekDungeonExcelT public WeekDungeonExcelT() { this.StageId = 0; - this.WeekDungeonType_ = SCHALE.Common.FlatData.WeekDungeonType.None; + this.WeekDungeonType_ = SCHALE.Common.FlatData.WeekDungeonType.None_; this.Difficulty = 0; this.BattleDuration = 0; this.PrevStageId = 0; diff --git a/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcel.cs b/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcel.cs index 8d9fc64..52b8927 100644 --- a/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcel.cs +++ b/SCHALE.Common/FlatData/WeekDungeonGroupBuffExcel.cs @@ -21,7 +21,7 @@ public struct WeekDungeonGroupBuffExcel : IFlatbufferObject public WeekDungeonGroupBuffExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long WeekDungeonBuffId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.School School_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.School.None; } } + public SCHALE.Common.FlatData.School School_ { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.School)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.School.None_; } } public uint RecommandLocalizeEtcId { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public uint FormationLocalizeEtcId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetUint(o + __p.bb_pos) : (uint)0; } } public string SkillGroupId { get { int o = __p.__offset(12); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } @@ -34,7 +34,7 @@ public struct WeekDungeonGroupBuffExcel : IFlatbufferObject public static Offset CreateWeekDungeonGroupBuffExcel(FlatBufferBuilder builder, long WeekDungeonBuffId = 0, - SCHALE.Common.FlatData.School School_ = SCHALE.Common.FlatData.School.None, + SCHALE.Common.FlatData.School School_ = SCHALE.Common.FlatData.School.None_, uint RecommandLocalizeEtcId = 0, uint FormationLocalizeEtcId = 0, StringOffset SkillGroupIdOffset = default(StringOffset)) { @@ -93,7 +93,7 @@ public class WeekDungeonGroupBuffExcelT public WeekDungeonGroupBuffExcelT() { this.WeekDungeonBuffId = 0; - this.School_ = SCHALE.Common.FlatData.School.None; + this.School_ = SCHALE.Common.FlatData.School.None_; this.RecommandLocalizeEtcId = 0; this.FormationLocalizeEtcId = 0; this.SkillGroupId = null; diff --git a/SCHALE.Common/FlatData/WeekDungeonRewardExcel.cs b/SCHALE.Common/FlatData/WeekDungeonRewardExcel.cs index f0da8ef..2d4a2dd 100644 --- a/SCHALE.Common/FlatData/WeekDungeonRewardExcel.cs +++ b/SCHALE.Common/FlatData/WeekDungeonRewardExcel.cs @@ -21,8 +21,8 @@ public struct WeekDungeonRewardExcel : IFlatbufferObject public WeekDungeonRewardExcel __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.WeekDungeonType DungeonType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDungeonType.None; } } - public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.WeekDungeonType DungeonType { get { int o = __p.__offset(6); return o != 0 ? (SCHALE.Common.FlatData.WeekDungeonType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WeekDungeonType.None_; } } + public SCHALE.Common.FlatData.ParcelType RewardParcelType { get { int o = __p.__offset(8); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long RewardParcelId { get { int o = __p.__offset(10); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RewardParcelAmount { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long RewardParcelProbability { get { int o = __p.__offset(14); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -37,8 +37,8 @@ public struct WeekDungeonRewardExcel : IFlatbufferObject public static Offset CreateWeekDungeonRewardExcel(FlatBufferBuilder builder, long GroupId = 0, - SCHALE.Common.FlatData.WeekDungeonType DungeonType = SCHALE.Common.FlatData.WeekDungeonType.None, - SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.WeekDungeonType DungeonType = SCHALE.Common.FlatData.WeekDungeonType.None_, + SCHALE.Common.FlatData.ParcelType RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long RewardParcelId = 0, long RewardParcelAmount = 0, long RewardParcelProbability = 0, @@ -114,8 +114,8 @@ public class WeekDungeonRewardExcelT public WeekDungeonRewardExcelT() { this.GroupId = 0; - this.DungeonType = SCHALE.Common.FlatData.WeekDungeonType.None; - this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.DungeonType = SCHALE.Common.FlatData.WeekDungeonType.None_; + this.RewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.RewardParcelId = 0; this.RewardParcelAmount = 0; this.RewardParcelProbability = 0; diff --git a/SCHALE.Common/FlatData/WeekDungeonType.cs b/SCHALE.Common/FlatData/WeekDungeonType.cs index 3d04cf2..aa5a0fc 100644 --- a/SCHALE.Common/FlatData/WeekDungeonType.cs +++ b/SCHALE.Common/FlatData/WeekDungeonType.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum WeekDungeonType : int { - None = 0, + None_ = 0, ChaserA = 1, ChaserB = 2, ChaserC = 3, diff --git a/SCHALE.Common/FlatData/WorldRaidConditionExcelTable.cs b/SCHALE.Common/FlatData/WorldRaidConditionExcelTable.cs deleted file mode 100644 index 4a61bb4..0000000 --- a/SCHALE.Common/FlatData/WorldRaidConditionExcelTable.cs +++ /dev/null @@ -1,88 +0,0 @@ -// -// automatically generated by the FlatBuffers compiler, do not modify -// - -namespace SCHALE.Common.FlatData -{ - -using global::System; -using global::System.Collections.Generic; -using global::SCHALE.Common.Crypto; -using global::Google.FlatBuffers; - -public struct WorldRaidConditionExcelTable : IFlatbufferObject -{ - private Table __p; - public ByteBuffer ByteBuffer { get { return __p.bb; } } - public static void ValidateVersion() { FlatBufferConstants.FLATBUFFERS_24_3_25(); } - public static WorldRaidConditionExcelTable GetRootAsWorldRaidConditionExcelTable(ByteBuffer _bb) { return GetRootAsWorldRaidConditionExcelTable(_bb, new WorldRaidConditionExcelTable()); } - public static WorldRaidConditionExcelTable GetRootAsWorldRaidConditionExcelTable(ByteBuffer _bb, WorldRaidConditionExcelTable obj) { return (obj.__assign(_bb.GetInt(_bb.Position) + _bb.Position, _bb)); } - public void __init(int _i, ByteBuffer _bb) { __p = new Table(_i, _bb); } - public WorldRaidConditionExcelTable __assign(int _i, ByteBuffer _bb) { __init(_i, _bb); return this; } - - public SCHALE.Common.FlatData.WorldRaidConditionExcel? DataList(int j) { int o = __p.__offset(4); return o != 0 ? (SCHALE.Common.FlatData.WorldRaidConditionExcel?)(new SCHALE.Common.FlatData.WorldRaidConditionExcel()).__assign(__p.__indirect(__p.__vector(o) + j * 4), __p.bb) : null; } - public int DataListLength { get { int o = __p.__offset(4); return o != 0 ? __p.__vector_len(o) : 0; } } - - public static Offset CreateWorldRaidConditionExcelTable(FlatBufferBuilder builder, - VectorOffset DataListOffset = default(VectorOffset)) { - builder.StartTable(1); - WorldRaidConditionExcelTable.AddDataList(builder, DataListOffset); - return WorldRaidConditionExcelTable.EndWorldRaidConditionExcelTable(builder); - } - - public static void StartWorldRaidConditionExcelTable(FlatBufferBuilder builder) { builder.StartTable(1); } - public static void AddDataList(FlatBufferBuilder builder, VectorOffset dataListOffset) { builder.AddOffset(0, dataListOffset.Value, 0); } - public static VectorOffset CreateDataListVector(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); for (int i = data.Length - 1; i >= 0; i--) builder.AddOffset(data[i].Value); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, Offset[] data) { builder.StartVector(4, data.Length, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, ArraySegment> data) { builder.StartVector(4, data.Count, 4); builder.Add(data); return builder.EndVector(); } - public static VectorOffset CreateDataListVectorBlock(FlatBufferBuilder builder, IntPtr dataPtr, int sizeInBytes) { builder.StartVector(1, sizeInBytes, 1); builder.Add>(dataPtr, sizeInBytes); return builder.EndVector(); } - public static void StartDataListVector(FlatBufferBuilder builder, int numElems) { builder.StartVector(4, numElems, 4); } - public static Offset EndWorldRaidConditionExcelTable(FlatBufferBuilder builder) { - int o = builder.EndTable(); - return new Offset(o); - } - public WorldRaidConditionExcelTableT UnPack() { - var _o = new WorldRaidConditionExcelTableT(); - this.UnPackTo(_o); - return _o; - } - public void UnPackTo(WorldRaidConditionExcelTableT _o) { - byte[] key = TableEncryptionService.CreateKey("WorldRaidConditionExcel"); - _o.DataList = new List(); - for (var _j = 0; _j < this.DataListLength; ++_j) {_o.DataList.Add(this.DataList(_j).HasValue ? this.DataList(_j).Value.UnPack() : null);} - } - public static Offset Pack(FlatBufferBuilder builder, WorldRaidConditionExcelTableT _o) { - if (_o == null) return default(Offset); - var _DataList = default(VectorOffset); - if (_o.DataList != null) { - var __DataList = new Offset[_o.DataList.Count]; - for (var _j = 0; _j < __DataList.Length; ++_j) { __DataList[_j] = SCHALE.Common.FlatData.WorldRaidConditionExcel.Pack(builder, _o.DataList[_j]); } - _DataList = CreateDataListVector(builder, __DataList); - } - return CreateWorldRaidConditionExcelTable( - builder, - _DataList); - } -} - -public class WorldRaidConditionExcelTableT -{ - public List DataList { get; set; } - - public WorldRaidConditionExcelTableT() { - this.DataList = null; - } -} - - -static public class WorldRaidConditionExcelTableVerify -{ - static public bool Verify(Google.FlatBuffers.Verifier verifier, uint tablePos) - { - return verifier.VerifyTableStart(tablePos) - && verifier.VerifyVectorOfTables(tablePos, 4 /*DataList*/, SCHALE.Common.FlatData.WorldRaidConditionExcelVerify.Verify, false) - && verifier.VerifyTableEnd(tablePos); - } -} - -} diff --git a/SCHALE.Common/FlatData/WorldRaidDifficulty.cs b/SCHALE.Common/FlatData/WorldRaidDifficulty.cs index 7f964ad..6859c8c 100644 --- a/SCHALE.Common/FlatData/WorldRaidDifficulty.cs +++ b/SCHALE.Common/FlatData/WorldRaidDifficulty.cs @@ -7,7 +7,7 @@ namespace SCHALE.Common.FlatData public enum WorldRaidDifficulty : int { - None = 0, + None_ = 0, A = 1, B = 2, C = 3, diff --git a/SCHALE.Common/FlatData/WorldRaidStageExcel.cs b/SCHALE.Common/FlatData/WorldRaidStageExcel.cs index fc54daa..f43782c 100644 --- a/SCHALE.Common/FlatData/WorldRaidStageExcel.cs +++ b/SCHALE.Common/FlatData/WorldRaidStageExcel.cs @@ -48,7 +48,7 @@ public struct WorldRaidStageExcel : IFlatbufferObject #endif public long[] GetBossCharacterIdArray() { return __p.__vector_as_array(18); } public long AssistCharacterLimitCount { get { int o = __p.__offset(20); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.WorldRaidDifficulty WorldRaidDifficulty_ { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.WorldRaidDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WorldRaidDifficulty.None; } } + public SCHALE.Common.FlatData.WorldRaidDifficulty WorldRaidDifficulty_ { get { int o = __p.__offset(22); return o != 0 ? (SCHALE.Common.FlatData.WorldRaidDifficulty)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.WorldRaidDifficulty.None_; } } public bool DifficultyOpenCondition { get { int o = __p.__offset(24); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long RaidEnterAmount { get { int o = __p.__offset(26); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public long ReEnterAmount { get { int o = __p.__offset(28); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } @@ -120,7 +120,7 @@ public struct WorldRaidStageExcel : IFlatbufferObject long RaidCharacterId = 0, VectorOffset BossCharacterIdOffset = default(VectorOffset), long AssistCharacterLimitCount = 0, - SCHALE.Common.FlatData.WorldRaidDifficulty WorldRaidDifficulty_ = SCHALE.Common.FlatData.WorldRaidDifficulty.None, + SCHALE.Common.FlatData.WorldRaidDifficulty WorldRaidDifficulty_ = SCHALE.Common.FlatData.WorldRaidDifficulty.None_, bool DifficultyOpenCondition = false, long RaidEnterAmount = 0, long ReEnterAmount = 0, @@ -430,7 +430,7 @@ public class WorldRaidStageExcelT this.RaidCharacterId = 0; this.BossCharacterId = null; this.AssistCharacterLimitCount = 0; - this.WorldRaidDifficulty_ = SCHALE.Common.FlatData.WorldRaidDifficulty.None; + this.WorldRaidDifficulty_ = SCHALE.Common.FlatData.WorldRaidDifficulty.None_; this.DifficultyOpenCondition = false; this.RaidEnterAmount = 0; this.ReEnterAmount = 0; diff --git a/SCHALE.Common/FlatData/WorldRaidStageRewardExcel.cs b/SCHALE.Common/FlatData/WorldRaidStageRewardExcel.cs index f2820f1..da153ad 100644 --- a/SCHALE.Common/FlatData/WorldRaidStageRewardExcel.cs +++ b/SCHALE.Common/FlatData/WorldRaidStageRewardExcel.cs @@ -23,7 +23,7 @@ public struct WorldRaidStageRewardExcel : IFlatbufferObject public long GroupId { get { int o = __p.__offset(4); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public bool IsClearStageRewardHideInfo { get { int o = __p.__offset(6); return o != 0 ? 0!=__p.bb.Get(o + __p.bb_pos) : (bool)false; } } public long ClearStageRewardProb { get { int o = __p.__offset(8); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } - public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None; } } + public SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType { get { int o = __p.__offset(10); return o != 0 ? (SCHALE.Common.FlatData.ParcelType)__p.bb.GetInt(o + __p.bb_pos) : SCHALE.Common.FlatData.ParcelType.None_; } } public long ClearStageRewardParcelUniqueID { get { int o = __p.__offset(12); return o != 0 ? __p.bb.GetLong(o + __p.bb_pos) : (long)0; } } public string ClearStageRewardParcelUniqueName { get { int o = __p.__offset(14); return o != 0 ? __p.__string(o + __p.bb_pos) : null; } } #if ENABLE_SPAN_T @@ -38,7 +38,7 @@ public struct WorldRaidStageRewardExcel : IFlatbufferObject long GroupId = 0, bool IsClearStageRewardHideInfo = false, long ClearStageRewardProb = 0, - SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None, + SCHALE.Common.FlatData.ParcelType ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_, long ClearStageRewardParcelUniqueID = 0, StringOffset ClearStageRewardParcelUniqueNameOffset = default(StringOffset), long ClearStageRewardAmount = 0) { @@ -109,7 +109,7 @@ public class WorldRaidStageRewardExcelT this.GroupId = 0; this.IsClearStageRewardHideInfo = false; this.ClearStageRewardProb = 0; - this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None; + this.ClearStageRewardParcelType = SCHALE.Common.FlatData.ParcelType.None_; this.ClearStageRewardParcelUniqueID = 0; this.ClearStageRewardParcelUniqueName = null; this.ClearStageRewardAmount = 0; diff --git a/SCHALE.Common/Migrations/SqlServerMigrations/20241229024747_Currency_Raid_Dungeons_and_Campaign.Designer.cs b/SCHALE.Common/Migrations/SqlServerMigrations/20241229024747_Currency_Raid_Dungeons_and_Campaign.Designer.cs new file mode 100644 index 0000000..f172914 --- /dev/null +++ b/SCHALE.Common/Migrations/SqlServerMigrations/20241229024747_Currency_Raid_Dungeons_and_Campaign.Designer.cs @@ -0,0 +1,1049 @@ +// +using System; +using Microsoft.EntityFrameworkCore; +using Microsoft.EntityFrameworkCore.Infrastructure; +using Microsoft.EntityFrameworkCore.Metadata; +using Microsoft.EntityFrameworkCore.Migrations; +using Microsoft.EntityFrameworkCore.Storage.ValueConversion; +using SCHALE.Common.Database; + +#nullable disable + +namespace SCHALE.Common.Migrations.SqlServerMigrations +{ + [DbContext(typeof(SCHALEContext))] + [Migration("20241229024747_Currency_Raid_Dungeons_and_Campaign")] + partial class Currency_Raid_Dungeons_and_Campaign + { + /// + protected override void BuildTargetModel(ModelBuilder modelBuilder) + { +#pragma warning disable 612, 618 + modelBuilder + .HasAnnotation("ProductVersion", "8.0.6") + .HasAnnotation("Proxies:ChangeTracking", false) + .HasAnnotation("Proxies:CheckEquality", false) + .HasAnnotation("Proxies:LazyLoading", true) + .HasAnnotation("Relational:MaxIdentifierLength", 128); + + SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + + modelBuilder.Entity("SCHALE.Common.Database.AccountCurrencyDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AcademyLocationRankSum") + .HasColumnType("bigint"); + + b.Property("AccountLevel") + .HasColumnType("bigint"); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("CurrencyDict") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTimeDict") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Currencies"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.AccountDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("BirthDay") + .HasColumnType("datetime2"); + + b.Property("CallName") + .HasColumnType("nvarchar(max)"); + + b.Property("CallNameUpdateTime") + .HasColumnType("datetime2"); + + b.Property("Comment") + .HasColumnType("nvarchar(max)"); + + b.Property("CreateDate") + .HasColumnType("datetime2"); + + b.Property("DevId") + .HasColumnType("nvarchar(max)"); + + b.Property("Exp") + .HasColumnType("bigint"); + + b.Property("LastConnectTime") + .HasColumnType("datetime2"); + + b.Property("Level") + .HasColumnType("int"); + + b.Property("LinkRewardDate") + .HasColumnType("datetime2"); + + b.Property("LobbyMode") + .HasColumnType("int"); + + b.Property("MemoryLobbyUniqueId") + .HasColumnType("bigint"); + + b.Property("Nickname") + .HasColumnType("nvarchar(max)"); + + b.Property("PublisherAccountId") + .HasColumnType("bigint"); + + b.Property("RaidInfo") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("RepresentCharacterServerId") + .HasColumnType("bigint"); + + b.Property("RetentionDays") + .HasColumnType("int"); + + b.Property("State") + .HasColumnType("int"); + + b.Property("UnReadMailCount") + .HasColumnType("int"); + + b.Property("VIPLevel") + .HasColumnType("int"); + + b.HasKey("ServerId"); + + b.ToTable("Accounts"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.CafeDB", b => + { + b.Property("CafeDBId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("CafeDBId")); + + b.Property("AccountId") + .HasColumnType("bigint"); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("CafeId") + .HasColumnType("bigint"); + + b.Property("CafeRank") + .HasColumnType("int"); + + b.Property("CafeVisitCharacterDBs") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("CurrencyDict_Obsolete") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("LastSummonDate") + .HasColumnType("datetime2"); + + b.Property("LastUpdate") + .HasColumnType("datetime2"); + + b.Property("ProductionAppliedTime") + .HasColumnType("datetime2"); + + b.Property("UpdateTimeDict_Obsolete") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("CafeDBId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Cafes"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.CampaignStageHistoryDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("ChapterUniqueId") + .HasColumnType("bigint"); + + b.Property("ClearTurnRecord") + .HasColumnType("bigint"); + + b.Property("FirstClearRewardReceive") + .HasColumnType("datetime2"); + + b.Property("LastPlay") + .HasColumnType("datetime2"); + + b.Property("StageUniqueId") + .HasColumnType("bigint"); + + b.Property("Star1Flag") + .HasColumnType("bit"); + + b.Property("Star2Flag") + .HasColumnType("bit"); + + b.Property("Star3Flag") + .HasColumnType("bit"); + + b.Property("StarRewardReceive") + .HasColumnType("datetime2"); + + b.Property("StoryUniqueId") + .HasColumnType("bigint"); + + b.Property("TacticClearCountWithRankSRecord") + .HasColumnType("bigint"); + + b.Property("TodayPlayCount") + .HasColumnType("bigint"); + + b.Property("TodayPurchasePlayCountHardStage") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("CampaignStageHistories"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.CharacterDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("EquipmentServerIds") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("EquipmentSlotAndDBIds") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ExSkillLevel") + .HasColumnType("int"); + + b.Property("Exp") + .HasColumnType("bigint"); + + b.Property("ExtraPassiveSkillLevel") + .HasColumnType("int"); + + b.Property("FavorExp") + .HasColumnType("bigint"); + + b.Property("FavorRank") + .HasColumnType("int"); + + b.Property("IsFavorite") + .HasColumnType("bit"); + + b.Property("LeaderSkillLevel") + .HasColumnType("int"); + + b.Property("Level") + .HasColumnType("int"); + + b.Property("PassiveSkillLevel") + .HasColumnType("int"); + + b.Property("PotentialStats") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("PublicSkillLevel") + .HasColumnType("int"); + + b.Property("StarGrade") + .HasColumnType("int"); + + b.Property("UniqueId") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Characters"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.EchelonDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("CombatStyleIndex") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("EchelonNumber") + .HasColumnType("bigint"); + + b.Property("EchelonType") + .HasColumnType("int"); + + b.Property("ExtensionType") + .HasColumnType("int"); + + b.Property("LeaderServerId") + .HasColumnType("bigint"); + + b.Property("MainSlotServerIds") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SkillCardMulliganCharacterIds") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("SupportSlotServerIds") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TSSInteractionServerId") + .HasColumnType("bigint"); + + b.Property("UsingFlag") + .HasColumnType("int"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Echelons"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.EquipmentDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("BoundCharacterServerId") + .HasColumnType("bigint"); + + b.Property("Exp") + .HasColumnType("bigint"); + + b.Property("Level") + .HasColumnType("int"); + + b.Property("StackCount") + .HasColumnType("bigint"); + + b.Property("Tier") + .HasColumnType("int"); + + b.Property("UniqueId") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Equipment"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.FurnitureDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("CafeDBId") + .HasColumnType("bigint"); + + b.Property("ItemDeploySequence") + .HasColumnType("bigint"); + + b.Property("Location") + .HasColumnType("int"); + + b.Property("PositionX") + .HasColumnType("real"); + + b.Property("PositionY") + .HasColumnType("real"); + + b.Property("Rotation") + .HasColumnType("real"); + + b.Property("StackCount") + .HasColumnType("bigint"); + + b.Property("UniqueId") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Furnitures"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.GearDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("BoundCharacterServerId") + .HasColumnType("bigint"); + + b.Property("Exp") + .HasColumnType("bigint"); + + b.Property("Level") + .HasColumnType("int"); + + b.Property("SlotIndex") + .HasColumnType("bigint"); + + b.Property("Tier") + .HasColumnType("int"); + + b.Property("UniqueId") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Gears"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.ItemDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("StackCount") + .HasColumnType("bigint"); + + b.Property("UniqueId") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Items"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.MailDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ExpireDate") + .HasColumnType("datetime2"); + + b.Property("ReceiptDate") + .HasColumnType("datetime2"); + + b.Property("SendDate") + .HasColumnType("datetime2"); + + b.Property("Sender") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Type") + .HasColumnType("int"); + + b.Property("UniqueId") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Mails"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.MemoryLobbyDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("MemoryLobbyUniqueId") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("MemoryLobbies"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.MissionProgressDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("Complete") + .HasColumnType("bit"); + + b.Property("MissionUniqueId") + .HasColumnType("bigint"); + + b.Property("ProgressParameters") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("StartTime") + .HasColumnType("datetime2"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("MissionProgresses"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.Models.AccountTutorial", b => + { + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("TutorialIds") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("AccountServerId"); + + b.ToTable("AccountTutorials"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.Models.GuestAccount", b => + { + b.Property("Uid") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("Uid")); + + b.Property("DeviceId") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Token") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("Uid"); + + b.ToTable("GuestAccounts"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.MultiFloorRaidDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("ClearBattleFrame") + .HasColumnType("int"); + + b.Property("ClearedDifficulty") + .HasColumnType("int"); + + b.Property("LastClearDate") + .HasColumnType("datetime2"); + + b.Property("LastRewardDate") + .HasColumnType("datetime2"); + + b.Property("RewardDifficulty") + .HasColumnType("int"); + + b.Property("SeasonId") + .HasColumnType("bigint"); + + b.Property("TotalReceivableRewards") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TotalReceivedRewards") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("MultiFloorRaids"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.ScenarioGroupHistoryDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("ClearDateTime") + .HasColumnType("datetime2"); + + b.Property("EventContentId") + .HasColumnType("bigint"); + + b.Property("IsReturn") + .HasColumnType("bit"); + + b.Property("ScenarioGroupUqniueId") + .HasColumnType("bigint"); + + b.Property("ScenarioType") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("ScenarioGroupHistoryDB"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.ScenarioHistoryDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("ClearDateTime") + .HasColumnType("datetime2"); + + b.Property("ScenarioUniqueId") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Scenarios"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.SchoolDungeonStageHistoryDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("StageUniqueId") + .HasColumnType("bigint"); + + b.Property("StarFlags") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("SchoolDungeonStageHistories"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.WeaponDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("BoundCharacterServerId") + .HasColumnType("bigint"); + + b.Property("Exp") + .HasColumnType("bigint"); + + b.Property("Level") + .HasColumnType("int"); + + b.Property("StarGrade") + .HasColumnType("int"); + + b.Property("UniqueId") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Weapons"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.WeekDungeonStageHistoryDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("StageUniqueId") + .HasColumnType("bigint"); + + b.Property("StarGoalRecord") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("WeekDungeonStageHistories"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.AccountCurrencyDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Currencies") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.CafeDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Cafes") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.CampaignStageHistoryDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("CampaignStageHistories") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.CharacterDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Characters") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.EchelonDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Echelons") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.EquipmentDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Equipment") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.FurnitureDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Furnitures") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.GearDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Gears") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.ItemDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Items") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.MailDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Mails") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.MemoryLobbyDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("MemoryLobbies") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.MissionProgressDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("MissionProgresses") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.MultiFloorRaidDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("MultiFloorRaids") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.ScenarioGroupHistoryDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("ScenarioGroups") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.ScenarioHistoryDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Scenarios") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.SchoolDungeonStageHistoryDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("SchoolDungeonStageHistories") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.WeaponDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Weapons") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.WeekDungeonStageHistoryDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("WeekDungeonStageHistories") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.AccountDB", b => + { + b.Navigation("Cafes"); + + b.Navigation("CampaignStageHistories"); + + b.Navigation("Characters"); + + b.Navigation("Currencies"); + + b.Navigation("Echelons"); + + b.Navigation("Equipment"); + + b.Navigation("Furnitures"); + + b.Navigation("Gears"); + + b.Navigation("Items"); + + b.Navigation("Mails"); + + b.Navigation("MemoryLobbies"); + + b.Navigation("MissionProgresses"); + + b.Navigation("MultiFloorRaids"); + + b.Navigation("ScenarioGroups"); + + b.Navigation("Scenarios"); + + b.Navigation("SchoolDungeonStageHistories"); + + b.Navigation("Weapons"); + + b.Navigation("WeekDungeonStageHistories"); + }); +#pragma warning restore 612, 618 + } + } +} diff --git a/SCHALE.Common/Migrations/SqlServerMigrations/20241229024747_Currency_Raid_Dungeons_and_Campaign.cs b/SCHALE.Common/Migrations/SqlServerMigrations/20241229024747_Currency_Raid_Dungeons_and_Campaign.cs new file mode 100644 index 0000000..9b565b7 --- /dev/null +++ b/SCHALE.Common/Migrations/SqlServerMigrations/20241229024747_Currency_Raid_Dungeons_and_Campaign.cs @@ -0,0 +1,249 @@ +using System; +using Microsoft.EntityFrameworkCore.Migrations; + +#nullable disable + +namespace SCHALE.Common.Migrations.SqlServerMigrations +{ + /// + public partial class Currency_Raid_Dungeons_and_Campaign : Migration + { + /// + protected override void Up(MigrationBuilder migrationBuilder) + { + migrationBuilder.CreateTable( + name: "CampaignStageHistories", + columns: table => new + { + ServerId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + AccountServerId = table.Column(type: "bigint", nullable: false), + StoryUniqueId = table.Column(type: "bigint", nullable: false), + ChapterUniqueId = table.Column(type: "bigint", nullable: false), + StageUniqueId = table.Column(type: "bigint", nullable: false), + TacticClearCountWithRankSRecord = table.Column(type: "bigint", nullable: false), + ClearTurnRecord = table.Column(type: "bigint", nullable: false), + Star1Flag = table.Column(type: "bit", nullable: false), + Star2Flag = table.Column(type: "bit", nullable: false), + Star3Flag = table.Column(type: "bit", nullable: false), + LastPlay = table.Column(type: "datetime2", nullable: false), + TodayPlayCount = table.Column(type: "bigint", nullable: false), + TodayPurchasePlayCountHardStage = table.Column(type: "bigint", nullable: false), + FirstClearRewardReceive = table.Column(type: "datetime2", nullable: true), + StarRewardReceive = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_CampaignStageHistories", x => x.ServerId); + table.ForeignKey( + name: "FK_CampaignStageHistories_Accounts_AccountServerId", + column: x => x.AccountServerId, + principalTable: "Accounts", + principalColumn: "ServerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Currencies", + columns: table => new + { + ServerId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + AccountServerId = table.Column(type: "bigint", nullable: false), + AccountLevel = table.Column(type: "bigint", nullable: false), + AcademyLocationRankSum = table.Column(type: "bigint", nullable: false), + CurrencyDict = table.Column(type: "nvarchar(max)", nullable: false), + UpdateTimeDict = table.Column(type: "nvarchar(max)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_Currencies", x => x.ServerId); + table.ForeignKey( + name: "FK_Currencies_Accounts_AccountServerId", + column: x => x.AccountServerId, + principalTable: "Accounts", + principalColumn: "ServerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "Mails", + columns: table => new + { + ServerId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + AccountServerId = table.Column(type: "bigint", nullable: false), + Type = table.Column(type: "int", nullable: false), + UniqueId = table.Column(type: "bigint", nullable: false), + Sender = table.Column(type: "nvarchar(max)", nullable: false), + Comment = table.Column(type: "nvarchar(max)", nullable: false), + SendDate = table.Column(type: "datetime2", nullable: false), + ReceiptDate = table.Column(type: "datetime2", nullable: true), + ExpireDate = table.Column(type: "datetime2", nullable: true) + }, + constraints: table => + { + table.PrimaryKey("PK_Mails", x => x.ServerId); + table.ForeignKey( + name: "FK_Mails_Accounts_AccountServerId", + column: x => x.AccountServerId, + principalTable: "Accounts", + principalColumn: "ServerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "MultiFloorRaids", + columns: table => new + { + ServerId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + AccountServerId = table.Column(type: "bigint", nullable: false), + SeasonId = table.Column(type: "bigint", nullable: false), + ClearedDifficulty = table.Column(type: "int", nullable: false), + LastClearDate = table.Column(type: "datetime2", nullable: false), + RewardDifficulty = table.Column(type: "int", nullable: false), + LastRewardDate = table.Column(type: "datetime2", nullable: false), + ClearBattleFrame = table.Column(type: "int", nullable: false), + TotalReceivableRewards = table.Column(type: "nvarchar(max)", nullable: false), + TotalReceivedRewards = table.Column(type: "nvarchar(max)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_MultiFloorRaids", x => x.ServerId); + table.ForeignKey( + name: "FK_MultiFloorRaids_Accounts_AccountServerId", + column: x => x.AccountServerId, + principalTable: "Accounts", + principalColumn: "ServerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "ScenarioGroupHistoryDB", + columns: table => new + { + ServerId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + AccountServerId = table.Column(type: "bigint", nullable: false), + ScenarioGroupUqniueId = table.Column(type: "bigint", nullable: false), + ScenarioType = table.Column(type: "bigint", nullable: false), + EventContentId = table.Column(type: "bigint", nullable: true), + ClearDateTime = table.Column(type: "datetime2", nullable: false), + IsReturn = table.Column(type: "bit", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_ScenarioGroupHistoryDB", x => x.ServerId); + table.ForeignKey( + name: "FK_ScenarioGroupHistoryDB_Accounts_AccountServerId", + column: x => x.AccountServerId, + principalTable: "Accounts", + principalColumn: "ServerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "SchoolDungeonStageHistories", + columns: table => new + { + ServerId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + AccountServerId = table.Column(type: "bigint", nullable: false), + StageUniqueId = table.Column(type: "bigint", nullable: false), + StarFlags = table.Column(type: "nvarchar(max)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_SchoolDungeonStageHistories", x => x.ServerId); + table.ForeignKey( + name: "FK_SchoolDungeonStageHistories_Accounts_AccountServerId", + column: x => x.AccountServerId, + principalTable: "Accounts", + principalColumn: "ServerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateTable( + name: "WeekDungeonStageHistories", + columns: table => new + { + ServerId = table.Column(type: "bigint", nullable: false) + .Annotation("SqlServer:Identity", "1, 1"), + AccountServerId = table.Column(type: "bigint", nullable: false), + StageUniqueId = table.Column(type: "bigint", nullable: false), + StarGoalRecord = table.Column(type: "nvarchar(max)", nullable: false) + }, + constraints: table => + { + table.PrimaryKey("PK_WeekDungeonStageHistories", x => x.ServerId); + table.ForeignKey( + name: "FK_WeekDungeonStageHistories_Accounts_AccountServerId", + column: x => x.AccountServerId, + principalTable: "Accounts", + principalColumn: "ServerId", + onDelete: ReferentialAction.Cascade); + }); + + migrationBuilder.CreateIndex( + name: "IX_CampaignStageHistories_AccountServerId", + table: "CampaignStageHistories", + column: "AccountServerId"); + + migrationBuilder.CreateIndex( + name: "IX_Currencies_AccountServerId", + table: "Currencies", + column: "AccountServerId"); + + migrationBuilder.CreateIndex( + name: "IX_Mails_AccountServerId", + table: "Mails", + column: "AccountServerId"); + + migrationBuilder.CreateIndex( + name: "IX_MultiFloorRaids_AccountServerId", + table: "MultiFloorRaids", + column: "AccountServerId"); + + migrationBuilder.CreateIndex( + name: "IX_ScenarioGroupHistoryDB_AccountServerId", + table: "ScenarioGroupHistoryDB", + column: "AccountServerId"); + + migrationBuilder.CreateIndex( + name: "IX_SchoolDungeonStageHistories_AccountServerId", + table: "SchoolDungeonStageHistories", + column: "AccountServerId"); + + migrationBuilder.CreateIndex( + name: "IX_WeekDungeonStageHistories_AccountServerId", + table: "WeekDungeonStageHistories", + column: "AccountServerId"); + } + + /// + protected override void Down(MigrationBuilder migrationBuilder) + { + migrationBuilder.DropTable( + name: "CampaignStageHistories"); + + migrationBuilder.DropTable( + name: "Currencies"); + + migrationBuilder.DropTable( + name: "Mails"); + + migrationBuilder.DropTable( + name: "MultiFloorRaids"); + + migrationBuilder.DropTable( + name: "ScenarioGroupHistoryDB"); + + migrationBuilder.DropTable( + name: "SchoolDungeonStageHistories"); + + migrationBuilder.DropTable( + name: "WeekDungeonStageHistories"); + } + } +} diff --git a/SCHALE.Common/Migrations/SqlServerMigrations/SCHALEContextModelSnapshot.cs b/SCHALE.Common/Migrations/SqlServerMigrations/SCHALEContextModelSnapshot.cs index 3201b83..b8c1a39 100644 --- a/SCHALE.Common/Migrations/SqlServerMigrations/SCHALEContextModelSnapshot.cs +++ b/SCHALE.Common/Migrations/SqlServerMigrations/SCHALEContextModelSnapshot.cs @@ -25,6 +25,38 @@ namespace SCHALE.Common.Migrations.SqlServerMigrations SqlServerModelBuilderExtensions.UseIdentityColumns(modelBuilder); + modelBuilder.Entity("SCHALE.Common.Database.AccountCurrencyDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AcademyLocationRankSum") + .HasColumnType("bigint"); + + b.Property("AccountLevel") + .HasColumnType("bigint"); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("CurrencyDict") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("UpdateTimeDict") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Currencies"); + }); + modelBuilder.Entity("SCHALE.Common.Database.AccountDB", b => { b.Property("ServerId") @@ -147,6 +179,63 @@ namespace SCHALE.Common.Migrations.SqlServerMigrations b.ToTable("Cafes"); }); + modelBuilder.Entity("SCHALE.Common.Database.CampaignStageHistoryDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("ChapterUniqueId") + .HasColumnType("bigint"); + + b.Property("ClearTurnRecord") + .HasColumnType("bigint"); + + b.Property("FirstClearRewardReceive") + .HasColumnType("datetime2"); + + b.Property("LastPlay") + .HasColumnType("datetime2"); + + b.Property("StageUniqueId") + .HasColumnType("bigint"); + + b.Property("Star1Flag") + .HasColumnType("bit"); + + b.Property("Star2Flag") + .HasColumnType("bit"); + + b.Property("Star3Flag") + .HasColumnType("bit"); + + b.Property("StarRewardReceive") + .HasColumnType("datetime2"); + + b.Property("StoryUniqueId") + .HasColumnType("bigint"); + + b.Property("TacticClearCountWithRankSRecord") + .HasColumnType("bigint"); + + b.Property("TodayPlayCount") + .HasColumnType("bigint"); + + b.Property("TodayPurchasePlayCountHardStage") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("CampaignStageHistories"); + }); + modelBuilder.Entity("SCHALE.Common.Database.CharacterDB", b => { b.Property("ServerId") @@ -403,6 +492,47 @@ namespace SCHALE.Common.Migrations.SqlServerMigrations b.ToTable("Items"); }); + modelBuilder.Entity("SCHALE.Common.Database.MailDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("Comment") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("ExpireDate") + .HasColumnType("datetime2"); + + b.Property("ReceiptDate") + .HasColumnType("datetime2"); + + b.Property("SendDate") + .HasColumnType("datetime2"); + + b.Property("Sender") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("Type") + .HasColumnType("int"); + + b.Property("UniqueId") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("Mails"); + }); + modelBuilder.Entity("SCHALE.Common.Database.MemoryLobbyDB", b => { b.Property("ServerId") @@ -490,6 +620,83 @@ namespace SCHALE.Common.Migrations.SqlServerMigrations b.ToTable("GuestAccounts"); }); + modelBuilder.Entity("SCHALE.Common.Database.MultiFloorRaidDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("ClearBattleFrame") + .HasColumnType("int"); + + b.Property("ClearedDifficulty") + .HasColumnType("int"); + + b.Property("LastClearDate") + .HasColumnType("datetime2"); + + b.Property("LastRewardDate") + .HasColumnType("datetime2"); + + b.Property("RewardDifficulty") + .HasColumnType("int"); + + b.Property("SeasonId") + .HasColumnType("bigint"); + + b.Property("TotalReceivableRewards") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.Property("TotalReceivedRewards") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("MultiFloorRaids"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.ScenarioGroupHistoryDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("ClearDateTime") + .HasColumnType("datetime2"); + + b.Property("EventContentId") + .HasColumnType("bigint"); + + b.Property("IsReturn") + .HasColumnType("bit"); + + b.Property("ScenarioGroupUqniueId") + .HasColumnType("bigint"); + + b.Property("ScenarioType") + .HasColumnType("bigint"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("ScenarioGroupHistoryDB"); + }); + modelBuilder.Entity("SCHALE.Common.Database.ScenarioHistoryDB", b => { b.Property("ServerId") @@ -514,6 +721,31 @@ namespace SCHALE.Common.Migrations.SqlServerMigrations b.ToTable("Scenarios"); }); + modelBuilder.Entity("SCHALE.Common.Database.SchoolDungeonStageHistoryDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("StageUniqueId") + .HasColumnType("bigint"); + + b.Property("StarFlags") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("SchoolDungeonStageHistories"); + }); + modelBuilder.Entity("SCHALE.Common.Database.WeaponDB", b => { b.Property("ServerId") @@ -547,6 +779,42 @@ namespace SCHALE.Common.Migrations.SqlServerMigrations b.ToTable("Weapons"); }); + modelBuilder.Entity("SCHALE.Common.Database.WeekDungeonStageHistoryDB", b => + { + b.Property("ServerId") + .ValueGeneratedOnAdd() + .HasColumnType("bigint"); + + SqlServerPropertyBuilderExtensions.UseIdentityColumn(b.Property("ServerId")); + + b.Property("AccountServerId") + .HasColumnType("bigint"); + + b.Property("StageUniqueId") + .HasColumnType("bigint"); + + b.Property("StarGoalRecord") + .IsRequired() + .HasColumnType("nvarchar(max)"); + + b.HasKey("ServerId"); + + b.HasIndex("AccountServerId"); + + b.ToTable("WeekDungeonStageHistories"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.AccountCurrencyDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Currencies") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + modelBuilder.Entity("SCHALE.Common.Database.CafeDB", b => { b.HasOne("SCHALE.Common.Database.AccountDB", "Account") @@ -558,6 +826,17 @@ namespace SCHALE.Common.Migrations.SqlServerMigrations b.Navigation("Account"); }); + modelBuilder.Entity("SCHALE.Common.Database.CampaignStageHistoryDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("CampaignStageHistories") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + modelBuilder.Entity("SCHALE.Common.Database.CharacterDB", b => { b.HasOne("SCHALE.Common.Database.AccountDB", "Account") @@ -624,6 +903,17 @@ namespace SCHALE.Common.Migrations.SqlServerMigrations b.Navigation("Account"); }); + modelBuilder.Entity("SCHALE.Common.Database.MailDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("Mails") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + modelBuilder.Entity("SCHALE.Common.Database.MemoryLobbyDB", b => { b.HasOne("SCHALE.Common.Database.AccountDB", "Account") @@ -646,6 +936,28 @@ namespace SCHALE.Common.Migrations.SqlServerMigrations b.Navigation("Account"); }); + modelBuilder.Entity("SCHALE.Common.Database.MultiFloorRaidDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("MultiFloorRaids") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + + modelBuilder.Entity("SCHALE.Common.Database.ScenarioGroupHistoryDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("ScenarioGroups") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + modelBuilder.Entity("SCHALE.Common.Database.ScenarioHistoryDB", b => { b.HasOne("SCHALE.Common.Database.AccountDB", "Account") @@ -657,6 +969,17 @@ namespace SCHALE.Common.Migrations.SqlServerMigrations b.Navigation("Account"); }); + modelBuilder.Entity("SCHALE.Common.Database.SchoolDungeonStageHistoryDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("SchoolDungeonStageHistories") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + modelBuilder.Entity("SCHALE.Common.Database.WeaponDB", b => { b.HasOne("SCHALE.Common.Database.AccountDB", "Account") @@ -668,12 +991,27 @@ namespace SCHALE.Common.Migrations.SqlServerMigrations b.Navigation("Account"); }); + modelBuilder.Entity("SCHALE.Common.Database.WeekDungeonStageHistoryDB", b => + { + b.HasOne("SCHALE.Common.Database.AccountDB", "Account") + .WithMany("WeekDungeonStageHistories") + .HasForeignKey("AccountServerId") + .OnDelete(DeleteBehavior.Cascade) + .IsRequired(); + + b.Navigation("Account"); + }); + modelBuilder.Entity("SCHALE.Common.Database.AccountDB", b => { b.Navigation("Cafes"); + b.Navigation("CampaignStageHistories"); + b.Navigation("Characters"); + b.Navigation("Currencies"); + b.Navigation("Echelons"); b.Navigation("Equipment"); @@ -684,13 +1022,23 @@ namespace SCHALE.Common.Migrations.SqlServerMigrations b.Navigation("Items"); + b.Navigation("Mails"); + b.Navigation("MemoryLobbies"); b.Navigation("MissionProgresses"); + b.Navigation("MultiFloorRaids"); + + b.Navigation("ScenarioGroups"); + b.Navigation("Scenarios"); + b.Navigation("SchoolDungeonStageHistories"); + b.Navigation("Weapons"); + + b.Navigation("WeekDungeonStageHistories"); }); #pragma warning restore 612, 618 } diff --git a/SCHALE.Common/NetworkProtocol/protos.cs b/SCHALE.Common/NetworkProtocol/protos.cs index 17447a6..99ee520 100644 --- a/SCHALE.Common/NetworkProtocol/protos.cs +++ b/SCHALE.Common/NetworkProtocol/protos.cs @@ -3133,12 +3133,15 @@ namespace SCHALE.Common.NetworkProtocol { get { - return NetworkProtocol.Protocol.Character_BatchSkillLevelUpdate; + return NetworkProtocol.Protocol.Character_UpdateSkillLevel; } } public long TargetCharacterDBId { get; set; } - public SkillSlot SkillSlot { get; set; } + + [JsonConverter(typeof(JsonStringEnumConverter))] + public SkillSlot SkillSlot { get; set; } + public int Level { get; set; } public List ReplaceInfos { get; set; } } @@ -3149,7 +3152,7 @@ namespace SCHALE.Common.NetworkProtocol { get { - return NetworkProtocol.Protocol.Character_BatchSkillLevelUpdate; + return NetworkProtocol.Protocol.Character_UpdateSkillLevel; } } diff --git a/SCHALE.GameClient/SCHALE.GameClient.csproj b/SCHALE.GameClient/SCHALE.GameClient.csproj deleted file mode 100644 index f329f28..0000000 --- a/SCHALE.GameClient/SCHALE.GameClient.csproj +++ /dev/null @@ -1,15 +0,0 @@ - - - - Exe - net8.0 - enable - enable - - - - - - - - diff --git a/SCHALE.GameServer.sln b/SCHALE.GameServer.sln index e9fde27..ee9bd08 100644 --- a/SCHALE.GameServer.sln +++ b/SCHALE.GameServer.sln @@ -7,8 +7,6 @@ Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SCHALE.GameServer", "SCHALE EndProject Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "SCHALE.Common", "SCHALE.Common\SCHALE.Common.csproj", "{D8ED8CB5-EA39-46BE-9236-7FC1F46FE15B}" EndProject -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SCHALE.GameClient", "SCHALE.GameClient\SCHALE.GameClient.csproj", "{27F99AC7-2101-48F3-AF4E-8AC1AA78FB32}" -EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -23,10 +21,6 @@ Global {D8ED8CB5-EA39-46BE-9236-7FC1F46FE15B}.Debug|Any CPU.Build.0 = Debug|Any CPU {D8ED8CB5-EA39-46BE-9236-7FC1F46FE15B}.Release|Any CPU.ActiveCfg = Release|Any CPU {D8ED8CB5-EA39-46BE-9236-7FC1F46FE15B}.Release|Any CPU.Build.0 = Release|Any CPU - {27F99AC7-2101-48F3-AF4E-8AC1AA78FB32}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {27F99AC7-2101-48F3-AF4E-8AC1AA78FB32}.Debug|Any CPU.Build.0 = Debug|Any CPU - {27F99AC7-2101-48F3-AF4E-8AC1AA78FB32}.Release|Any CPU.ActiveCfg = Release|Any CPU - {27F99AC7-2101-48F3-AF4E-8AC1AA78FB32}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/SCHALE.GameServer/Commands/CafeCommand.cs b/SCHALE.GameServer/Commands/CafeCommand.cs index c2d7c10..d565bb2 100644 --- a/SCHALE.GameServer/Commands/CafeCommand.cs +++ b/SCHALE.GameServer/Commands/CafeCommand.cs @@ -77,8 +77,8 @@ namespace SCHALE.GameServer.Commands { IsPlayable: true, IsPlayableCharacter: true, - IsNpc: false, - ProductionStep: ProductionStep.Release, + IsNPC: false, + ProductionStep_: ProductionStep.Release, } ).Select(x => x.Id).ToList(); diff --git a/SCHALE.GameServer/Commands/CurrencyCommand.cs b/SCHALE.GameServer/Commands/CurrencyCommand.cs new file mode 100644 index 0000000..f19b451 --- /dev/null +++ b/SCHALE.GameServer/Commands/CurrencyCommand.cs @@ -0,0 +1,39 @@ +using SCHALE.Common.Database; +using SCHALE.Common.FlatData; +using SCHALE.Common.Utils; +using SCHALE.GameServer.Services; +using SCHALE.GameServer.Services.Irc; + +namespace SCHALE.GameServer.Commands +{ + [CommandHandler("currency", "Command to manage currency (gem, ticket)", "/currency [currencyId] [amount]")] + internal class CurrencyCommand : Command + { + public CurrencyCommand(IrcConnection connection, string[] args, bool validate = true) : base(connection, args, validate) { } + + [Argument(0, @"", "The id of currency you want to change its amount", ArgumentFlags.IgnoreCase)] + public string id { get; set; } = string.Empty; + + [Argument(1, @"", "amount", ArgumentFlags.IgnoreCase)] + public string amountStr { get; set; } = string.Empty; + + public override void Execute() + { + var currencyType = CurrencyTypes.Invalid; + long amount = 0; + if(Enum.TryParse(id, true, out currencyType) && currencyType != CurrencyTypes.Invalid && Int64.TryParse(amountStr, out amount)) + { + var currencies = connection.Account.Currencies.First(); + currencies.CurrencyDict[currencyType] = amount; + currencies.UpdateTimeDict[currencyType] = DateTime.Now; + connection.Context.Entry(currencies).State = Microsoft.EntityFrameworkCore.EntityState.Modified; + connection.Context.SaveChanges(); + + connection.SendChatMessage($"Set amount of {currencyType.ToString()} to {amount}!"); + } else + { + throw new ArgumentException("Invalid Target / Amount!"); + } + } + } +} diff --git a/SCHALE.GameServer/Commands/InventoryCommand.cs b/SCHALE.GameServer/Commands/InventoryCommand.cs index 4579662..c52a02a 100644 --- a/SCHALE.GameServer/Commands/InventoryCommand.cs +++ b/SCHALE.GameServer/Commands/InventoryCommand.cs @@ -6,12 +6,12 @@ using SCHALE.GameServer.Services.Irc; namespace SCHALE.GameServer.Commands { - [CommandHandler("inventory", "Command to manage inventory (chars, weapons, equipment, items)", "/inventory ")] + [CommandHandler("inventory", "Command to manage inventory (chars, weapons, equipment, items)", "/inventory ")] internal class InventoryCommand : Command { public InventoryCommand(IrcConnection connection, string[] args, bool validate = true) : base(connection, args, validate) { } - [Argument(0, @"^addall$|^removeall$", "The operation selected (addall, removeall)", ArgumentFlags.IgnoreCase)] + [Argument(0, @"^addall|^addallmax$|^removeall$", "The operation selected (addall, addallmax, removeall)", ArgumentFlags.IgnoreCase)] public string Op { get; set; } = string.Empty; public override void Execute() @@ -21,14 +21,25 @@ namespace SCHALE.GameServer.Commands switch (Op.ToLower()) { case "addall": + InventoryUtils.AddAllCharacters(connection, false); + InventoryUtils.AddAllWeapons(connection, false); + InventoryUtils.AddAllEquipment(connection); + InventoryUtils.AddAllItems(connection); + InventoryUtils.AddAllGears(connection, false); + InventoryUtils.AddAllMemoryLobbies(connection); + InventoryUtils.AddAllScenarios(connection); + + connection.SendChatMessage("Added Everything!"); + break; + + case "addallmax": InventoryUtils.AddAllCharacters(connection); InventoryUtils.AddAllWeapons(connection); InventoryUtils.AddAllEquipment(connection); InventoryUtils.AddAllItems(connection); - //InventoryUtils.AddAllGears(connection); + InventoryUtils.AddAllGears(connection); InventoryUtils.AddAllMemoryLobbies(connection); - //InventoryUtils.AddAllScenarios(connection); - InventoryUtils.AddAllFurnitures(connection); + InventoryUtils.AddAllScenarios(connection); connection.SendChatMessage("Added Everything!"); break; diff --git a/SCHALE.GameServer/Commands/SetAccountCommand.cs b/SCHALE.GameServer/Commands/SetAccountCommand.cs index 105d257..9c97e6d 100644 --- a/SCHALE.GameServer/Commands/SetAccountCommand.cs +++ b/SCHALE.GameServer/Commands/SetAccountCommand.cs @@ -41,28 +41,6 @@ namespace SCHALE.GameServer.Commands } } } - - else if (Property.Equals("raidseasonid", StringComparison.CurrentCultureIgnoreCase)) // temp raid stuff - { - if (long.TryParse(Value, out long seasonId)) - { - connection.Account.RaidInfo = new RaidInfo() - { - SeasonId = seasonId, - BestRankingPoint = 0, - TotalRankingPoint = 0, - }; - - connection.SendChatMessage($"Set Raid SeasonId to: {seasonId}"); - connection.Context.SaveChanges(); - } - - else - { - throw new ArgumentException("Invalid Value"); - } - } - else { throw new ArgumentException("Invalid Player Property!"); diff --git a/SCHALE.GameServer/Commands/SetSeasonCommand.cs b/SCHALE.GameServer/Commands/SetSeasonCommand.cs new file mode 100644 index 0000000..a7744ec --- /dev/null +++ b/SCHALE.GameServer/Commands/SetSeasonCommand.cs @@ -0,0 +1,51 @@ +using SCHALE.Common.Database; +using SCHALE.Common.FlatData; +using SCHALE.Common.Utils; +using SCHALE.GameServer.Services; +using SCHALE.GameServer.Services.Irc; + +namespace SCHALE.GameServer.Commands +{ + [CommandHandler("setseason", "Set season of content (raid, arena)", "/setseason [target content] [target season id]")] + internal class SetSeason : Command + { + public SetSeason(IrcConnection connection, string[] args, bool validate = true) : base(connection, args, validate) { } + + [Argument(0, @"", "Target content name (raid, arena)", ArgumentFlags.IgnoreCase)] + public string target { get; set; } = string.Empty; + + [Argument(1, @"^[0-9]", "Target season id", ArgumentFlags.IgnoreCase)] + public string value { get; set; } = string.Empty; + + public override void Execute() + { + var account = connection.Account; + + long seasonId = 0; + switch (target) + { + case "raid": + if (long.TryParse(value, out seasonId)) + { + connection.Account.RaidInfo = new RaidInfo() + { + SeasonId = seasonId, + BestRankingPoint = 0, + TotalRankingPoint = 0, + }; + + connection.SendChatMessage($"Set Raid SeasonId to: {seasonId}"); + connection.Context.SaveChanges(); + } + else + { + throw new ArgumentException("Invalid Value"); + } + break; + + default: + throw new ArgumentException("Invalid target!"); + } + } + } +} diff --git a/SCHALE.GameServer/Commands/UnlockAllCommand.cs b/SCHALE.GameServer/Commands/UnlockAllCommand.cs new file mode 100644 index 0000000..a67286c --- /dev/null +++ b/SCHALE.GameServer/Commands/UnlockAllCommand.cs @@ -0,0 +1,111 @@ +using SCHALE.Common.Database; +using SCHALE.Common.FlatData; +using SCHALE.Common.Utils; +using SCHALE.GameServer.Services; +using SCHALE.GameServer.Services.Irc; +using Serilog; + +namespace SCHALE.GameServer.Commands +{ + [CommandHandler("unlockall", "Command to unlock all of its contents (campaign, weekdungeon, schooldungeon)", "/unlockall [target content]")] + internal class UnlockAllCommand : Command + { + public UnlockAllCommand(IrcConnection connection, string[] args, bool validate = true) : base(connection, args, validate) { } + + [Argument(0, @"", "Target content name (campaign, weekdungeon, schooldungeon)", ArgumentFlags.IgnoreCase)] + public string target { get; set; } = string.Empty; + + public override void Execute() + { + var account = connection.Account; + + switch (target) + { + case "campaign": + var campaignChapterExcel = connection.ExcelTableService.GetTable().UnPack().DataList; + + foreach (var excel in campaignChapterExcel) + { + foreach (var stageId in excel.NormalCampaignStageId.Concat(excel.HardCampaignStageId).Concat(excel.NormalExtraStageId).Concat(excel.VeryHardCampaignStageId)) + { + account.CampaignStageHistories.Add(new() + { + AccountServerId = account.ServerId, + StageUniqueId = stageId, + ChapterUniqueId = excel.Id, + ClearTurnRecord = 1, + Star1Flag = true, + Star2Flag = true, + Star3Flag = true, + LastPlay = DateTime.Now, + TodayPlayCount = 1, + FirstClearRewardReceive = DateTime.Now, + StarRewardReceive = DateTime.Now, + }); + } + } + + connection.Context.SaveChanges(); + connection.SendChatMessage("Unlocked all of stages of campaign!"); + break; + + case "weekdungeon": + var weekdungeonExcel = connection.ExcelTableService.GetTable().UnPack().DataList; + + foreach (var excel in weekdungeonExcel) + { + var starGoalRecord = new Dictionary(); + + if(excel.StarGoal[0] == StarGoalType.GetBoxes) + { + starGoalRecord.Add(StarGoalType.GetBoxes, excel.StarGoalAmount.Last()); + } else { + foreach(var goalType in excel.StarGoal) + { + starGoalRecord.Add(goalType, 1); + } + } + + Log.Information($"WeekDungeon StageUniqueId: {excel.StageId} added"); + + account.WeekDungeonStageHistories.Add(new() { + AccountServerId = account.ServerId, + StageUniqueId = excel.StageId, + StarGoalRecord = starGoalRecord + }); + } + + connection.Context.SaveChanges(); + connection.SendChatMessage("Unlocked all of stages of week dungeon!"); + break; + + case "schooldungeon": + var schoolDungeonExcel = connection.ExcelTableService.GetExcelList("SchoolDungeonStageDBSchema").Select(excel => excel.UnPack()).ToList(); + + foreach (var excel in schoolDungeonExcel) + { + var starFlags = new bool[excel.StarGoal.Count]; + for(int i = 0; i < excel.StarGoal.Count; i++) + { + starFlags[i] = true; + } + + Log.Information($"SchoolDungeon StageUniqueId: {excel.StageId} added"); + + account.SchoolDungeonStageHistories.Add(new() { + AccountServerId = account.ServerId, + StageUniqueId = excel.StageId, + StarFlags = starFlags + }); + } + + connection.Context.SaveChanges(); + connection.SendChatMessage("Unlocked all of stages of school dungeon!"); + break; + + default: + throw new ArgumentException("Invalid target!"); + } + } + } +} diff --git a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Account.cs b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Account.cs index 243661f..7dc7595 100644 --- a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Account.cs +++ b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Account.cs @@ -104,7 +104,7 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers }, { OpenConditionContent.Story_Sub, OpenConditionLockReason.None }, { OpenConditionContent.Story_Replay, OpenConditionLockReason.None }, - { OpenConditionContent.None, OpenConditionLockReason.None }, + { OpenConditionContent.None_, OpenConditionLockReason.None }, { OpenConditionContent.Shop_Gem, OpenConditionLockReason.None }, { OpenConditionContent.Craft, OpenConditionLockReason.StageClear }, { OpenConditionContent.Student, OpenConditionLockReason.None }, @@ -188,6 +188,42 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers } ); + // Default currencies + var defaultCurrencies = excelTableService + .GetTable() + .UnPack() + .DataList + .Where(x => x.ParcelType_ == ParcelType.Currency) + .ToList(); + + AccountCurrencyDB accountCurrency = new() + { + AccountServerId = account.ServerId, + AccountLevel = 1, + AcademyLocationRankSum = 1, + CurrencyDict = new() + }; + + foreach (var currencyType in Enum.GetValues(typeof(CurrencyTypes)).Cast()) + { + if (currencyType == CurrencyTypes.Invalid) + continue; + + var amount = defaultCurrencies.Any(x => (CurrencyTypes)x.ParcelId == currencyType) ? defaultCurrencies.Where(x => (CurrencyTypes)x.ParcelId == currencyType).First().ParcelAmount : 0; + accountCurrency.CurrencyDict.Add(currencyType, amount); + } + + accountCurrency.UpdateTimeDict = new(); + foreach (var currencyType in Enum.GetValues(typeof(CurrencyTypes)).Cast()) + { + if (currencyType == CurrencyTypes.Invalid) + continue; + + accountCurrency.UpdateTimeDict.Add(currencyType, DateTime.Now); + } + + context.Currencies.Add(accountCurrency); + // Default chars var defaultCharacters = excelTableService .GetTable() @@ -1620,112 +1656,9 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers AccountCurrencySyncResponse = new AccountCurrencySyncResponse() { - AccountCurrencyDB = new AccountCurrencyDB - { - AccountLevel = 90, - AcademyLocationRankSum = 1, - CurrencyDict = new Dictionary - { - { CurrencyTypes.Gem, long.MaxValue }, // gacha currency 600 - { CurrencyTypes.GemPaid, 0 }, - { CurrencyTypes.GemBonus, long.MaxValue }, // default blue gem? - { CurrencyTypes.Gold, 962_350_000 }, // credit 10,000 - { CurrencyTypes.ActionPoint, long.MaxValue }, // energy 24 - { CurrencyTypes.AcademyTicket, 3 }, - { CurrencyTypes.ArenaTicket, 5 }, - { CurrencyTypes.RaidTicket, 3 }, - { CurrencyTypes.WeekDungeonChaserATicket, 0 }, - { CurrencyTypes.WeekDungeonChaserBTicket, 0 }, - { CurrencyTypes.WeekDungeonChaserCTicket, 0 }, - { CurrencyTypes.SchoolDungeonATicket, 0 }, - { CurrencyTypes.SchoolDungeonBTicket, 0 }, - { CurrencyTypes.SchoolDungeonCTicket, 0 }, - { CurrencyTypes.TimeAttackDungeonTicket, 3 }, - { CurrencyTypes.MasterCoin, 0 }, - { CurrencyTypes.WorldRaidTicketA, 40 }, - { CurrencyTypes.WorldRaidTicketB, 40 }, - { CurrencyTypes.WorldRaidTicketC, 40 }, - { CurrencyTypes.ChaserTotalTicket, 6 }, - { CurrencyTypes.SchoolDungeonTotalTicket, 6 }, - { CurrencyTypes.EliminateTicketA, 1 }, - { CurrencyTypes.EliminateTicketB, 1 }, - { CurrencyTypes.EliminateTicketC, 1 }, - { CurrencyTypes.EliminateTicketD, 1 } - }, - UpdateTimeDict = new Dictionary - { - { CurrencyTypes.ActionPoint, DateTime.Parse("2024-04-26T19:29:12") }, - { CurrencyTypes.AcademyTicket, DateTime.Parse("2024-04-26T19:29:12") }, - { CurrencyTypes.ArenaTicket, DateTime.Parse("2024-04-26T19:29:12") }, - { CurrencyTypes.RaidTicket, DateTime.Parse("2024-04-26T19:29:12") }, - { - CurrencyTypes.WeekDungeonChaserATicket, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.WeekDungeonChaserBTicket, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.WeekDungeonChaserCTicket, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.SchoolDungeonATicket, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.SchoolDungeonBTicket, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.SchoolDungeonCTicket, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.TimeAttackDungeonTicket, - DateTime.Parse("2024-04-26T19:29:12") - }, - { CurrencyTypes.MasterCoin, DateTime.Parse("2024-04-26T19:29:12") }, - { - CurrencyTypes.WorldRaidTicketA, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.WorldRaidTicketB, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.WorldRaidTicketC, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.ChaserTotalTicket, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.SchoolDungeonTotalTicket, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.EliminateTicketA, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.EliminateTicketB, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.EliminateTicketC, - DateTime.Parse("2024-04-26T19:29:12") - }, - { - CurrencyTypes.EliminateTicketD, - DateTime.Parse("2024-04-26T19:29:12") - } - } - } + AccountCurrencyDB = account.Currencies.FirstOrDefault() }, + CharacterListResponse = new CharacterListResponse() { CharacterDBs = [.. account.Characters], @@ -1784,7 +1717,8 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers ScenarioListResponse = new ScenarioListResponse() { - //ScenarioHistoryDBs = [.. account.Scenarios] + ScenarioHistoryDBs = [.. account.Scenarios], + ScenarioGroupHistoryDBs = [.. account.ScenarioGroups] }, EliminateRaidLoginResponse = new EliminateRaidLoginResponse() @@ -1890,8 +1824,8 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers { IsPlayable: true, IsPlayableCharacter: true, - IsNpc: false, - ProductionStep: ProductionStep.Release, + IsNPC: false, + ProductionStep_: ProductionStep.Release, }).Select(x => x.Id).ToList(); while (randomCharacters.Count < amount) @@ -1985,18 +1919,6 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers return new BillingPurchaseListByYostarResponse(); } - [ProtocolHandler(Protocol.WeekDungeon_List)] - public ResponsePacket WeekDungeon_ListHandler(WeekDungeonListRequest req) - { - return new WeekDungeonListResponse(); - } - - [ProtocolHandler(Protocol.SchoolDungeon_List)] - public ResponsePacket SchoolDungeon_ListHandler(SchoolDungeonListRequest req) - { - return new SchoolDungeonListResponse(); - } - [ProtocolHandler(Protocol.MiniGame_MissionList)] public ResponsePacket MiniGame_MissionListHandler(MiniGameMissionListRequest req) { @@ -2020,5 +1942,22 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers { return new FriendGetIdCardResponse(); } + + [ProtocolHandler(Protocol.Account_CallName)] + public ResponsePacket CallNameHandler(AccountCallNameRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + + account.CallName = req.CallName; + context.SaveChanges(); + + return new AccountCallNameResponse() { AccountDB = account }; + } + + [ProtocolHandler(Protocol.Account_InvalidateToken)] + public ResponsePacket InvalidateTokenHandler(AccountInvalidateTokenRequest req) + { + return new AccountInvalidateTokenResponse(); + } } } diff --git a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Cafe.cs b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Cafe.cs index bacb455..7b9bcd3 100644 --- a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Cafe.cs +++ b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Cafe.cs @@ -33,7 +33,7 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers FurnitureDBs = [.. account.Furnitures] }; } - + [ProtocolHandler(Protocol.Cafe_Ack)] public ResponsePacket AckHandler(CafeAckRequest req) { @@ -72,7 +72,7 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers // TODO: if exist, find the existing id furniture and stack++ - foreach (var furniture in furnituresToRemove) + foreach (var furniture in furnituresToRemove) { furniture.Location = FurnitureLocation.Inventory; furniture.PositionX = -1; @@ -133,7 +133,7 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers var targetCafe = account.Cafes.Where(x => x.CafeDBId == req.CafeDBId).SingleOrDefault(); var targetFurniture = targetCafe.FurnitureDBs.Where(x => x.CafeDBId == req.CafeDBId && x.ServerId == req.FurnitureDB.ServerId).SingleOrDefault(); - + if (targetFurniture == null) { Log.Error("Target Furniture with Id: " + req.FurnitureDB.ServerId + " was not found."); @@ -152,5 +152,62 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers RelocatedFurnitureDB = targetFurniture, }; } + + [ProtocolHandler(Protocol.Cafe_ListPreset)] + public ResponsePacket ListPresetHandler(CafeListPresetRequest req) + { + return new CafeListPresetResponse() + { + CafePresetDBs = [ + new CafePresetDB() + { + ServerId = 0, + SlotId = 0, + PresetName = "seggs", + IsEmpty = true + }, + ] + }; + } + + [ProtocolHandler(Protocol.Cafe_ApplyTemplate)] + public ResponsePacket ApplyTemplateHandler(CafeApplyTemplateRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + var targetCafe = account.Cafes.Where(x => x.CafeDBId == req.CafeDBId).SingleOrDefault(); + + var furnitureTempExcel = excelTableService.GetTable().UnPack().DataList; + + var templateFurnitureData = furnitureTempExcel.Where(x => x.FurnitureTemplateId == req.TemplateId) + .Select(x => + { + return new FurnitureDB() + { + CafeDBId = req.CafeDBId, + UniqueId = x.FurnitureId, + Location = x.Location, + PositionX = x.PositionX, + PositionY = x.PositionY, + Rotation = x.Rotation, + StackCount = 1 + }; + }).ToList(); + + account.AddFurnitures(context, [.. templateFurnitureData]); + context.SaveChanges(); + + foreach (var furniture in templateFurnitureData) + { + var changedFurniture = account.Furnitures.FirstOrDefault(x => x.UniqueId == furniture.UniqueId); + changedFurniture.ItemDeploySequence = changedFurniture.ServerId; + } + context.SaveChanges(); + + return new CafeApplyTemplateResponse() + { + CafeDBs = account.Cafes.ToList(), + FurnitureDBs = [.. targetCafe.FurnitureDBs] + }; + } } } diff --git a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Campaign.cs b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Campaign.cs index 4c4c475..4bb86ac 100644 --- a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Campaign.cs +++ b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Campaign.cs @@ -1,4 +1,5 @@ using Microsoft.AspNetCore.Routing; +using Microsoft.EntityFrameworkCore; using SCHALE.Common.Database; using SCHALE.Common.FlatData; using SCHALE.Common.NetworkProtocol; @@ -10,1423 +11,255 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers { private ISessionKeyService sessionKeyService; private SCHALEContext context; + private ExcelTableService excelTableService; - public Campaign(IProtocolHandlerFactory protocolHandlerFactory, ISessionKeyService _sessionKeyService, SCHALEContext _context) : base(protocolHandlerFactory) + public Campaign(IProtocolHandlerFactory protocolHandlerFactory, ISessionKeyService _sessionKeyService, SCHALEContext _context, ExcelTableService _excelTableService) : base(protocolHandlerFactory) { sessionKeyService = _sessionKeyService; context = _context; + excelTableService = _excelTableService; } [ProtocolHandler(Protocol.Campaign_List)] public ResponsePacket ListHandler(CampaignListRequest req) { + var account = sessionKeyService.GetAccount(req.SessionKey); return new CampaignListResponse() { - CampaignChapterClearRewardHistoryDBs = [ - new() { - - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - RewardType = StageDifficulty.Normal - - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - RewardType = StageDifficulty.Hard - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 102, - RewardType = StageDifficulty.Normal - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 102, - RewardType = StageDifficulty.Hard - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 103, - RewardType = StageDifficulty.Normal - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 103, - RewardType = StageDifficulty.Hard - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 104, - RewardType = StageDifficulty.Normal - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 104, - RewardType = StageDifficulty.Hard - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 105, - RewardType = StageDifficulty.Normal - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 105, - RewardType = StageDifficulty.Hard - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 106, - RewardType = StageDifficulty.Normal - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 106, - RewardType = StageDifficulty.Hard - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 107, - RewardType = StageDifficulty.Normal - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 107, - RewardType = StageDifficulty.Hard - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 108, - RewardType = StageDifficulty.Normal - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 108, - RewardType = StageDifficulty.Hard - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 109, - RewardType = StageDifficulty.Normal - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 109, - RewardType = StageDifficulty.Hard - }, - new() - { - AccountServerId = req.AccountId, - ChapterUniqueId = 110, - RewardType = StageDifficulty.Hard - } - ], - - StageHistoryDBs = [ - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - StageUniqueId = 1011101, - TacticClearCountWithRankSRecord = 2, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-02-04T05:15:16"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2023-02-01T05:39:08"), - StarRewardReceive = DateTime.Parse("2023-02-01T05:39:08") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - StageUniqueId = 1011102, - TacticClearCountWithRankSRecord = 2, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-19T23:53:04"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-19T23:53:04"), - StarRewardReceive = DateTime.Parse("2024-04-19T23:53:04") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - StageUniqueId = 1011103, - TacticClearCountWithRankSRecord = 2, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-19T23:59:05"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-19T23:59:05"), - StarRewardReceive = DateTime.Parse("2024-04-19T23:59:05") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - StageUniqueId = 1011104, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T00:04:38"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:04:38"), - StarRewardReceive = DateTime.Parse("2024-04-20T00:04:38") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - StageUniqueId = 1011105, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T00:08:16"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:08:16"), - StarRewardReceive = DateTime.Parse("2024-04-20T00:08:16") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - StageUniqueId = 1011301, - ClearTurnRecord = 1, - LastPlay = DateTime.Parse("2024-04-19T23:48:56"), - FirstClearRewardReceive = DateTime.Parse("2024-04-19T23:48:56") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - StageUniqueId = 1011302, - ClearTurnRecord = 1, - LastPlay = DateTime.Parse("2024-04-19T23:56:38"), - FirstClearRewardReceive = DateTime.Parse("2024-04-19T23:56:38") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - StageUniqueId = 1011303, - ClearTurnRecord = 1, - LastPlay = DateTime.Parse("2024-04-20T00:01:14"), - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:01:14") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - StageUniqueId = 1012101, - TacticClearCountWithRankSRecord = 2, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-25T11:10:18"), - TodayPlayCount = 3, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:10:45"), - StarRewardReceive = DateTime.Parse("2024-04-20T00:10:45") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - StageUniqueId = 1012102, - TacticClearCountWithRankSRecord = 2, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-21T23:21:32"), - TodayPlayCount = 3, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:13:12"), - StarRewardReceive = DateTime.Parse("2024-04-20T00:13:12") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 101, - StageUniqueId = 1012103, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-25T11:10:12"), - TodayPlayCount = 3, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:16:26"), - StarRewardReceive = DateTime.Parse("2024-04-20T00:16:26") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 102, - StageUniqueId = 1021101, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-03T14:04:23"), - TodayPlayCount = 2, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:18:54"), - StarRewardReceive = DateTime.Parse("2024-04-20T00:23:08") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 102, - StageUniqueId = 1021102, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T00:27:50"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:27:50"), - StarRewardReceive = DateTime.Parse("2024-04-20T00:27:50") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 102, - StageUniqueId = 1021103, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T17:43:42"), - TodayPlayCount = 6, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:31:18"), - StarRewardReceive = DateTime.Parse("2024-04-20T00:31:18") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 102, - StageUniqueId = 1021104, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T00:38:21"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:38:21"), - StarRewardReceive = DateTime.Parse("2024-04-20T00:38:21") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 102, - StageUniqueId = 1021105, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T00:44:22"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:44:22"), - StarRewardReceive = DateTime.Parse("2024-04-20T00:44:22") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 102, - StageUniqueId = 1021304, - ClearTurnRecord = 1, - LastPlay = DateTime.Parse("2024-04-20T00:24:41"), - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:24:41") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 102, - StageUniqueId = 1022101, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-22T20:38:27"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-22T20:38:27"), - StarRewardReceive = DateTime.Parse("2024-04-22T20:38:27") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 102, - StageUniqueId = 1022102, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-22T20:41:18"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-22T20:41:18"), - StarRewardReceive = DateTime.Parse("2024-04-22T20:41:18") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 102, - StageUniqueId = 1022103, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-22T20:43:58"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-22T20:43:58"), - StarRewardReceive = DateTime.Parse("2024-04-22T20:43:58") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 103, - StageUniqueId = 1031101, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 4, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T00:50:21"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:50:21"), - StarRewardReceive = DateTime.Parse("2024-04-20T00:50:21") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 103, - StageUniqueId = 1031102, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 4, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T00:55:15"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:55:15"), - StarRewardReceive = DateTime.Parse("2024-04-20T00:55:15") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 103, - StageUniqueId = 1031103, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 4, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T01:06:15"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T01:06:15"), - StarRewardReceive = DateTime.Parse("2024-04-20T01:06:15") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 103, - StageUniqueId = 1031104, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 4, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T01:11:56"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T01:11:56"), - StarRewardReceive = DateTime.Parse("2024-04-20T01:11:56") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 103, - StageUniqueId = 1031105, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T01:36:54"), - TodayPlayCount = 2, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T01:17:29"), - StarRewardReceive = DateTime.Parse("2024-04-20T01:36:54") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 103, - StageUniqueId = 1031305, - ClearTurnRecord = 1, - LastPlay = DateTime.Parse("2024-04-20T00:45:52"), - FirstClearRewardReceive = DateTime.Parse("2024-04-20T00:45:52") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 103, - StageUniqueId = 1031306, - ClearTurnRecord = 1, - LastPlay = DateTime.Parse("2024-04-20T01:07:54"), - FirstClearRewardReceive = DateTime.Parse("2024-04-20T01:07:54") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 103, - StageUniqueId = 1032101, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 4, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-22T20:46:40"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-22T20:46:40"), - StarRewardReceive = DateTime.Parse("2024-04-22T20:46:40") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 103, - StageUniqueId = 1032102, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 4, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-25T11:10:05"), - TodayPlayCount = 3, - FirstClearRewardReceive = DateTime.Parse("2024-04-22T20:49:18"), - StarRewardReceive = DateTime.Parse("2024-04-22T20:49:18") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 103, - StageUniqueId = 1032103, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 5, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-25T11:09:59"), - TodayPlayCount = 3, - FirstClearRewardReceive = DateTime.Parse("2024-04-22T20:52:12"), - StarRewardReceive = DateTime.Parse("2024-04-22T20:52:12") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 104, - StageUniqueId = 1041101, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T14:32:33"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T14:32:33"), - StarRewardReceive = DateTime.Parse("2024-04-20T14:32:33") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 104, - StageUniqueId = 1041102, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T17:42:39"), - TodayPlayCount = 11, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T14:37:22"), - StarRewardReceive = DateTime.Parse("2024-04-20T14:37:22") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 104, - StageUniqueId = 1041103, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T14:44:32"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T14:44:32"), - StarRewardReceive = DateTime.Parse("2024-04-20T14:44:32") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 104, - StageUniqueId = 1041104, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T14:49:44"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T14:49:44"), - StarRewardReceive = DateTime.Parse("2024-04-20T14:49:44") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 104, - StageUniqueId = 1041105, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T15:14:30"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T15:14:30"), - StarRewardReceive = DateTime.Parse("2024-04-20T15:14:30") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 104, - StageUniqueId = 1042101, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:15:06"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:15:06"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:15:06") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 104, - StageUniqueId = 1042102, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:16:35"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:16:35"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:16:35") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 104, - StageUniqueId = 1042103, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:18:48"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:18:48"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:18:48") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 105, - StageUniqueId = 1051101, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T15:42:11"), - TodayPlayCount = 4, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T15:20:30"), - StarRewardReceive = DateTime.Parse("2024-04-20T15:20:30") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 105, - StageUniqueId = 1051102, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T15:27:10"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T15:27:10"), - StarRewardReceive = DateTime.Parse("2024-04-20T15:27:10") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 105, - StageUniqueId = 1051103, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T15:31:25"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T15:31:25"), - StarRewardReceive = DateTime.Parse("2024-04-20T15:31:25") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 105, - StageUniqueId = 1051104, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T15:35:54"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T15:35:54"), - StarRewardReceive = DateTime.Parse("2024-04-20T15:35:54") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 105, - StageUniqueId = 1051105, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 4, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T15:41:16"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T15:41:16"), - StarRewardReceive = DateTime.Parse("2024-04-20T15:41:16") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 105, - StageUniqueId = 1052101, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:20:22"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:20:22"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:20:22") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 105, - StageUniqueId = 1052102, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:21:59"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:21:59"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:21:59") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 105, - StageUniqueId = 1052103, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:23:42"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:23:42"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:23:42") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 106, - StageUniqueId = 1061101, - TacticClearCountWithRankSRecord = 4, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T17:12:22"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T17:12:22"), - StarRewardReceive = DateTime.Parse("2024-04-20T17:12:22") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 106, - StageUniqueId = 1061102, - TacticClearCountWithRankSRecord = 4, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T17:20:59"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T17:20:59"), - StarRewardReceive = DateTime.Parse("2024-04-20T17:20:59") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 106, - StageUniqueId = 1061103, - TacticClearCountWithRankSRecord = 4, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T17:39:32"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T17:39:32"), - StarRewardReceive = DateTime.Parse("2024-04-20T17:39:32") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 106, - StageUniqueId = 1061104, - TacticClearCountWithRankSRecord = 4, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T17:53:49"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T17:53:49"), - StarRewardReceive = DateTime.Parse("2024-04-20T17:53:49") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 106, - StageUniqueId = 1061105, - TacticClearCountWithRankSRecord = 5, - ClearTurnRecord = 4, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T18:02:24"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T18:02:24"), - StarRewardReceive = DateTime.Parse("2024-04-20T18:02:24") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 106, - StageUniqueId = 1062101, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:25:11"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:25:11"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:25:11") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 106, - StageUniqueId = 1062102, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:27:13"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:27:13"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:27:13") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 106, - StageUniqueId = 1062103, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:28:49"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:28:49"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:28:49") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 107, - StageUniqueId = 1071101, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-22T16:57:05"), - TodayPlayCount = 10, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T22:00:20"), - StarRewardReceive = DateTime.Parse("2024-04-20T22:00:20") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 107, - StageUniqueId = 1071102, - TacticClearCountWithRankSRecord = 3, - ClearTurnRecord = 2, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-20T22:07:18"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-20T22:07:18"), - StarRewardReceive = DateTime.Parse("2024-04-20T22:07:18") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 107, - StageUniqueId = 1071103, - TacticClearCountWithRankSRecord = 4, - ClearTurnRecord = 3, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-21T13:29:22"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-21T13:29:22"), - StarRewardReceive = DateTime.Parse("2024-04-21T13:29:22") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 107, - StageUniqueId = 1071104, - TacticClearCountWithRankSRecord = 4, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-04T20:58:22"), - TodayPlayCount = 8, - FirstClearRewardReceive = DateTime.Parse("2024-04-22T20:36:19"), - StarRewardReceive = DateTime.Parse("2024-04-25T11:27:54") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 107, - StageUniqueId = 1071105, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-29T20:17:08"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-25T11:23:03"), - StarRewardReceive = DateTime.Parse("2024-04-29T20:17:08") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 107, - StageUniqueId = 1072101, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:30:35"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:30:35"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:30:35") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 107, - StageUniqueId = 1072102, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:32:53"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:32:53"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:32:53") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 107, - StageUniqueId = 1072103, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:44:59"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:44:59"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:44:59") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 108, - StageUniqueId = 1081101, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-29T20:20:03"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-25T14:59:00"), - StarRewardReceive = DateTime.Parse("2024-04-29T20:20:03") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 108, - StageUniqueId = 1081102, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-29T20:21:36"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-25T15:02:41"), - StarRewardReceive = DateTime.Parse("2024-04-29T20:21:36") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 108, - StageUniqueId = 1081103, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-29T20:23:07"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-25T15:07:07"), - StarRewardReceive = DateTime.Parse("2024-04-29T20:23:07") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 108, - StageUniqueId = 1081104, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-29T20:35:53"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-29T20:35:53"), - StarRewardReceive = DateTime.Parse("2024-04-29T20:35:53") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 108, - StageUniqueId = 1081105, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-29T20:39:05"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-29T20:39:05"), - StarRewardReceive = DateTime.Parse("2024-04-29T20:39:05") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 108, - StageUniqueId = 1082101, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:47:26"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:47:26"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:47:26") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 108, - StageUniqueId = 1082102, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-02T16:49:11"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-02T16:49:11"), - StarRewardReceive = DateTime.Parse("2024-05-02T16:49:11") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 108, - StageUniqueId = 1082103, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-04T20:42:57"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-04T20:42:57"), - StarRewardReceive = DateTime.Parse("2024-05-04T20:42:57") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 109, - StageUniqueId = 1091101, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-30T20:38:44"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-30T20:38:44"), - StarRewardReceive = DateTime.Parse("2024-04-30T20:38:44") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 109, - StageUniqueId = 1091102, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-30T20:40:23"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-30T20:40:23"), - StarRewardReceive = DateTime.Parse("2024-04-30T20:40:23") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 109, - StageUniqueId = 1091103, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-30T20:46:10"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-30T20:46:10"), - StarRewardReceive = DateTime.Parse("2024-04-30T20:46:10") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 109, - StageUniqueId = 1091104, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-30T20:47:49"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-30T20:47:49"), - StarRewardReceive = DateTime.Parse("2024-04-30T20:47:49") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 109, - StageUniqueId = 1091105, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-30T20:49:44"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-30T20:49:44"), - StarRewardReceive = DateTime.Parse("2024-04-30T20:49:44") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 109, - StageUniqueId = 1092101, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-04T20:45:36"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-04T20:45:36"), - StarRewardReceive = DateTime.Parse("2024-05-04T20:45:36") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 109, - StageUniqueId = 1092102, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-04T20:47:18"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-04T20:47:18"), - StarRewardReceive = DateTime.Parse("2024-05-04T20:47:18") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 109, - StageUniqueId = 1092103, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-04T20:48:50"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-04T20:48:50"), - StarRewardReceive = DateTime.Parse("2024-05-04T20:48:50") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 110, - StageUniqueId = 1101101, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-30T20:51:57"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-30T20:51:57"), - StarRewardReceive = DateTime.Parse("2024-04-30T20:51:57") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 110, - StageUniqueId = 1101102, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-30T20:53:41"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-30T20:53:41"), - StarRewardReceive = DateTime.Parse("2024-04-30T20:53:41") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 110, - StageUniqueId = 1101103, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-30T20:55:36"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-30T20:55:36"), - StarRewardReceive = DateTime.Parse("2024-04-30T20:55:36") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 110, - StageUniqueId = 1101104, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-30T20:57:18"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-30T20:57:18"), - StarRewardReceive = DateTime.Parse("2024-04-30T20:57:18") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 110, - StageUniqueId = 1101105, - ClearTurnRecord = 1, - Star1Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-30T21:00:57"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-30T21:00:57") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 110, - StageUniqueId = 1102101, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-04T20:50:39"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-04T20:50:39"), - StarRewardReceive = DateTime.Parse("2024-05-04T20:50:39") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 110, - StageUniqueId = 1102102, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-04T20:52:14"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-04T20:52:14"), - StarRewardReceive = DateTime.Parse("2024-05-04T20:52:14") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 110, - StageUniqueId = 1102103, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-04T20:55:25"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-04T20:55:25"), - StarRewardReceive = DateTime.Parse("2024-05-04T20:55:25") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 111, - StageUniqueId = 1111101, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-04-30T21:03:25"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-30T21:03:25"), - StarRewardReceive = DateTime.Parse("2024-04-30T21:03:25") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 111, - StageUniqueId = 1111102, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-05T20:38:30"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-04-30T21:05:23"), - StarRewardReceive = DateTime.Parse("2024-05-05T20:38:30") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 111, - StageUniqueId = 1111103, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-05T20:39:56"), - TodayPlayCount = 2, - FirstClearRewardReceive = DateTime.Parse("2024-05-05T20:36:49"), - StarRewardReceive = DateTime.Parse("2024-05-05T20:39:56") - }, - new() { - AccountServerId = req.AccountId, - ChapterUniqueId = 111, - StageUniqueId = 1111104, - ClearTurnRecord = 1, - Star1Flag = true, - Star2Flag = true, - Star3Flag = true, - LastPlay = DateTime.Parse("2024-05-05T20:41:39"), - TodayPlayCount = 1, - FirstClearRewardReceive = DateTime.Parse("2024-05-05T20:41:39"), - StarRewardReceive = DateTime.Parse("2024-05-05T20:41:39") - } - ], - + CampaignChapterClearRewardHistoryDBs = new(), + StageHistoryDBs = account.CampaignStageHistories.ToList(), + StrategyObjecthistoryDBs = new(), + DailyResetCountDB = new() }; - } [ProtocolHandler(Protocol.Campaign_EnterMainStage)] public ResponsePacket EnterMainStageHandler(CampaignEnterMainStageRequest req) { + // TODO: Implement return new CampaignEnterMainStageResponse() { SaveDataDB = new CampaignMainStageSaveDB() + }; + } + + [ProtocolHandler(Protocol.Campaign_EnterSubStage)] + public ResponsePacket EnterSubStageHandler(CampaignEnterSubStageRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + var parcelResultDb = ConsumeOrReturnCurrencies(account, req.StageUniqueId); + + return new CampaignEnterSubStageResponse() + { + ParcelResultDB = parcelResultDb, + SaveDataDB = new(), + }; + } + + [ProtocolHandler(Protocol.Campaign_SubStageResult)] + public ResponsePacket SubStageResultHandler(CampaignSubStageResultRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + var currencies = account.Currencies.First(); + CampaignStageHistoryDB historyDb = new(); + ParcelResultDB parcelResultDb = new() + { + AccountCurrencyDB = currencies, + DisplaySequence = new() + }; + + if (CheckIfCleared(req.Summary)) + { + historyDb = CampaignService.CreateStageHistoryDB(req.AccountId, new() { UniqueId = req.Summary.StageId, ChapterUniqueId = GetChapterIdFromStageId(req.Summary.StageId) }); + CampaignService.CalcStrategySkipStarGoals(historyDb, req.Summary); + + if (account.CampaignStageHistories.Any(x => x.StageUniqueId == req.Summary.StageId)) { - LastEnemyEntityId = 10010, + var existHistory = account.CampaignStageHistories.Where(x => x.StageUniqueId == req.Summary.StageId).First(); + MergeExistHistoryWithNew(ref existHistory, historyDb); - EnemyInfos = new() + historyDb = existHistory; + } else + { + account.CampaignStageHistories.Add(historyDb); + } + } else + { + // Return currencies + parcelResultDb = ConsumeOrReturnCurrencies(account, req.Summary.StageId, true); + } + + context.SaveChanges(); + + return new CampaignSubStageResultResponse() + { + TacticRank = 0, + CampaignStageHistoryDB = historyDb, + LevelUpCharacterDBs = new(), + ParcelResultDB = parcelResultDb, + FirstClearReward = new(), + ThreeStarReward = new() + }; + } + + [ProtocolHandler(Protocol.Campaign_EnterTutorialStage)] + public ResponsePacket EnterTutorialStageHandler(CampaignEnterTutorialStageRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + var parcelResultDb = ConsumeOrReturnCurrencies(account, req.StageUniqueId); + + return new CampaignEnterTutorialStageResponse() + { + ParcelResultDB = parcelResultDb, + SaveDataDB = new() + }; + } + + [ProtocolHandler(Protocol.Campaign_TutorialStageResult)] + public ResponsePacket TutorialStageResultHandler(CampaignTutorialStageResultRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + CampaignStageHistoryDB historyDb = new(); + + if (CheckIfCleared(req.Summary)) + { + historyDb = CampaignService.CreateStageHistoryDB(req.AccountId, new() { UniqueId = req.Summary.StageId, ChapterUniqueId = GetChapterIdFromStageId(req.Summary.StageId) }); + historyDb.ClearTurnRecord = 1; + + if (!account.CampaignStageHistories.Any(x => x.StageUniqueId == req.Summary.StageId)) + { + account.CampaignStageHistories.Add(historyDb); + } + } + + context.SaveChanges(); + + return new CampaignTutorialStageResultResponse() + { + CampaignStageHistoryDB = historyDb, + ParcelResultDB = new(), + ClearReward = new(), + FirstClearReward = new(), + }; + } + + [ProtocolHandler(Protocol.Campaign_EnterMainStageStrategySkip)] + public ResponsePacket EnterMainStageStrategySkipHandler(CampaignEnterMainStageStrategySkipRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + var parcelResultDb = ConsumeOrReturnCurrencies(account, req.StageUniqueId); + + return new CampaignEnterMainStageStrategySkipResponse() + { + ParcelResultDB = parcelResultDb + }; + } + + [ProtocolHandler(Protocol.Campaign_MainStageStrategySkipResult)] + public ResponsePacket MainStageStrategySkipResultHandler(CampaignMainStageStrategySkipResultRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + var currencies = account.Currencies.First(); + + CampaignStageHistoryDB historyDb = new(); + ParcelResultDB parcelResultDb = new() + { + AccountCurrencyDB = currencies, + DisplaySequence = new() + }; + + if (CheckIfCleared(req.Summary)) + { + historyDb = CampaignService.CreateStageHistoryDB(req.AccountId, new() { UniqueId = req.Summary.StageId, ChapterUniqueId = GetChapterIdFromStageId(req.Summary.StageId) }); + CampaignService.CalcStrategySkipStarGoals(historyDb, req.Summary); + + if (account.CampaignStageHistories.Any(x => x.StageUniqueId == req.Summary.StageId)) + { + var existHistory = account.CampaignStageHistories.Where(x => x.StageUniqueId == req.Summary.StageId).First(); + MergeExistHistoryWithNew(ref existHistory, historyDb); + + historyDb = existHistory; + } else + { + account.CampaignStageHistories.Add(historyDb); + } + } else + { + // Return currencies + parcelResultDb = ConsumeOrReturnCurrencies(account, req.Summary.StageId, true); + } + + context.SaveChanges(); + + return new CampaignMainStageStrategySkipResultResponse() + { + TacticRank = 0, + CampaignStageHistoryDB = historyDb, + LevelUpCharacterDBs = new(), + ParcelResultDB = parcelResultDb, + FirstClearReward = new(), + ThreeStarReward = new() + }; + } + + public ParcelResultDB ConsumeOrReturnCurrencies(AccountDB account, long stageId, bool doReturn = false) + { + var currencies = account.Currencies.First(); + + var campaignExcel = excelTableService.GetTable().UnPack().DataList.Where(x => x.Id == stageId).First(); + + var costId = campaignExcel.StageEnterCostId; + var costAmount = campaignExcel.StageEnterCostAmount; + currencies.CurrencyDict[(CurrencyTypes)costId] -= costAmount * (doReturn ? -1 : 1); + currencies.UpdateTimeDict[(CurrencyTypes)costId] = DateTime.Now; + + context.Entry(currencies).State = EntityState.Modified; + context.SaveChanges(); + + return new() + { + AccountCurrencyDB = currencies, + DisplaySequence = new() + { + new() { - { 10008, new() { EntityId = 10008, Id = 101110101, Rotate = new() { x = 0, y = 240, z = 0 }, Location = new() { x = -1, y = 1 } } }, - { 10009, new() { EntityId = 10009, Id = 101110102, Rotate = new() { x = 0, y = 240, z = 0 } } }, - }, - - StrategyObjects = new() - { - { 10010, new() { EntityId = 10010, Id = 101101, Location = new() { x = -2, y = 2 } } }, - }, - - TileMapStates = new() - { - { 0, new() { } }, - { 1, new() { Id = 1 } }, - { 2, new() { Id = 2 } }, - }, - - StageEntranceFee = [ - new() + Amount = costAmount, + Key = new() { - Key = new() { Type = ParcelType.Currency, Id = 5 }, - Amount = 10, - Multiplier = new() { }, - Probability = new(10000), + Type = ParcelType.Currency, + Id = costId } - ], - - - - AccountServerId = req.AccountId, - //ContentType = ContentType.CampaignMainStage, - ActivatedHexaEventsAndConditions = new() { { 0, [0] } }, - HexaEventDelayedExecutions = [], - CreateTime = DateTime.UtcNow, - StageUniqueId = req.StageUniqueId, - - EnemyKillCountByUniqueId = [] + } } }; } - /* - * SaveDataDB = new CampaignMainStageSaveDB() - { - EnemyInfos = new() - { - { 10006, new() { EntityId = 10006, Id = 102110101, Rotate = new() { x = 0, y = 240, z = 0 }, Location = new() { x = -1, z = 1 } } }, - { 10007, new() { EntityId = 10007, Id = 102110102, Rotate = new() { x = 0, y = 240, z = 0 }, Location = new() { x = -1, y = 1 } } }, - { 10008, new() { EntityId = 10008, Id = 102110103, Rotate = new() { x = 0, y = 240, z = 0 }, Location = new() { x = 1, y = -1 } } }, - }, + public void MergeExistHistoryWithNew(ref CampaignStageHistoryDB existHistoryDb, CampaignStageHistoryDB newHistoryDb) + { + existHistoryDb.Star1Flag = existHistoryDb.Star1Flag ? true : newHistoryDb.Star1Flag; + existHistoryDb.Star2Flag = existHistoryDb.Star2Flag ? true : newHistoryDb.Star2Flag; + existHistoryDb.Star3Flag = existHistoryDb.Star3Flag ? true : newHistoryDb.Star3Flag; - StrategyObjects = new() - { - { 10012, new() { EntityId = 10012, Id = 101101, Location = new() { x = -1, y = 2, z = -1 } } }, - { 10013, new() { EntityId = 10013, Id = 107101 } }, - }, + existHistoryDb.TodayPlayCount += 1; + existHistoryDb.LastPlay = DateTime.Now; - TileMapStates = new() - { - { 0, new() { } }, - { 1, new() { Id = 1 } }, - { 2, new() { Id = 2 } }, - { 3, new() { Id = 3 } }, - { 4, new() { Id = 4 } }, - }, + context.Entry(existHistoryDb).State = EntityState.Modified; + context.SaveChanges(); + } - StageEntranceFee = [ - new() - { - Key = new() { Type = ParcelType.Currency, Id = 5 }, - Amount = 10, - Multiplier = new(10000), - Probability = new(10000), - } - ], + public bool CheckIfCleared(BattleSummary summary) + { + return !summary.IsAbort && summary.EndType == BattleEndType.Clear; + } - LastEnemyEntityId = 10013, - AccountServerId = req.AccountId, + public long GetChapterIdFromStageId(long stageId) + { + var campaignChapterExcel = excelTableService.GetTable().UnPack().DataList + .Where(x => x.NormalCampaignStageId.Contains(stageId) || x.HardCampaignStageId.Contains(stageId) || x.NormalExtraStageId.Contains(stageId) || + x.VeryHardCampaignStageId.Contains(stageId)).ToList().First(); - - ContentType = ContentType.CampaignMainStage, - ActivatedHexaEventsAndConditions = new() { { 0, [0] } }, - HexaEventDelayedExecutions = [], - CreateTime = DateTime.UtcNow, - StageUniqueId = req.StageUniqueId, - - EnemyKillCountByUniqueId = [] - } - */ + return campaignChapterExcel.Id; + } } -} +} \ No newline at end of file diff --git a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Character.cs b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Character.cs index d77e089..ce73b38 100644 --- a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Character.cs +++ b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Character.cs @@ -1,5 +1,7 @@ -using SCHALE.Common.Database; +using Microsoft.EntityFrameworkCore; +using SCHALE.Common.Database; using SCHALE.Common.Database.ModelExtensions; +using SCHALE.Common.FlatData; using SCHALE.Common.NetworkProtocol; using SCHALE.GameServer.Services; @@ -24,6 +26,67 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers return new CharacterSetFavoritesResponse(); } + [ProtocolHandler(Protocol.Character_UpdateSkillLevel)] + public ResponsePacket CharacterSkillLevelUpdateHandler(CharacterSkillLevelUpdateRequest req) + { + //TODO: implement decrease item response & better skillslot implementation + var account = sessionKeyService.GetAccount(req.SessionKey); + var targetCharacter = account.Characters.FirstOrDefault(x => x.ServerId == req.TargetCharacterDBId); + + if (req.SkillSlot.ToString().StartsWith("ExSkill", StringComparison.OrdinalIgnoreCase)) + { + targetCharacter.ExSkillLevel = req.Level; + } else if (req.SkillSlot.ToString().StartsWith("PublicSkill", StringComparison.OrdinalIgnoreCase)) + { + targetCharacter.PublicSkillLevel = req.Level; + } else if (req.SkillSlot.ToString().StartsWith("Passive", StringComparison.OrdinalIgnoreCase)) + { + targetCharacter.PassiveSkillLevel = req.Level; + } else if (req.SkillSlot.ToString().StartsWith("ExtraPassive", StringComparison.OrdinalIgnoreCase)) + { + targetCharacter.ExtraPassiveSkillLevel = req.Level; + } + context.SaveChanges(); + + return new CharacterSkillLevelUpdateResponse() + { + CharacterDB = targetCharacter, + // ParcelResultDB = new() { } + }; + } + + [ProtocolHandler(Protocol.Character_BatchSkillLevelUpdate)] + public ResponsePacket UpdateBatchSkillLevelHandler(CharacterBatchSkillLevelUpdateRequest req) + { + //TODO: implement decrease item response & better skillslot implementation + var account = sessionKeyService.GetAccount(req.SessionKey); + var targetCharacter = account.Characters.FirstOrDefault(x => x.ServerId == req.TargetCharacterDBId); + + foreach (var skillReq in req.SkillLevelUpdateRequestDBs) + { + if (skillReq.SkillSlot.ToString().StartsWith("ExSkill", StringComparison.OrdinalIgnoreCase)) + { + targetCharacter.ExSkillLevel = skillReq.Level; + } else if (skillReq.SkillSlot.ToString().StartsWith("PublicSkill", StringComparison.OrdinalIgnoreCase)) + { + targetCharacter.PublicSkillLevel = skillReq.Level; + } else if (skillReq.SkillSlot.ToString().StartsWith("Passive", StringComparison.OrdinalIgnoreCase)) + { + targetCharacter.PassiveSkillLevel = skillReq.Level; + } else if (skillReq.SkillSlot.ToString().StartsWith("ExtraPassive", StringComparison.OrdinalIgnoreCase)) + { + targetCharacter.ExtraPassiveSkillLevel = skillReq.Level; + } + } + context.SaveChanges(); + + return new CharacterBatchSkillLevelUpdateResponse() + { + CharacterDB = targetCharacter, + // ParcelResultDB = new() { } + }; + } + [ProtocolHandler(Protocol.Character_UnlockWeapon)] public ResponsePacket UnlockWeaponHandler(CharacterUnlockWeaponRequest req) { @@ -63,5 +126,238 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers CharacterDB = targetCharacter }; } + + [ProtocolHandler(Protocol.Character_ExpGrowth)] + public ResponsePacket ExpGrowthHandler(CharacterExpGrowthRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + var targetCharacter = account.Characters.FirstOrDefault(x => x.ServerId == req.TargetCharacterServerId); + var dataList = excelTableService.GetTable().UnPack().DataList; + + long addExp = 0; + long previousExp = 0; + long exp = targetCharacter.Exp; + var consumeResult = new ConsumeResultDB + { + UsedItemServerIdAndRemainingCounts = [], + }; + var accountCurrency = account.Currencies.First(); + + var itemData = new Dictionary + { + { 10, (350, 50) }, + { 11, (3500, 500) }, + { 12, (14000, 2000) }, + { 13, (70000, 10000) } + }; + + for (int i = 0; i < req.ConsumeRequestDB.ConsumeItemServerIdAndCounts.Count; i++) + { + var item = account.Items.FirstOrDefault(x => x.ServerId == req.ConsumeRequestDB.ConsumeItemServerIdAndCounts.ElementAt(i).Key); + if (itemData.TryGetValue(item.UniqueId, out var data)) + { + addExp += req.ConsumeRequestDB.ConsumeItemServerIdAndCounts.ElementAt(i).Value * data.exp; + accountCurrency.CurrencyDict[CurrencyTypes.Gold] -= req.ConsumeRequestDB.ConsumeItemServerIdAndCounts.ElementAt(i).Value * data.gold; + accountCurrency.UpdateTimeDict[CurrencyTypes.Gold] = DateTime.Now; + item.StackCount -= req.ConsumeRequestDB.ConsumeItemServerIdAndCounts.ElementAt(i).Value; + consumeResult.UsedItemServerIdAndRemainingCounts.Add(item.ServerId, item.StackCount); + } + } + + if (targetCharacter.Level == 1) previousExp = exp + addExp; + else previousExp = dataList[targetCharacter.Level - 2].TotalExp + exp + addExp; + + foreach (var data in dataList) + { + if (previousExp > data.TotalExp && targetCharacter.Level < dataList.Count) targetCharacter.Level++; + else if (previousExp == data.TotalExp) + { + targetCharacter.Level = data.Level; + break; + } else if (previousExp < data.TotalExp) + { + targetCharacter.Level = data.Level; + targetCharacter.Exp = previousExp - data.TotalExp + data.Exp; + break; + } + } + context.Entry(accountCurrency).State = EntityState.Modified; + context.SaveChanges(); + + return new CharacterExpGrowthResponse() + { + CharacterDB = targetCharacter, + ConsumeResultDB = consumeResult, + AccountCurrencyDB = accountCurrency + }; + } + + [ProtocolHandler(Protocol.Character_Transcendence)] + public ResponsePacket TranscendenceHandler(CharacterTranscendenceRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + var targetCharacter = account.Characters.FirstOrDefault(x => x.ServerId == req.TargetCharacterServerId); + var item = account.Items.FirstOrDefault(x => x.AccountServerId == req.SessionKey.AccountServerId && x.UniqueId == targetCharacter.UniqueId); + var currency = account.Currencies.First(); + + var itemNeeded = targetCharacter.StarGrade switch + { + 1 => 30, + 2 => 80, + 3 => 100, + 4 => 120, + _ => 0 + }; + + var currencyNeeded = targetCharacter.StarGrade switch + { + 1 => 10000, + 2 => 40000, + 3 => 200000, + 4 => 1000000, + _ => 0 + }; + + targetCharacter.StarGrade++; + item.StackCount -= itemNeeded; + currency.CurrencyDict[CurrencyTypes.Gold] -= currencyNeeded; + currency.UpdateTimeDict[CurrencyTypes.Gold] = DateTime.Now; + context.Entry(currency).State = EntityState.Modified; + context.SaveChanges(); + + return new CharacterTranscendenceResponse() + { + CharacterDB = targetCharacter, + ParcelResultDB = new() + { + AccountCurrencyDB = currency, + ItemDBs = new Dictionary { { item.UniqueId, item } } + } + }; + } + + [ProtocolHandler(Protocol.Character_WeaponExpGrowth)] + public ResponsePacket WeaponExpGrowthHandler(CharacterWeaponExpGrowthRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + var targetCharacter = account.Characters.FirstOrDefault(x => x.ServerId == req.TargetCharacterServerId); + var weapon = account.Weapons.FirstOrDefault(x => x.AccountServerId == req.SessionKey.AccountServerId && x.UniqueId == targetCharacter.UniqueId); + var levelTable = excelTableService.GetTable().UnPack().DataList; + var characterTable = excelTableService.GetTable().UnPack().DataList; + + long addExp = 0; + long previousExp = 0; + long exp = weapon.Exp; + var charWeaponType = characterTable.Find(x => x.Id == targetCharacter.UniqueId).WeaponType_; + var accountCurrency = account.Currencies.First(); + Dictionary equipmentData = []; + + var eqData = new Dictionary + { + { 10, (2700, 10, 15, [WeaponType.SMG, WeaponType.SG, WeaponType.HG, WeaponType.FT]) }, + { 20, (2700, 10, 15, [WeaponType.AR, WeaponType.GL, WeaponType.RL]) }, + { 30, (2700, 10, 15, [WeaponType.MG, WeaponType.SR, WeaponType.RG, WeaponType.MT]) }, + { 40, (2700, 10, 15, [WeaponType.None_]) }, + + { 11, (13500, 50, 75, [WeaponType.SMG, WeaponType.SG, WeaponType.HG, WeaponType.FT]) }, + { 21, (13500, 50, 75, [WeaponType.AR, WeaponType.GL, WeaponType.RL]) }, + { 31, (13500, 50, 75, [WeaponType.MG, WeaponType.SR, WeaponType.RG, WeaponType.MT]) }, + { 41, (13500, 50, 75, [WeaponType.None_]) }, + + { 12, (36000, 200, 300, [WeaponType.SMG, WeaponType.SG, WeaponType.HG, WeaponType.FT]) }, + { 22, (36000, 200, 300, [WeaponType.AR, WeaponType.GL, WeaponType.RL]) }, + { 32, (36000, 200, 300, [WeaponType.MG, WeaponType.SR, WeaponType.RG, WeaponType.MT]) }, + { 42, (36000, 200, 300, [WeaponType.None_]) }, + + { 13, (270000, 1000, 1500, [WeaponType.SMG, WeaponType.SG, WeaponType.HG, WeaponType.FT]) }, + { 23, (270000, 1000, 1500, [WeaponType.AR, WeaponType.GL, WeaponType.RL]) }, + { 33, (270000, 1000, 1500, [WeaponType.MG, WeaponType.SR, WeaponType.RG, WeaponType.MT]) }, + { 43, (270000, 1000, 1500, [WeaponType.None_]) } + }; + + for (int i = 0; i < req.ConsumeUniqueIdAndCounts.Count; i++) + { + var eq = account.Equipment.FirstOrDefault(x => x.UniqueId == req.ConsumeUniqueIdAndCounts.ElementAt(i).Key); + if (eqData.TryGetValue(eq.UniqueId, out var data)) + { + if (data.weaponType.Contains(charWeaponType) || data.weaponType.Contains(WeaponType.None_)) addExp += req.ConsumeUniqueIdAndCounts.ElementAt(i).Value * data.expBonus; + else addExp += req.ConsumeUniqueIdAndCounts.ElementAt(i).Value * data.exp; + accountCurrency.CurrencyDict[CurrencyTypes.Gold] -= req.ConsumeUniqueIdAndCounts.ElementAt(i).Value * data.gold; + accountCurrency.UpdateTimeDict[CurrencyTypes.Gold] = DateTime.Now; + eq.StackCount -= req.ConsumeUniqueIdAndCounts.ElementAt(i).Value; + equipmentData.Add(eq.UniqueId, eq); + } + } + + if (weapon.Level == 1) previousExp = exp + addExp; + else previousExp = levelTable[weapon.Level - 2].TotalExp + exp + addExp; + + foreach (var data in levelTable) + { + if (previousExp > data.TotalExp && weapon.Level < 50) weapon.Level++; + else if (previousExp == data.TotalExp) + { + weapon.Level = data.Level; + break; + } else if (previousExp < data.TotalExp) + { + weapon.Level = data.Level; + weapon.Exp = previousExp - data.TotalExp + data.Exp; + break; + } + } + context.Entry(accountCurrency).State = EntityState.Modified; + context.SaveChanges(); + + return new CharacterWeaponExpGrowthResponse() + { + ParcelResultDB = new() + { + AccountCurrencyDB = accountCurrency, + WeaponDBs = new List { weapon }, + EquipmentDBs = equipmentData + } + }; + } + + [ProtocolHandler(Protocol.Character_WeaponTranscendence)] + public ResponsePacket WeaponTranscendenceHandler(CharacterWeaponTranscendenceRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + var targetCharacter = account.Characters.FirstOrDefault(x => x.ServerId == req.TargetCharacterServerId); + var weapon = account.Weapons.FirstOrDefault(x => x.AccountServerId == req.SessionKey.AccountServerId && x.UniqueId == targetCharacter.UniqueId); + var item = account.Items.FirstOrDefault(x => x.AccountServerId == req.SessionKey.AccountServerId && x.UniqueId == targetCharacter.UniqueId); + var currency = account.Currencies.First(); + + var itemNeeded = weapon.StarGrade switch + { + 1 => 120, + 2 => 180, + _ => 0 + }; + + var currencyNeeded = weapon.StarGrade switch + { + 1 => 1000000, + 2 => 1500000, + _ => 0 + }; + + weapon.StarGrade++; + item.StackCount -= itemNeeded; + currency.CurrencyDict[CurrencyTypes.Gold] -= currencyNeeded; + currency.UpdateTimeDict[CurrencyTypes.Gold] = DateTime.Now; + context.Entry(currency).State = EntityState.Modified; + context.SaveChanges(); + + return new CharacterWeaponTranscendenceResponse() + { + ParcelResultDB = new() + { + WeaponDBs = new List { weapon }, + ItemDBs = new Dictionary { { item.UniqueId, item } } + } + }; + } } } diff --git a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/CharacterGear.cs b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/CharacterGear.cs index 4ceef8e..bf9066e 100644 --- a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/CharacterGear.cs +++ b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/CharacterGear.cs @@ -3,6 +3,7 @@ using SCHALE.Common.Database.ModelExtensions; using SCHALE.Common.FlatData; using SCHALE.Common.NetworkProtocol; using SCHALE.GameServer.Services; +using Serilog; namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers { @@ -24,9 +25,9 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers { var account = sessionKeyService.GetAccount(req.SessionKey); - var gearExcelTable = excelTableService.GetTable().UnPack().DataList; - var targetCharacter = account.Characters.FirstOrDefault(x => x.ServerId == req.CharacterServerId); + var gearExcelTable = excelTableService.GetExcelList("CharacterGearDBSchema"); + var targetCharacter = account.Characters.FirstOrDefault(x => x.ServerId == req.CharacterServerId); var gearId = gearExcelTable.FirstOrDefault(x => x.CharacterId == targetCharacter.UniqueId).Id; var newGear = new GearDB() diff --git a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Echelon.cs b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Echelon.cs index cbdbe6e..2db9fb2 100644 --- a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Echelon.cs +++ b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Echelon.cs @@ -25,7 +25,7 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers { var account = sessionKeyService.GetAccount(req.SessionKey); - return new EchelonListResponse() { EchelonDBs = [.. account.Echelons] }; + return new EchelonListResponse() { EchelonDBs = [.. account.Echelons], ArenaEchelonDB = new() }; } [ProtocolHandler(Protocol.Echelon_Save)] diff --git a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Mission.cs b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Mission.cs index 3578485..2b11b23 100644 --- a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Mission.cs +++ b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Mission.cs @@ -19,7 +19,12 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers [ProtocolHandler(Protocol.Mission_Sync)] public ResponsePacket SyncHandler(MissionSyncRequest req) { - return new MissionSyncResponse(); + var account = sessionKeyService.GetAccount(req.SessionKey); + + return new MissionSyncResponse() + { + MissionProgressDBs = [.. account.MissionProgresses] + }; } [ProtocolHandler(Protocol.Mission_List)] diff --git a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/MultiFloorRaid.cs b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/MultiFloorRaid.cs index 52b6837..b01a3d8 100644 --- a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/MultiFloorRaid.cs +++ b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/MultiFloorRaid.cs @@ -20,27 +20,64 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers [ProtocolHandler(Protocol.MultiFloorRaid_Sync)] public ResponsePacket SyncHandler(MultiFloorRaidSyncRequest req) { + var raidList = sessionKeyService.GetAccount(req.SessionKey).MultiFloorRaids.ToList(); return new MultiFloorRaidSyncResponse() { - MultiFloorRaidDBs = [ - new() { - SeasonId = 2, - ClearBattleFrame = -1 - } - ] + MultiFloorRaidDBs = raidList.Count == 0 ? new List() { new() { SeasonId = (long)req.SeasonId } } : raidList, }; } [ProtocolHandler(Protocol.MultiFloorRaid_EnterBattle)] public ResponsePacket EnterBattleHandler(MultiFloorRaidEnterBattleRequest req) { - return new MultiFloorRaidEnterBattleResponse(); + return new MultiFloorRaidEnterBattleResponse() + { + AssistCharacterDBs = new() + }; } [ProtocolHandler(Protocol.MultiFloorRaid_EndBattle)] public ResponsePacket EndBattleHandler(MultiFloorRaidEndBattleRequest req) { - return new MultiFloorRaidEndBattleResponse(); + var account = sessionKeyService.GetAccount(req.SessionKey); + MultiFloorRaidDB db = new() { SeasonId = req.SeasonId }; + + if (!req.Summary.IsAbort && req.Summary.EndType == BattleEndType.Clear) + { + if (account.MultiFloorRaids.Any(x => x.AccountServerId == req.AccountId)) + { + db = account.MultiFloorRaids.Where(x => x.AccountServerId == req.AccountId).First(); + } else + { + account.MultiFloorRaids.Add(db); + } + + db.SeasonId = req.SeasonId; + db.ClearedDifficulty = req.Difficulty; + db.LastClearDate = DateTime.Now; + db.RewardDifficulty = req.Difficulty; + db.LastRewardDate = DateTime.Now; + db.ClearBattleFrame = req.Summary.EndFrame; + + context.SaveChanges(); + } + + return new MultiFloorRaidEndBattleResponse() + { + MultiFloorRaidDB = db, + ParcelResultDB = new() + }; + } + + [ProtocolHandler(Protocol.MultiFloorRaid_ReceiveReward)] + public ResponsePacket RecieveRewardHandler(MultiFloorRaidEndBattleRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + return new MultiFloorRaidEndBattleResponse() + { + MultiFloorRaidDB = sessionKeyService.GetAccount(req.SessionKey).MultiFloorRaids.LastOrDefault() ?? new(), + ParcelResultDB = new() + }; } } diff --git a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Scenario.cs b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Scenario.cs index 7797b41..1ab7f31 100644 --- a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Scenario.cs +++ b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Scenario.cs @@ -34,9 +34,26 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers [ProtocolHandler(Protocol.Scenario_GroupHistoryUpdate)] public ResponsePacket GroupHistoryUpdateHandler(ScenarioGroupHistoryUpdateRequest req) { - return new ScenarioGroupHistoryUpdateResponse(); + var account = sessionKeyService.GetAccount(req.SessionKey); + if (!account.ScenarioGroups.Any(x => x.ScenarioGroupUqniueId == req.ScenarioGroupUniqueId)) + { + account.ScenarioGroups.Add(new() + { + AccountServerId = req.AccountId, + ScenarioGroupUqniueId = req.ScenarioGroupUniqueId, + ScenarioType = req.ScenarioType, + ClearDateTime = DateTime.Now + }); + + context.SaveChanges(); + } + + return new ScenarioGroupHistoryUpdateResponse() + { + ScenarioGroupHistoryDB = account.ScenarioGroups.First(x => x.ScenarioGroupUqniueId == req.ScenarioGroupUniqueId), + }; } - + [ProtocolHandler(Protocol.Scenario_LobbyStudentChange)] public ResponsePacket LobbyStudentChangeHandler(ScenarioLobbyStudentChangeRequest req) { diff --git a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/SchoolDungeon.cs b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/SchoolDungeon.cs new file mode 100644 index 0000000..dba1d32 --- /dev/null +++ b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/SchoolDungeon.cs @@ -0,0 +1,152 @@ +using SCHALE.Common.Database; +using SCHALE.Common.Database.ModelExtensions; +using SCHALE.Common.FlatData; +using SCHALE.Common.Migrations.SqlServerMigrations; +using SCHALE.Common.NetworkProtocol; +using SCHALE.GameServer.Managers; +using SCHALE.GameServer.Services; +using Microsoft.EntityFrameworkCore; +using Serilog; +using static Microsoft.EntityFrameworkCore.DbLoggerCategory.Database; + +namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers +{ + public class SchoolDungeon : ProtocolHandlerBase + { + private readonly ISessionKeyService sessionKeyService; + private readonly SCHALEContext context; + private readonly ExcelTableService excelTableService; + + public SchoolDungeon(IProtocolHandlerFactory protocolHandlerFactory, ISessionKeyService _sessionKeyService, SCHALEContext _context, ExcelTableService _excelTableService) : base(protocolHandlerFactory) + { + sessionKeyService = _sessionKeyService; + context = _context; + excelTableService = _excelTableService; + } + + [ProtocolHandler(Protocol.SchoolDungeon_List)] + public ResponsePacket ListHandler(SchoolDungeonListRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + + return new SchoolDungeonListResponse() + { + SchoolDungeonStageHistoryDBList = [.. account.SchoolDungeonStageHistories], + }; + } + + [ProtocolHandler(Protocol.SchoolDungeon_EnterBattle)] + public ResponsePacket EnterBattleHandler(SchoolDungeonEnterBattleRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + + // Consume currencies + var schoolDungeonExcel = excelTableService.GetExcelList("SchoolDungeonStageDBSchema").Where(x => x.StageId == req.StageUniqueId).ToList().FirstOrDefault().UnPack(); + + if (schoolDungeonExcel == null) + { + Log.Information($"could not find {req.StageUniqueId} in SchoolDungeonStageDBSchema"); + + return null; + } + + var currencyDict = account.Currencies.First(); + + List costIdList = schoolDungeonExcel.StageEnterCostId; + List costAmountList = schoolDungeonExcel.StageEnterCostAmount; + for (int i = 0; i < costIdList.Count; i++) + { + var targetCurrencyType = (CurrencyTypes)costIdList[i]; + currencyDict.CurrencyDict[targetCurrencyType] -= costAmountList[i]; + currencyDict.UpdateTimeDict[targetCurrencyType] = DateTime.Now; + } + + context.Entry(currencyDict).State = EntityState.Modified; + context.SaveChanges(); + + return new SchoolDungeonEnterBattleResponse() + { + ParcelResultDB = new() + { + AccountCurrencyDB = currencyDict, + } + }; + } + + [ProtocolHandler(Protocol.SchoolDungeon_BattleResult)] + public ResponsePacket BattleResultHandler(SchoolDungeonBattleResultRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + var currencies = account.Currencies.First(); + var schoolDungeonExcel = excelTableService.GetExcelList("SchoolDungeonStageDBSchema").Select(excel => excel.UnPack()).ToList().Where(x => x.StageId == req.StageUniqueId).ToList().FirstOrDefault(); ; + + if (schoolDungeonExcel == null) + { + Log.Information($"The school dungeon with StageUniqueId: {req.StageUniqueId} was not found."); + return null; + } + + SchoolDungeonStageHistoryDB historyDb = new(); + ParcelResultDB parcelResultDb = new() + { + AccountCurrencyDB = currencies, + DisplaySequence = new() + }; + + if (!req.Summary.IsAbort && req.Summary.EndType == BattleEndType.Clear) + { + historyDb = SchoolDungeonService.CreateSchoolDungeonStageHistoryDB(req.AccountId, schoolDungeonExcel); + SchoolDungeonService.CalcStarGoals(schoolDungeonExcel, historyDb, req.Summary); + + if (account.SchoolDungeonStageHistories.Any(x => x.StageUniqueId == req.StageUniqueId)) + { + var existStageHistory = account.SchoolDungeonStageHistories.Where(x => x.StageUniqueId == req.StageUniqueId).First(); + for(var i = 0; i < existStageHistory.StarFlags.Length; i++) + { + existStageHistory.StarFlags[i] = existStageHistory.StarFlags[i] ? true : historyDb.StarFlags[i]; + } + + context.Entry(account.WeekDungeonStageHistories.First()).State = EntityState.Modified; + } + else + { + account.SchoolDungeonStageHistories.Add(historyDb); + } + } + else + { + // Return currencies + List costIdList = schoolDungeonExcel.StageEnterCostId; + List costAmountList = schoolDungeonExcel.StageEnterCostAmount; + + for (int i = 0; i < costIdList.Count; i++) + { + var targetCurrencyType = (CurrencyTypes)costIdList[i]; + currencies.CurrencyDict[targetCurrencyType] += costAmountList[i]; + currencies.UpdateTimeDict[targetCurrencyType] = DateTime.Now; + + parcelResultDb.DisplaySequence.Add(new() + { + Amount = costAmountList[i], + Key = new() + { + Type = ParcelType.Currency, + Id = costIdList[i] + } + }); + } + + context.Entry(currencies).State = EntityState.Modified; + } + + context.SaveChanges(); + + return new SchoolDungeonBattleResultResponse() + { + SchoolDungeonStageHistoryDB = historyDb, + LevelUpCharacterDBs = new(), + ParcelResultDB = parcelResultDb + }; + } + } +} diff --git a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Shop.cs b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Shop.cs index 999e511..83fe017 100644 --- a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Shop.cs +++ b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/Shop.cs @@ -15,16 +15,18 @@ namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers private readonly SCHALEContext _context; private readonly SharedDataCacheService _sharedData; private readonly ILogger _logger; + private readonly ExcelTableService _excelTableService; // TODO: temp storage until gacha management public List SavedGachaResults { get; set; } = []; - public Shop(IProtocolHandlerFactory protocolHandlerFactory, ISessionKeyService sessionKeyService, SCHALEContext context, SharedDataCacheService sharedData, ILogger logger) : base(protocolHandlerFactory) + public Shop(IProtocolHandlerFactory protocolHandlerFactory, ISessionKeyService sessionKeyService, SCHALEContext context, SharedDataCacheService sharedData, ILogger logger, ExcelTableService excelTableService) : base(protocolHandlerFactory) { _sessionKeyService = sessionKeyService; _context = context; _sharedData = sharedData; _logger = logger; + _excelTableService = excelTableService; } [ProtocolHandler(Protocol.Shop_BeforehandGachaGet)] diff --git a/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/WeekDungeon.cs b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/WeekDungeon.cs new file mode 100644 index 0000000..59f9726 --- /dev/null +++ b/SCHALE.GameServer/Controllers/Api/ProtocolHandlers/WeekDungeon.cs @@ -0,0 +1,151 @@ +using SCHALE.Common.Database; +using SCHALE.Common.Database.ModelExtensions; +using SCHALE.Common.FlatData; +using SCHALE.Common.Migrations.SqlServerMigrations; +using SCHALE.Common.NetworkProtocol; +using SCHALE.GameServer.Managers; +using SCHALE.GameServer.Services; +using Microsoft.EntityFrameworkCore; +using Serilog; + +namespace SCHALE.GameServer.Controllers.Api.ProtocolHandlers +{ + public class WeekDungeon : ProtocolHandlerBase + { + private readonly ISessionKeyService sessionKeyService; + private readonly SCHALEContext context; + private readonly ExcelTableService excelTableService; + + public WeekDungeon(IProtocolHandlerFactory protocolHandlerFactory, ISessionKeyService _sessionKeyService, SCHALEContext _context, ExcelTableService _excelTableService) : base(protocolHandlerFactory) + { + sessionKeyService = _sessionKeyService; + context = _context; + excelTableService = _excelTableService; + } + + [ProtocolHandler(Protocol.WeekDungeon_List)] + public ResponsePacket ListHandler(WeekDungeonListRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + + Log.Information("account.WeekDungeonStageHistories count: " + account.WeekDungeonStageHistories.Count); + + return new WeekDungeonListResponse() + { + AdditionalStageIdList = new(), + WeekDungeonStageHistoryDBList = [.. account.WeekDungeonStageHistories] + }; + } + + [ProtocolHandler(Protocol.WeekDungeon_EnterBattle)] + public ResponsePacket EnterBattleHandler(WeekDungeonEnterBattleRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + + // Consume currencies + var weekDungeonExcel = excelTableService.GetTable().UnPack().DataList.Where(x => x.StageId == req.StageUniqueId).ToList().First(); + var currencyDict = account.Currencies.First(); + + List costIdList = weekDungeonExcel.StageEnterCostId; + List costAmountList = weekDungeonExcel.StageEnterCostAmount; + for (int i = 0; i < costIdList.Count; i++) + { + var targetCurrencyType = (CurrencyTypes)costIdList[i]; + currencyDict.CurrencyDict[targetCurrencyType] -= costAmountList[i]; + currencyDict.UpdateTimeDict[targetCurrencyType] = DateTime.Now; + } + + context.Entry(account.Currencies.First()).State = EntityState.Modified; + context.SaveChanges(); + + return new WeekDungeonEnterBattleResponse() + { + ParcelResultDB = new() + { + AccountCurrencyDB = account.Currencies.First(), + } + }; + } + + [ProtocolHandler(Protocol.WeekDungeon_BattleResult)] + public ResponsePacket BattleResultHandler(WeekDungeonBattleResultRequest req) + { + var account = sessionKeyService.GetAccount(req.SessionKey); + var currencies = account.Currencies.First(); + var weekDungeonExcel = excelTableService.GetTable().UnPack().DataList.Where(x => x.StageId == req.StageUniqueId).ToList().First(); + WeekDungeonStageHistoryDB historyDb = new(); + ParcelResultDB parcelResultDb = new() + { + AccountCurrencyDB = currencies, + DisplaySequence = new() + }; + + if (!req.Summary.IsAbort && req.Summary.EndType == BattleEndType.Clear) + { + historyDb = WeekDungeonService.CreateWeekDungeonStageHistoryDB(req.AccountId, weekDungeonExcel); + WeekDungeonService.CalcStarGoals(weekDungeonExcel, historyDb, req.Summary, req.Summary.EndType == BattleEndType.Clear); + + if (account.WeekDungeonStageHistories.Any(x => x.StageUniqueId == req.StageUniqueId)) + { + var existStarGoalRecord = account.WeekDungeonStageHistories.Where(x => x.StageUniqueId == req.StageUniqueId).First().StarGoalRecord; + foreach (var goalPair in historyDb.StarGoalRecord) + { + if (existStarGoalRecord.ContainsKey(goalPair.Key)) + { + if(goalPair.Value > existStarGoalRecord[goalPair.Key]) + { + existStarGoalRecord[goalPair.Key] = goalPair.Value; + } + } + else + { + existStarGoalRecord.Add(goalPair.Key, goalPair.Value); + } + } + + context.Entry(account.WeekDungeonStageHistories.First()).State = EntityState.Modified; + + historyDb.StarGoalRecord = existStarGoalRecord; + } + else + { + account.WeekDungeonStageHistories.Add(historyDb); + } + } + else + { + // Return currencies + List costIdList = weekDungeonExcel.StageEnterCostId; + List costAmountList = weekDungeonExcel.StageEnterCostAmount; + + for (int i = 0; i < costIdList.Count; i++) + { + var targetCurrencyType = (CurrencyTypes)costIdList[i]; + currencies.CurrencyDict[targetCurrencyType] += costAmountList[i]; + currencies.UpdateTimeDict[targetCurrencyType] = DateTime.Now; + + parcelResultDb.DisplaySequence.Add(new() + { + Amount = costAmountList[i], + Key = new() + { + Type = ParcelType.Currency, + Id = costIdList[i] + } + }); + } + + context.Entry(currencies).State = EntityState.Modified; + } + + context.SaveChanges(); + + return new WeekDungeonBattleResultResponse() + { + WeekDungeonStageHistoryDB = historyDb, + LevelUpCharacterDBs = new(), + ParcelResultDB = parcelResultDb, + }; + } + } +} diff --git a/SCHALE.GameServer/GameServer.cs b/SCHALE.GameServer/GameServer.cs index 3ccebe7..1b451fc 100644 --- a/SCHALE.GameServer/GameServer.cs +++ b/SCHALE.GameServer/GameServer.cs @@ -21,6 +21,10 @@ namespace SCHALE.GameServer { public static async Task Main(string[] args) { + + //TableService.DumpExcels("E:\\documents\\Decompiling\\Extracted\\BlueArchiveJP\\SCHALE.GameServer.Custom\\SCHALE.GameServer\\SCHALE.GameServer\\bin\\Debug\\net8.0\\Resources\\excel", "E:\\documents\\Decompiling\\Extracted\\BlueArchiveJP\\SCHALE.GameServer.Custom\\SCHALE.GameServer\\SCHALE.GameServer\\bin\\Debug\\net8.0\\Resources\\dump"); + //return; + var config = new ConfigurationBuilder() .SetBasePath(Path.GetDirectoryName(AppContext.BaseDirectory)!) .AddJsonFile("appsettings.json") @@ -68,7 +72,7 @@ namespace SCHALE.GameServer Config.Load(); // Load Excels - await ExcelTableService.LoadExcels(); + await ExcelTableService.LoadResources(); // Load Commands CommandFactory.LoadCommands(); diff --git a/SCHALE.GameServer/SCHALE.GameServer.csproj b/SCHALE.GameServer/SCHALE.GameServer.csproj index d9be2df..251a389 100644 --- a/SCHALE.GameServer/SCHALE.GameServer.csproj +++ b/SCHALE.GameServer/SCHALE.GameServer.csproj @@ -14,6 +14,7 @@ + diff --git a/SCHALE.GameServer/Services/CampaignService.cs b/SCHALE.GameServer/Services/CampaignService.cs new file mode 100644 index 0000000..74203ae --- /dev/null +++ b/SCHALE.GameServer/Services/CampaignService.cs @@ -0,0 +1,57 @@ +using SCHALE.Common.Database; +using SCHALE.Common.FlatData; +using SCHALE.GameServer.Services; + +public class CampaignService +{ + public static CampaignStageHistoryDB CreateStageHistoryDB(long accountServerId, CampaignStageInfo stageInfo) + { + return new CampaignStageHistoryDB() { + AccountServerId = accountServerId, + StageUniqueId = stageInfo.UniqueId, + ChapterUniqueId = stageInfo.ChapterUniqueId, + TacticClearCountWithRankSRecord = 0, + ClearTurnRecord = 0, + Star1Flag = false, + Star2Flag = false, + Star3Flag = false, + LastPlay = DateTime.Now, + TodayPlayCount = 1, + FirstClearRewardReceive = DateTime.Now, + StarRewardReceive = DateTime.Now, + }; + } + + // Original Implementation + public static void CalcStrategySkipStarGoals(CampaignStageHistoryDB historyDB, BattleSummary summary) + { + // All enemies are defeated + var alivedEnemy = 0; + foreach (var enemy in summary.Group02Summary.Heroes) + { + if (enemy.DeadFrame == -1) + { + alivedEnemy++; + } + } + + historyDB.Star1Flag = alivedEnemy == 0; + + // All enemies are defeated in 120 seconds + historyDB.Star2Flag = summary.Group02Summary.Heroes.Last().DeadFrame <= 120 * 30; + + // No one is defeated + var deadHero = 0; + foreach (var hero in summary.Group01Summary.Heroes) + { + if (hero.DeadFrame != -1) + { + deadHero++; + } + } + + historyDB.Star3Flag = deadHero == 0; + + historyDB.ClearTurnRecord = 1; // The game uses this value to determine if the stage has been cleared + } +} \ No newline at end of file diff --git a/SCHALE.GameServer/Services/ExcelTableService.cs b/SCHALE.GameServer/Services/ExcelTableService.cs index a403700..bb52932 100644 --- a/SCHALE.GameServer/Services/ExcelTableService.cs +++ b/SCHALE.GameServer/Services/ExcelTableService.cs @@ -1,4 +1,5 @@ -using System.IO; +using System.Data.SQLite; +using System.IO; using System.Net.Http; using System.Reflection; using System.Text; @@ -6,6 +7,7 @@ using System.Threading.Tasks; using Google.FlatBuffers; using Ionic.Zip; using SCHALE.Common.Crypto; +using SCHALE.Common.Database; using SCHALE.GameServer.Utils; using Serilog; @@ -16,40 +18,71 @@ namespace SCHALE.GameServer.Services { private readonly ILogger logger = _logger; private readonly Dictionary caches = []; + public static string resourceDir = Path.Join(Path.GetDirectoryName(AppContext.BaseDirectory), "Resources"); - public static async Task LoadExcels(string excelDirectory = "") + public static async Task LoadResources() { - var excelZipUrl = $"https://prod-clientpatch.bluearchiveyostar.com/{Config.Instance.VersionId}/TableBundles/Excel.zip"; - - var excelDir = string.IsNullOrWhiteSpace(excelDirectory) - ? Path.Join(Path.GetDirectoryName(AppContext.BaseDirectory), "Resources/excel") - : excelDirectory; - var excelZipPath = Path.Combine(excelDir, "Excel.zip"); + var versionTxtPath = Path.Combine(resourceDir, "version.txt"); - if (Directory.Exists(excelDir)) + if (Directory.Exists(resourceDir)) { - Log.Information("Excels already downloaded, skipping..."); - return; + if(File.Exists(versionTxtPath) && File.ReadAllText(versionTxtPath) == Config.Instance.VersionId) + { + Log.Information("Resources already downloaded, skipping..."); + return; + } else { + Directory.Delete(resourceDir, true); + Log.Information("The version of the resource is different from that of the server and the resource will be downloaded again"); + } } - - Log.Information("Downloading Excels..."); - Directory.CreateDirectory(excelDir); + + Log.Information("Downloading resources, this may take a while..."); + + Directory.CreateDirectory(resourceDir); + + var baseUrl = $"https://prod-clientpatch.bluearchiveyostar.com/{Config.Instance.VersionId}/TableBundles/"; + var tableCatalogName = "TableCatalog.bytes"; + var tableCatalogUrl = baseUrl + tableCatalogName; + var tableCatalogPath = Path.Combine(resourceDir, tableCatalogName); using var client = new HttpClient(); - var zipBytes = await client.GetByteArrayAsync(excelZipUrl); + var downloadList = new List() { "ExcelDB.db", "Excel.zip" }; - File.WriteAllBytes(excelZipPath, zipBytes); - - using (var zip = ZipFile.Read(excelZipPath)) { - zip.Password = Convert.ToBase64String(TableService.CreatePassword(Path.GetFileName(excelZipPath))); - - //Log.Information("password: " + Convert.ToBase64String(TableService.CreatePassword(Path.GetFileName(excelZipPath)))); - - zip.ExtractAll(excelDir, ExtractExistingFileAction.OverwriteSilently); + var downloadedFolderName = "downloaded"; + var downloadedFolderPath = Path.Combine(resourceDir, downloadedFolderName); + if (!Directory.Exists(downloadedFolderPath)) + { + Directory.CreateDirectory(downloadedFolderPath); } - File.Delete(excelZipPath); - Log.Information($"Excel Version {Config.Instance.VersionId} downloaded! Notice that versions higher than r67 currently does not work"); + foreach (var bundle in downloadList) + { + var downloadFileName = bundle; + var downloadUrl = baseUrl + downloadFileName; + var downloadFilePath = Path.Combine(downloadedFolderPath, downloadFileName); + Log.Information($"Downloading {downloadFileName}..."); + File.WriteAllBytes(downloadFilePath, await client.GetByteArrayAsync(downloadUrl)); + + if(Path.GetExtension(downloadFilePath) == ".zip") + { + Log.Information($"Extracting {downloadFileName}..."); + using (var zip = ZipFile.Read(downloadFilePath)) + { + zip.Password = Convert.ToBase64String(TableService.CreatePassword(Path.GetFileName(downloadFilePath))); + zip.ExtractAll(Path.Combine(resourceDir, Path.GetFileNameWithoutExtension(downloadFilePath)), ExtractExistingFileAction.OverwriteSilently); + } + } else + { + File.Move(downloadFilePath, Path.Combine(resourceDir, downloadFileName)); + } + } + + Log.Information($"Deleting {downloadedFolderName} folder..."); + Directory.Delete(downloadedFolderPath, true); + + File.WriteAllText(versionTxtPath, Config.Instance.VersionId); + + Log.Information($"Resource Version {Config.Instance.VersionId} downloaded!"); } /// @@ -58,16 +91,14 @@ namespace SCHALE.GameServer.Services /// /// /// - public T GetTable(bool bypassCache = false, string excelDirectory = "") where T : IFlatbufferObject + public T GetTable(bool bypassCache = false) where T : IFlatbufferObject { var type = typeof(T); if (!bypassCache && caches.TryGetValue(type, out var cache)) return (T)cache; - var excelDir = string.IsNullOrWhiteSpace(excelDirectory) - ? Path.Join(Path.GetDirectoryName(AppContext.BaseDirectory), "Resources/excel") - : excelDirectory; + var excelDir = Path.Combine(resourceDir, "Excel"); var bytesFilePath = Path.Join(excelDir, $"{type.Name.ToLower()}.bytes"); if (!File.Exists(bytesFilePath)) { @@ -83,6 +114,28 @@ namespace SCHALE.GameServer.Services return (T)inst!; } + + public List GetExcelList(string schema) + { + var excelList = new List(); + var type = typeof(T); + using (var dbConnection = new SQLiteConnection($"Data Source = {Path.Join(resourceDir, "ExcelDB.db")}")) + { + dbConnection.Open(); + var command = dbConnection.CreateCommand(); + command.CommandText = $"SELECT Bytes FROM {schema}"; + using (var reader = command.ExecuteReader()) + { + while (reader.Read()) + { + excelList.Add( (T)type.GetMethod( $"GetRootAs{type.Name}", BindingFlags.Static | BindingFlags.Public, [typeof(ByteBuffer)] )! + .Invoke( null, [ new ByteBuffer( (byte[])reader[0] ) ] )); + } + } + } + + return excelList; + } } internal static class ExcelTableServiceExtensions diff --git a/SCHALE.GameServer/Services/SchoolDungeonService.cs b/SCHALE.GameServer/Services/SchoolDungeonService.cs new file mode 100644 index 0000000..eb0a67a --- /dev/null +++ b/SCHALE.GameServer/Services/SchoolDungeonService.cs @@ -0,0 +1,57 @@ +using SCHALE.Common.Database; +using SCHALE.Common.FlatData; +using SCHALE.GameServer.Services; + +public class SchoolDungeonService +{ + public static SchoolDungeonStageHistoryDB CreateSchoolDungeonStageHistoryDB(long accountId, SchoolDungeonStageExcelT excel) + { + return new SchoolDungeonStageHistoryDB() { AccountServerId = accountId, StageUniqueId = excel.StageId }; + } + + public static void CalcStarGoals(SchoolDungeonStageExcelT excel, SchoolDungeonStageHistoryDB historyDB, BattleSummary battleSummary) + { + historyDB.StarFlags = new bool[excel.StarGoal.Count]; + + var starGoalTypes = excel.StarGoal; + var starGoalAmounts = excel.StarGoalAmount; + + for (int i = 0; i < starGoalTypes.Count; i++) + { + var targetGoalType = starGoalTypes[i]; + var targetGoalAmount = starGoalAmounts[i]; + + historyDB.StarFlags[i] = IsStarGoalCleared(targetGoalType, targetGoalAmount, battleSummary); + } + } + + private static bool IsStarGoalCleared(StarGoalType goalType, int goalAmount, BattleSummary battleSummary) + { + var result = false; + + switch (goalType) + { + case StarGoalType.Clear: + result = battleSummary.EndType == BattleEndType.Clear; + break; + + case StarGoalType.AllAlive: + foreach (var hero in battleSummary.Group01Summary.Heroes) + { + if (hero.DeadFrame != -1) + { + return false; + } + } + + result = true; + break; + + case StarGoalType.ClearTimeInSec: + result = battleSummary.EndFrame <= goalAmount * 30; + break; + } + + return result; + } +} \ No newline at end of file diff --git a/SCHALE.GameServer/Services/SharedDataCacheService.cs b/SCHALE.GameServer/Services/SharedDataCacheService.cs index a27da61..3313ae2 100644 --- a/SCHALE.GameServer/Services/SharedDataCacheService.cs +++ b/SCHALE.GameServer/Services/SharedDataCacheService.cs @@ -41,13 +41,13 @@ namespace SCHALE.GameServer.Services IsPlayable: true, IsPlayableCharacter: true, IsDummy: false, - IsNpc: false, - ProductionStep: ProductionStep.Release, + IsNPC: false, + ProductionStep_: ProductionStep.Release, }) .ToList(); - _charaListR = _charaList.Where(x => x.Rarity == Rarity.R).ToList(); - _charaListSR = _charaList.Where(x => x.Rarity == Rarity.SR).ToList(); - _charaListSSR = _charaList.Where(x => x.Rarity == Rarity.SSR).ToList(); + _charaListR = _charaList.Where(x => x.Rarity_ == Rarity.R).ToList(); + _charaListSR = _charaList.Where(x => x.Rarity_ == Rarity.SR).ToList(); + _charaListSSR = _charaList.Where(x => x.Rarity_ == Rarity.SSR).ToList(); _charaListRNormal = _charaListR.Where(x => x.GetStudentType() == StudentType.Normal).ToList(); _charaListSRNormal = _charaListSR.Where(x => x.GetStudentType() == StudentType.Normal).ToList(); _charaListSSRNormal = _charaListSSR.Where(x => x.GetStudentType() == StudentType.Normal).ToList(); diff --git a/SCHALE.GameServer/Services/WeekDungeonService.cs b/SCHALE.GameServer/Services/WeekDungeonService.cs new file mode 100644 index 0000000..3420c60 --- /dev/null +++ b/SCHALE.GameServer/Services/WeekDungeonService.cs @@ -0,0 +1,67 @@ +using SCHALE.Common.Database; +using SCHALE.Common.FlatData; + +public class WeekDungeonService +{ + public static WeekDungeonStageHistoryDB CreateWeekDungeonStageHistoryDB(long accountServerId, WeekDungeonExcelT excel) { + return new WeekDungeonStageHistoryDB() { AccountServerId = accountServerId, StageUniqueId = excel.StageId, StarGoalRecord = new() }; + } + + public static void CalcStarGoals(WeekDungeonExcelT excel, WeekDungeonStageHistoryDB stageHistory, BattleSummary battleSummary, bool clearStage) + { + for (int i = 0; i < excel.StarGoal.Count; i++) + { + stageHistory.StarGoalRecord.Add(excel.StarGoal[i], WeekDungeonService.CalcStarGoal(excel.WeekDungeonType_, + excel.StarGoal[i], excel.StarGoalAmount[i], battleSummary, clearStage)); + } + } + + public static long CalcStarGoal(WeekDungeonType dungeonType, StarGoalType goalType, long goalSeconds, BattleSummary battleSummary, bool clearStage) { + long result = 0; + + switch (goalType) + { + case StarGoalType.Clear: + if (clearStage) + { + result = 1; + } + break; + + case StarGoalType.AllAlive: + result = CalcAllAlive(battleSummary); + break; + + case StarGoalType.GetBoxes: + result = CalcGetBoxes(dungeonType, battleSummary); + break; + + case StarGoalType.ClearTimeInSec: + if (battleSummary.EndFrame <= goalSeconds * 30) + { + result = 1; + } + break; + } + + return result; + } + + public static long CalcAllAlive(BattleSummary battleSummary) { + var allAlive = 1; + foreach(var hero in battleSummary.Group01Summary.Heroes) + { + if(hero.DeadFrame != -1) + { + allAlive = 0; + break; + } + } + + return allAlive; + } + + public static long CalcGetBoxes(WeekDungeonType dungeonType, BattleSummary battleSummary) { + return battleSummary.WeekDungeonSummary.FindGifts.First().ClearCount; + } +} \ No newline at end of file diff --git a/SCHALE.GameServer/Utils/InventoryUtils.cs b/SCHALE.GameServer/Utils/InventoryUtils.cs index 9a4d6a0..ccb1f77 100644 --- a/SCHALE.GameServer/Utils/InventoryUtils.cs +++ b/SCHALE.GameServer/Utils/InventoryUtils.cs @@ -11,21 +11,60 @@ namespace SCHALE.Common.Utils { public static class InventoryUtils { - public static void AddAllCharacters(IrcConnection connection) + public static void AddAllCharacters(IrcConnection connection, bool maxed = true) { var account = connection.Account; var context = connection.Context; var characterExcel = connection.ExcelTableService.GetTable().UnPack().DataList; + var defaultCharacterExcel = connection.ExcelTableService.GetTable().UnPack().DataList; + var characterLevelExcel = connection.ExcelTableService.GetTable().UnPack().DataList; + //var favorLevelExcel = connection.ExcelTableService.GetTable().UnPack().DataList; + // was moved to db, fix later hardcode now + var allCharacters = characterExcel.Where(x => x is { IsPlayable: true, IsPlayableCharacter: true, - IsNpc: false, - ProductionStep: ProductionStep.Release, + IsNPC: false, + ProductionStep_: ProductionStep.Release, } - ).Select(x => CreateMaxCharacterFromId(x.Id)).ToList(); + ) + .Where(x => !account.Characters.Any(y => y.UniqueId == x.Id)) + .Select(x => { + return new CharacterDB() + { + UniqueId = x.Id, + StarGrade = maxed ? x.MaxStarGrade : x.DefaultStarGrade, + Level = maxed ? characterLevelExcel.Count : 1, + Exp = 0, + PublicSkillLevel = maxed ? 10 : 1, + ExSkillLevel = maxed ? 5 : 1, + PassiveSkillLevel = maxed ? 10 : 1, + ExtraPassiveSkillLevel = maxed ? 10 : 1, + LeaderSkillLevel = 1, + FavorRank = maxed ? 200 : 1, + PotentialStats = { { 1, 0 }, { 2, 0 }, { 3, 0 } }, + EquipmentServerIds = [0, 0, 0] + }; + }).ToList(); + + foreach (var character in account.Characters.Where(x => characterExcel.Any(y => y.Id == x.UniqueId))) + { + var updateCharacter = character; + updateCharacter.StarGrade = maxed ? characterExcel.FirstOrDefault(y => y.Id == character.UniqueId).MaxStarGrade : characterExcel.FirstOrDefault(y => y.Id == character.UniqueId).DefaultStarGrade; + updateCharacter.PublicSkillLevel = maxed ? 10 : 1; + updateCharacter.ExSkillLevel = maxed ? 5 : 1; + updateCharacter.PassiveSkillLevel = maxed ? 10 : 1; + updateCharacter.ExtraPassiveSkillLevel = maxed ? 10 : 1; + updateCharacter.Level = maxed ? characterLevelExcel.Count : 1; + updateCharacter.Exp = 0; + updateCharacter.FavorRank = maxed ? 200 : 1; + updateCharacter.PotentialStats = new Dictionary { { 1, 0 }, { 2, 0 }, { 3, 0 } }; + updateCharacter.EquipmentServerIds = [0, 0, 0]; + connection.Context.Characters.Update(updateCharacter); + } account.AddCharacters(context, [.. allCharacters]); context.SaveChanges(); @@ -33,15 +72,16 @@ namespace SCHALE.Common.Utils connection.SendChatMessage("Added all characters!"); } - public static void AddAllEquipment(IrcConnection connection) + public static void AddAllEquipment(IrcConnection connection, bool maxed = true) { var equipmentExcel = connection.ExcelTableService.GetTable().UnPack().DataList; + var allEquipment = equipmentExcel.Select(x => { return new EquipmentDB() { UniqueId = x.Id, - Level = 1, + Level = 1, // don't use stackable max for now, ItemAutoSync still causing problems for those upgrade things StackCount = 7777, // ~ 90,000 cap, auto converted if over }; }).ToList(); @@ -49,6 +89,31 @@ namespace SCHALE.Common.Utils connection.Account.AddEquipment(connection.Context, [.. allEquipment]); connection.Context.SaveChanges(); + // current character equipment implementation doesn't work + /*var characterExcel = connection.ExcelTableService.GetTable().UnPack().DataList; + var allCharacterEquipment = characterExcel.FindAll(x => connection.Account.Characters.Any(y => y.UniqueId == x.Id)).ToList(); + foreach (var characterEquipmentData in allCharacterEquipment) + { + var characterEquipment = characterEquipmentData.EquipmentSlot.Select(x => + { + var equipmentData = equipmentExcel.FirstOrDefault(y => y.EquipmentCategory == x && y.MaxLevel == 65 && y.RecipeId == 0 && y.TierInit == 9); + return new EquipmentDB() + { + UniqueId = equipmentData.Id, + Level = maxed ? equipmentData.MaxLevel : 0, + Tier = maxed ? (int)equipmentData.TierInit : 1, + StackCount = 1, + BoundCharacterServerId = connection.Account.Characters.FirstOrDefault(y => y.UniqueId == characterEquipmentData.Id).ServerId + }; + }); + connection.Account.AddEquipment(connection.Context, [.. characterEquipment]); + connection.Context.SaveChanges(); + connection.Account.Characters.FirstOrDefault(x => x.UniqueId == characterEquipmentData.Id).EquipmentServerIds.Clear(); + connection.Account.Characters.FirstOrDefault(x => x.UniqueId == characterEquipmentData.Id).EquipmentServerIds.AddRange(characterEquipment.Select(x => x.ServerId)); + } + connection.Context.SaveChanges(); + */ + connection.SendChatMessage("Added all equipment!"); } @@ -60,7 +125,7 @@ namespace SCHALE.Common.Utils return new ItemDB() { UniqueId = x.Id, - StackCount = 1000, + StackCount = 1000 }; }).ToList(); @@ -70,11 +135,12 @@ namespace SCHALE.Common.Utils connection.SendChatMessage("Added all items!"); } - public static void AddAllWeapons(IrcConnection connection) + public static void AddAllWeapons(IrcConnection connection, bool maxed = true) { var account = connection.Account; var context = connection.Context; + var weaponExcel = connection.ExcelTableService.GetTable().UnPack().DataList; // only for current characters var allWeapons = account.Characters.Select(x => { @@ -82,8 +148,8 @@ namespace SCHALE.Common.Utils { UniqueId = x.UniqueId, BoundCharacterServerId = x.ServerId, - StarGrade = 3, - Level = 50 + StarGrade = maxed ? weaponExcel.FirstOrDefault(y => y.Id == x.UniqueId).Unlock.TakeWhile(y => y).Count() : 1, + Level = maxed ? 50 : 1 }; }); @@ -93,24 +159,27 @@ namespace SCHALE.Common.Utils connection.SendChatMessage("Added all weapons!"); } - public static void AddAllGears(IrcConnection connection) + public static void AddAllGears(IrcConnection connection, bool maxed = true) { var account = connection.Account; var context = connection.Context; - var gearExcel = connection.ExcelTableService.GetTable().UnPack().DataList; + //var uniqueGearExcel = connection.ExcelTableService.GetTable().UnPack().DataList; + var uniqueGearExcel = connection.ExcelTableService.GetExcelList("CharacterGearDBSchema"); - var allGears = gearExcel.Where(x => x.Tier == 2 && context.Characters.Any(y => y.UniqueId == x.CharacterId)).Select(x => new GearDB() - { - UniqueId = x.Id, - Level = 1, - SlotIndex = 4, - BoundCharacterServerId = context.Characters.FirstOrDefault(z => z.UniqueId == x.CharacterId).ServerId, - Tier = 2, - Exp = 0, - }); + var uniqueGear = uniqueGearExcel.Where(x => x.Tier == 2 && context.Characters.Any(y => y.UniqueId == x.CharacterId)).Select(x => + new GearDB() + { + UniqueId = x.Id, + Level = 1, + SlotIndex = 4, + BoundCharacterServerId = context.Characters.FirstOrDefault(z => z.UniqueId == x.CharacterId).ServerId, + Tier = maxed ? 2 : 1, + Exp = 0, + } + ); - account.AddGears(context, [.. allGears]); + account.AddGears(context, [.. uniqueGear]); context.SaveChanges(); connection.SendChatMessage("Added all gears!"); @@ -121,24 +190,14 @@ namespace SCHALE.Common.Utils var account = connection.Account; var context = connection.Context; - var characterExcel = connection.ExcelTableService.GetTable().UnPack().DataList; - var allCharacters = characterExcel.Where(x => - x is + var memoryLobbyExcel = connection.ExcelTableService.GetExcelList("MemoryLobbyDBSchema"); + var allMemoryLobbies = memoryLobbyExcel.Select(x => + { + return new MemoryLobbyDB() { - IsPlayable: true, - IsPlayableCharacter: true, - IsNpc: false, - ProductionStep: ProductionStep.Release, - } - ).Select(x => x.Id).ToList(); - - var allMemoryLobbies = allCharacters.Select(x => - { - return new MemoryLobbyDB() - { - MemoryLobbyUniqueId = x, - }; - }).ToList(); + MemoryLobbyUniqueId = x.Id, + }; + }).ToList(); account.AddMemoryLobbies(context, [.. allMemoryLobbies]); context.SaveChanges(); @@ -151,53 +210,50 @@ namespace SCHALE.Common.Utils var account = connection.Account; var context = connection.Context; - //var scenarioModeExcel = connection.ExcelTableService.GetTable().UnPack().DataList; - //var allScenarios = scenarioModeExcel.Select(x => - //{ - // return new ScenarioHistoryDB() - // { - // ScenarioUniqueId = x.ModeId, - // }; - //}).ToList(); + var scenarioModeExcel = connection.ExcelTableService.GetExcelList("ScenarioModeDBSchema"); + var allScenarios = scenarioModeExcel.Select(x => + { + return new ScenarioHistoryDB() + { + ScenarioUniqueId = x.ModeId, + }; + }).ToList(); - //account.AddScenarios(context, [.. allScenarios]); + account.AddScenarios(context, [.. allScenarios]); context.SaveChanges(); connection.SendChatMessage("Added all Scenarios!"); } - public static void AddAllFurnitures(IrcConnection connection) - { - var furnitureExcel = connection.ExcelTableService.GetTable().UnPack().DataList; - var allFurnitures = furnitureExcel.Select(x => - { - return new FurnitureDB() - { - UniqueId = x.Id, - StackCount = 7777, - Location = FurnitureLocation.Inventory - }; - }).ToList(); - - connection.Account.AddFurnitures(connection.Context, [.. allFurnitures]); - connection.Context.SaveChanges(); - - connection.SendChatMessage("Added all furnitures!"); - } - public static void RemoveAllCharacters(IrcConnection connection) // removing default characters breaks game { var characterDB = connection.Context.Characters; - var defaultCharacters = connection.ExcelTableService.GetTable().UnPack().DataList.Select(x => x.CharacterId).ToList(); + var characterExcel = connection.ExcelTableService.GetTable().UnPack().DataList; + var defaultCharacterExcel = connection.ExcelTableService.GetTable().UnPack().DataList; - var removed = characterDB.Where(x => x.AccountServerId == connection.AccountServerId && !defaultCharacters.Contains(x.UniqueId)); + var removed = characterDB.Where(x => x.AccountServerId == connection.AccountServerId && !defaultCharacterExcel.Select(x => x.CharacterId).ToList().Contains(x.UniqueId)); characterDB.RemoveRange(removed); + foreach (var character in connection.Account.Characters.Where(x => defaultCharacterExcel.Any(y => y.CharacterId == x.UniqueId))) + { + var defaultChar = character; + defaultChar.StarGrade = characterExcel.FirstOrDefault(x => x.Id == character.UniqueId).DefaultStarGrade; + defaultChar.PublicSkillLevel = 1; + defaultChar.ExSkillLevel = 1; + defaultChar.PassiveSkillLevel = 1; + defaultChar.ExtraPassiveSkillLevel = 1; + defaultChar.Level = 1; + defaultChar.Exp = 0; + defaultChar.FavorRank = 1; + defaultChar.PotentialStats = new Dictionary { { 1, 0 }, { 2, 0 }, { 3, 0 } }; + defaultChar.EquipmentServerIds = [0, 0, 0]; + connection.Context.Characters.Update(defaultChar); + } connection.SendChatMessage("Removed all characters!"); } - public static CharacterDB CreateMaxCharacterFromId(long characterId) + public static CharacterDB CreateMaxCharacterFromId(uint characterId) { return new CharacterDB() { @@ -210,7 +266,7 @@ namespace SCHALE.Common.Utils PassiveSkillLevel = 10, ExtraPassiveSkillLevel = 10, LeaderSkillLevel = 1, - FavorRank = 20, + FavorRank = 100, PotentialStats = { { 1, 0 }, { 2, 0 }, { 3, 0 } }, EquipmentServerIds = [0, 0, 0] };