diff options
author | orwell96 <orwell@bleipb.de> | 2021-10-25 21:08:42 +0200 |
---|---|---|
committer | orwell96 <orwell@bleipb.de> | 2021-10-25 21:08:42 +0200 |
commit | 5f5d28af1b92218022eaa14f1fd801ac98c57805 (patch) | |
tree | ceb8cc538cdd784d302f68e023e2dd044d27f1b9 /advtrains/api_doc.txt | |
parent | e7d0a5fac2d87b468199059f1dd5bffb8bbcb327 (diff) | |
download | advtrains-5f5d28af1b92218022eaa14f1fd801ac98c57805.tar.gz advtrains-5f5d28af1b92218022eaa14f1fd801ac98c57805.tar.bz2 advtrains-5f5d28af1b92218022eaa14f1fd801ac98c57805.zip |
Coupling: Add concept of coupler types, allow coupling only when coupler types match
Diffstat (limited to 'advtrains/api_doc.txt')
-rw-r--r-- | advtrains/api_doc.txt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/advtrains/api_doc.txt b/advtrains/api_doc.txt index 8ac4986..1e49df3 100644 --- a/advtrains/api_doc.txt +++ b/advtrains/api_doc.txt @@ -75,6 +75,13 @@ advtrains.register_wagon(name, prototype, description, inventory_image) ^- Getting on by walking in then takes effect. ^- Positive values mean front, negative ones back. Resulting position is automatically shifted to the right side. + coupler_types_front = {scharfenberg=true}, + coupler_types_back = {chain=true}, + ^- Defines the available coupler types on this wagon on the front and back side. Wagon will only couple to wagons that have a matching coupler. (this property does not have any visual impact) + ^- Default: not given (nil) - causes the wagon to couple to any other wagon regardless of coupler type. + ^- Empty table ({}): This wagon does not couple to any other wagon (e.g. for Linetrack vehicles) + ^- Register coupler types using ''advtrains.register_coupler_type(type, name)''. advtrains defines the default types "chain" (Buffer and Chain) and "scharfenberg" (Scharfenberg coupler). + wagon_span=2, ^- How far this wagon extends from its base position. Is the half of the wagon length. ^- Used to determine in which distance the other wagons have to be positioned. Will require tweaking. |