Пример #1
0
        /// <summary>
        /// Loads the activity log of all survivors. MUST LOAD SURVIVORS AND INVENTORIES FIRST.
        /// </summary>
        /// <param name="blissHive">The hive to parse</param>
        public void LoadObjectActivity(BlissHiveLogContainer blissHive)
        {
            BlissHiveObjectActivityLogParser parser = new BlissHiveObjectActivityLogParser(blissHive);

            parser.onParseProgressListeners += this.onParseProgressListeners;

            LogParseResult result = parser.Parse();

            foreach (BlissHiveObjectActivityLogParseResultEntry entry in result.result)
            {
                if (entry.changedItems.Count > 0)
                {
                    foreach (BlissHiveLogObject logObject in this.logObjects)
                    {
                        BlissHiveLogObjectActivityItem castItem =
                            (BlissHiveLogObjectActivityItem)entry.changedItems.ElementAt(0);

                        if (logObject.objectUpdateID == castItem.logObject.objectUpdateID)
                        {
                            foreach (BlissHiveLogObjectActivityItem item in entry.changedItems)
                            {
                                logObject.activity.AddLast(item);
                            }
                        }
                    }
                }
            }

            // Result is kinda pointless with this parse

            this.onParseProgressListeners = null;
        }
        /// <summary>
        /// Loads the activity log of all survivors. MUST LOAD SURVIVORS AND INVENTORIES FIRST.
        /// </summary>
        /// <param name="blissHive">The hive to parse</param>
        public void LoadSurvivorActivity(BlissHiveLogContainer blissHive)
        {
            BlissHiveSurvivorActivityLogParser parser = new BlissHiveSurvivorActivityLogParser(blissHive);

            parser.onParseProgressListeners += this.onParseProgressListeners;

            LogParseResult result = parser.Parse();

            foreach (BlissHiveSurvivorActivityLogParseResultEntry entry in result.result)
            {
                if (entry.changedItems.Count > 0)
                {
                    foreach (BlissHiveLogSurvivor survivor in this.survivors)
                    {
                        BlissHiveLogSurvivorActivityItem castItem =
                            (BlissHiveLogSurvivorActivityItem)entry.changedItems.ElementAt(0);

                        if (survivor.survivorID == castItem.survivor.survivorID)
                        {
                            foreach (BlissHiveLogSurvivorActivityItem item in entry.changedItems)
                            {
                                survivor.activity.AddLast(item);
                            }
                        }
                    }
                }
            }

            // Result is kinda pointless with this parse

            this.onParseProgressListeners = null;
        }
        /// <summary>
        /// Loads the activity log of all survivors. MUST LOAD SURVIVORS AND INVENTORIES FIRST.
        /// </summary>
        /// <param name="blissHive">The hive to parse</param>
        public void LoadSurvivorActivity(BlissHiveLogContainer blissHive)
        {
            BlissHiveSurvivorActivityLogParser parser = new BlissHiveSurvivorActivityLogParser(blissHive);
            parser.onParseProgressListeners += this.onParseProgressListeners;

            LogParseResult result = parser.Parse();

            foreach (BlissHiveSurvivorActivityLogParseResultEntry entry in result.result) {
                if( entry.changedItems.Count > 0 ){
                    foreach (BlissHiveLogSurvivor survivor in this.survivors) {
                        BlissHiveLogSurvivorActivityItem castItem =
                            (BlissHiveLogSurvivorActivityItem)entry.changedItems.ElementAt(0);

                        if (survivor.survivorID == castItem.survivor.survivorID) {
                            foreach( BlissHiveLogSurvivorActivityItem item in entry.changedItems){
                                survivor.activity.AddLast(item);
                            }
                        }
                    }
                }
            }

            // Result is kinda pointless with this parse

            this.onParseProgressListeners = null;
        }
        /// <summary>
        /// Loads the activity log of all survivors. MUST LOAD SURVIVORS AND INVENTORIES FIRST.
        /// </summary>
        /// <param name="blissHive">The hive to parse</param>
        public void LoadObjectActivity(BlissHiveLogContainer blissHive)
        {
            BlissHiveObjectActivityLogParser parser = new BlissHiveObjectActivityLogParser(blissHive);
            parser.onParseProgressListeners += this.onParseProgressListeners;

            LogParseResult result = parser.Parse();

            foreach (BlissHiveObjectActivityLogParseResultEntry entry in result.result) {
                if (entry.changedItems.Count > 0) {
                    foreach (BlissHiveLogObject logObject in this.logObjects) {
                        BlissHiveLogObjectActivityItem castItem =
                            (BlissHiveLogObjectActivityItem)entry.changedItems.ElementAt(0);

                        if (logObject.objectUpdateID == castItem.logObject.objectUpdateID) {
                            foreach (BlissHiveLogObjectActivityItem item in entry.changedItems) {
                                logObject.activity.AddLast(item);
                            }
                        }
                    }
                }
            }

            // Result is kinda pointless with this parse

            this.onParseProgressListeners = null;
        }
        /// <summary>
        /// Loads the debug monitors of all survivors. MUST LOAD SURVIVORS FIRST.
        /// </summary>
        /// <param name="blissHive">The hive to parse</param>
        public void LoadSurvivorDebugMonitor(BlissHiveLogContainer blissHive)
        {
            BlissHiveDebugMonitorLogParser parser = new BlissHiveDebugMonitorLogParser(blissHive);
            parser.onParseProgressListeners += this.onParseProgressListeners;

            LogParseResult result = parser.Parse();
            // Result is kinda pointless with this parse

            this.onParseProgressListeners = null;
        }
        /// <summary>
        /// Loads the inventory of all survivors. MUST LOAD SURVIVORS FIRST.
        /// </summary>
        /// <param name="blissHive">The hive to parse</param>
        public void LoadObjectInventory(BlissHiveLogContainer blissHive)
        {
            BlissHiveObjectInventoryLogParser parser = new BlissHiveObjectInventoryLogParser(blissHive);
            parser.onParseProgressListeners += this.onParseProgressListeners;

            LogParseResult result = parser.Parse();
            // Result is kinda pointless with this parse

            this.onParseProgressListeners = null;
        }
