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; }
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); }