113 Commits

Autor SHA1 Nachricht Datum
Reinder Feenstra
a9aef63e4e fix: world failed to load if a script was present 2023-09-23 22:49:08 +02:00
Reinder Feenstra
b2c88e2c01 lua: implemented excution time limit 2023-09-17 19:16:54 +02:00
Reinder Feenstra
54ba3664a6 Merge remote-tracking branch 'origin/master' into 11-märklin-cs2cs3-hardware-support 2023-07-09 23:15:32 +02:00
Reinder Feenstra
b9dcc0703e Merge remote-tracking branch 'origin/master' into 11-märklin-cs2cs3-hardware-support 2023-07-01 01:09:51 +02:00
Reinder Feenstra
e28a9a5d96 DecoderProtocol: removed Auto/Custom, added None
see #72
2023-06-24 23:41:58 +02:00
Filippo Gentile
0c111c6763 server: further fix compilation after method.hpp split
Co-authored-by: Reinder Feenstra <reinderfeenstra@gmail.com>
2023-06-18 13:23:35 +02:00
Filippo Gentile
4c58c9d829 server: split method.hpp implementation
- Added method.tpp file
- Include it where needed
- Use CREATE_DEF when needed
2023-06-18 13:23:31 +02:00
Reinder Feenstra
c0ec3c7731 loconet: added support for sending messages from script 2023-06-14 21:31:42 +02:00
Reinder Feenstra
64272c8b06 lua status: fix: running count was not correct after load 2023-06-10 00:29:41 +02:00
Reinder Feenstra
b609d84815 lua: added object argument support to methods 2023-06-10 00:29:41 +02:00
Reinder Feenstra
2571542067 lua: added vector property support 2023-06-10 00:29:40 +02:00
Reinder Feenstra
a032935294 toolbar: added Lua status widget
only visible if scriptlist isn't empty
2023-06-08 00:23:43 +02:00
Reinder Feenstra
0d01d04112 lua: interface name, online, status available (readonly) 2023-06-06 00:00:37 +02:00
Reinder Feenstra
c6913206e5 loconet: added support for sending OPC_IMM_PACKET from script 2023-06-05 00:31:21 +02:00
Reinder Feenstra
176db3c764 lua: refactor object wrapper
now seperate object wrappers are per class
2023-06-05 00:26:45 +02:00
Reinder Feenstra
246b27c434 moved ObjectProperty<> implementation to seperate file
world.hpp now uses forward decl. for many classes, this reduces built time!
see #43
2023-03-30 15:09:11 +02:00
Reinder Feenstra
a2ed365050 renamed: FreightCar to FreightWagon 2023-03-09 23:49:51 +01:00
Reinder Feenstra
63a5b8c7af rename list add/remove to create/delete
add = add existing item
remove = remove item, but don't destroy it
2023-02-25 23:15:38 +01:00
Reinder Feenstra
143bb49a68 renamed MarklinCSInterface to MArklinCANInterface
see #11
2023-01-29 10:17:33 +01:00
Reinder Feenstra
268479f224 #11 marklin-cs: added interface class 2023-01-20 23:02:46 +01:00
Reinder Feenstra
61b3db241a bugfix: assert() triggered on invalid data on world close
closes #8
2023-01-17 23:43:39 +01:00
Reinder Feenstra
d77ddfbafb fix: added missing destroying() in Lua::Script 2023-01-06 00:55:53 +01:00
Reinder Feenstra
50f14074a1 added basic WiThrottle support 2022-12-04 23:54:32 +01:00
Reinder Feenstra
8f70509465 added base classes for identification support 2022-09-16 22:33:10 +02:00
Reinder Feenstra
f0989ff85c fix: added missing include for ubuntu 22.04 2022-09-02 19:41:40 +02:00
Reinder Feenstra
d25edfe913 lua: script no longer calls init() function if found
must now be added to script
2022-09-02 00:13:56 +02:00
Reinder Feenstra
228fde8fbe lua: added contains method to sets 2022-08-28 17:36:21 +02:00
Reinder Feenstra
5bffbccce2 test: added test for lua class.get() 2022-08-27 11:42:52 +02:00
Reinder Feenstra
cfdc203c2b lua: fixed class.get() now works as explained in manual 2022-08-27 11:39:05 +02:00
Reinder Feenstra
278b754bc1 log 3rd party component versions at startup 2022-08-25 00:23:27 +02:00
Reinder Feenstra
9f52368ad9 Version numbering improvements
- GitHub actions branch builds have a <branch>-<pipeline>-<sha_short> suffix.
- GitHub actions tag builds have no suffix.
- Other builds have a -dev suffix
2022-06-12 00:16:19 +02:00
Reinder Feenstra
73b5b53e6c input: published name and value to lua (readonly) 2022-05-22 11:39:29 +02:00
Reinder Feenstra
7978c76898 lua: added start/stop all to script list and added disabled property to script (to prevent start all) 2022-05-04 23:55:14 +02:00
Reinder Feenstra
371f82c433 added assert to check for use of missing enum values 2022-05-02 09:25:32 +02:00
Reinder Feenstra
5521a262e7 added macro's for enum/set type info 2022-04-30 00:11:05 +02:00
Reinder Feenstra
8ab7416525 lua: replaced dead event error by dead object error
event always dies with the object, so no need for a seperate error
2022-04-27 19:09:30 +02:00
Reinder Feenstra
9bc5b9da1b lua: method wrapper, use inplace new to get rid of a heap allocation 2022-04-27 19:08:00 +02:00
Reinder Feenstra
b48f43eb0a lua: event wrapper, use inplace new to get rid of a heap allocation 2022-04-27 19:07:25 +02:00
Reinder Feenstra
d3b58570c1 lua: event: added call meta method as alias for connect 2022-04-27 18:54:15 +02:00
Reinder Feenstra
488d54cc92 lua: object wrapper, use inplace new to get rid of a heap allocation 2022-04-27 16:55:49 +02:00
Reinder Feenstra
3333e8e05b lua: moved set's to single file for sandbox and testing 2022-04-25 23:27:01 +02:00
Reinder Feenstra
953cd16d38 lua: added TurnoutPosition and SignalAspect enums 2022-04-23 19:37:54 +02:00
Reinder Feenstra
5b07d1d44f lua: moved enum's to single file for sandbox and testing 2022-04-23 19:14:09 +02:00
Reinder Feenstra
224922587b lua: added log messages for script start/stop 2022-03-26 00:33:29 +01:00
Reinder Feenstra
bd22141c85 lua: method: implmented parameter support (except object) 2022-03-23 00:21:12 +01:00
Reinder Feenstra
94699b8a50 lua: set: added generic check/test function using typename 2022-03-23 00:15:51 +01:00
Reinder Feenstra
66fcce2fe0 lua: enum: added generic check/test function using typename
storage type is now always lua_Integer instead of the enum's size
2022-03-23 00:08:35 +01:00
Reinder Feenstra
46ff721e18 lua: added error logging for error during event handler execution 2022-03-23 00:06:12 +01:00
Reinder Feenstra
f159668406 Added new typeinfo for method and event 2022-03-22 23:39:59 +01:00
Reinder Feenstra
6bb930b2f2 lua: added DirectionControlState enum 2022-03-22 23:28:22 +01:00