9948 Commits

Author SHA1 Message Date
Tayrtahn
d7abbad717 Add validation for DirtyField strings (#5713)
* Add ValidateMemberAttribute, analyzer and test

* Use attribute on DirtyFields methods

* Defer member lookup

* Additional test case

* Add support for collection types

* Poke tests

* Revert "Add support for collection types"

This reverts commit 2b8f5534bd.

* break, not continue

* Cheaper attribute check with AttributeHelper

* Clean up unused helper method

---------

Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
2025-12-17 19:32:34 +01:00
PJB3005
7826e9e365 Add GitHub workflows to solution file 2025-12-17 18:18:47 +01:00
PJB3005
5476cdeff9 Run all tests on GitHub Actions 2025-12-17 18:18:47 +01:00
Tayrtahn
c1737a540f Analyzer & Fixer for redundant Prototype type strings (#5718)
* Add Prototype analyzer

* Add Prototype fixer

* Early return after finding prototype attribute

* Add PrototypeEndsWithPrototypeRule diagnostic

* Oops. Uncomment parallelizable.

* Rework to ignore redundancy for non-literal string values

* Allow redundancy when removal would expose class name not ending in "Prototype"

* Promote PrototypeEndsWithPrototypeRule from warning to error, since it causes a runtime error.

* No need to get the symbol to get the class identifier

* Minor cleanup

* A little more cleanup

* More specific location for redundant name

* Refactor redundant name fixer so argument order is no longer important

* Add failing test

* Use symbol analysis to fix alias handling

* Oops! We have to go back to the previous syntax-based approach.

Now it's a hybrid.

Also fixed tests to not copy the prototype definitions.

---------

Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
2025-12-17 18:15:32 +01:00
PJB3005
ddfa12808c Fix some roslyn tests 2025-12-17 16:55:33 +01:00
PJB3005
e3fb7e620d Add WebView import file 2025-12-17 16:32:14 +01:00
PJB3005
c94e1742cb Fix warning in WebView 2025-12-17 16:29:39 +01:00
PJB3005
27fd737e6a Fix WebView build 2025-12-17 16:29:33 +01:00
PJB3005
568880d09d Update release notes 2025-12-17 00:17:24 +01:00
PJB3005
7f2ec17651 Okay, the Robust API thing didn't pan out. New plan.
It apparently broke clean builds, as the dependencies aren't in the project asset list or something anymore. I tried to fix this, but it seems impossible to do without relying on .NET SDK internals, as there's no point in the NuGet graph walk process that seems cleanly extensible.

Instead let's just do the much dumber thing: a bunch of .props files for content to import. Hooray!

This also means that I have to go through and *explicitly* disable transitive dependencies everywhere in RT. This thankfully isn't too hard.
2025-12-16 22:56:31 +01:00
PJB3005
39e30531e2 Bump to .NET 10
Idk maybe it'll use some more efficient overloads or something
2025-12-16 16:08:55 +01:00
PJB3005
e26bda4c8f I'm so good at this. 2025-12-16 16:06:03 +01:00
PJB3005
9137ab2c45 Cull slow .NET source generators
We don't need em
2025-12-16 16:04:45 +01:00
PJB3005
5af03247a7 Add missing Robust.Benchmarks project entry to solution 2025-12-16 16:04:45 +01:00
PJB3005
352ae60f42 Fix compile in Robust.benchmarks 2025-12-16 16:04:45 +01:00
PJB3005
d31db257ea Fix _RTMakeProjectReferences ordering issue 2025-12-16 16:04:45 +01:00
deltanedas
d548bce347 make EntityQuery.Resolve error not useless (#6320)
* make EntityQuery.Resolve error not useless

* it actually wasnt that bad

* goida

* make EntityQuery constructor internal

---------

Co-authored-by: deltanedas <@deltanedas:kde.org>
2025-12-16 14:23:47 +01:00
PJB3005
3246ad2d92 RobustApi system
Bans content from directly referencing Robust projects, instead it must go through new MSBuild items <UseRobustApi>. This way we can move types between RT projects without fear of causing breaking changes.
2025-12-16 05:29:59 +01:00
PJB3005
b4615b9c7a TestingParallelManager is apparently used by content 2025-12-16 05:25:41 +01:00
PJB3005
788e9386fd Split up test project
Robust.UnitTesting was both ALL tests for RT, and also API surface for content tests.

Tests are now split into separate projects as appropriate, and the API side has also been split off.
2025-12-16 01:36:53 +01:00
PJB3005
095c5f58d9 Obliterate GLFW with an orbital strike 2025-12-15 22:45:39 +01:00
PJB3005
b2bf5f9781 Solution file generation system
Fixes #6318
2025-12-15 22:40:42 +01:00
PJB3005
b936a77207 Clean up solution file 2025-12-15 22:40:42 +01:00
PJB3005
7da11b01c9 slnx now has size-2 indents 2025-12-15 22:40:42 +01:00
PJB3005
4f21c8c9b2 Move default marker filename to SLNX
Will be alright because next engine version will demand SLNX templating
2025-12-15 22:40:42 +01:00
slarticodefast
4747e5a05a Add and update a lot of documentation (#6337)
* Serialization docs

Co-authored-by: Moony <moonheart08@users.noreply.github.com>

* ECS docs

Co-authored-by: Moony <moonheart08@users.noreply.github.com>

* scattered docs

Co-authored-by: Moony <moonheart08@users.noreply.github.com>

* Fixes

---------

Co-authored-by: Moony <moonheart08@users.noreply.github.com>
Co-authored-by: PJB3005 <pieterjan.briers+git@gmail.com>
2025-12-15 20:26:17 +01:00
haiwwkes
cfefd760e2 fix webview resize (#6340) 2025-12-15 19:37:28 +01:00
Pieter-Jan Briers
d161c3b3b8 Add FormattedString type (#6339)
This is basically a lightweight marker type saying "this string contains markup". Intended to avoid injection accidents if people don't realize they should escape stuff.
2025-12-15 19:36:16 +01:00
PJB3005
53e1222b6b Fix FormattedMessage not escaping text when converted to markup
Meant that ToMarkup() wasn't actually round-trip safe.
2025-12-15 04:58:23 +01:00
PJB3005
5f073dff35 Downgrade DiscordRichPresence to fix logged NRE.
Fixed in https://github.com/Lachee/discord-rpc-csharp/pull/282 but needs a new release made.
2025-12-14 22:28:56 +01:00
PJB3005
8de8f5dc7f Add AVX10 as logged intrinsics 2025-12-14 21:56:08 +01:00
PJB3005
e9dc40be24 Report available memory in startup info 2025-12-14 21:55:58 +01:00
PJB3005
95d5f7eec1 Add flag to block command bindings while UI focused
This means you can bind stuff to your numpad without it firing while you're *actually* typing stuff.
2025-12-14 21:48:20 +01:00
haiwwkes
497ca865dc Skip redundant texture uploads in WebView when content unchanged (#6338)
Add dirty flag to WebView to skip unnecessary texture uploads.
2025-12-14 20:01:30 +01:00
PJB3005
b4a0dad67a Fix tests on .NET 10
Fixes #6329
2025-12-14 17:46:41 +01:00
kosticia
f1c30128d6 Fix typos in EntityDeserializaer (#6336)
good
2025-12-10 19:20:00 +01:00
Princess Cheeseballs
ad31ec64d3 Add some default Sanitization to RichTextEntry (#6333)
* PR time

* am dum dont make PRs at 3am

* file scoped. I pushed this to the wrong branch initially because I'm stupid

* Revert "file scoped. I pushed this to the wrong branch initially because I'm stupid"

This reverts commit 9a911caa77.

* Review

* Update API used by content to actually use the default values

---------

Co-authored-by: Princess Cheeseballs <66055347+Pronana@users.noreply.github.com>
2025-12-10 19:09:51 +01:00
PJB3005
fe35a24e88 Basic prototype string interning
From my extremely rough and unscientific tests, this saves like 15 MB of client memory on the main menu. Probably also just improves load speed on startup too.

It's per file to keep the implementation simple.
2025-12-09 12:31:50 +01:00
CaasGit
e875d89e14 fix(LoaderApi): Update submodule of LoaderApi. (#6332)
LoaderApi sync to latest commit.
2025-12-09 10:25:13 +01:00
PJB3005
e41165f9dd Force RT's global.json on SS14 in content test
So that it uses the right .NET SDK version when we update like this.
2025-12-08 00:56:52 +01:00
PJB3005
0414cde339 Remove recursion from TilesEnumerator
We love stack overflowing, Rider refactor go brr

Fixes #6330
2025-12-08 00:54:13 +01:00
PJB3005
8580ab93a6 Dependency update 2025-12-08 00:49:37 +01:00
PJB3005
1a0dab4526 OkLAB test in uitest
I can just add whatever random shit I want in there, nobody will stop me
2025-12-05 17:34:20 +01:00
PJB3005
dff5b5fe95 Prototype AspectRatioPanel UI control
Wrote this as a quicky, needed it for something. Don't feel like stabilizing it yet so it's internal.
2025-12-05 17:34:20 +01:00
CaasGit
d579c68082 fix(tools): Fix packaging libs and zips on linux. (#6327)
Both OSX and Linux builds were not excluding two libs from their zip
file due to a missing comma. You can see that they both exist within the
live client manifests.

Also fix the MS dlls having basically no date set on the file which is
throwing an error when trying to zip them.
2025-12-05 16:48:35 +01:00
Jewel
2c3cbaf3b9 Fix word wrapping on non-runed inline metrics like links (#6267)
Fix word wrapping on non-runed metrics like links (previously they would never wrap if they extended past max width)
2025-12-04 20:07:15 +01:00
PJB3005
4c961c627c I did not realize we have a global.json 2025-12-04 19:37:47 +01:00
PJB3005
b6b992ba49 Migrate to SLNX
Not relevant for content. Yet.
2025-12-04 19:30:35 +01:00
PJB3005
20d97ff855 Add ExtensionMarkerAttribute to sandbox
Necessary for C# 14 extension members
2025-12-04 19:08:20 +01:00
PJB3005
9d45357ca9 Enable C# 14, fix a nullability error 2025-12-04 17:49:46 +01:00