public bool GetInventoryBool(InventoryThings thing) { return(DataChunk.CreateDataChunk(DataChunk.DataFormatType.Byte, "", _gameStateByteArray, (int)thing, sizeof(byte)).GetChunkAsByte() > 0); }
private byte GetInventoryQuantity(InventoryThings thing) { return(_gameStateByteArray[(int)thing]); }
private void SetInventoryBool(InventoryThings thing, bool bBool) { _gameStateByteArray[(int)thing] = BoolToByte(bBool); }
private void SetInventoryQuantity(InventoryThings thing, byte nThings) { _gameStateByteArray[(int)thing] = nThings; }