Commit graph

1061 commits

Author SHA1 Message Date
Erik Ogenvik
d7960b3100 Improve on how updated types are handled.
By installing and changing some types, other types might update. This is
now handled.
2018-05-08 14:32:02 +02:00
Erik Ogenvik
dd94c1f08e Remove GCC warning. 2018-05-07 11:15:26 +02:00
Erik Ogenvik
346624c703 Support older compilers. 2018-05-07 11:15:12 +02:00
Erik Ogenvik
c99af50dbe Provide template specialization for LocatedEntity. 2018-05-07 10:48:59 +02:00
Erik Ogenvik
699f686303 Catch exceptions. 2018-05-02 21:55:52 +02:00
Erik Ogenvik
7895d1b0aa Reload minds when python code changes.
All thoughts are first persisted and then restored.
2018-05-01 22:23:31 +02:00
Erik Ogenvik
2f1bb4aee0 Insert correct op name. 2018-05-01 17:27:45 +02:00
Erik Ogenvik
3a41f8fc62 Reload all python tasks scripts too. 2018-05-01 14:42:02 +02:00
Erik Ogenvik
e80d07560c Reload entity scripts when python code changes.
For now we reload all scripts. We should be smarter and only reload
those scripts which are affected though.
2018-04-30 23:34:58 +02:00
Erik Ogenvik
d4604d034d Correctly handled updated type properties.
When a type is updated we now property re-apply modified properties on
affected entities.
2018-04-29 17:21:44 +02:00
Erik Ogenvik
0f1559ba16 Reload types when they change. 2018-04-29 11:59:33 +02:00
Erik Ogenvik
5b719253a2 Include header needed by older boost versions. 2018-04-28 13:42:16 +02:00
Erik Ogenvik
664988645e Make all properties define type and optional name. 2018-04-27 23:12:15 +02:00
Erik Ogenvik
09090a6446 Emit Change op when a type changes. 2018-04-27 23:12:15 +02:00
Erik Ogenvik
0d26f7e24e Wait a little when emitting change events.
To batch up multiple events for the same file.
2018-04-27 23:12:15 +02:00
Erik Ogenvik
0ac9f30792 Added a "change" op for when stuff change.
This is used to emit signals about types being changed. It's up to the
clients then to request updates if they need.
2018-04-27 23:12:01 +02:00
Erik Ogenvik
4dffa79f50 Check if updated property is same as old. 2018-04-26 18:56:58 +02:00
Erik Ogenvik
7ae19d5038 Use Singleton base class.
I.e. make sure that all objects have a defined life time. This requires
that we actually set up and tear down the singletons.
2018-04-25 20:15:29 +02:00
Erik Ogenvik
f283ffbafb Communicate type changes to all clients. 2018-04-25 20:15:29 +02:00
Erik Ogenvik
283733225f Added assets manager with file observation.
Initial code for a manager which automatically reload assets, rules and
scripts.
2018-04-25 20:15:29 +02:00
Erik Ogenvik
cdec868f13 Added simple singleton base class. 2018-04-25 20:15:29 +02:00
Erik Ogenvik
41acf87d34 Added directory monitoring for asio.
This is meant to be used for detecting file system changes of rules and
scripts and automatically reload them.
2018-04-25 20:15:29 +02:00
Erik Ogenvik
c23b322ead Use "add" and "remove" for flags.
Since it's more descriptive.
2018-04-25 20:15:28 +02:00
Erik Ogenvik
d51d1c39c0 Use fixed size values for flags. 2018-04-24 22:53:11 +02:00
Erik Ogenvik
87c60c7bd1 Use unsigned values for bitmasks. 2018-04-15 13:19:25 +02:00
Erik Ogenvik
f09675cec6 Use "planted" for floating entities.
Entities that are "planted" on bodies of water are floating.
This does away with the "floating" mode.

To mark that entities should by default be floating when placed in
water the boolean property "floats" has been added.
2018-03-24 17:06:02 +01:00
Erik Ogenvik
1ef3652f74 Allow type properties to be ephemeral.
Which means that they won't be persisted, and also not removed when the
type is synced with an EntityFactory.
This fixed an issue with tools having their bbox removed when operations
where added to them.
2018-03-09 14:53:53 +01:00
Erik Ogenvik
66ab8aa91e Removed obsolete code. 2018-02-20 23:08:37 +01:00
Erik Ogenvik
7f1c956b77 Fixed tests with friction. 2018-02-15 12:39:34 +01:00
Erik Ogenvik
6508097306 Use C++ string converters, and clean up code. 2018-02-08 21:47:22 +01:00
Erik Ogenvik
162e682a99 Fixed tests. 2018-02-06 13:45:11 +01:00
Erik Ogenvik
4e2e1a95d4 Fail if we can't read config. 2018-02-06 13:45:11 +01:00
Erik Ogenvik
780318558d Allow assets directory to be set in config. 2018-02-06 13:45:11 +01:00
Erik Ogenvik
e7fa53214b Use nullptr instead of NULL. 2018-02-06 13:45:11 +01:00
Erik Ogenvik
16e3794d3f Update description when properties are updated. 2018-02-06 13:45:11 +01:00
Erik Ogenvik
aed9342e3e Small cleanup. 2018-02-06 13:45:11 +01:00
Erik Ogenvik
70084e0279 Added calls for when property is installed on Type 2018-02-06 13:45:11 +01:00
Erik Ogenvik
62227f5664 Update with Atlas changes. 2018-02-06 13:45:11 +01:00
Erik Ogenvik
8eefe4a066 Added support for Ogre meshes.
We now can read the basic geometry from Ogre meshes, which is to be used
for collision geometry.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
e9e9240f5a Include headers in CMake files.
So IDEs pick them up.
2018-02-06 13:45:11 +01:00
Erik Ogenvik
6003e14183 Added Atlas query utility functions. 2018-02-06 13:45:10 +01:00
Erik Ogenvik
e9b119cc42 Improve logging output. 2018-02-06 13:45:10 +01:00
Erik Ogenvik
afebda91ae Fix issue with boost 1.66.
Where io_service is a typedef for io_context.
2017-12-23 23:28:09 +01:00
Erik Ogenvik
e2513e5c3a Fixed issues with stub property. 2017-08-02 10:03:58 +02:00
Erik Ogenvik
6275555b20 Improved stub generation and create all stubs. 2017-07-25 23:40:40 +02:00
Erik Ogenvik
eb2bb200e5 Clean up and remove unused structs. 2017-07-25 23:40:39 +02:00
Erik Ogenvik
0286bcd47d Replace "parents" with "parent". 2017-07-24 15:05:18 +02:00
Erik Ogenvik
b40c613a78 Improve handling of broadcasts.
Use the domains for determining broadcasts.
2017-06-24 21:47:43 +02:00
Erik Ogenvik
dce29d2d28 Remove future seconds totally. 2017-06-12 18:01:14 +02:00
Erik Ogenvik
5e8d20a020 Use correct types. 2017-05-27 20:27:48 +02:00