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
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
abcdefg30
d2c5aec08d
Filter the lua PlayerProperties on Requires
2016-07-12 14:03:44 +02:00
Oliver Brakmann
065066acc4
Fix opening the scriptwrapper.lua file as read-write
2016-04-03 19:31:11 +02:00
Paul Chote
e71225496b
Clarify GPL version.
2016-02-21 16:30:48 +00:00
Paul Chote
b396965fd9
Update licence header year.
2016-02-21 16:27:31 +00:00
Paul Chote
d573e21a48
Traits open files via the Map.
2016-02-18 18:12:33 +00:00
Paul Chote
b81d2d8333
Fix incorrect ModFiles.Open(resolved path).
2016-02-06 16:30:22 +00:00
RoosterDragon
8e89a6a696
Simplify names, remove unused usings, remove redundant casts.
2016-01-17 21:35:36 +00:00
RoosterDragon
6ab6d774a7
Ensure LuaValues are disposed.
...
Adding in these missing calls prevents these instances from having to be finalized.
2015-12-23 17:22:51 +00:00
Pavel Penev
1b88d24cfa
Unstatic GlobalFileSystem and rename it to FileSystem
...
Add a ModFiles field on ModData and move all access to the file system to go through that.
2015-12-14 03:42:22 +02:00
atlimit8
131084d129
Changed missed ActorInfo.Traits.Contains => ActorInfo.HasTraitInfo
2015-09-19 12:06:37 -05:00
Paul Chote
585a43fd8f
Rename Actor.Destroy/Destroyed to Dispose/Disposed.
2015-05-29 19:08:38 +01:00
abcdefg30
852ea87daa
Add lua support for nullables
2015-05-25 16:54:42 +02:00
RoosterDragon
82bea961ba
Checked LINQ queries and collections for inefficiencies.
...
- Made Array.IndexOf available via extension method.
- Made ToHashSet extension method.
- Change collections queried often via Contains into sets.
- Avoid Count() extension if Count or Length property exist.
- Made Count() > 0 checks and variations calls to Any() instead.
- Don't call ToList/ToArray if there is no benefit to materializing the sequence.
- If the sequence does benefit from materialization, follow this general pattern:
- Collection queried often via Contains use ToHashSet to speed up lookups.
- Short lived variables use ToList. This is because ToArray requires an extra copy to output the final size.
- Collections persisted into fields or for a long time use ToArray to minimize memory overhead.
2015-01-29 19:20:11 +00:00
abcdefg30
8ca61aa917
Updated all year numbers
2015-01-09 21:18:05 +01:00
Matthias Mailänder
bc3acfeee7
StyleCop clean OpenRA.Game
2015-01-04 15:38:54 +01:00
Hellhake
5a97a4b63b
Fix StyleCop warnings in OpenRA.Game
2015-01-02 12:11:01 +01:00
huwpascoe
a660bb95b5
Actor properties consistency improved
2014-11-21 02:44:05 +00:00
Paul Chote
79492a3240
End the mission when a script error occurs.
2014-10-18 13:32:15 +13:00
Paul Chote
d79ecb432a
Write Lua debug information to lua.log.
2014-10-18 12:59:11 +13:00
Paul Chote
dbd4b0931b
Don’t crash if trigger callbacks throw exceptions.
2014-10-18 12:59:11 +13:00
Paul Chote
4f44cc1969
Load assets using absolute paths. Fixes #6717 .
2014-10-11 11:02:30 +13:00
Paul Chote
85b26d1ff8
Update Lua bindings to use array arguments.
2014-10-04 19:43:27 +13:00