Esempio n. 1
0
        private static void DumpTutorialEntry(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var entrySeenFlag = (Guid)data.EntrySeenFlag.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, entrySeenFlag, typeName, "EntrySeenFlag");
            var entryVisibleFlag = (Guid)data.EntryVisibleFlag.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, entryVisibleFlag, typeName, "EntryVisibleFlag");
        }
Esempio n. 2
0
        private static void DumpGiveJournalPlotFlagReward(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var plotFlagValueDestination = (Guid)data.PlotFlagValueDestination.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, plotFlagValueDestination, typeName, "PlotFlagValueDestination");
            var plotFlagValueSource = (Guid)data.PlotFlagValueSource.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, plotFlagValueSource, typeName, "PlotFlagValueSource");
        }
Esempio n. 3
0
        private static void DumpGalaxyCompletionData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var criticalPathFlags = (object[])data.CriticalPathFlags;

            if (criticalPathFlags != null)
            {
                foreach (dynamic criticalPathFlag in criticalPathFlags)
                {
                    var guid = (Guid)criticalPathFlag.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, guid, typeName, "CriticalPathFlags");
                }
            }

            var enemyBaseFlags = (object[])data.EnemyBaseFlags;

            if (enemyBaseFlags != null)
            {
                foreach (dynamic enemyBaseFlag in enemyBaseFlags)
                {
                    var guid = (Guid)enemyBaseFlag.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, guid, typeName, "EnemyBaseFlags");
                }
            }

            var loyaltyAndBStoryFlags = (object[])data.LoyaltyAndBStoryFlags;

            if (loyaltyAndBStoryFlags != null)
            {
                foreach (dynamic loyaltyAndBStoryFlag in loyaltyAndBStoryFlags)
                {
                    var guid = (Guid)loyaltyAndBStoryFlag.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, guid, typeName, "LoyaltyAndBStoryFlags");
                }
            }

            var remnantVaultFlags = (object[])data.RemnantVaultFlags;

            if (remnantVaultFlags != null)
            {
                foreach (dynamic remnantVaultFlag in remnantVaultFlags)
                {
                    var guid = (Guid)remnantVaultFlag.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, guid, typeName, "RemnantVaultFlags");
                }
            }

            var sideQuestFlags = (object[])data.SideQuestFlags;

            if (sideQuestFlags != null)
            {
                foreach (dynamic sideQuestFlag in sideQuestFlags)
                {
                    var guid = (Guid)sideQuestFlag.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, guid, typeName, "SideQuestFlags");
                }
            }
        }
Esempio n. 4
0
        private static void DumpSystemData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var availableFlag = (Guid)data.AvailableFlag.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, availableFlag, typeName, "AvailableFlag");
            var visitedFlag = (Guid)data.VisitedFlag.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, visitedFlag, typeName, "VisitedFlag");
        }
Esempio n. 5
0
        private static void DumpLootManagerEntityData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            dynamic lootConfiguration = data.LootConfiguration;

            if (lootConfiguration != null)
            {
                var guid = (Guid)lootConfiguration.DisableLootInteraction.PlotFlagId.Guid;
                dumper.AddGuidResult(ebxInfo, data, guid, typeName, "LootConfiguration", "DisableLootInteraction");
            }
        }
Esempio n. 6
0
        private static void DumpSetPlotFlagValue(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var           guid1     = (Guid)data.PlotFlagReference.PlotFlagId.Guid;
            var           guid2     = (Guid)data.PlotFlagValue.PlotFlagId.Guid;
            Func <string> callback1 = guid2.ToString;
            Func <string> callback2 = guid1.ToString;

            dumper.AddGuidResult(ebxInfo, data, guid1, callback1, typeName, "PlotFlagReference");
            dumper.AddGuidResult(ebxInfo, data, guid2, callback2, typeName, "PlotFlagValue");
        }
Esempio n. 7
0
        private static void DumpDebugIntegerPlotFlag(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var           guid1     = (Guid)data.Target.PlotFlagId.Guid;
            var           guid2     = (Guid)data.Source.PlotFlagId.Guid;
            Func <string> callback1 = guid2.ToString;
            Func <string> callback2 = guid1.ToString;

            dumper.AddGuidResult(ebxInfo, data, guid1, callback1, typeName, "Target");
            dumper.AddGuidResult(ebxInfo, data, guid2, callback2, typeName, "Source");
        }
Esempio n. 8
0
        private static void DumpSystemDataReference(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var neighboringSystemsInfos = (object[])data.NeighboringSystemsInfo;

            if (neighboringSystemsInfos != null)
            {
                foreach (dynamic neighboringSystemsInfo in neighboringSystemsInfos)
                {
                    DumpNeighboringSystemsInfo(ebxInfo, dumper, typeName, neighboringSystemsInfo, data);
                }
            }
        }
