370 Commits

Autor SHA1 Nachricht Datum
Reinder Feenstra
6b59525b42 rewrote DCC++(EX) 2021-11-28 22:43:41 +01:00
Reinder Feenstra
8128f7aa50 utils: added rtrim function 2021-11-28 21:50:05 +01:00
Reinder Feenstra
d62146bf4a Merge branch 'master' of github.com:traintastic/traintastic 2021-11-27 11:47:27 +01:00
Reinder Feenstra
47bb794a82 lua: added script access for board, train and rail vehicle 2021-11-27 11:41:14 +01:00
Reinder Feenstra
546c87e94d lua: added support for object lists 2021-11-27 11:05:04 +01:00
Reinder Feenstra
393e6585d9 fix: added missing include 2021-11-24 09:51:04 +01:00
Reinder Feenstra
63eec6d461 lua: added event support 2021-11-24 00:07:36 +01:00
Reinder Feenstra
c5dac66570 world: added on_event event 2021-11-24 00:02:56 +01:00
Reinder Feenstra
c031dfabcd core: added event support 2021-11-24 00:02:21 +01:00
Reinder Feenstra
a072bdef76 test: lua is_instance -> get_class, fixed implementation issues 2021-11-23 23:50:54 +01:00
Reinder Feenstra
f1c2b5fa55 lua: added property script writable check 2021-11-20 00:28:11 +01:00
Reinder Feenstra
f7f289e1d6 lua: added extended type() function and replaced in_instance() by get_class() 2021-11-20 00:27:00 +01:00
Reinder Feenstra
f64ec12961 lua: added math, string and table library to sandbox
except string.dump()
2021-11-14 01:12:39 +01:00
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
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