예제 #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");
        }