1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
|
use serde::{Deserialize, Serialize};
#[cfg(target_family = "wasm")]
use wasm_bindgen::prelude::*;
/// The region of the game.
///
/// Currently only the US version is supported, though the EU version will probably work too.
#[cfg_attr(target_family = "wasm", wasm_bindgen)]
#[repr(C)]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub enum Region {
US,
// EU,
// JP,
}
/// Which game
#[cfg_attr(target_family = "wasm", wasm_bindgen)]
#[repr(C)]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub enum Game {
Ages,
Seasons,
}
/// The choice of animal companion
#[cfg_attr(target_family = "wasm", wasm_bindgen)]
#[repr(C)]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub enum Animal {
Ricky = 0x0b,
Dimitri = 0x0c,
Moosh = 0x0d,
}
#[cfg_attr(target_family = "wasm", wasm_bindgen)]
#[repr(C)]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub enum RupeesGiven {
/// One Rupee
One = 0,
/// Ten Rupees
Ten = 2,
/// Fifty Rupees
Fifty = 5,
// 150 Rupees
OneFifty = 8,
}
#[cfg_attr(target_family = "wasm", wasm_bindgen)]
#[repr(C)]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub enum SleepMethod {
Sing = 0,
Play = 10,
}
#[cfg_attr(target_family = "wasm", wasm_bindgen)]
#[repr(C)]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub enum Child {
None,
Curious,
Shy,
Hyperactive,
}
#[cfg_attr(target_family = "wasm", wasm_bindgen)]
#[repr(C)]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub enum AnimalChoice {
None = 0,
Ricky = 0x0b,
Dimitri = 0x0c,
Moosh = 0x0d,
}
#[cfg_attr(target_family = "wasm", wasm_bindgen)]
#[repr(C)]
#[derive(Debug, Clone, Serialize, Deserialize, PartialEq, Eq)]
pub enum ChildQuestion {
NoEgg = 0,
YesChicken = 4,
}
|