idz: Add idz_settings.driving_style column

This commit is contained in:
BemaniWitch
2021-02-03 23:43:41 +00:00
committed by Tau
parent 9f6b0e59c8
commit 48a9bcbdbd
8 changed files with 41 additions and 1 deletions
+1
View File
@@ -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
},
};
}
+1
View File
@@ -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
},
};
}
+1
View File
@@ -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),
};
+1
View File
@@ -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,
+1
View File
@@ -4,4 +4,5 @@ export interface Settings {
aura: number;
paperCup: number;
gauges: number;
drivingStyle: number;
}
+1
View File
@@ -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!),
};
}