42 Commits

Author SHA1 Message Date
Jan
c952aacda1 Remove the zonecodegenerator requirement to reference members in a type reference because IW did nasty things in their game that require me to do so. 2020-09-16 10:18:11 +02:00
Jan
9108add01d Fix XModelSurfs being entirely loaded in temp block by adding the feature to specify a block for a struct to be able to make xmodelsurfs being loaded in normal block 2020-09-09 11:47:09 +02:00
Jan
bdb0958c16 ZoneCodeGenerator: Add possibility to define custom actions that should be performed after loading a certain Structure 2020-01-03 17:25:10 +01:00
Jan
33ec343460 ZoneCodeGenerator: Add possibility to specify a custom array count to signalize how many entries of a static array should be loaded 2019-12-24 12:41:27 +01:00
Jan
62ac2e8aae ZoneCodeGenerator: Replace OperandDynamics static array indices with Evaluations 2019-12-23 23:46:04 +01:00
Jan
236108e5fb ZoneCodeGenerator: Add ability to split loading of a structure due to a dynamic member 2019-12-22 23:33:00 +01:00
Jan
ec8c00a4b9 ZoneCodeGenerator: Make setting a dynamic array size only possible if the targeted member is the last entry of its structure 2019-12-22 16:15:45 +01:00
Jan
be17ae6a48 ZoneCodeGenerator: Make pointer counts be able to differ by array index 2019-12-18 15:30:47 +01:00
Jan
3e108c98b4 ZoneCodeGenerator: Fix TestReorder not being able to reorder members that came before a specified first entry 2019-12-07 13:39:30 +01:00
Jan
9253ac14fa ZoneCodeGenerator: Make unions work with conditions and only load one union member at a time consistently 2019-12-06 16:33:05 +01:00
Jan
f4a2639e30 ZoneCodeGenerator: Make members have a block they are being loaded into instead of structures 2019-12-06 16:31:20 +01:00
Jan
c05f04e28a ZoneCodeGenerator: Add expression to apply a certain fastfile block to a structure 2019-12-03 23:40:22 +01:00
Jan
799a999a66 ZoneCodeGenerator: Extend reorder test to be able to specify first member and skip any members before to start reordering from a certain point 2019-12-03 23:39:09 +01:00
Jan
5d3c13e833 ZoneCodeGenerator: Add computations for single references to be able to correctly handle arrays 2019-11-24 01:58:01 +01:00
Jan
6d1359c3d9 ZoneCodeGenerator: Extend count statement without being able to specify * to more precisely state which count should be set 2019-11-24 01:56:57 +01:00
Jan
b79f237014 ZoneCodeGenerator: Make Usages PostProcessor only add usages when a member is used and not ignored 2019-11-21 21:42:07 +01:00
Jan
c547520ae8 ZoneCodeGenerator: Remove PostProcessor for asset names and instead add a statement for command files due to different member names for names 2019-11-21 13:35:38 +01:00
Jan
b0780ca565 ZoneCodeGenerator: Add a preprocessor extracting a member chain to get the name of the asset in the template 2019-11-21 01:44:04 +01:00
Jan
5f0f73838f ZoneCodeGenerator: Make static operands able to have the value of an enum entry 2019-11-21 01:29:24 +01:00
Jan
31b279c1e6 ZoneCodeGenerator: Fix operationType tokens not being sorted by length so shorter tokens can be matched before longer ones 2019-11-19 12:55:04 +01:00
Jan
b15ce90fbb ZoneCodeGenerator: Add reusable statement for commands to be able to tell the generator that a member can be a fastfile offset and not nessecarly a following pointer 2019-11-15 14:47:45 +01:00
Jan
63722e220d ZoneCodeGenerator: Move computed conditions to sub class for MemberInformation since the template engine does not support computations and there will be a decent amount probably. So they are now moved to a different class to not cludder the main class too much 2019-11-14 14:57:21 +01:00
Jan
f777c049c6 ZoneCodeGenerator: Add postprocessor to inspect whether a structure is a leaf (No complex tasks for loading/writing required, like pointers, strings, scriptstrings) 2019-11-14 14:53:12 +01:00
Jan
73424c9bc1 ZoneCodeGenerator: Add tests for reordering, scriptstring, string 2019-11-10 22:14:01 +01:00
Jan
6ca7f18f9f ZoneCodeGenerator: Add arraysize test to explicitly override the size of an array with a dynamic one 2019-11-10 18:07:28 +01:00
Jan
f2cc95ee32 ZoneCodeGenerator: Make use of the parsed tokens in TestCount and TestCondition 2019-11-10 18:04:00 +01:00
Jan
6c1404116c ZoneCodeGenerator: When parsing Evaluation nest operations so the operator precendence is evaluated as specified 2019-11-08 03:00:20 +01:00
Jan
3d30915308 ZoneCodeGenerator: Remove align statement. Alignments will be defined via types created by a typedef that have a __declspec(align(X)) part 2019-10-31 15:41:35 +01:00
Jan
9b12bd7e41 ZoneCodeGenerator: Fix wrong exception being thrown in tests: Use TestFailedException instead of LoadingException 2019-10-30 15:23:31 +01:00
Jan
825b14bfd4 ZoneCodeGenerator: Fix TestAsset not throwing an exception when info is missing due to wrong if condition 2019-10-30 15:02:25 +01:00
Jan
799d3cbce7 ZoneCodeGenerator: Change block Statement to get the number of fastfileblock from the enum entry instead of manually specifying it 2019-10-30 15:01:45 +01:00
Jan
23f82894b7 ZoneCodeGenerator: Make GroupOptional always add Tag due to consistency (Tags get added when matches succeeds) 2019-10-29 12:20:08 +01:00
Jan
5245f40307 ZoneCodeGenerator: Create parent class for all tests that use Evaluations 2019-10-27 01:46:43 +02:00
Jan
06585fb776 ZoneCodeGenerator: Add basis for align, strings and improved count tests 2019-10-21 17:00:37 +02:00
Jan
a1670305c7 ZoneCodeGenerator: Add Next and Peek queries for Tags and Matches 2019-10-04 12:50:00 +02:00
Jan
f13eac7436 ZoneCodeGenerator: Remove unused condition matchers in count test 2019-10-02 18:43:35 +02:00
Jan
0ee689532b ZoneCodeGenerator: Fix conditions only being able to have one conditionStatement 2019-10-02 18:42:58 +02:00
Jan
ac1d426fb2 ZoneCodeGenerator: Add always to CommandFile condition and allow multiple conditions linked together in a chain 2019-10-02 16:26:16 +02:00
Jan
785e2c9bfb ZoneCodeGenerator: Add Evaluation as basis for specifying conditions and counts 2019-10-02 15:47:24 +02:00
Jan
3ba1f6d5f9 ZoneCodeGenerator: Move usages postprocessor to be post commandfile instead of post headerfile 2019-09-28 13:14:23 +02:00
Jan
49dfff1efe Add verbose parameter to ZoneCodeGenerator instead of always being verbose in debug mode 2019-09-27 22:57:58 +02:00
Jan
0d8432d4f7 Import code from previous AssetBuilder version 2019-09-24 10:45:09 +02:00