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