Пример #7
0
        /// <summary>
        /// Loads the inventory of all survivors. MUST LOAD SURVIVORS FIRST.
        /// </summary>
        /// <param name="blissHive">The hive to parse</param>
        public void LoadObjectInventory(BlissHiveLogContainer blissHive)
        {
            BlissHiveObjectInventoryLogParser parser = new BlissHiveObjectInventoryLogParser(blissHive);

            parser.onParseProgressListeners += this.onParseProgressListeners;

            LogParseResult result = parser.Parse();

            // Result is kinda pointless with this parse

            this.onParseProgressListeners = null;
        }
        /// <summary>
        /// Loads the debug monitors of all survivors. MUST LOAD SURVIVORS FIRST.
        /// </summary>
        /// <param name="blissHive">The hive to parse</param>
        public void LoadSurvivorDebugMonitor(BlissHiveLogContainer blissHive)
        {
            BlissHiveDebugMonitorLogParser parser = new BlissHiveDebugMonitorLogParser(blissHive);

            parser.onParseProgressListeners += this.onParseProgressListeners;

            LogParseResult result = parser.Parse();

            // Result is kinda pointless with this parse

            this.onParseProgressListeners = null;
        }
Пример #9
0
        /// <summary>
        /// Loads the survivors into the container list.
        /// </summary>
        /// <param name="blissHive">The blisshive to load survivors from</param>
        public void LoadObjects(BlissHiveLogContainer blissHive)
        {
            BlissHiveObjectLogParser parser = new BlissHiveObjectLogParser(blissHive);

            parser.onParseProgressListeners += this.onParseProgressListeners;
            LogParseResult result = parser.Parse();

            foreach (BlissHiveObjectLogParseResultEntry entry in result.result)
            {
                this.logObjects.AddLast(entry.logObject);
            }
            this.onParseProgressListeners = null;
        }
        /// <summary>
        /// Loads the survivors into the container list.
        /// </summary>
        /// <param name="blissHive">The blisshive to load survivors from</param>
        public void LoadSurvivors(BlissHiveLogContainer blissHive)
        {
            BlissHiveSurvivorLogParser parser = new BlissHiveSurvivorLogParser(blissHive);

            parser.onParseProgressListeners += this.onParseProgressListeners;
            LogParseResult result = parser.Parse();

            foreach (BlissHiveSurvivorLogParseResultEntry entry in result.result)
            {
                this.survivors.AddLast(entry.survivor);
            }
            this.onParseProgressListeners = null;
        }
        /// <summary>
        /// Loads the survivors into the container list.
        /// </summary>
        /// <param name="blissHive">The blisshive to load survivors from</param>
        public void LoadSurvivors(BlissHiveLogContainer blissHive)
        {
            BlissHiveSurvivorLogParser parser = new BlissHiveSurvivorLogParser(blissHive);
            parser.onParseProgressListeners += this.onParseProgressListeners;
            LogParseResult result = parser.Parse();

            foreach (BlissHiveSurvivorLogParseResultEntry entry in result.result) {
                this.survivors.AddLast(entry.survivor);
            }
            this.onParseProgressListeners = null;
        }
        /// <summary>
        /// Loads the survivors into the container list.
        /// </summary>
        /// <param name="blissHive">The blisshive to load survivors from</param>
        public void LoadObjects(BlissHiveLogContainer blissHive)
        {
            BlissHiveObjectLogParser parser = new BlissHiveObjectLogParser(blissHive);
            parser.onParseProgressListeners += this.onParseProgressListeners;
            LogParseResult result = parser.Parse();

            foreach (BlissHiveObjectLogParseResultEntry entry in result.result) {
                this.logObjects.AddLast(entry.logObject);
            }
            this.onParseProgressListeners = null;
        }