694 Commits

Autor SHA1 Nachricht Datum
Reinder Feenstra
906ff82cd8 lua: made built-in globals read only 2021-11-13 00:39:45 +01:00
Reinder Feenstra
b6ec6cc8bd lua: added LUA_VERSION global 2021-11-13 00:35:56 +01:00
Reinder Feenstra
c290837d33 lua: world: allow stop and power_off call from script 2021-11-10 23:49:22 +01:00
Reinder Feenstra
947e9bb1aa lua: fixed VERSION constants 2021-11-10 23:48:30 +01:00
Reinder Feenstra
803ca40ec6 added method flags to control method access within the Lua scripting engine 2021-11-10 23:19:49 +01:00
Reinder Feenstra
b9897c996d lua: enabled readonly access to world uuid/name/scale/scale_ratio and state properties 2021-11-10 22:43:50 +01:00
Reinder Feenstra
274537038a lua: added support for reading set properties
changed lua set storage from T to lua_Integer
2021-11-10 22:42:18 +01:00
Reinder Feenstra
f0eac15247 added property flags to control property access within the Lua scripting engine 2021-11-10 22:03:03 +01:00
Reinder Feenstra
0546ef1c30 lua: added WorldScale enum to sandbox 2021-11-10 21:58:09 +01:00
Reinder Feenstra
2dc42015dc lua: added support for reading enum properties 2021-11-10 21:55:26 +01:00
Reinder Feenstra
a4806f36f9 moved serial port open code to function for reuse 2021-10-25 23:05:42 +02:00
Reinder Feenstra
c4e6986c9f Merge branch 'interface-controller' of github.com:traintastic/traintastic into interface-controller 2021-10-24 17:23:11 +02:00
Reinder Feenstra
9db313ad79 loconet: added attributes and cleanup 2021-10-24 17:23:07 +02:00
Reinder Feenstra
f52502bcbf WIP: XpressNet rewrite 2021-10-24 17:22:17 +02:00
Reinder Feenstra
c5267c69b8 fix: -Wc++11-narrowing 2021-10-18 23:29:43 +02:00
Reinder Feenstra
ba474f4427 fix: added undef interface, interface is defined in combaseapi.h 2021-10-18 23:08:52 +02:00
Reinder Feenstra
21471a2797 loconet: enabled reading all slot after connect 2021-10-17 21:29:09 +02:00
Reinder Feenstra
2a222ca5fe fix: -Wshadow 2021-10-17 21:28:47 +02:00
Reinder Feenstra
6245513048 WIP: loconet: major rewrite:
one interface with three io handler backends: serial/tcp binary/LBServer
the kernel runs it's own thread for handling all loconet traffic (and future filtering), it only notifies the event loop if something changes
2021-10-17 16:38:51 +02:00
Reinder Feenstra
956c8ad168 Replaced command station and controller by interface with supporting controllers 2021-10-17 16:10:56 +02:00
Reinder Feenstra
48d53f60f2 added setMinMax attribute helper 2021-10-17 11:00:41 +02:00
Reinder Feenstra
db1808ec86 added argument support to LogMessageException 2021-10-17 10:55:05 +02:00
Reinder Feenstra
b7de6c91b9 fix: corrected power on/off log messages 2021-10-17 10:53:06 +02:00
Reinder Feenstra
48c32708d1 board: straight can now also be upgraded to a tunnel, block or sensor 2021-10-12 22:14:57 +02:00
Reinder Feenstra
8ac1c4d2ae fix: corrected class id, caused buffer stop not to be buildable 2021-10-12 22:13:40 +02:00
Reinder Feenstra
dd08ede080 board: allow placing signal on top of straght if direction matches 2021-10-06 22:23:09 +02:00
Reinder Feenstra
608a94d036 object: add const overloads 2021-10-03 17:09:15 +02:00
Reinder Feenstra
0276e92eb7 patch: serial op failed on windows (in boost::asio)
see: https://github.com/chriskohlhoff/asio/issues/717
2021-09-29 17:28:24 +02:00
Reinder Feenstra
b15cc45286 lua: added support for testing object type 2021-09-21 23:49:03 +02:00
Reinder Feenstra
45db18e6c9 fix: ObjectSetProperty request wasn't properly handled 2021-09-20 22:31:42 +02:00
Reinder Feenstra
b9cf6f5342 fix: added shared_ptr in table model to keep list alive until all models are gone 2021-09-18 23:57:58 +02:00
Reinder Feenstra
e17632d983 log: added overloads for string_view objectId 2021-09-18 23:55:32 +02:00
Reinder Feenstra
8dfd87a738 scriptlist: added remove method 2021-09-16 23:23:00 +02:00
Reinder Feenstra
f9565ed519 freight car: added cargo loaded and cargo capacity properties 2021-09-16 23:22:36 +02:00
Reinder Feenstra
f58679dba6 rail vehicle: don't show total weight in object editor (for now) 2021-09-16 23:09:25 +02:00
Reinder Feenstra
3b277397ca added ratio unit property 2021-09-16 23:08:44 +02:00
Reinder Feenstra
de306f9393 added support for min/max attributes to unit properties 2021-09-16 22:59:01 +02:00
Reinder Feenstra
636d73dc03 fix: script was added twice to the list 2021-09-15 00:09:56 +02:00
Reinder Feenstra
124dfd68f3 test: added extra checks in board tile add test 2021-09-13 23:09:48 +02:00
Reinder Feenstra
cea12458d7 test: added very basic board save/load test 2021-09-12 23:05:49 +02:00
Reinder Feenstra
0abfe4c3b8 fix: corrected typo's in test
#notetoself always run tests before push
2021-09-12 20:55:15 +02:00
Reinder Feenstra
da0fb33b72 test: added checks if classId matches getClassId() 2021-09-12 20:28:16 +02:00
Reinder Feenstra
e69e11b6d5 fixed warning 2021-09-12 13:02:06 +02:00
Reinder Feenstra
8dabe7abe5 fixed warning 2021-09-12 10:36:23 +02:00
Reinder Feenstra
ac8a94a7c9 fix: ssize_t -> auto (ssize_t is unix specific type) 2021-09-12 10:36:06 +02:00
Reinder Feenstra
25fd3b6e05 fixed warnings 2021-09-12 09:55:33 +02:00
Reinder Feenstra
08554e4f7a server: enabled -Werror for non MSVC builds 2021-09-11 23:50:08 +02:00
Reinder Feenstra
b30db09116 server: fixed many warnings 2021-09-11 23:49:38 +02:00
Reinder Feenstra
2db0ac44f8 server: set MSVC warning level to 3, all takes forever (TODO: get rid of warnings in 3rd party includes) 2021-09-11 18:34:51 +02:00
Reinder Feenstra
a493866dfb raised warning level to all 2021-09-11 09:16:02 +02:00