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