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