/***********************************************************************************
 * Copyright (c) 2018 /// Project SWG /// www.projectswg.com                       *
 * *
 * ProjectSWG is the first NGE emulator for Star Wars Galaxies founded on          *
 * July 7th, 2011 after SOE announced the official shutdown of Star Wars Galaxies. *
 * Our goal is to create an emulator which will provide a server for players to    *
 * continue playing a game similar to the one they used to play. We are basing     *
 * it on the final publish of the game prior to end-game events.                   *
 * *
 * This file is part of Holocore.                                                  *
 * *
 * --------------------------------------------------------------------------------*
 * *
 * Holocore is free software: you can redistribute it and/or modify                *
 * it under the terms of the GNU Affero General Public License as                  *
 * published by the Free Software Foundation, either version 3 of the              *
 * License, or (at your option) any later version.                                 *
 * *
 * Holocore is distributed in the hope that it will be useful,                     *
 * but WITHOUT ANY WARRANTY; without even the implied warranty of                  *
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the                   *
 * GNU Affero General Public License for more details.                             *
 * *
 * You should have received a copy of the GNU Affero General Public License        *
 * along with Holocore.  If not, see <http:></http:>//www.gnu.org/licenses/>.               *
 */
package com.projectswg.holocore.resources.support.npc.spawn

enum class SpawnerType(val objectTemplate: String) {
	AREA("object/tangible/ground_spawning/shared_area_spawner.iff"),
	MINEFIELD("object/tangible/ground_spawning/shared_minefield_spawner.iff"),
	PATROL("object/tangible/ground_spawning/shared_patrol_spawner.iff"),
	RANDOM("object/tangible/ground_spawning/shared_random_spawner.iff"),
	GCW_BANNER_INVASION("object/tangible/gcw/shared_flip_banner_invasion_spawner.iff"),
	GCW_BANNER_ONPOLE("object/tangible/gcw/shared_flip_banner_onpole_spawner.iff"),
	QUEST("object/tangible/spawning/shared_quest_spawner.iff"),
	EGG("object/tangible/spawning/shared_spawn_egg.iff"),
	WAYPOINT("object/path_waypoint/shared_path_waypoint.iff"),
	WAYPOINT_AUTO_SPAWN("object/path_waypoint/shared_path_waypoint_auto_spawn.iff"),
	WAYPOINT_CITY("object/path_waypoint/shared_path_waypoint_city.iff"),
	WAYPOINT_DROID("object/path_waypoint/shared_path_waypoint_droid.iff"),
	WAYPOINT_PATROL("object/path_waypoint/shared_path_waypoint_patrol.iff"),
	POI_BASE("object/tangible/poi/base/shared_poi_base.iff"),
	INVISIBLE_OBJECT("object/tangible/theme_park/shared_invisible_object.iff"),
	GCW_CITY("object/tangible/gcw/shared_gcw_city_spawner.iff"),
	MISSION_EASY("object/tangible/mission/shared_mission_informant_spawner_easy.iff"),
	MISSION_MEDIUM("object/tangible/mission/shared_mission_informant_spawner_medium.iff"),
	MISSION_HARD("object/tangible/mission/shared_mission_informant_spawner_hard.iff"),
	CITY_SIGN("object/tangible/spawning/shared_city_sign_spawner.iff"),
	FS_NPC("object/tangible/spawning/shared_fs_village_npc_spawner.iff"),
	REMOTE("object/tangible/spawning/shared_remote_theater_spawner.iff");

	companion object {
		private val VALUES = entries.toTypedArray()

		fun getSpawnerTypeFromName(name: String): SpawnerType? {
			for (type in VALUES) {
				if (type.name.hashCode() == name.hashCode()) return type
			}
			return null
		}
	}
}
