Skip to content

Commit

Permalink
Feature: Engine name callback
Browse files Browse the repository at this point in the history
This does not include the D8xx text area extension.
  • Loading branch information
michicc committed Jan 31, 2023
1 parent a950e7e commit e5c3331
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions nml/actions/action0.py
Original file line number Diff line number Diff line change
Expand Up @@ -1079,10 +1079,10 @@ def parse_sort_block(feature, vehid_list):


callback_flag_properties = {
0x00: {"size": 1, "num": 0x1E},
0x01: {"size": 1, "num": 0x17},
0x02: {"size": 1, "num": 0x12},
0x03: {"size": 1, "num": 0x14},
0x00: two_byte_property(0x1E, 0x31),
0x01: two_byte_property(0x17, 0x28),
0x02: two_byte_property(0x12, 0x22),
0x03: two_byte_property(0x14, 0x22),
0x04: {"size": 1, "num": 0x0B},
0x05: {"size": 1, "num": 0x08},
0x07: two_byte_property(0x14, 0x1D),
Expand Down
1 change: 1 addition & 0 deletions nml/actions/action3_callbacks.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
'every_32_days' : {'type': 'cb', 'num': 0x32},
'sound_effect' : {'type': 'cb', 'num': 0x33, 'flag_bit': 7},
'refit_cost' : {'type': 'cb', 'num': 0x15E, 'purchase': 1},
'name' : {'type': 'cb', 'num': 0x161, 'flag_bit': 8, 'purchase': 2},
}

# Function to convert vehicle length to the actual property value, which is (8 - length)
Expand Down

0 comments on commit e5c3331

Please sign in to comment.