Esempio n. 9
0
        private static void DumpItemCountTrackerAsset(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var itemCountTrackers = (object[])data.ItemCountTracker;

            if (itemCountTrackers != null)
            {
                foreach (dynamic itemCountTracker in itemCountTrackers)
                {
                    var guid = (Guid)itemCountTracker.ItemCountFlag.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, guid, typeName, "ItemCountTracker", "ItemCountFlag");
                }
            }
        }
Esempio n. 10
0
        private static void DumpSaveLevelContext(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var extraDatas = (object[])data.ExtraData;

            if (extraDatas != null)
            {
                foreach (dynamic extraData in extraDatas)
                {
                    var guid = (Guid)extraData.ShouldUse.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, guid, typeName, "ExtraData", "ShouldUse");
                }
            }
        }
Esempio n. 11
0
        private static void DumpPlotCompareIntegerEntityData(EbxInfo ebxInfo,
                                                             Dumper dumper,
                                                             string typeName,
                                                             dynamic data)
        {
            var           guid1     = (Guid)data.PlotFlagReferenceA.PlotFlagId.Guid;
            var           guid2     = (Guid)data.PlotFlagReferenceB.PlotFlagId.Guid;
            Func <string> callback1 = guid2.ToString;
            Func <string> callback2 = guid1.ToString;

            dumper.AddGuidResult(ebxInfo, data, guid1, callback1, typeName, "PlotFlagReferenceA");
            dumper.AddGuidResult(ebxInfo, data, guid2, callback2, typeName, "PlotFlagReferenceB");
        }
Esempio n. 12
0
        private static void DumpPlotConfigurationAsset(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var newGamePlusPlotFlags = (object[])data.NewGamePlusPlotFlags;

            if (newGamePlusPlotFlags != null)
            {
                foreach (dynamic newGamePlusPlotFlag in newGamePlusPlotFlags)
                {
                    var guid = (Guid)newGamePlusPlotFlag.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, guid, typeName, "NewGamePlusPlotFlags");
                }
            }
        }
Esempio n. 13
0
        private static void DumpConversationConditionData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            Func <string> callback             = () => data.DebugName;
            var           activationConditions = (object[])data.ActivationConditions;

            if (activationConditions != null && activationConditions.Length > 0)
            {
                foreach (dynamic condition in activationConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, callback, typeName, "ActivationConditions");
                }
            }
        }
Esempio n. 14
0
        private static void DumpProgressiveTaskData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var currentProgress = (Guid)data.CurrentProgress.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, currentProgress, typeName, "CurrentProgress");

            var displayConditions = (object[])data.DisplayConditions;

            if (displayConditions != null)
            {
                foreach (var condition in displayConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, typeName, "DisplayConditions");
                }
            }

            var failureConditions = (object[])data.FailureConditions;

            if (failureConditions != null)
            {
                foreach (var condition in failureConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, typeName, "FailureConditions");
                }
            }

            var hideConditions = (object[])data.HideConditions;

            if (hideConditions != null)
            {
                foreach (var condition in hideConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, typeName, "HideConditions");
                }
            }

            var successConditions = (object[])data.SuccessConditions;

            if (successConditions != null)
            {
                foreach (var condition in successConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, typeName, "SuccessConditions");
                }
            }

            var total = (Guid)data.Total.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, total, typeName, "Total");
        }
Esempio n. 15
0
        private static void DumpPlotConditions(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var plotConditions = (object[])data.PlotConditions;

            if (plotConditions == null || plotConditions.Length == 0)
            {
                return;
            }

            foreach (dynamic condition in plotConditions)
            {
                dumper.AddConditionResult(ebxInfo, data, condition, typeName, "PlotConditions");
            }
        }
Esempio n. 16
0
        private static void DumpCraftingResearchProjectItemData(EbxInfo ebxInfo,
                                                                Dumper dumper,
                                                                string typeName,
                                                                dynamic data)
        {
            var guid1 = (Guid)data.CompletedFlag.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, guid1, typeName, "CompletedFlag");

            if (data.ResearchNexusLevel != null)
            {
                var guid2 = (Guid)data.ResearchNexusLevel.NexusLevelPlotFlag.PlotFlagId.Guid;
                dumper.AddGuidResult(ebxInfo, data, guid2, typeName, "ResearchNexusLevel", "NexusLevelPlotFlag");
            }
        }
Esempio n. 17
0
        private static void DumpTelemetryManagerData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var critPathPlotCompletion = (object[])data.CritPathPlotCompletion;

            if (critPathPlotCompletion == null || critPathPlotCompletion.Length == 0)
            {
                return;
            }

            foreach (dynamic critPathPlot in critPathPlotCompletion)
            {
                var guid = (Guid)critPathPlot.PlotFlagId.Guid;
                dumper.AddGuidResult(ebxInfo, data, guid, typeName, "CritPathPlotCompletion");
            }
        }
