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

            PersistantPlayer.Deserialize(stream, persistantPlayer, false);
            return(persistantPlayer);
        }
Exemplo 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);
 }
Exemplo 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);
        }
Exemplo n.º 4
0
 public void FromProto(Stream stream, bool isDelta = false)
 {
     PersistantPlayer.Deserialize(stream, this, isDelta);
 }