-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2fa4b6e
commit 2bd63a8
Showing
8 changed files
with
230 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,89 @@ | ||
use crate::CmlString; | ||
use makaikit_databases_serde::DatabaseRecord; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct Effect { | ||
r#type: i32, | ||
value: Vec<i32>, | ||
} | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct ActData { | ||
#[serde(rename = "ID")] | ||
pub id: i32, | ||
|
||
pub enum_name: String, | ||
|
||
#[serde(rename = "refID")] | ||
pub ref_id: i32, | ||
|
||
pub name: CmlString, | ||
pub help_text: CmlString, | ||
|
||
#[serde(rename = "iconID")] | ||
pub icon_id: i32, | ||
|
||
pub is_use: i32, | ||
pub r#type: i32, | ||
pub record_type: i32, | ||
pub weapon_type: i32, | ||
pub attack_type: i32, | ||
pub target_type: i32, | ||
pub attribute: i32, | ||
pub depend: i32, | ||
pub range: i32, | ||
pub range_type: i32, | ||
pub act_map: i32, | ||
pub valid_target: i32, | ||
pub valid_feature: Vec<i32>, | ||
pub invalid_feature: Vec<i32>, | ||
pub upper_range: i32, | ||
pub lower_range: i32, | ||
pub is_self_target: i32, | ||
pub act_feature: Vec<i32>, | ||
|
||
#[serde(rename = "consumeSP")] | ||
pub consume_sp: i32, | ||
|
||
pub is_enhance: i32, | ||
pub mana: [i32; 9], | ||
pub power: i32, | ||
pub power_coefficient: [i32; 9], | ||
pub effect: [Effect; 5], | ||
pub is_enemy_disabled: i32, | ||
pub is_exclusive: i32, | ||
pub script_file_name: String, | ||
pub script_func_name: String, | ||
|
||
#[serde(rename = "scriptFileName_omit")] | ||
pub script_file_name_omit: String, | ||
|
||
#[serde(rename = "scriptFuncName_omit")] | ||
pub script_func_name_omit: String, | ||
|
||
#[serde(rename = "scriptFileName_veryomit")] | ||
pub script_file_name_veryomit: String, | ||
|
||
#[serde(rename = "scriptFuncName_veryomit")] | ||
pub script_func_name_veryomit: String, | ||
|
||
pub required_flag: Vec<i32>, | ||
|
||
pub version: i32, | ||
pub region: u32, | ||
pub product: u32, | ||
pub platform: u32, | ||
} | ||
|
||
impl DatabaseRecord for ActData { | ||
fn database_id(&self) -> i32 { | ||
self.id | ||
} | ||
|
||
fn database_enum_name(&self) -> &str { | ||
&self.enum_name | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use makaikit_databases_serde::DatabaseRecord; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct ActEffectData { | ||
#[serde(rename = "ID")] | ||
pub id: i32, | ||
|
||
pub enum_name: String, | ||
pub name: String, | ||
pub version: i32, | ||
pub region: u32, | ||
pub product: u32, | ||
pub platform: u32, | ||
} | ||
|
||
impl DatabaseRecord for ActEffectData { | ||
fn database_id(&self) -> i32 { | ||
self.id | ||
} | ||
|
||
fn database_enum_name(&self) -> &str { | ||
&self.enum_name | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
use makaikit_databases_serde::DatabaseRecord; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct ActFeatureData { | ||
#[serde(rename = "ID")] | ||
pub id: i32, | ||
|
||
pub enum_name: String, | ||
pub name: String, | ||
pub version: i32, | ||
pub region: u32, | ||
pub product: u32, | ||
pub platform: u32, | ||
} | ||
|
||
impl DatabaseRecord for ActFeatureData { | ||
fn database_id(&self) -> i32 { | ||
self.id | ||
} | ||
|
||
fn database_enum_name(&self) -> &str { | ||
&self.enum_name | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
use makaikit_databases_serde::DatabaseRecord; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct ActLearnData { | ||
#[serde(rename = "ID")] | ||
pub id: i32, | ||
|
||
pub enum_name: String, | ||
pub comment: String, | ||
|
||
#[serde(rename = "actID")] | ||
pub act_id: i32, | ||
|
||
pub weapon_type: i32, | ||
|
||
#[serde(rename = "needWMLv")] | ||
pub need_wm_lv: i32, | ||
|
||
pub version: i32, | ||
pub region: u32, | ||
pub product: u32, | ||
pub platform: u32, | ||
} | ||
|
||
impl DatabaseRecord for ActLearnData { | ||
fn database_id(&self) -> i32 { | ||
self.id | ||
} | ||
|
||
fn database_enum_name(&self) -> &str { | ||
&self.enum_name | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
use makaikit_databases_serde::DatabaseRecord; | ||
use serde::{Deserialize, Serialize}; | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct MapLine { | ||
pub check: i32, | ||
pub column: [i32; 21], | ||
} | ||
|
||
#[derive(Clone, Debug, Deserialize, Serialize)] | ||
#[serde(rename_all = "camelCase")] | ||
pub struct ActMapData { | ||
#[serde(rename = "ID")] | ||
pub id: i32, | ||
|
||
pub enum_name: String, | ||
pub name: String, | ||
pub range_type: i32, | ||
pub rot_type: i32, | ||
pub line: Vec<MapLine>, | ||
} | ||
|
||
impl DatabaseRecord for ActMapData { | ||
fn database_id(&self) -> i32 { | ||
self.id | ||
} | ||
|
||
fn database_enum_name(&self) -> &str { | ||
&self.enum_name | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters