示例#1
0
        public override void Process()
        {
            var loadedMods = ModManager.GetLoadedMods();
            var mods       = new List <object>();

            var gameVer = new BCMModInfo
            {
                Name    = "7DaysToDie",
                Version = Constants.cVersion,
                Website = "http://7daystodie.com"
            };

            mods.Add(gameVer);
            mods.AddRange(loadedMods.Select(mod => new BCMModInfo(mod)).Cast <object>());

            SendJson(mods);
        }
示例#2
0
        protected override void Process()
        {
            var loadedMods = ModManager.GetLoadedMods();
            var mods       = new List <BCMModInfo>();

            var gameVer = new BCMModInfo(
                $"{Constants.cProduct} ({Constants.cProductAbbrev})",
                $"{Constants.cVersionType} {Constants.cVersionMajor}.{Constants.cVersionMinor} {Constants.cVersionBuild}",
                "http://7daystodie.com",
                "The Fun Pimps",
                "The survival horde crafting game"
                );

            mods.Add(gameVer);
            mods.AddRange(loadedMods.Select(mod => new BCMModInfo(mod)));

            SendJson(mods);
        }