Files
RobustToolbox/Robust.Shared/Toolshed/Commands/Math
83c2a1be11 [Dependency] source generator part 2 (#6550)
* [Dependency] source generator

No more reflection, no more codegen at runtime

Also various changes to Roslyn helpers to make this easier to write.

Requires all types with dependencies to be partial and not have readonly dependency fields. An analyzer enforces this at warning level, the previous injection strategies have remained in the code *for now* as a fallback.

No fallback is available for [field: Dependency] properties, due to a Roslyn bug.

Code Fixes exist. We love Roslyn

* Apply dependencies generator changes to all code

* Release notes

* Preprocessor got hands

* Handle nullable dependencies

These are bad but gotta deal with it.

* Apply suggestions from code review

Co-authored-by: Moony <moony@hellomouse.net>

* Fine, let's not use collection expressions

---------

Co-authored-by: Moony <moony@hellomouse.net>
2026-05-08 12:38:33 +02:00
..
2023-08-23 16:03:34 -05:00
2024-12-21 17:49:11 +11:00
2024-12-21 17:49:11 +11:00
2024-12-21 17:49:11 +11:00
2024-12-21 17:49:11 +11:00
2024-12-21 17:49:11 +11:00
2024-12-21 17:49:11 +11:00
2023-08-23 16:03:34 -05:00
2024-12-21 17:49:11 +11:00
2023-08-23 16:03:34 -05:00

If you're thinking about adding type-specific operands or overloads in here: Don't.

The only type that gets an excuse is Vector2 because the C# devs are cringe.

NOTE: Operators specifically for T1 x T2 operations may be removed at a future date when Toolshed can infer the type of the operation using the right-hand side.