Erik Ogenvik
b7493d32aa
Handle properties in MemEntity differently.
2021-06-20 15:40:33 +02:00
Erik Ogenvik
a40cad95ea
Removed Location from LocatedEntity.
...
Since not all entities have physical location, which is more and more true
now that we have domains. Entities that are placed in non-physical domains don't have
any location data.
This also makes it easier to streamline the sending of properties, since we only need
to send the properties that actually have changed.
In addition, this helps with removing circular references, since the "m_parent" field no longer
is a Ref.
2021-06-18 22:44:30 +02:00
Erik Ogenvik
8da335d14b
Use reference when possible instead of pointers.
2021-05-31 00:05:25 +02:00
Erik Ogenvik
690afccf41
Fixed various memory leaks and test failures.
2021-05-30 12:13:27 +02:00
Erik Ogenvik
458b6f8536
Fixed various memory leak issues throughout the code.
2021-05-27 17:38:58 +02:00
Erik Ogenvik
7eeaa63561
Fixed tests.
2020-08-11 16:27:38 +02:00
Erik Ogenvik
19f75d2904
Fixes for test compilation, although they don't work yet.
2020-08-11 16:27:38 +02:00
Erik Ogenvik
b2ee7df640
Be more efficient when doing visibility calculations.
...
Instead of going through the whole collision world we optimize
for our specific use case of only wanting to check distance between spheres.
2020-07-20 01:01:43 +02:00
Erik Ogenvik
53ba71ad1a
Added constraints for how things can be moved.
...
By combining multiple constraints it's possible to craft a world where players can
move some entities while others are fixed in place.
2020-06-14 01:40:16 +02:00
Erik Ogenvik
c0cdf43939
Have the Mind send any move ops to the destination entity.
2020-06-13 21:22:08 +02:00
Erik Ogenvik
0c9908878d
Added more tests for movement.
2020-06-13 18:00:03 +02:00
Erik Ogenvik
6bf4c1a337
Initial work on improving the logic for moving entities.
2020-06-13 16:28:04 +02:00
Erik Ogenvik
10cbe1340f
Upon destruction, move child entities to parent's location.
...
Although this behaviour needs to be expanded for various scenarios; we don't always want this.
2020-05-03 16:12:45 +02:00
Erik Ogenvik
3bc16a8845
Place children at parent's position when deleted.
2020-05-03 14:43:00 +02:00
Erik Ogenvik
965262948d
Add entities to parent after they've been created.
2020-04-13 15:23:01 +02:00
Erik Ogenvik
16261f8a4b
Added test for modifier with constraint.
2020-04-01 20:47:00 +02:00
Erik Ogenvik
475a4b091f
Fixed issues with applying modifiers.
2020-03-31 22:39:59 +02:00
Erik Ogenvik
9462c4266d
Refactor how properties are applied and improve modifiers.
2020-03-25 23:50:00 +01:00
Erik Ogenvik
4df12845c2
Break up usage of Singletons a bit.
...
Also provide a separate ServerPropertyManager from the CorePropertyManager.
2020-03-22 23:36:52 +01:00