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