951 {
952 int bitsPerSlot = 8;
953 int slotsPerInt = 32 / bitsPerSlot;
954
955 int groupIndex = slotIndex / slotsPerInt;
956 int bitOffset = (slotIndex % slotsPerInt) * bitsPerSlot;
957
959 return (value >> bitOffset) & 255;
960 }
int GetWaterBitmapByIndex(int index)