Commit Graph

1767 Commits

Author SHA1 Message Date
Collin Smith
48de8bf54e Ported some additional schemas 2021-01-09 20:08:30 -08:00
Collin Smith
e7791c1742 Fixed incorrect import 2021-01-09 20:05:53 -08:00
Collin Smith
da85e342a2 Refined primary key overriding system
Declaring class will take priority, otherwise use any declared in parent class hierarchy
This can be more well-defined later if more concrete needed
2021-01-09 20:04:28 -08:00
Collin Smith
ff301e0e63 Created schemas for remaining tables
Unimplementable code commented out
Need to fix bug: overridden primary key being used as primary key (ModeEntry)
2021-01-09 19:48:37 -08:00
Collin Smith
1621249f10 Added suppression for unused warning 2021-01-09 19:12:17 -08:00
Collin Smith
f24869411a Created compcode schema and table tests 2021-01-08 19:20:31 -08:00
Collin Smith
322f238a0c Created Color schema and tests 2021-01-08 19:12:30 -08:00
Collin Smith
6953e55457 Fixed compiler warning 2021-01-08 19:11:38 -08:00
Collin Smith
a2ca786ff6 Created CharStats schema and tests 2021-01-08 19:03:50 -08:00
Collin Smith
367b0835a6 Added graceful handling of null fieldName parameter within TsvParser#primaryKey(String) 2021-01-08 19:03:32 -08:00
Collin Smith
27e94d8122 Generated tables Table#primaryKey() will return string representation of first field name instead of primary key variable name 2021-01-08 19:02:37 -08:00
Collin Smith
2ab7c7ceb0 Suppressed undeclared primary key warning when schema tagged as indexed 2021-01-08 19:01:49 -08:00
Collin Smith
fe19de2033 Removed unused injectorClassName (deprecated in previous commit) 2021-01-08 19:01:06 -08:00
Collin Smith
c2b7bb20e6 Created ArmType schema and table test 2021-01-08 17:16:25 -08:00
Collin Smith
beebd4378f Created RareAffix and RarePrefix, RareSuffix schemas and table tests 2021-01-08 17:09:34 -08:00
Collin Smith
d8e78d46cc Created Affix, MagicAffix, MagicPrefix and MagicSuffix schemas and table tests 2021-01-08 01:47:03 -08:00
Collin Smith
23449e2ef0 Added support for injecting references to records in foreign tables
Removed interface-based Injector implementation in favor of statically-based one
Injector required manifest fields which were generated after, causing errors
Created Manifest abstraction with Manifest#inject to perform injections
Added Manifest injection to Table constructor to enforce injection within Table#get
2021-01-07 14:04:41 -08:00
Collin Smith
b1bfc32a74 Fixed deprecation warning suppression by fully qualifying deprecated import 2021-01-07 14:00:58 -08:00
Collin Smith
4604d9c837 Updated comment 2021-01-06 23:28:26 -08:00
Collin Smith
dc37d7f239 Added bounds checking for fieldId to return default if not existing
monstats2 triggered this case, but other columns may not always exist
2021-01-04 20:01:41 -08:00
Collin Smith
5fc82d6516 Fixed EXPANSION marker skipping to skip until CR
monstats2 was formatted EXPANSION\t*0\r\n
2021-01-04 20:00:38 -08:00
Collin Smith
f96011b9aa Improved lookup function to use upper case 2021-01-04 18:41:17 -08:00
Collin Smith
9fa2244429 Added support for record lookup via string primary key
Added support for record lookup via string primary key
TsvParser implements recordName(int) primaryKey(String) and primaryKey()
Added fast-forward recordName(int) into Parser base class to ParserInput
Merged parse record code within Table impl into parseRecord method call
2021-01-04 15:13:27 -08:00
Collin Smith
cc672557cd Added additional argument to Table class to initialize string lookup table 2021-01-04 14:36:13 -08:00
Collin Smith
b4d54d687c Added additional test case for weapons using string primary key 2020-12-31 13:55:05 -08:00
Collin Smith
e0d4884b96 Added additional test case for ItemEntry super class 2020-12-31 13:53:37 -08:00
Collin Smith
72a83fa81e Created obj schema and customized table with tests 2020-12-31 02:11:07 -08:00
Collin Smith
acda9a23b4 Set indexed config for MonPreset schema 2020-12-31 01:51:25 -08:00
Collin Smith
4b656760d3 Removed primary key tag from Act field (should be marked indexed) 2020-12-31 01:47:21 -08:00
Collin Smith
ad3de24792 Improved test cases for MonPreset table 2020-12-31 01:44:47 -08:00
Collin Smith
cb31a45ed4 Created monstats schema and custom table impl and tests 2020-12-30 23:48:43 -08:00
Collin Smith
2afc050f6f Created ItemStatCost schema and custom table with tests 2020-12-27 23:07:37 -08:00
Collin Smith
ad5fb534ad Created BodyLocs schema and custom table with tests 2020-12-27 21:55:52 -08:00
Collin Smith
e511c3d87e Added trace logging to SoundsTable record init 2020-12-27 21:55:17 -08:00
Collin Smith
4ac194b335 Added preload for sounds table records test 2020-12-27 21:54:33 -08:00
Collin Smith
2ea6398d0c Created Sounds schema with custom SoundsTable and tests 2020-12-27 20:18:17 -08:00
Collin Smith
257a8d3b40 Committing ParserMapper and RunesMapper implementation
Deprecated, but a good start if ever moved forward with
2020-12-27 20:03:37 -08:00
Collin Smith
dedc07799e Implemented Runes schema with custom RunesTable indexer and tests 2020-12-27 20:02:23 -08:00
Collin Smith
cc807f60fa Implemented Table#preload
Implemented Table#preload
Removed Table#initialize() call from within Table#initialize(ParserInput)
2020-12-27 20:01:47 -08:00
Collin Smith
138c62c225 Created definitions for numRecords and numFields within ParserInput 2020-12-27 19:59:58 -08:00
Collin Smith
10178dfebc Created Schema#preload to trigger preloading of table records 2020-12-21 14:27:23 -08:00
Collin Smith
e602b1660c Permit static final fields 2020-12-21 14:19:32 -08:00
Collin Smith
93ac1a70bd Set attributes for table files to have fixed line endings 2020-12-20 01:58:19 -08:00
Collin Smith
7ad9fd937c Additional test cases -- added assertions 2020-12-20 01:18:38 -08:00
Collin Smith
8aafd22da5 Committing additional schemas 2020-12-20 00:37:48 -08:00
Collin Smith
7e7dfa0213 Implemented foreign key into :core test case
Fixed issue where parser was generating code for foreign keys
Added additional test case to output tsv field names and ids map
Added MonStats2 foreign key to MonStats schema
Generated TableManifest fields are now statically instanced
2020-12-20 00:35:16 -08:00
Collin Smith
e0b4904efe Added support for foreign keys within schemas 2020-12-19 14:20:24 -08:00
Collin Smith
4e9f356b12 Removed table config annotations 2020-12-18 00:56:49 -08:00
Collin Smith
2996e164f2 Added additional documentation to Table and refactored parser init function call 2020-12-18 00:55:58 -08:00
Collin Smith
050f7dfc73 Submitting uncommitted changes to com.riiablo.excel for posterity 2020-12-18 00:55:15 -08:00