-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathdata.lua
More file actions
25 lines (20 loc) · 659 Bytes
/
Copy pathdata.lua
File metadata and controls
25 lines (20 loc) · 659 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
--[[ Copyright (c) 2019 robot256 (MIT License)
* Project: Multiple Unit Train Control
* File: data.lua
* Description: Add the MU technology
--]]
require ("prototypes.technology")
-- Create mod-data prototype to store locomotive MU mappings
-- Format:
-- data.std_map :: dictionary[ string(locomotive-name) -> {mu_name = string(locomotive-mu-name), alt_name = string(locomotive-alt-name)?, fuel_item = string(fuel-item-mu)?} ]
-- data.mu_map :: dictionary[ string(locomotive-mu-name) -> string(locomotive-name) ]
data:extend{
{
type = "mod-data",
name = "mutc-locomotive-data",
data = {
std_map = {},
mu_map = {},
}
}
}