From 0966bc341675a3772dec99fb345b58ae7bec2ed8 Mon Sep 17 00:00:00 2001 From: Filipe Rodrigues Date: Fri, 29 May 2020 23:32:32 +0100 Subject: [PATCH] Moved `Move` card property documentation to it's own file. --- src/game/card/property/move.md | 12 ++++++++++++ src/game/card/property/moves.rs | 13 +------------ 2 files changed, 13 insertions(+), 12 deletions(-) create mode 100644 src/game/card/property/move.md diff --git a/src/game/card/property/move.md b/src/game/card/property/move.md new file mode 100644 index 0000000..ceff565 --- /dev/null +++ b/src/game/card/property/move.md @@ -0,0 +1,12 @@ +A digimon's move + +This module contains the [`Move`] struct, which describes a generic move over the triangle, circle or cross. + +# Layout +Each move has a size of `0x1c` bytes, and it's layout is the following: + +| Offset | Size | Type | Name | Location | Details | +| ------ | ---- | -------------- | ------- | --------- | --------------------------------- | +| 0x0 | 0x2 | `u16` | Power | `power` | | +| 0x2 | 0x4 | `u32` | Unknown | `unknown` | Most likely stores animation data | +| 0x6 | 0x16 | `[char; 0x16]` | Name | `name` | Null-terminated | diff --git a/src/game/card/property/moves.rs b/src/game/card/property/moves.rs index 6599f26..763f688 100644 --- a/src/game/card/property/moves.rs +++ b/src/game/card/property/moves.rs @@ -1,15 +1,4 @@ -//! A digimon's move -//! -//! This module contains the [`Move`] struct, which describes a generic move over the triangle, circle or cross. -//! -//! # Layout -//! Each move has a size of `0x1c` bytes, and it's layout is the following: -//! -//! | Offset | Size | Type | Name | Location | Details | -//! |--------|------|----------------------|---------------------------|------------------------|-----------------------------------| -//! | 0x0 | 0x2 | `u16` | Power | `power` | | -//! | 0x2 | 0x4 | `u32` | Unknown | `unknown` | Most likely stores animation data | -//! | 0x6 | 0x16 | `[char; 0x16]` | Name | `name` | Null-terminated | +#![doc(include = "move.md")] // byteorder use byteorder::{ByteOrder, LittleEndian};