934 {
935 int bitsPerSlot = 8;
936 int slotsPerInt = 32 / bitsPerSlot;
937
938 int groupIndex = slotIndex / slotsPerInt;
939 int bitOffset = (slotIndex % slotsPerInt) * bitsPerSlot;
940
941 int mask = 255 << bitOffset;
942 value = Math.Clamp(value, 0, 200);
943
945 temp &= ~mask;
946 temp |= (value << bitOffset);
948 }
int GetWaterBitmapByIndex(int index)
void SetWaterBitmapByIndex(int index, int value)