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