1b276918d3
Fixed issue with formatter.
2020-09-18 17:30:31 +01:00
cdaf7047f4
Added AsciiStrArr and modified all modules to use it.
2020-09-18 01:45:58 +01:00
32c2de695d
Revised some unit tests for Move.
2020-09-11 14:09:20 +01:00
e85527fdbf
move warning and errors now implement std::error::Error.
...
`From` / `Into` implementations for `Data` and `u64` are now done using `derive_more`.
2020-09-11 13:28:49 +01:00
68916aa93d
Added try_to_data and to_real methods to the addresses.
...
Started using the new address methods instead of `From` / `TryFrom`.
Moved definition of `TryFrom` and `From` for addresses into their respective modules.
Revised implementation of `Seek` for `GameFile`.
2020-09-10 14:35:07 +01:00
3786c89f18
Added restrictions to Bytes::ByteArray.
2020-09-09 12:38:02 +01:00
46470cdae7
Now using min_const_generics.
2020-09-09 12:35:28 +01:00
faa6beacfa
util::impl_bytes::generate_enum_property_option is now exported in util.
2020-09-09 12:24:41 +01:00
ffd06d4f28
Updated lints to reflect new clippy versions.
...
Moved `clippy::unsafe_derive_deserialize` allow to where it is explicitly allowed, instead of allowing it crate-wide.
2020-09-09 11:56:59 +01:00
7873c5eed3
Moved helper macros to implement Bytes to util.
...
Discovered more fields of `Deck`.
Fixed `DeckTable` having the wrong address for the table.
2020-07-21 18:18:46 +01:00
1e171b7071
Replaced occurencies of 0x{:x} in format strings with the equivalent {:#x}
2020-07-18 22:04:35 +01:00
820b1e3225
Improved card table.
...
Added some features to deck table, such as reading & writing the header.
2020-07-18 22:03:47 +01:00
e89efc849d
Fixed wrong usage of char in documentation.
...
Added some derives to `CardTable`.
Added documentation for `Deck`.
2020-07-14 23:10:09 +01:00
9885563e32
Moved CardTable's errors to it's own module.
...
Changed all `log::debug!` to `log::trace!`.
2020-07-14 22:24:52 +01:00
09c716a804
Moved util from game module to crate level to add functions more global, outside of game.
...
Removed all `as` conversions lints and fixed code using them.
2020-07-14 22:11:14 +01:00
b08c6431cf
Improved validation interface.
...
Implemented new validation interface for `Move`.
Added more tests to `Move`.
2020-07-14 19:41:23 +01:00
36c429372e
Reworked util module.
...
Changed all functions that read/write ascii strings to a trait.
2020-07-14 18:48:22 +01:00
f5ebcd1cf5
Changed imports style.
2020-07-14 17:58:32 +01:00
b33ba8f2d3
Revised validation interface.
2020-07-14 17:53:34 +01:00
9e1318576a
Removed valicdation interface as-is.
...
Fixed missing documentation accross the whole project.
2020-07-14 17:38:56 +01:00
a561090b76
Removed nightly feature const_if_match, as it's stable as of rust 1.45.0.
2020-07-14 17:25:18 +01:00
33ffb13555
Fixed formatting errors from thiserror migration.
2020-07-11 22:03:35 +01:00
d876673326
Changed from err-impl to thiserror for deriving errors.
...
Added `PartialEq`, `Eq`, `Clone` and `Copy` bounds for as many errors as possible.
2020-07-11 21:52:19 +01:00
aa24a5cad9
Added unit tests for Move.
2020-07-11 21:30:05 +01:00
f65ad458fa
Fixed documentation reference being malformed in validation.rs.
2020-05-29 23:54:30 +01:00
0966bc3416
Moved Move card property documentation to it's own file.
2020-05-29 23:32:32 +01:00
615b48f212
Added validation to Move card property.
2020-05-29 23:09:45 +01:00
355da1476e
Added some getters and setters to the Validation interface.
2020-05-23 05:23:30 +01:00
c03f3237bf
Added [Bytes::validate] interface to validate structures before writing them to bytes.
...
Currently all implementations return an empty validation, but they will be developed over time.
2020-05-13 15:58:27 +01:00
a836133e55
Added ability to deserialize a EffectConditionOperation from 0xFF for Aquilamon. Fixes #1 .
...
Added the ability to deserialize extra fields in card properties with the `generate_enum_property_mod` macro.
2020-05-13 15:11:11 +01:00
e02b410524
Added some more exports to the library.
...
Long item names are now imported in `Bytes`.
2020-05-13 03:15:53 +01:00
63d312e845
Added various rustfmt configurations.
...
Revised documentation of the library and lint opt-out reasons.
Moved some module documentation to it's own file due to overflowing the line limit.
Fixed several spelling errors.
2020-05-13 03:03:46 +01:00
24b51f4051
Added exception to new lint due to a false positive.
2020-05-13 01:10:49 +01:00
ddfa0636af
Added a write_maybe_null_ascii_string to game::util.
...
Finished `Bytes` implementation for `game::deck::table::Table`.
2020-05-01 19:05:11 +01:00
a1c9867ccb
Added a read_maybe_null_ascii_string to game::util.
...
Added information to `Decks`.
All decks are now read with `game::deck::Table`.
2020-05-01 14:08:13 +01:00
8dffe82143
Replaced .chars().collect() with .to_ascii_string() for AsciiStr.
2020-05-01 12:20:30 +01:00
52b7312294
Added more errors to game::card::table.
...
Started work on `game::deck::table`.
2020-05-01 11:52:55 +01:00
280bdac119
All code is now formatted.
...
Started using `err_impl::Error` where possible.
2020-05-01 11:29:01 +01:00
c031d151a7
Removed EffectType card property.
2020-05-01 10:45:20 +01:00
28aece1323
Fixed some documentation.
...
Changed `Digivolve` to use `unknown_{location}` for unknown fields.
2020-05-01 09:55:01 +01:00
5d5548a54f
Refactored game::digivolve.
2020-05-01 07:57:22 +01:00
c10ea99f7c
Refactored game::item.
2020-05-01 07:45:02 +01:00
757fd2ed1e
Added a EffectType card property.
...
Improved card proprety macros.
2020-05-01 06:55:53 +01:00
2ae6711703
Added a Bytes implementation for EffectCondition and DigimonProperty.
2020-05-01 06:09:12 +01:00
ee7bcbea0f
Added back a Bytes implementation of Effect.
2020-05-01 05:48:40 +01:00
80e011dd82
Made game::util::read_null_ascii_string more generic.
...
Added some implementations of `Bytes` for `Option<...>` where relevant.
Started using `array_split` in `Move::from_bytes`.
2020-05-01 05:41:04 +01:00
596bf177d6
Finished Effect to_bytes implementation.
2020-04-30 05:59:33 +01:00
e52cc554ff
Updated names relating to support conditions / effects.
...
Added documentation to `EffectCondition`.
Changed `array_split` to behave like `array_split_mut`.
Instead of using `?` on `Result<T, !>` , we use `Result::into_ok`.
2020-04-26 08:54:40 +01:00
8b4b11113a
Refactored array_split(_mut) macro.
...
Now using `AsciiString` instead of `arrayvec::ArrayVec<[ascii::AsciiChar; _]>`.
2020-04-26 07:10:45 +01:00
f2c0218096
Added proper documentation to moves.rs, support_condition.rs and support_effect.rs
2020-04-23 04:00:36 +01:00