public static uint Write(object argument, IDefinitionWriter writer) { var(unknown0, unknown1, unknown2, unknown3, unknown4, unknown5) = ((ushort, uint, ushort, ushort, byte, ulong))argument; writer.WriteValueU16(unknown0); writer.WriteValueU32(unknown1); writer.WriteValueU16(unknown2); writer.WriteValueU16(unknown3); writer.WriteValueU8(unknown4); writer.WriteValueU64(unknown5); return(19); }
internal override void Serialize(IDefinitionWriter writer) { if (writer == null) { throw new ArgumentNullException(nameof(writer)); } writer.WriteValueU32(this.Id); writer.WriteValueU64(this.PathHash); writer.WriteStringU16(this.Path); }
public static uint Write(object argument, IDefinitionWriter writer) { writer.WriteValueU64((ulong)argument); return(8); }