// Should the input enemy spawn in a swarm public static bool EnemyDoesSwarmSpawn(BotBase bot) { if (bot == null) { return(false); } System.Type botType = bot.GetType(); // Add any other evaluations here if (botType == typeof(Spider)) { return(true); } return(false); }
private static void LoadBotBase() { lock (ObjectLock) { if (BotBase != null) { return; } BotBase = Load(); _loaded = true; if (BotBase == null) { return; } BotBaseStart = BotBase.GetType().GetMethod("Start"); BotBaseStop = BotBase.GetType().GetMethod("Stop"); BotBaseButton = BotBase.GetType().GetMethod("OnButtonPress"); BotBaseRoot = BotBase.GetType().GetMethod("GetRoot"); } }
// Should the input enemy spawn in a swarm public static bool EnemyDoesSwarmSpawn(BotBase bot) { if(bot == null) { return false; } System.Type botType = bot.GetType(); // Add any other evaluations here if(botType == typeof(Spider)) { return true; } return false; }