Erik Ogenvik
7fcf0c34d1
Envelope router ids in one single struct.
...
Since the string and the integer always go together.
2022-07-04 15:37:51 +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
ed7e43dfed
Prefer references over pointers where possible.
2021-06-02 00:26:41 +02:00
Erik Ogenvik
1ff753575c
Fixed minor memory leaks.
2021-05-24 23:14:24 +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
7bc46888d9
Fixed test after disallowing entities with invalid pos in phys domains.
2020-04-29 21:42:18 +02:00
Erik Ogenvik
64bc02da20
Added "visibility" rules to entities.
...
A "private" entity can only be seen by the simulation, and admins.
A "protected" entity can only be seen by its children, or its immediate parent.
2020-04-25 16:36:43 +02:00
Erik Ogenvik
475a4b091f
Fixed issues with applying modifiers.
2020-03-31 22:39:59 +02: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
Erik Ogenvik
7534fee4e3
Arrange tests better and remove obsolete and unused stuff.
2020-01-20 23:17:55 +01:00