Esempio n. 1
0
        public static PersistantPlayer Deserialize(Stream stream)
        {
            PersistantPlayer persistantPlayer = Pool.Get <PersistantPlayer>();

            PersistantPlayer.Deserialize(stream, persistantPlayer, false);
            return(persistantPlayer);
        }
Esempio n. 2
0
 public static PersistantPlayer Deserialize(byte[] buffer, PersistantPlayer instance, bool isDelta = false)
 {
     using (MemoryStream memoryStream = new MemoryStream(buffer))
     {
         PersistantPlayer.Deserialize(memoryStream, instance, isDelta);
     }
     return(instance);
 }
Esempio n. 3
0
        public static PersistantPlayer Deserialize(byte[] buffer)
        {
            PersistantPlayer persistantPlayer = Pool.Get <PersistantPlayer>();

            using (MemoryStream memoryStream = new MemoryStream(buffer))
            {
                PersistantPlayer.Deserialize(memoryStream, persistantPlayer, false);
            }
            return(persistantPlayer);
        }
Esempio n. 4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     PersistantPlayer.Deserialize(stream, this, isDelta);
 }