add card model
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
use alloc::{string::String, vec::Vec};
|
||||||
|
|
||||||
#[derive(Debug, Clone, Copy)]
|
#[derive(Debug, Clone, Copy)]
|
||||||
pub struct NfcPayload<'a> {
|
pub struct NfcPayload<'a> {
|
||||||
pub event_encoding: &'a [u8],
|
pub event_encoding: &'a [u8],
|
||||||
@@ -9,3 +11,34 @@ pub struct NfcPayload<'a> {
|
|||||||
pub secret: &'a [u8],
|
pub secret: &'a [u8],
|
||||||
pub _opaque_trailer: &'a [u8],
|
pub _opaque_trailer: &'a [u8],
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
|
pub enum CardType {
|
||||||
|
Default,
|
||||||
|
Blueprint,
|
||||||
|
CYBER,
|
||||||
|
Nature,
|
||||||
|
Fossil,
|
||||||
|
Ghost,
|
||||||
|
Daemon,
|
||||||
|
Fairy,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
|
pub struct Sprite {
|
||||||
|
pub data: Vec<u8>,
|
||||||
|
}
|
||||||
|
|
||||||
|
#[derive(Debug, Clone)]
|
||||||
|
pub struct Card {
|
||||||
|
pub uuid: String,
|
||||||
|
pub name: String,
|
||||||
|
pub cardtype: CardType,
|
||||||
|
|
||||||
|
pub trait1: String,
|
||||||
|
pub trait2: String,
|
||||||
|
pub trait3: String,
|
||||||
|
pub secret: String,
|
||||||
|
|
||||||
|
pub sprite: Sprite,
|
||||||
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user