metalgearsloth and GitHub
ae7725aafe
Add compreg methods to entitymanager ( #5655 )
2025-02-10 21:39:41 +11:00
Leon Friedrich and GitHub
3f37846731
Avoid unnecessary DirtyField() calls ( #5620 )
2025-01-27 21:21:53 +11:00
Leon Friedrich and GitHub
9af119f57a
Toolshed Rejig ( #5455 )
...
* Toolshed Rejig
* shorten hint string
* Try fix conflicts. Ill make with work later
* bodge
* Fix ProtoIdTypeParser assert
* comment
* AllEntities
* Remove more linq from WhereCommand
* better help strings
* Add ContainsCommand
* loc strings
* Add contains command description
* Add $self variable
* Errors for writing to readonly variables
* A
2024-12-21 17:49:11 +11:00
9837c33de7
Add sourcegenned field deltas ( #5155 )
...
* Remove full "delta" states
* Update MapGridComponentState
* abstract ComponentState
* Release notes
* Fix tests
* Fix nullable errors
* A
* Sourcegen component deltas
* Audio deltas + methids
* Also eye
* Optimise out the dictionary
* Minor fixes
* Physics deltas
* Also this
* Fix field deltas
* remove old release notes
* Make IComponentDelta implement IComponent
* add sourcegen launch settings
* make silent error loud
* Review
* UI deltas
* Slimmer
* Sourcegen bandaid
---------
Co-authored-by: ElectroJr <leonsfriedrich@gmail.com >
2024-12-21 15:48:33 +11:00
metalgearsloth and GitHub
27f7f5ee36
Add Pure attribute to some entmanager methods ( #5557 )
2024-12-12 18:24:20 +01:00
Kara and GitHub
48d70a09c6
Remove most fully-obsoleted code ( #5433 )
2024-09-11 19:38:26 +10:00
Leon Friedrich and GitHub
73ef69aa94
Try and ensure that parents are always initialized before children ( #5343 )
...
* Try and ensure that parents are always initialized before children
* release notes
2024-08-31 11:05:56 +10:00
Pieter-Jan Briers and GitHub
be36001ab8
Add thread check assert to core entity mutation commands. ( #5411 )
...
* Add thread check assert to core entity mutation commands.
Creation of entities and components is now checked to happen from the main thread.
This is already catching multiple buggy integration tests, these will be addressed in separate commits.
* Fix broken tests directly mutating entities from wrong thread.
2024-08-31 11:04:02 +10:00
metalgearsloth and GitHub
8d5ebd830a
Add CompRegistry methods to EntManager / CompFac ( #5379 )
...
* Add CompRegistry methods to EntManager / CompFac
CompRegistries are nice to use and this just makes it a bit easier to extend functionality.
* fix bad pull
2024-08-25 21:37:14 +10: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
metalgearsloth and GitHub
a044f04e3b
Remove CompIdx locks ( #5231 )
...
* Remove CompIdx locks
So GetComponentState in PVS calls RaiseComponentEvent which in turn calls this. When you start getting a significant number of players it seems to run into lock contention considering every single compstate get will lock this.
Instead we'll just update the dictionary whenever RegisterClass is called instead.
* Fix thread-safety issues
2024-06-15 01:30:45 +10:00
Leon Friedrich and GitHub
a4723d1f62
Avoid read lock in GetEntityQuery ( #5236 )
2024-06-15 01:19:29 +10:00
metalgearsloth and GitHub
6b4d74f46e
Maybe fix bad resolve logging ( #5207 )
...
I'm not entirely sure what happens, I couldn't repro it locally even when I tried to force it to use threadpool threads. The only info I have is it happens and no other info has been provided so.
2024-06-05 09:00:41 +10:00
Leon Friedrich and GitHub
9737a4249c
Rework delta-states ( #5149 )
...
* Remove full "delta" states
* Update MapGridComponentState
* abstract ComponentState
* Release notes
* Fix tests
* Fix nullable errors
* A
* typo
* Turns out testing my own PRs is a good idea
* too many warnings
2024-05-24 14:08:41 +10:00
6e61c35d35
add missing Comp inline to EntityQuery ( #5123 )
...
Co-authored-by: deltanedas <@deltanedas:kde.org>
2024-05-14 08:43:03 +10:00
metalgearsloth and GitHub
5a14e939bf
TileChangedEvent bool ( #5089 )
...
Shows whether IsEmpty is different, useful in circumstances.
Also NotNullWhen null handling consistency.
2024-04-30 07:28:29 -07:00
Leon Friedrich and GitHub
7d1915096a
Use more entity queries in physics systems & entity manager ( #5082 )
2024-04-29 13:46:10 +10:00
Leon Friedrich and GitHub
d5c4981648
Partial MapManager refactor ( #5042 )
...
* MapManager rejig
* Update Tests
* A
2024-04-18 14:05:02 +10:00
metalgearsloth and GitHub
92d7f2723a
Add ComponentRegistry helpers to EntityManager ( #4934 )
...
* Add ComponentRegistry helpers to EntityManager
* Metadata here too
* Remove object cast
* knock
* Plural
2024-03-31 14:54:01 +11:00
Leon Friedrich and GitHub
d933f03a54
Add TryComp and HasComp to EntityQuery<T> ( #4996 )
2024-03-24 21:40:28 +01:00
Leon Friedrich and GitHub
f2e9ed0b73
NetSyncEnabled fixes ( #4811 )
...
* NetSyncEnabled fixes
* A
2024-01-05 15:11:09 +11:00
metalgearsloth and GitHub
270326e188
Add IComponentState / struct support ( #4610 )
...
Still boxes but hey at least the struct dream is real.
2024-01-04 13:42:47 +11:00
Leon Friedrich and GitHub
7d27835543
Use frozen collections in component factory and EntityManager._entTraitDict ( #4726 )
...
* Make component factory use frozen collections
* Fix integration tests
* Also freeze _entTraitDict
* A
* I love integration test setup logic
* Re-add public method
* changes
* Better notes
* And the new method
* Fix notes
2024-01-04 12:21:24 +11:00
Leon Friedrich and GitHub
cfb88b2e8e
Arch related engine changes ( #4806 )
2024-01-04 12:18:03 +11:00
Leon Friedrich and GitHub
97d03c6954
VisMask and EntityLifeStage changes ( #4794 )
2024-01-02 11:43:08 +11:00
metalgearsloth and GitHub
0b62cb6445
Change netsyncenabled to an assert ( #4604 )
2023-12-10 13:03:25 +11:00
metalgearsloth and GitHub
24b0165ec9
Revert Arch ( #4613 )
2023-11-27 21:41:01 +11:00
metalgearsloth and GitHub
a92c0cbef4
Fix nullable comps being raised for client gamestates ( #4596 )
2023-11-23 22:07:27 +11:00
metalgearsloth and GitHub
861807f8b4
Fix HasComp(uid, Type) ( #4594 )
2023-11-23 16:52:31 +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
DrSmugleaf and GitHub
2b85fa88c1
Print stack trace when adding a component while iterating net comps in ResetPredictedEntities ( #4541 )
2023-11-13 05:26:13 +11:00
Leon Friedrich and GitHub
325fe46aa3
Add More Entity<T> query methods ( #4550 )
2023-11-07 20:24:42 -08:00
Leon Friedrich and GitHub
5a6c4220fc
IPlayerManager refactor ( #4518 )
2023-10-24 20:18:58 +11:00
Leon Friedrich and GitHub
ad0cb05dd6
Add EnsureComponent(ref Entity<T?>) ( #4516 )
2023-10-24 17:19:38 +11:00
DrSmugleaf and GitHub
b737ecf9b3
Add generic EntityUid, remove some usages of .Owner ( #4498 )
2023-10-19 12:23:48 -07:00
DrSmugleaf and GitHub
1745a12e5a
Remove casts to Component ( #4495 )
2023-10-17 20:45:21 -07:00
DrSmugleaf and GitHub
6b6ec844e8
Replace all T : Component constraints with T : IComponent ( #4494 )
2023-10-17 19:37:46 -07:00
DrSmugleaf and GitHub
0152f9d1d8
Move Component lifecycle methods to EntityManager ( #4483 )
2023-10-10 17:34:40 -07:00
metalgearsloth and GitHub
24d5ce4bd4
Make AddCompUninit obsolete ( #4470 )
2023-10-10 04:41:10 +11:00
Leon Friedrich and GitHub
526a88293e
Use CollectionsMarshal in AddComponentInternal() ( #4435 )
2023-09-19 23:09:41 +10:00
Leon Friedrich and GitHub
a22cce7783
Fix metadata assert ( #4419 )
2023-09-17 17:18:44 +10:00
metalgearsloth and GitHub
e5e738b8cd
Maybe fix heisentest ( #4418 )
2023-09-17 16:13:37 +10:00
1ea7071ffb
Backport some arch comp net changes ( #4408 )
...
Co-authored-by: ElectroJr <leonsfriedrich@gmail.com >
2023-09-17 11:03:11 +10:00
metalgearsloth and GitHub
4879252e99
Remove comprefs entirely ( #4367 )
2023-09-15 21:52:47 +10:00
metalgearsloth and GitHub
3fd731d917
Network entity ids ( #4252 )
2023-09-11 09:42:55 +10:00
PrPleGoo and GitHub
6e8ab5ce78
Ignore deleted components while raising events. ( #4311 )
2023-09-10 10:48:00 +10:00
metalgearsloth and GitHub
f905ea631b
Raise MapInitEvent on components added after spawn ( #4290 )
2023-09-10 10:47:18 +10:00
DrSmugleaf and GitHub
6b49a86ee5
Make EntityManager.AddComponent with a comp instance set the owner if its default, add system proxy ( #4328 )
2023-08-28 15:31:17 -07:00
Pieter-Jan Briers
409fe1a125
Some warning fixes
2023-08-27 15:35:15 +02:00
metalgearsloth and GitHub
fc3116fca5
Remove ComponentDeleted C# event ( #4317 )
...
No one's used it for 12 years probably no reason to obs first.
2023-08-26 09:24:33 +12:00