RoosterDragon
bf7f81b7fe
Improve some String.Split calls.
2024-11-15 22:28:18 +02:00
Matthias Mailänder
4e5556dccc
Expose player names to localization.
2024-08-05 12:55:59 +03:00
RoosterDragon
0649f3dc32
RCS0056 - roslynator_max_line_length = 160
2024-07-29 21:56:36 +02:00
RoosterDragon
e6914f707a
Introduce FirstOrDefault extensions method for Array.Find and List.Find.
...
This allows the LINQ spelling to be used, but benefits from the performance improvement of the specific methods for these classes that provide the same result.
2023-11-19 19:28:57 +02:00
RoosterDragon
acca837142
Fix RCS1246
2023-11-19 19:28:57 +02:00
RoosterDragon
330ca92045
Fix RCS1077
2023-11-19 19:28:57 +02:00
RoosterDragon
fbe147ce61
Fix RCS1118
2023-11-10 10:38:41 +02:00
RoosterDragon
4dd787be13
Fix RCS1061
2023-11-10 10:38:41 +02:00
RoosterDragon
c4ca3ca743
Fix RCS1226
2023-10-30 23:31:33 +02:00
RoosterDragon
285443f10f
Fix CA1310, CA1311
2023-08-07 21:38:09 +02:00
RoosterDragon
f336a956cf
Fix CA1012
2023-06-20 17:57:40 +02:00
Matthias Mailänder
8433bc0948
Throw early when Lua function parameters are null.
2023-05-23 17:30:03 +03:00
abcdefg30
b5f5d5f9d5
Fix ScriptContext crashing without a WorldLoaded function
2023-05-21 13:11:17 +02:00
abcdefg30
f2b3a9f837
Fix ScriptContext crashing without a Tick function
2023-05-21 13:11:17 +02:00
Matthias Mailänder
445b736885
Replace sandbox wrapper scripts.
2023-05-20 13:19:48 +02:00
Matthias Mailänder
1c2ce0dcc0
Deprecate string format log shorthand.
2023-05-05 19:03:09 +02:00
RoosterDragon
ff799303b0
Fix CA1018
2023-04-17 00:05:12 +02:00
RoosterDragon
8a285f9b19
Fix IDE0090
2023-04-08 16:51:51 +03:00
RoosterDragon
164abfdae1
Fix IDE0083
2023-04-08 16:51:51 +03:00
RoosterDragon
53e9f44972
Spelling fixes
2023-03-02 20:11:54 +02:00
RoosterDragon
5b70d344cc
Fix IDE0038
2023-02-28 21:21:40 +02:00
RoosterDragon
67ba3e55de
Fix IDE0020
2023-02-24 22:00:25 +02:00
Gustas
20a16ad5f8
Move force pausing to EndGame method
2023-02-18 15:53:17 +01:00
abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
Matthias Mailänder
19ecddcd86
Enforce use of 'var' instead of explicit type.
2022-12-28 23:02:04 +01:00
Gustas
858d782af1
Simplify 'default' expression (IDE0034)
2022-10-11 17:40:05 +02:00
abcdefg30
02d9ba020d
Add a workaround for unbinding script members on Mono
2022-10-10 20:27:07 +03:00
Vapre
215898c7ec
ScriptActorInterfaces, unbind on actor destroy.
2022-08-30 21:44:39 +02:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Matthias Mailänder
709512b166
Add Lua API export in EmmyLua syntax.
2022-05-24 21:07:54 -05:00
Eduardo Cáceres
2677e9c013
Use pattern matching
2022-05-18 11:42:36 -05:00
Eduardo Cáceres
7eb64ea6fc
Use read-only autoimplemented property when possible
2022-05-18 11:42:36 -05:00
RoosterDragon
ecb7c16751
Tweak handling of nullable types in LUA doc generation.
...
The types for Int32 and Boolean are currently replaced with friendly names of int and bool for the docs. Ensure we apply the same handling when these are nullable types, changing the output from Int32? and Boolean? to int? and bool?
2022-04-18 13:02:05 +02:00
RoosterDragon
ac0969d688
Use nameof instead of hardcoded strings in reflection calls.
...
This helps improve the safety of code the uses reflection when methods may get renamed, and helps navigating code as the nameof will show up when searching for references to members.
2022-04-14 19:58:15 +02:00
Matthias Mailänder
0e7ad43425
Remove unused parameters.
2022-04-01 23:30:26 +02:00
penev92
0d24ccc47a
Fixed unnecessary zero-length array allocations
...
Changed all currently present zero-length array allocations in the codebase to use `Array.Empty` instead.
2022-01-20 22:10:28 +01:00
Andre Mohren
6810469634
Updated copyright years.
2021-06-29 18:33:21 -05:00
teinarss
10676be377
Replace F extension with string interpolation
2021-05-08 22:20:59 +02:00
Matthias Mailänder
5a0bcc01a6
Add a lint check for trait placement on hardcoded actor names.
2021-04-11 20:20:00 +02:00
Paul Chote
a6467cb515
Fix Nullable type handling in Lua docs.
2021-03-10 17:46:44 +01:00
Paul Chote
1cc1f93fb0
Rename Platform.GameDir to Platform.EngineDir.
2020-11-24 17:53:48 +01:00
Paul Chote
de7a84e8ed
Don't use Platform.ResolvePath when constructing hardcoded paths.
2020-11-22 16:42:46 +01:00
abcdefg30
1a4b773fda
Replace 'is' by 'as' and a null check in ScriptMemberWrapper
2020-09-27 22:17:20 +02:00
teinarss
9c4fd0e3d3
Use Null-Propagation Operator
2020-08-19 18:11:07 +01:00
teinarss
27f1a7ab27
Use out var syntax
2020-08-19 18:11:07 +01:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
Paul Chote
353db73381
Fix a collection of minor style violations.
...
This enables several new StyleCopAnalyzer rules to
be enabled immediately during migration.
2019-05-09 20:40:08 +02:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
Paul Chote
2064dc7c30
Support non-int Enum types in the Lua API.
2018-11-04 18:32:33 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00