Tayrtahn and GitHub
dacaa974d4
Replace MapManager.DeleteMap with SharedMapSystem.DeleteMap in misc tests ( #5777 )
...
* Replace MapManager.DeleteMap with SharedMapSystem.DeleteMap in various tests
* Poke tests
* I guess this is was technically a breaking change?
2025-03-27 13:50:56 +11:00
fbc706f37b
Refactor map loading & saving ( #5572 )
...
* Refactor map loading & saving
* test fixes
* ISerializationManager tweaks
* Fix component composition
* Try fix entity deserialization component composition
* comments
* CL
* error preinit
* a
* cleanup
* error if version is too new
* Add AlwaysPushSerializationTest
* Add auto-inclusion test
* Better categorization
* Combine test components
* Save -> TrySave
Also better handling for saving multiple entities individually
* Create new partial class for map loading
* Add OrphanSerializationTest
* Include MapIds in BeforeSerializationEvent
* Addd LifetimeSerializationTest
* Add TestMixedLifetimeSerialization
* Add CategorizationTest
* explicitly serialize list of nullspace entities
* Add backwards compatibility test
* Version comments
also fixes wrong v4 format
* add MapMergeTest
* Add NetEntity support
* Optimize EntityDeserializer
Avoid unnecessary component deserialization
* fix assert & other bugs
* fucking containers strike again
* Fix deletion of pre-init entities
* fix release note merge conflict
* Update Robust.Shared/Map/MapManager.GridCollection.cs
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com >
* VV
---------
Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com >
2025-02-16 21:25:07 +11:00
Pieter-Jan Briers
3c83f8e62a
Make Rider not complain about Is. in Robust.UnitTesting, globally.
2024-09-02 07:27:23 +02:00
Pieter-Jan Briers
cdd8df743a
Fix warnings in Transform_Test.cs
2024-09-02 03:49:06 +02:00
Leon Friedrich and GitHub
1de8731465
Reduce uses of IComponentFactory.GetIndex(Type) ( #5242 )
...
* Update `RaiseComponentEvent` & component lifestatge methods
* Fix ComponentNetworkGenerator
* a
* A
2024-06-17 01:46:51 +10:00
Leon Friedrich and GitHub
f285c62674
Rework entity prototype categories ( #5061 )
...
* Improve entity categories
* A
2024-06-02 14:10:11 +10:00
eoineoineoin and GitHub
56c30edf04
Replace Matrix3 with System.Numerics.Matrix3x2 ( #5078 )
...
* Delete Matrix3. Replace with System.Numerics.Matrix3x2
* Feedback
* release notes
2024-06-02 14:08:47 +10:00
Leon Friedrich and GitHub
d5c4981648
Partial MapManager refactor ( #5042 )
...
* MapManager rejig
* Update Tests
* A
2024-04-18 14:05:02 +10:00
c79217ab66
Rework SetWorldPosition ( #4915 )
...
* Remove ents from containers for worldpos updates
Avoids bugs from content not checking for this every time. Physics and anything else important manually uses localposition updates so shouldn't adversely impact performance that much.
* Fixes
* Fix grid pos
* Also fix the joint setter
* Add both
* Update Robust.Shared/GameObjects/Systems/SharedTransformSystem.Component.cs
Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com >
---------
Co-authored-by: Leon Friedrich <60421075+ElectroJr@users.noreply.github.com >
2024-03-29 16:49:26 +11:00
Pieter-Jan Briers and GitHub
af98933173
Isolate net messages in integration tests. ( #4838 )
...
* Isolate net messages in integration tests.
Integration tests don't use Lidgren to connect client and send, instead they just use some in-process channels to communicate. Because of this, the original implementation of net messages *directly* passed the net message instances between client and server instances. This caused issues whenever content would mutate data in a NetMessage after it "passed through".
Now we run the messages through WriteToBuffer() and ReadFromBuffer() so they pass through binary serialization. This means there's no more implicit sharing of the objects.
Note that this requires some trickery: Lidgren's message types have internal constructors. Really ideally we'd change the engine to make this more testable... but that's a content breaking change. Instead I just added InternalsVisibleTo to Lidgren so we can mess with it. We maintain the library ourselves anyways I can do what I want.
Fixes #4836
* Register Robust.UnitTesting as assembly for reflection.
This is necessary so that serialized types in the assembly can be picked up by NetSerializer.
Have to disable automatic reflection on all entity systems/components that tests register manually right now, because otherwise tests break.
* Stop shallow cloning specific net messages in integration tests.
This isn't necessary anymore now that we have a thorough fix.
* Wow I really forgot to copy-paste that line to the other side huh.
* Add test that serializer hash matches.
* Another test one I missed earlier.
* Changelog
2024-01-16 21:04:39 +01:00
Leon Friedrich and GitHub
cfb88b2e8e
Arch related engine changes ( #4806 )
2024-01-04 12:18:03 +11:00
250f6ca7db
Obsolete TransformComponent.ChildEntities ( #4706 )
...
Co-authored-by: metalgearsloth <comedian_vs_clown@hotmail.com >
2023-12-14 17:50:29 +11:00
TemporalOroboros and GitHub
56899b4e64
Some ContainerManagerComponent ECSing ( #4622 )
2023-12-12 13:24:18 +11:00
metalgearsloth and GitHub
24b0165ec9
Revert Arch ( #4613 )
2023-11-27 21:41:01 +11:00
7dce51e2cf
Arch PR two electric boogaloo ( #4388 )
...
Co-authored-by: DrSmugleaf <drsmugleaf@gmail.com >
Co-authored-by: ElectroJr <leonsfriedrich@gmail.com >
2023-11-23 14:29:37 +11:00
metalgearsloth and GitHub
aab1a2dba9
Fix transform test warnings ( #4558 )
2023-11-07 20:22:07 -08:00
DrSmugleaf and GitHub
b737ecf9b3
Add generic EntityUid, remove some usages of .Owner ( #4498 )
2023-10-19 12:23:48 -07:00
Kara and GitHub
a9df9097c1
Kill ContainerHelpers ( #4486 )
2023-10-15 03:58:25 +11:00
metalgearsloth and GitHub
3fd731d917
Network entity ids ( #4252 )
2023-09-11 09:42:55 +10:00
metalgearsloth and GitHub
039b70f502
Revert "Remove IContainer and move some functions to the system ( #4351 )" ( #4361 )
2023-09-10 21:46:17 +10:00
Leon Friedrich and GitHub
5e21dbdd7f
Remove IContainer and move some functions to the system ( #4351 )
2023-09-10 12:17:00 +10:00
metalgearsloth and GitHub
f905ea631b
Raise MapInitEvent on components added after spawn ( #4290 )
2023-09-10 10:47:18 +10:00
metalgearsloth and GitHub
a4474d8df8
Remove IContainerManager ( #4308 )
2023-08-24 16:39:35 +10:00
DrSmugleaf and GitHub
66239d23ea
Refactor serialization copying to use source generators ( #4286 )
2023-08-22 17:37:13 -07:00
Leon Friedrich and GitHub
14fe8eba6d
Remove unnecessary dummy test prototypes ( #4233 )
2023-08-04 14:50:53 +10:00
metalgearsloth and GitHub
b69b4fd8fe
Kill comp getstate / handlestate ( #4183 )
2023-07-13 20:19:58 +10:00
metalgearsloth and GitHub
7d1ad527d9
Replace Robust Vector2 with System.Numerics ( #4092 )
2023-07-08 14:08:26 +10:00
Leon Friedrich and GitHub
0fd9b8236a
Remove TransformComponent.Parent ( #3688 )
2023-01-14 11:38:08 +11:00
Pieter-Jan Briers and GitHub
84733a335c
Prototype load parallelization ( #3502 )
2022-12-20 22:46:30 +01:00
metalgearsloth and GitHub
3c168f5a31
Replace GridEntityId with Owner ( #3530 )
2022-12-12 14:58:41 +11:00
metalgearsloth and GitHub
5e3a5a0d0c
Merge MapGrid into MapGridComponent ( #3468 )
2022-11-22 13:04:51 +11:00
metalgearsloth and GitHub
d9c59164f2
Refactor maploader to a system ( #3385 )
2022-11-13 17:29:57 +11:00
Leon Friedrich and GitHub
c6896e9bd9
More broadphase fixes ( #3429 )
2022-11-03 12:30:14 +11:00
Leon Friedrich and GitHub
ffe1689be6
Fix misc container and lookup bugs ( #3418 )
2022-10-31 12:54:37 +11:00
Leon Friedrich and GitHub
2b594f6356
Cache broadphases and container rejig ( #3407 )
2022-10-31 10:06:08 +11:00
ae2f3fe70c
Remove EntityLookupComponent and de-dupe AABBs ( #3367 )
...
Co-authored-by: metalgearsloth <metalgearsloth@gmail.com >
2022-10-27 23:36:01 +11:00
Leon Friedrich and GitHub
e534fcd800
Unrevert "Remove obsolete GridId and all references to it" ( #3279 )
2022-10-10 08:41:58 +11:00
metalgearsloth and GitHub
818ea1a629
Revert "Remove obsolete GridId and all references to it" ( #3308 )
2022-10-09 17:32:54 +11:00
SpaceManiac and GitHub
ebaa8d9ac3
Remove obsolete GridId and all references to it ( #3279 )
2022-10-09 16:23:40 +11:00
metalgearsloth and GitHub
de01b9d8cb
Raise collision events by-ref ( #3201 )
2022-09-14 17:23:35 +10:00
Leon Friedrich and GitHub
5e6e5cb5ea
Fix container debug assert ( #3244 )
2022-09-13 07:44:26 +10:00
Leon Friedrich and GitHub
1782792d30
Fix cross-grid/map container inserts ( #3054 )
2022-07-19 18:37:05 +10:00
Leon Friedrich and GitHub
64b356a9bf
Prevent dirty-on-init ( #2999 )
...
* prevent dirty-on-init
* Fix test
2022-06-29 15:10:51 +10:00
Leon Friedrich and GitHub
b360c4439b
Matrix3 and Angle: add readonly and ref->in ( #2919 )
...
* Matrix3 and Angle readonly and ref->in
* fix precision
2022-06-08 17:53:17 +02:00
Pieter-Jan Briers
6fc1daf978
Some compiler warning fixes.
2022-05-28 13:36:35 +02:00
metalgearsloth and GitHub
17dd3af3c7
ECS metadata pausing ( #2800 )
2022-05-14 14:55:42 +10:00
Leon Friedrich and GitHub
58d12e6e09
Remove Component.OnAdd() ( #2660 )
2022-04-04 16:11:47 +10:00
8491f7be24
New Serv3 api just dropped ( #2605 )
...
Co-authored-by: Paul Ritter <ritter.paul1@gmail.com >
2022-04-03 01:59:48 +02:00
Leon Friedrich and GitHub
1d8a8e15ef
Add a is-In-container metadata flag. ( #2585 )
2022-03-31 13:23:33 +11:00
metalgearsloth and GitHub
33251222cd
EntityLookup as a system ( #2573 )
2022-03-03 21:17:01 +11:00