idz: Add idz_settings.driving_style column
This commit is contained in:
@@ -95,6 +95,7 @@ export function saveProfile2(buf: Buffer): SaveProfileRequest {
|
||||
aura: buf.readUInt8(0x002c),
|
||||
paperCup: buf.readUInt8(0x00f6),
|
||||
gauges: buf.readUInt8(0x00f7),
|
||||
drivingStyle: 0, // Not supported until idz2
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -97,6 +97,7 @@ export function saveProfile3(buf: Buffer): SaveProfileRequest {
|
||||
aura: buf.readUInt8(0x002c),
|
||||
paperCup: buf.readUInt8(0x00f6),
|
||||
gauges: buf.readUInt8(0x00f7),
|
||||
drivingStyle: 0, // Not supported until idz2
|
||||
},
|
||||
};
|
||||
}
|
||||
|
||||
@@ -16,6 +16,7 @@ export function saveSettings(buf: Buffer): SaveSettingsRequest {
|
||||
paperCup: buf.readUInt8(0x0011),
|
||||
gauges: buf.readUInt8(0x0012),
|
||||
aura: buf.readUInt8(0x0013),
|
||||
drivingStyle: 0, // Not supported until idz2
|
||||
},
|
||||
field_0010: buf.readUInt8(0x0010),
|
||||
};
|
||||
|
||||
@@ -34,6 +34,7 @@ export async function createProfile(
|
||||
aura: 0,
|
||||
paperCup: 0,
|
||||
gauges: 5,
|
||||
drivingStyle: 0, // Not supported until idz2
|
||||
};
|
||||
const story: Story = {
|
||||
x: 0,
|
||||
|
||||
@@ -4,4 +4,5 @@ export interface Settings {
|
||||
aura: number;
|
||||
paperCup: number;
|
||||
gauges: number;
|
||||
drivingStyle: number;
|
||||
}
|
||||
|
||||
@@ -27,6 +27,7 @@ export class SqlSettingsRepository implements FacetRepository<Settings> {
|
||||
aura: parseInt(row.aura!),
|
||||
paperCup: parseInt(row.paper_cup!),
|
||||
gauges: parseInt(row.gauges!),
|
||||
drivingStyle: parseInt(row.driving_style!),
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user