Commit graph

27 commits

Author SHA1 Message Date
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
126454574c Remove obsolete checks.
We require POSIX to run.
2022-04-16 13:50:55 +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
a4fef5cb87 Removed accidentally referred file. 2021-05-29 16:57:39 +02:00
Erik Ogenvik
458b6f8536 Fixed various memory leak issues throughout the code. 2021-05-27 17:38:58 +02:00
Erik Ogenvik
0791649ccc Fixed various memory leaks.
We want our tests to properly clean up so we can use them to find memory leaks.
2021-05-18 22:09:57 +02:00
Erik Ogenvik
79e0b75af2 Improve memory handling. 2021-05-16 15:55:45 +02:00
Erik Ogenvik
3c5653c864 Fixed tests. 2020-07-14 23:16:43 +02:00
Erik Ogenvik
d6c1bd8c75 Make EntityKit create Entity instances.
As it's used on the server only.
2020-07-14 23:05:40 +02:00
Erik Ogenvik
83c4425bff Fixed tests. 2020-06-26 23:43:32 +02:00
Erik Ogenvik
3ab434bf8c Removed concept of "default" location.
Creation of new players now is handled through the Spawn Entities instead.
2020-06-22 22:57:13 +02:00
Erik Ogenvik
dc4311ed4c Remove unused features. 2020-06-22 20:32:21 +02:00
Erik Ogenvik
008182fb25 Signal account ownership through the "__account" property. 2020-06-17 20:14:59 +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
2986f9dafe Separate terrain points into "terrain_points" property. 2020-06-01 20:13:23 +02:00
Erik Ogenvik
2eefd901c1 Handle observers through multiple domains. 2020-05-17 01:35:12 +02:00
Erik Ogenvik
0472d434b1 Added property "_containers_active" to inform clients. 2020-05-12 23:05:29 +02:00
Erik Ogenvik
998d7d59d9 Added property for allowing container access.
Containers won't allow access to their content unless the prop
__container_access is set to include the actor.
2020-05-09 22:09:59 +02:00
Erik Ogenvik
318c5b43b4 Removed more unnecessary friend declaration. 2020-05-03 21:15:43 +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
d1ae3e36d2 Added spawner traits.
Spawning new entities are handled by Python scripts rather than by the SpawnerProperty (which is now removed).
2020-04-15 22:11:51 +02:00
Erik Ogenvik
965262948d Add entities to parent after they've been created. 2020-04-13 15:23:01 +02:00
Erik Ogenvik
41796daaa2 Removed arithmethic scripts.
The same effect can be achieved by using entity scripts, along with the Modifiers framework.
2020-04-13 00:06:29 +02:00
Erik Ogenvik
fed8e9c32d Moved test to proper place. 2020-04-11 22:25:21 +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
Erik Ogenvik
7534fee4e3 Arrange tests better and remove obsolete and unused stuff. 2020-01-20 23:17:55 +01:00
Renamed from tests/CorePropertyManagerTest.cpp (Browse further)