abcdefg30
5bf7fe852c
Remove the copyright year numbers
2023-01-11 11:58:54 +02:00
abcdefg30
6a31b1f9f3
Update the copyright header year
2022-05-28 00:35:10 -05:00
Eduardo Cáceres
79f321cb44
.Any(), .Count() -> .Count or .Length
2022-05-18 11:42:36 -05: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
RoosterDragon
bd30c66f95
Reuse object arrays in FieldLoader Parse methods
2022-01-30 19:47:06 +01:00
penev92
8ba6d13b2f
Removed unused using directives
2021-10-15 13:12:33 +02:00
RoosterDragon
6e0917169d
Teach FieldLoader.ParseCPos about CPos.Layer.
2021-10-02 21:54:26 +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
Vapre
be224934a5
FieldLoader, use dictionary for GetValue to make it twice as fast.
2021-03-17 18:18:53 +01:00
teinarss
4a1e4f3e16
Use expression body syntax
2021-03-07 13:00:52 +00:00
Paul Chote
6e7ad9df25
Remove vestigial translation plumbing.
...
This was never completed to the level required to
be properly used ingame.
2020-12-25 16:18:28 +01:00
Trevor Nichols
6f32196f89
Support List<> for FieldSaver/FieldLoader
2020-10-07 22:04:10 +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
Andre Mohren
006a87692a
Removed unused imports.
2020-07-28 18:22:51 +02:00
Paul Chote
ac975f4139
Convert yaml-exposed facings to WAngle.
2020-07-19 10:41:05 +02:00
abcdefg30
23b3c237b7
Update the year numbers in all license headers to 2020
2020-01-05 17:00:34 +00:00
abcdefg30
55c3f313b1
Remove 'yes' and 'no' in favor of 'true' and 'false'
2019-10-12 00:07:05 +02:00
Paul Chote
674155a8dd
Move ctor initializers to their own line.
2019-06-08 18:44:50 +02:00
Paul Chote
71b61ad8ee
Remove bogus and unnecessary Color[] FieldLoader override.
2019-03-12 12:44:29 +01:00
Paul Chote
3e404f6ac2
Remove HSLColor.
2019-03-04 18:26:42 +00:00
Paul Chote
ab4a7e3558
Replace System.Drawing primitives with our own.
2019-03-04 18:26:42 +00:00
Paul Chote
94f7f6fd2e
Remove obsolete code.
2019-02-24 14:02:19 +01:00
abcdefg30
cadbd0d9ab
Change the year number in all cs headers from 2018 to 2019
2019-01-26 23:15:21 +01:00
RoosterDragon
5bd5a384b7
Use a BitSet for representing target types.
...
- Rename Bits<T> to BitSet<T>.
- Implement set based helpers for BitSet<T>.
- When representing TargetTypes of ITargetable in various traits, use a BitSet<TargetableType> instead of HashSet<string> for better performance & reduced memory usage.
- Fix FieldLoader to trim input values when generating a BitSet<T>.
- Require T in BitSet<T> and BitSetAllocator<T> to be a class since it's just a marker value. This allows the JIT to instantiate generic code for these classes once, as they don't benefit from specialized code for T. (Typically JITs will generate shared code for all reference types, and unique code for every value type encountered).
2018-03-21 12:07:44 +01:00
abcdefg30
ed6a6b61de
Throw a proper error when parsing an invalid int2
2018-03-09 23:32:07 +01:00
abcdefg30
56e7b1edc2
Fix int2 arrays not being parsed
2018-03-09 23:32:07 +01:00
Arular101
8a60918841
Update copyright notice year to 2018
2018-01-17 00:47:34 +01:00
RoosterDragon
de38313579
Cache VariableExpressions on load.
...
Compiling these expressions is sadly expensive, and we needed new ones for every trait on every actor each time one was generated. The expressions thankfully can be shared as they are pure functions, which removes this overhead.
2017-12-17 01:42:21 +01:00
Paul Chote
2f79173044
Migrate hotkey consumers to HotkeyManager.
2017-12-08 01:29:15 +01:00
Paul Chote
c4237d6a1a
Rename NamedHotkey to HotkeyReference.
2017-12-08 01:29:15 +01:00
Paul Chote
42bf232b37
Introduce NamedHotkey type.
2017-08-25 21:56:52 +02:00
Paul Chote
430429f337
Fix WRot FieldLoader parsing.
2017-05-14 11:52:42 +01:00
atlimit8
b0187dd646
Added (Boolean|Integer)Expression subclasses of VariableExpression
2017-04-11 02:52:54 -05:00
atlimit8
e73d3922dd
Rename ConditionExpression => VariableExpression
2017-04-11 01:26:38 -05:00
atlimit8
d83dae5587
Rename BooleanExpression => ConditionExpression
2017-02-22 08:54:50 -06:00
Paul Chote
27cd31879f
Add FieldLoader.AllowEmptyEntries attribute.
2017-01-30 18:22:44 +00:00
Taryn Hill
43317e0f5d
Update copyright notice year to 2017
2016-12-31 23:46:13 -06:00
Paul Chote
1cc7944437
Add FieldLoader and linter support for BooleanExpression.
2016-11-19 17:19:25 +00:00
Paul Chote
a8dda39a72
Introduce float3 type.
2016-04-10 09:41:01 -04: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
8ade035049
Add support for loading CVec[] from yaml.
2016-01-25 09:14:00 +01:00
RoosterDragon
5f13fa0343
Fix serialization of custom exceptions.
2016-01-01 04:51:55 +00:00
RoosterDragon
bfe1804bf6
Fix some spellings.
2015-11-27 16:19:59 +00:00
atlimit8
dac15edce5
Load rgb[a] hex colors from MiniYaml (+ Lua)
2015-10-27 16:09:48 -05:00
atlimit8
079cff0a7a
IRulesetLoaded Warhead support and better error messages.
2015-10-02 13:40:21 -05:00
Pavel Penev
8ddbabbfde
Add Dictionary<,> support to FieldSaver
2015-09-01 22:52:20 +03:00
Pavel Penev
341b3395c8
Add Dictionary<,> support to FieldLoader
2015-09-01 22:52:18 +03:00