示例#1
0
        public static PlayerInventory Deserialize(Stream stream)
        {
            PlayerInventory playerInventory = Pool.Get <PlayerInventory>();

            PlayerInventory.Deserialize(stream, playerInventory, false);
            return(playerInventory);
        }
示例#2
0
 public static PlayerInventory Deserialize(byte[] buffer, PlayerInventory instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         PlayerInventory.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
示例#3
0
        public static PlayerInventory Deserialize(byte[] buffer)
        {
            PlayerInventory playerInventory = Pool.Get <PlayerInventory>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                PlayerInventory.Deserialize(memoryStream, playerInventory, false);
            }
            return(playerInventory);
        }
示例#4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     PlayerInventory.Deserialize(stream, this, isDelta);
 }