IceReaper
a332fba702
IDFiles should be optional.
2023-04-05 21:13:11 +02:00
RoosterDragon
83561d639d
Update LangVersion to C# 9.
...
mono was the bottleneck restricting our ability to use a newer C# version. mono 6.12 is currently available. Although poorly documented on their website, this supports C# 9. https://www.mono-project.com/docs/about-mono/versioning/#mono-source-versioning indicates mono 6.12 uses Roslyn 3.9.0. https://github.com/dotnet/roslyn/blob/main/docs/wiki/NuGet-packages.md#versioning indicates Roslyn 3.9.0 supports C# 9.
This unlocks C# 8 and C# 9 features previously unavailable to us.
- https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-80
- https://learn.microsoft.com/en-us/dotnet/csharp/whats-new/csharp-version-history#c-version-9
A newer version of StyleCop is required to avoid rules tripping up on the new syntax. Currently only prerelease versions are available but their use is encouraged https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3420#issuecomment-994899135
Fix style rule violations on existing rules where the newer language version makes some existing casts redundant or allows use of the null coalescing assignment operator.
2023-04-05 15:27:41 +03:00
RoosterDragon
9dd4f938da
Cache reflection calls when running utility lints and commands.
...
Reduces runtime of --check-yaml command to 70% of original.
2023-04-05 00:25:32 +02:00
Gustas
1a2aafa17c
Fix backwards movement not canceling when BackwardDuration times out
2023-04-04 20:25:04 +02:00
Gustas
a4e80e1153
Fix backwards movement not working correctly when turning in an arc
2023-04-04 20:25:04 +02:00
dnqbob
a261abbc3f
Using support power uncloak TS superweapon
2023-04-04 18:26:11 +03:00
dnqbob
27f780c5d1
Using support power can uncloak actor
2023-04-04 18:26:11 +03:00
IceReaper
11ab4a7935
Support dos paths in registry.
2023-04-04 16:20:05 +02:00
IceReaper
4dd532f60e
Implemented MP3 detection.
2023-04-03 20:05:52 +02:00
IceReaper
138715b509
Added Zip support to installer source actions.
2023-04-03 17:57:16 +02:00
IceReaper
d97df78f4f
Steam and Gog resolvers now take IDFiles into account.
2023-04-03 17:57:16 +02:00
IceReaper
56c0680685
Fixed a typo.
2023-04-03 17:57:16 +02:00
RoosterDragon
95f675becd
Improve performance of ActorInfo.TraitsInConstructOrder.
...
Avoid redundant enumerations of the more and unresolved enumerables. This gives an approx 3x speedup for this function.
2023-04-03 17:29:08 +03:00
ThomasChr
a5ef6801c9
fix two crashes in hotkey menu, trying to select not visible widgets
2023-03-31 16:52:54 +03:00
abcdefg30
75a47aabb5
Don't always display the overwrite dialogue
...
When a save was selected but the filename text was changed,
we don't overwrite the existing save, so we don't need a dialogue
2023-03-31 16:32:09 +03:00
abcdefg30
73f29005bd
Allow saving games by pressing enter
2023-03-31 16:32:09 +03:00
abcdefg30
f1d439a07f
Make the save game title field take focus
2023-03-31 16:32:09 +03:00
penev92
9ce4ef0bff
Updated ExtractEmmyLuaAPI command to fix issues
...
Issues:
- The generated API file caused a ton of diagnostics warnings.
- Perhaps due to EmmyLua moving forward since this was created, we were missing out on some features.
Changes:
- Disabled diagnostics about missing return values for functions.
- Added add operator definitions because by default CPos+CVec would be assumed to return a number and assignments would cause warnings about type mismatches.
- Added explicit @enum annotations. This also fixed warnings in the generated API file about missing types.
- Changed default type of properties from an empty table to nil. This fixed warnings in the generated API file about type mismatch.
- Renamed local variable "required" -> "requiredTraits" for readability.
- Disabled duplicate function/property name warnings
- Updated trait docs URL.
2023-03-31 11:46:28 +02:00
Thomas Christlieb
9e081763ad
fix stance icon not updating when selecting units
2023-03-28 22:09:07 +03:00
Matthias Mailänder
378f66a1ff
Resolve Lua language server diagnosed problems.
2023-03-28 11:45:15 +02:00
Matthias Mailänder
3d0efa1cbe
Add EmmyLua notation to resolve the type.
2023-03-28 11:45:15 +02:00
Matthias Mailänder
cae07bb408
Remove uninitialized variable.
2023-03-28 11:45:15 +02:00
Matthias Mailänder
c94c1f8a6c
Remove missing actors.
2023-03-28 11:45:15 +02:00
Matthias Mailänder
0847cd33bd
Fix typos in mission scripts.
2023-03-28 11:45:15 +02:00
RoosterDragon
dc40442118
Fix doc comment on CanKickClient.
2023-03-27 20:55:44 +02:00
Gustas
2959a2c137
Fix warnings in LobbyCommand.cs
2023-03-27 20:15:17 +02:00
Gustas
bf00577d33
Allow kicking dead players
2023-03-27 20:15:17 +02:00
Gustas
c4bd9fb7aa
Add quit button to connection lost panel
2023-03-27 20:02:54 +02:00
Gustas
482f2fc335
Fix inconsistent abort naming
2023-03-27 20:02:54 +02:00
Gustas
925e042455
Add Interactable lint test
...
Since # 19174 bounds are calculated from WDist instead of pixels. This causes many of the older maps to crash games, And this lint test makes it easier for map makers to detect these issues.
As calculating the bounds requires MapGrid, we need to write a separate lint test for Interactable instead of defaulting to RulesetLoaded checks.
2023-03-27 19:55:19 +02:00
Gustas
c525c48d25
Make sure submarines don't smoke underwater
2023-03-26 20:24:30 -05:00
Gustas
f90dba2c6b
Add ^Submarine and make submarines inherit it
2023-03-26 20:24:30 -05:00
Gustas
e28f45f785
Use interpolated facings for submarines
2023-03-26 20:24:30 -05:00
Mustafa Alperen Seki
87eca8f2c0
Fix colors of paratroopers in the missions.
2023-03-26 17:49:02 -05:00
Mustafa Alperen Seki
960f829221
Move Soviets palette index definition to campaign-palettes.yaml.
2023-03-26 17:49:02 -05:00
RoosterDragon
8a4303cc94
Rework PriorityQueue for performance.
...
- Providing the comparer as a type argument that is a struct allows the calls to be devirtualised, leading to approx a 3x performance improvement.
- Use a single backing array, rather than a list of arrays.
2023-03-25 18:50:09 +01:00
penev92
7a4ac01348
Changed SequenceReferenceAttributes to use nameof
2023-03-24 18:51:36 +01:00
penev92
6dda4fa9f7
Fixed BuildableTerrainOverlay ignoring scale
2023-03-24 18:51:36 +01:00
Matthias Mailänder
af2b32e7ba
Add particle smoke effects.
2023-03-23 12:15:16 +02:00
michaeldgg2
069b7c5500
RepairableBuilding: play/display notification when repair process is aborted.
2023-03-23 10:28:12 +01:00
michaeldgg2
ae1983faba
ProductionQueue: make PauseProduction, CancelProduction virtual, CancelProductionInner protected
2023-03-20 12:17:55 +02:00
RoosterDragon
bcfa0c9ae9
Review StyleCop rules.
...
- Enforce SA1604 ElementDocumentationShouldHaveSummary.
- Enforce SA1629 DocumentationTextShouldEndWithAPeriod.
- Turn off some rules covered by IDExxxx rules.
- Remaining rules are treated as part of OpenRA style.
2023-03-18 12:46:10 +02:00
RoosterDragon
88ba974ea5
Reformat editorconfig
...
- Group style rules with their associated options in a way that matches the documentation. This makes it easier to pair rules and their options.
- Remove OpenRA.ruleset and move all rules into .editorconfig file.
- Centralise IDE0005 workaround in Directory.Build.props file.
2023-03-17 22:31:10 +01:00
RoosterDragon
721c03d9af
Enforce additional style rules.
2023-03-17 22:31:10 +01:00
Gustas
384435f8eb
Remove annoying autocomplete suffix
2023-03-16 21:07:21 +01:00
penev92
e808549637
Removed a redundant cast - IDE0004
2023-03-14 17:43:32 +01:00
penev92
bde13a8572
Fixed a bad merge
2023-03-14 17:43:32 +01:00
RoosterDragon
98c4eaca83
Fix IDE0032
2023-03-14 13:41:25 +02:00
michaeldgg2
e64c0a35c5
ProductionPaletteWidget: offset and align for queued count is now customizable
2023-03-12 15:10:26 +01:00
penev92
6bedc4697b
Fix modcontent.chrome-3x.png
...
After it was changed to a version without padding.
2023-03-12 13:24:39 +02:00