Пример #1
0
        } = null;                                                       // A dummy to store the last logged DataObject
        public static void InitLogger()
        {
            if (StatObject.Exists)
            {
                return;        // If a StatObject already exists, do nothing
            }
            StatObject.Init(); // Initializing the StatObject

            // Subscribing to events
            MhwHelper.OnMissionStart += OnMissionStart;
            MhwHelper.OnMissionEnd   += OnMissionEnd;

            StatObject.Exists = true;             // Setting a flag to tell other places the Object Exists
            StatObject.Clear();                   // Safety Measures
            StatObject.Instance.Location = "WIP"; // TODO: Somehow get the Location into this :thinkingEmoji:
            LastStamp = 0;
            Log.WriteLine("StatLogger Enabled!");
        }