コード例 #1
0
        public static MapInfo GetMapInfo()
        {
            var mapInfo = MapInfo.Default;

            mapInfo.MapName            = "Warcraft 3 C# Tutorial";
            mapInfo.MapDescription     = "My Map Description";
            mapInfo.MapAuthor          = "Qbz";
            mapInfo.RecommendedPlayers = "Any";

            mapInfo.MapFlags      &= ~MapFlags.MeleeMap;
            mapInfo.ScriptLanguage = ScriptLanguage.Lua;

            PlayerAndForceSettings.ApplyToMapInfo(mapInfo);

            return(mapInfo);
        }
コード例 #2
0
        public static MapInfo GetMapInfo()
        {
            var mapInfo = MapInfo.Default;

            mapInfo.MapName            = "Just another Warcraft III map";
            mapInfo.MapDescription     = "Nondescript";
            mapInfo.MapAuthor          = "Unknown";
            mapInfo.RecommendedPlayers = "Any";

            mapInfo.MapFlags      &= ~MapFlags.MeleeMap;
            mapInfo.ScriptLanguage = ScriptLanguage.Lua;

            PlayerAndForceSettings.ApplyToMapInfo(mapInfo);

            return(mapInfo);
        }