Esempio n. 18
0
        private static void DumpViabilitySystemManagerEntityData(EbxInfo ebxInfo,
                                                                 Dumper dumper,
                                                                 string typeName,
                                                                 dynamic data)
        {
            var viabilityDatas = (object[])data.ViabilityData;

            if (viabilityDatas != null)
            {
                foreach (dynamic viabilityData in viabilityDatas)
                {
                    var guid = (Guid)viabilityData.PlotFlag.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, guid, typeName, "ViabilityData", "PlotFlag");
                }
            }
        }
Esempio n. 19
0
        private static void DumpPerksUIDataProviderData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var perkCategories = (object[])data.PerkCategories;

            if (perkCategories != null)
            {
                foreach (dynamic perkCategory in perkCategories)
                {
                    var perks = (object[])perkCategory.Perks;
                    if (perks != null)
                    {
                        foreach (dynamic perk in perks)
                        {
                            DumpPerk(ebxInfo, dumper, typeName, perk, data);
                        }
                    }
                }
            }
        }
Esempio n. 20
0
        private static void DumpJournalTaskData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var displayConditions = (object[])data.DisplayConditions;

            if (displayConditions != null)
            {
                foreach (var condition in displayConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, typeName, "DisplayConditions");
                }
            }

            var failureConditions = (object[])data.FailureConditions;

            if (failureConditions != null)
            {
                foreach (var condition in failureConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, typeName, "FailureConditions");
                }
            }

            var hideConditions = (object[])data.HideConditions;

            if (hideConditions != null)
            {
                foreach (var condition in hideConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, typeName, "HideConditions");
                }
            }

            var successConditions = (object[])data.SuccessConditions;

            if (successConditions != null)
            {
                foreach (var condition in successConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, typeName, "SuccessConditions");
                }
            }
        }
Esempio n. 21
0
        private static void DumpConversationEntityData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var flags = (object[])data.FirstLineTimelineTrackConditionFlags;

            if (flags == null || flags.Length == 0)
            {
                return;
            }

            foreach (dynamic flag in flags)
            {
                var guid = (Guid)flag.Guid;
                if (guid == Guid.Empty)
                {
                    continue;
                }

                dumper.AddGuidResult(ebxInfo, data, guid, typeName, "FirstLineTimelineTrackConditionFlags");
            }
        }
Esempio n. 22
0
        private static void DumpGetPlotFlagIds(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var flags = (object[])data.PlotFlagIds;

            if (flags == null || flags.Length == 0)
            {
                return;
            }

            foreach (dynamic flag in flags)
            {
                var guid = (Guid)flag.Guid;
                if (guid == Guid.Empty)
                {
                    continue;
                }

                dumper.AddGuidResult(ebxInfo, data, guid, typeName, "PlotFlagIds");
            }
        }
Esempio n. 23
0
        private static void DumpCodexEntry(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var displayConditions = (object[])data.DisplayConditions;

            if (displayConditions != null && displayConditions.Length > 0)
            {
                foreach (dynamic condition in displayConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, typeName, "DisplayConditions");
                }
            }

            var hideConditions = (object[])data.HideConditions;

            if (hideConditions != null && hideConditions.Length > 0)
            {
                foreach (dynamic condition in hideConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, typeName, "HideConditions");
                }
            }
        }
Esempio n. 24
0
        private static void DumpJournalContentData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var displayConditions = (object[])data.DisplayConditions;

            if (displayConditions != null)
            {
                foreach (var condition in displayConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, typeName, "DisplayConditions");
                }
            }

            var hideConditions = (object[])data.HideConditions;

            if (hideConditions != null)
            {
                foreach (var condition in hideConditions)
                {
                    dumper.AddConditionResult(ebxInfo, data, condition, typeName, "HideConditions");
                }
            }
        }
Esempio n. 25
0
        private static void DumpAwardListenerEntityData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var plotAwards = (object[])data.PlotAwards;

            if (plotAwards == null || plotAwards.Length == 0)
            {
                return;
            }

            foreach (dynamic plotAward in plotAwards)
            {
                var plotFlags = (object[])plotAward.PlotFlags;
                if (plotFlags != null)
                {
                    foreach (dynamic plotFlag in plotFlags)
                    {
                        var guid = (Guid)plotFlag.PlotFlagId.Guid;
                        dumper.AddGuidResult(ebxInfo, data, guid, typeName, "PlotAwards", "PlotFlags");
                    }
                }
            }
        }
