public static PlayerInventory Deserialize(Stream stream) { PlayerInventory playerInventory = Pool.Get <PlayerInventory>(); PlayerInventory.Deserialize(stream, playerInventory, false); return(playerInventory); }
public static PlayerInventory Deserialize(byte[] buffer, PlayerInventory instance, bool isDelta = false) { using (MemoryStream memoryStream = new MemoryStream(buffer)) { PlayerInventory.Deserialize(memoryStream, instance, isDelta); } return(instance); }
public static PlayerInventory Deserialize(byte[] buffer) { PlayerInventory playerInventory = Pool.Get <PlayerInventory>(); using (MemoryStream memoryStream = new MemoryStream(buffer)) { PlayerInventory.Deserialize(memoryStream, playerInventory, false); } return(playerInventory); }
public void FromProto(Stream stream, bool isDelta = false) { PlayerInventory.Deserialize(stream, this, isDelta); }