Ejemplo n.º 1
0
    // 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);
    }
Ejemplo n.º 2
0
        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");
            }
        }
Ejemplo n.º 3
0
    // 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;
    }