Esempio n. 26
0
        private static void DumpDestinationData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var anomalies = (object[])data.Anomalies;

            if (anomalies != null)
            {
                foreach (dynamic anomaly in anomalies)
                {
                    var guid = (Guid)anomaly.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, guid, typeName, "Anomalies");
                }
            }

            var currentDestinationFlag = (Guid)data.CurrentDestinationFlag.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, currentDestinationFlag, typeName, "CurrentDestinationFlag");

            dumper.AddConditionResult(ebxInfo, data, data.ExcludeFromJournalTask, typeName, "ExcludeFromJournalTask");

            var hazards = (object[])data.Hazards;

            if (hazards != null && hazards.Length > 0)
            {
                throw new NotSupportedException();
            }

            dumper.AddConditionResult(ebxInfo, data, data.IncludeInCompletion, typeName, "IncludeInCompletion");

            var scannedFlag = (Guid)data.ScannedFlag.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, scannedFlag, typeName, "ScannedFlag");

            var techs = (object[])data.Tech;

            if (techs != null && techs.Length > 0)
            {
                throw new NotSupportedException();
            }
        }
Esempio n. 27
0
        private static void DumpNeighboringSystemsInfo(EbxInfo ebxInfo,
                                                       Dumper dumper,
                                                       string typeName,
                                                       dynamic data,
                                                       dynamic parent)
        {
            var displayCondition = data.DisplayCondition;

            dumper.AddConditionResult(ebxInfo,
                                      parent,
                                      displayCondition,
                                      typeName,
                                      "NeighboringSystemsInfo",
                                      "DisplayCondition");
            var hideCondition = data.HideCondition;

            dumper.AddConditionResult(ebxInfo,
                                      parent,
                                      hideCondition,
                                      typeName,
                                      "NeighboringSystemsInfo",
                                      "HideCondition");
        }
Esempio n. 28
0
        private static void DumpPlotFlagListenerData(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            var guid1 = (Guid)data.NewGameStartedPlotFlag.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, guid1, typeName, "NewGameStartedPlotFlag");
            var guid2 = (Guid)data.TempestEnterExitPlotFlag.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, guid2, typeName, "TempestEnterExitPlotFlag");
            var guid3 = (Guid)data.TempestPilotingPlotFlag.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, guid3, typeName, "TempestPilotingPlotFlag");

            var plotFlagsSettings = (object[])data.PlotFlagsSettings;

            if (plotFlagsSettings != null)
            {
                foreach (dynamic plotFlagSetting in plotFlagsSettings)
                {
                    var guid4 = (Guid)plotFlagSetting.PlotFlag.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, guid4, typeName, "PlotFlagsSettings");
                }
            }
        }
Esempio n. 29
0
        private static void DumpPartyManagerManagerEntityData(EbxInfo ebxInfo,
                                                              Dumper dumper,
                                                              string typeName,
                                                              dynamic data)
        {
            var partyMemberBundles = (object[])data.PartyMemberBundles;

            if (partyMemberBundles != null)
            {
                foreach (dynamic partyMemberBundle in partyMemberBundles)
                {
                    var canLevelUpFlagGuid = (Guid)partyMemberBundle.CanLevelUpFlag.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, canLevelUpFlagGuid, typeName, "CanLevelUpFlag");
                    var inPartyFlagGuid = (Guid)partyMemberBundle.InPartyFlag.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, inPartyFlagGuid, typeName, "InPartyFlag");
                    var loyaltyMissionGuid = (Guid)partyMemberBundle.LoyaltyMission.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, loyaltyMissionGuid, typeName, "LoyaltyMission");
                    var trustLevelGuid = (Guid)partyMemberBundle.TrustLevel.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, trustLevelGuid, typeName, "TrustLevel");
                    var unlockedFlagGuid = (Guid)partyMemberBundle.UnlockedFlag.PlotFlagId.Guid;
                    dumper.AddGuidResult(ebxInfo, data, unlockedFlagGuid, typeName, "UnlockedFlag");
                }
            }
        }
Esempio n. 30
0
        private static void DumpGameVaultVarInt(EbxInfo ebxInfo, Dumper dumper, string typeName, dynamic data)
        {
            Func <string> callback =
                () =>
            {
                var defaultValue         = (int)data.DefaultValue;
                var minValue             = (int)data.MinValue;
                var maxValue             = (int)data.MaxValue;
                var variableNameOnServer = (string)data.VariableNameOnServer;
                return(string.IsNullOrEmpty(variableNameOnServer) == false
                               ? string.Format("default {0}, {1} to {2} ({3})",
                                               defaultValue,
                                               minValue,
                                               maxValue,
                                               variableNameOnServer)
                               : string.Format("default {0}, {1} to {2}",
                                               defaultValue,
                                               minValue,
                                               maxValue));
            };
            var guid = (Guid)data.PlotFlag.PlotFlagId.Guid;

            dumper.AddGuidResult(ebxInfo, data, guid, callback, typeName, "PlotFlag");
        }