public void CopyTo(BaseNPC instance) { instance.flags = this.flags; }
public byte[] ToProtoBytes() { return(BaseNPC.SerializeToBytes(this)); }
public virtual void WriteToStream(Stream stream) { BaseNPC.Serialize(stream, this); }
public void ToProto(Stream stream) { BaseNPC.Serialize(stream, this); }
public static void SerializeLengthDelimited(Stream stream, BaseNPC instance) { byte[] bytes = BaseNPC.SerializeToBytes(instance); ProtocolParser.WriteUInt32(stream, (uint)bytes.Length); stream.Write(bytes, 0, (int)bytes.Length); }
public void ResetToPool() { BaseNPC.ResetToPool(this); }
public virtual void ReadFromStream(Stream stream, int size, bool isDelta = false) { BaseNPC.DeserializeLength(stream, size, this, isDelta); }
public void FromProto(Stream stream, bool isDelta = false) { BaseNPC.Deserialize(stream, this, isDelta); }