bms_sm/string_data/string_id.rs
1#[repr(u32)]
2#[derive(Debug, Default, Copy, Clone, PartialEq, Eq, Hash)]
3pub enum StringId {
4 // VERSION 1
5 #[default]
6 BmsExe = 0, // BMS exe name, full path
7 KeyFile, // Key file name in use, full path
8
9 BmsBasedir, // BmsBasedir to BmsPictureDirectory:
10 BmsBinDirectory, // - BMS directories in use
11 BmsDataDirectory,
12 BmsUIArtDirectory,
13 BmsUserDirectory,
14 BmsAcmiDirectory,
15 BmsBriefingsDirectory,
16 BmsConfigDirectory,
17 BmsLogsDirectory,
18 BmsPatchDirectory,
19 BmsPictureDirectory,
20
21 ThrName, // Current theater name
22 ThrCampaigndir, // ThrCampaigndir to ThrTacrefpicsdir:
23 ThrTerraindir, // - Current theater directories in use
24 ThrArtdir,
25 ThrMoviedir,
26 ThrUisounddir,
27 ThrObjectdir,
28 Thr3ddatadir,
29 ThrMisctexdir,
30 ThrSounddir,
31 ThrTacrefdir,
32 ThrSplashdir,
33 ThrCockpitdir,
34 ThrSimdatadir,
35 ThrSubtitlesdir,
36 ThrTacrefpicsdir,
37
38 AcName, // Current AC name
39 AcNCTR, // Current AC NCTR
40
41 // VERSION 2
42 ButtonsFile, // Current 3dbuttons.dat file full path
43 CockpitFile, // Current 3dckpit.dat file full path
44
45 // VERSION 3
46 NavPoint, // Multiple entries, one for each NavPoint. Format for each entry is (NP, O1, O2, PT can be concatenated):
47 // (NavPoint, mandatory) NP:<index>,<type>,<x>,<y>,<z>,<grnd_elev>;
48 // <index> int NavPoint number, 1-99
49 // <type> two chars GM (GMPOINT), PO (POSPOINT), WP (WAYPOINT), MK (MARKPOINT), DL (DATALINK)
50 // CB (CAMPBULLSEYE), L1 (LINE1), L2 (LINE2), L3 (LINE3), L4 (LINE4), PT (PREPLANNEDTHREAD)
51 // <x>,<y> float position in sim coordinates
52 // <z> float altitude in 10s of feet
53 // <grnd_elev> float ground elevation in 10s of feet
54 // (OA1/OA2, optional) O1:<bearing>,<range>,<alt>; (and/or) O2:<bearing>,<range>,<alt>;
55 // <bearing> float
56 // <range> unsigned int
57 // <alt> unsigned int
58 // (PPT, optional) PT:<str_id>,<range>,<declutter>;
59 // <str_id> "string"
60 // <range> float
61 // <declutter> int 0 = false, 1 = true
62
63 // VERSION 4
64 ThrTerrdatadir,
65
66 // FIXED LAST ENTRY
67 StringIdentifierDIM, // (number of identifiers; add new IDs only *above* this one)
68}