Esempio n. 1
0
        public PokemonMapExporter(string mapFileName, string mapName, string mapId, string gameModeFolder, bool createMissingFolders, ModelExportType exportType)
        {
            _mapFileName      = mapFileName;
            _exportType       = exportType;
            _filePathExporter = new FilePathExporter(gameModeFolder, createMissingFolders);

            _mapModel = new MapModel
            {
                Name = mapName,
                Id   = mapId
            };

            ExportedEntityCount = 0;
            TotalEntityCount    = 0;
        }
Esempio n. 2
0
        public PokemonMapExporter(string mapFileName, string mapName, string mapId, string gameModeFolder, bool createMissingFolders, ModelExportType exportType)
        {
            _mapFileName = mapFileName;
            _exportType = exportType;
            _filePathExporter = new FilePathExporter(gameModeFolder, createMissingFolders);

            _mapModel = new MapModel
            {
                Name = mapName,
                Id = mapId
            };

            ExportedEntityCount = 0;
            TotalEntityCount = 0;
        }
Esempio n. 3
0
        public void OnGUI()
        {
            GUILayout.Label("Export Settings", EditorStyles.boldLabel);
            _gameModePath = EditorGUILayout.TextField("path to gamemode", _gameModePath);
            _createMissingFolders = EditorGUILayout.Toggle("create missing folders", _createMissingFolders);
            _exportModels = (ModelExportType)EditorGUILayout.EnumPopup("export 3D models", _exportModels);

            GUILayout.Label("Map Settings", EditorStyles.boldLabel);
            _mapFileName = EditorGUILayout.TextField("file name", _mapFileName);
            _mapId = EditorGUILayout.TextField("map id", _mapId);
            _mapName = EditorGUILayout.TextField("map name", _mapName);

            if (GUILayout.Button("export"))
            {
                ExportScene();
            }
        }
Esempio n. 4
0
        public void OnGUI()
        {
            GUILayout.Label("Export Settings", EditorStyles.boldLabel);
            _gameModePath         = EditorGUILayout.TextField("path to gamemode", _gameModePath);
            _createMissingFolders = EditorGUILayout.Toggle("create missing folders", _createMissingFolders);
            _exportModels         = (ModelExportType)EditorGUILayout.EnumPopup("export 3D models", _exportModels);

            GUILayout.Label("Map Settings", EditorStyles.boldLabel);
            _mapFileName = EditorGUILayout.TextField("file name", _mapFileName);
            _mapId       = EditorGUILayout.TextField("map id", _mapId);
            _mapName     = EditorGUILayout.TextField("map name", _mapName);

            if (GUILayout.Button("export"))
            {
                ExportScene();
            }
        }