示例#1
0
    public static string BuildName(string baseName, LevelZonesID levelZoneID, PrefixType prefixType, SufixType sufixType)
    {
        string prefixTypeString = GetPrefix(prefixType);
        string sufix            = GetSufix(sufixType);

        return(levelZoneID.ToString() + "_" + prefixTypeString + "_" + baseName + "_" + sufix);
    }
示例#2
0
        public static string BuildBaseLevelPath(string LevelBasePath, LevelZonesID AdventureLevelID, LevelZonesID LevelZonesID)
        {
            var directoryPath = LevelBasePath + "/" + AdventureLevelID.ToString();

            if (!Directory.Exists(directoryPath))
            {
                Directory.CreateDirectory(directoryPath);
            }

            var scenePath = directoryPath + "/" + LevelZonesID.ToString() + ".unity";

            return(scenePath);
        }
示例#3
0
        public static string BuilChunkPath(string LevelBasePath, LevelZonesID AdventureLevelID, LevelZoneChunkID LevelZoneChunkID)
        {
            var directoryPath = LevelBasePath + "/" + AdventureLevelID.ToString();

            if (!Directory.Exists(directoryPath))
            {
                Directory.CreateDirectory(directoryPath);
            }

            directoryPath = directoryPath + "/Chunks";
            if (!Directory.Exists(directoryPath))
            {
                Directory.CreateDirectory(directoryPath);
            }

            return(directoryPath + "/" + LevelZoneChunkID.ToString() + "_Chunk.unity");
        }