private static Whackable findInWorld(Whackable w, Whackable[] whack) { for (int i = 0; i < whack.Length; i++) { if (w == whack[i]) { return(whack[i]); } } return(null); }
public static int AddEntity(int type, Whackable w) { entityInDimension[dim][type].Add(true); return(entityInDimension[dim][type].Count - 1); }