Moved Move card property documentation to it's own file.

This commit is contained in:
2020-05-29 23:32:32 +01:00
parent 615b48f212
commit 0966bc3416
2 changed files with 13 additions and 12 deletions

View File

@@ -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 |

View File

@@ -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};