예제 #1
0
 public static SpawnMinion Instance(short objType, float radius, int maxCount, int minTick, int maxTick)
 {
     var key = new Tuple<short, float, int, int, int>(objType, radius, maxCount, minTick, maxTick);
     SpawnMinion ret;
     if (!instances.TryGetValue(key, out ret))
         ret = instances[key] = new SpawnMinion(objType, radius, maxCount, minTick, maxTick);
     return ret;
 }
예제 #2
0
        public static SpawnMinion Instance(short objType, float radius, int maxCount, int minTick, int maxTick)
        {
            var         key = new Tuple <short, float, int, int, int>(objType, radius, maxCount, minTick, maxTick);
            SpawnMinion ret;

            if (!instances.TryGetValue(key, out ret))
            {
                ret = instances[key] = new SpawnMinion(objType, radius, maxCount, minTick, maxTick);
            }
            return(ret);
        }