Commit Graph

132 Commits

Author SHA1 Message Date
Andre Mohren
b1a44086a0 Removed unused using directives. 2018-11-17 17:23:22 +00:00
Paul Chote
eb0e2eeb9d Fix misc indentation errors. 2018-10-06 23:32:38 +02:00
teinarss
cfaf5a6467 Updated CPos struct to use a bit field for all properties. 2018-10-02 00:54:45 +01:00
abcdefg30
5d1c37a4c5 Remove the CodeAnalysisRuleSet property from all csproj files 2018-08-25 22:02:59 +02:00
Paul Chote
f4d3ccc301 Fix newlines in misc other files. 2018-07-01 11:08:32 +02:00
Paul Chote
670e153372 Remove byte order marks from csproj files. 2018-07-01 11:08:32 +02:00
abcdefg30
e83f5a9d59 Replace "\r\n" by "\n" in unit tests 2018-05-20 22:44:34 +02:00
Paul Chote
ba9d1c3182 Improve MiniYaml nunit tests:
- Fixes incorrectly used variable.
- Adds additional tests for node positions.
2018-05-20 22:44:34 +02:00
Paul Chote
df31690332 Extend MiniYaml parser with new features:
- Add support for escaping '#' inside values
- Add support for escaping leading and trailing whitespace

And when discardCommentsAndWhitespace is set to false:
- Add proper support for comments
- Persist empty lines

Whitespace and comment support requires an explicit opt-in because
they produce MiniYamlNodes with null keys.  Supporting these through
the entire game engine would require changing all yaml enumerations
to explicitly check and account for these keys with no benefit.

Comments and whitespace are now treated as real nodes during parsing,
which means that the yaml parser will throw errors if they have
incorrect indentation, even if these nodes will be discarded.
2018-05-12 16:42:54 +02:00
atlimit8
7283f9804e Added Polygon IHitShape 2018-03-09 23:32:07 +01:00
RoosterDragon
a726b57367 Fix order serialization issues. 2018-01-28 15:41:28 +01:00
Arular101
8a60918841 Update copyright notice year to 2018 2018-01-17 00:47:34 +01:00
RoosterDragon
3a9abda441 Specify C# 5 as the language version used in all projects.
Attempts to use features from a new version will generate compile errors (on Roslyn and possibly other compilers), preventing accidental adoption of new language features.
2017-10-19 14:18:03 +02:00
Paul Chote
d967c564a2 Remove TargetActor and TargetLocation from order issuing. 2017-10-15 19:07:46 +02:00
Paul Chote
18f6317560 Add a unit test for merging duplicated yaml nodes. 2017-10-06 17:54:11 +02:00
Markus Hartung
3a6796ac9d Fix for some AppDomains that doesn't add trailing DirectorySeparatorChar. 2017-07-06 18:29:24 +01:00
atlimit8
8a04156280 VariableExpression: require whitespace around bool/arithmetic binary operators. 2017-04-22 08:14:52 -05:00
atlimit8
c34b947e43 VariableExpression: Restrict CharClass.Mixed to middle of identifiers 2017-04-18 15:15:21 -05:00
atlimit8
f9974624c8 VariableExpression: hyphen after digit lexing fix 2017-04-18 15:14:55 -05: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
Paul Chote
1c97effbc9 Make ConditionExpression ! return false for negative numbers.
This brings it in line with C/C++ behaviour.
2017-02-23 20:23:40 +00:00
atlimit8
67dcbd1b2c ConditionExpression: added bool constants 2017-02-22 08:54:52 -06:00
atlimit8
f605756351 ConditionExpression: Add arithmetic operations 2017-02-22 08:54:52 -06:00
atlimit8
ac4f73b178 ConditionExpression: Add relation operators 2017-02-22 08:54:52 -06:00
atlimit8
0fc2008f10 Added delegate creation & evaluation to ConditionExpression 2017-02-22 08:54:51 -06:00
atlimit8
d752e10799 ConditionExpression: Run syntax checks while lexing 2017-02-22 08:54:51 -06:00
atlimit8
6e393f99cb ConditionExpression: Replaced Token sub-classing with TokenTypeInfo data. 2017-02-22 08:54:51 -06:00
atlimit8
73895d07e2 Numeric constants for ConditionExpression 2017-02-22 08:54:50 -06:00
atlimit8
65725efd04 Make ConditionExpression use counts. 2017-02-22 08:54:50 -06:00
atlimit8
d83dae5587 Rename BooleanExpression => ConditionExpression 2017-02-22 08:54:50 -06:00
Taryn Hill
43317e0f5d Update copyright notice year to 2017 2016-12-31 23:46:13 -06:00
Paul Chote
3f0b33992c Rewrite UpgradeManager implementation to suit conditions. 2016-11-20 13:55:47 +00:00
Paul Chote
cc34f8e557 Add a boolean expression parser. 2016-11-15 21:45:00 +00:00
Taryn Hill
ee50276c7a Add a new MiniYaml test regarding line numbers 2016-06-17 11:20:43 -05:00
Matthias Mailänder
5029ac705f Update to .NET 4.5 2016-05-19 21:24:21 +02:00
RoosterDragon
3192432a5c Strengthen ordering of TraitsInConstructOrder.
All types that are dependencies of a trait must now occur before it in the construct ordering. Previously, only one type that was a dependency of a trait needed to occur before it.
2016-03-29 23:10:46 +01:00
RoosterDragon
b3b816fcc6 Improve names and test code in ActorInfoTest. 2016-03-29 23:10:45 +01:00
RoosterDragon
2c15bc9308 Remove dead code in ActorInfoTest. 2016-03-29 22:49:01 +01:00
RoosterDragon
0790884e4f Fix namespaces of some tests. 2016-03-03 22:31:46 +00:00
RoosterDragon
0306a8de6c Add tests and make minor fixes to PriorityQueue. 2016-03-03 22:31:45 +00: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
6c6826c3f3 Fix mod assembly loading on Windows. 2016-02-07 23:38:12 +00:00
Paul Chote
ab921682c4 Rewrite yaml merger. 2016-01-30 15:03:56 +00:00
Paul Chote
1581ba951f Add a new test case for actor info merging. 2016-01-30 11:55:37 +00:00
abcdefg30
085367ced6 Merge pull request #10461 from RoosterDragon/partition-bounds
Calculate better upper bounds in SpatiallyPartitioned.
2016-01-24 21:13:55 +01:00
RoosterDragon
8e89a6a696 Simplify names, remove unused usings, remove redundant casts. 2016-01-17 21:35:36 +00:00
RoosterDragon
8b12a4a747 Add tests for SpatiallyPartitioned. 2016-01-09 23:44:53 +00:00
Paul Chote
99ef4dc832 Merge pull request #10346 from RoosterDragon/misc-fixes
Dispose fixes + misc touchups
2016-01-01 13:53:05 +00:00