add character options flags to postgres
This commit is contained in:
parent
00478912ee
commit
a2e4f348d9
@ -47,6 +47,7 @@ create table player_character (
|
|||||||
config bytea not null,
|
config bytea not null,
|
||||||
infoboard varchar(172) not null,
|
infoboard varchar(172) not null,
|
||||||
guildcard varchar(172) not null,
|
guildcard varchar(172) not null,
|
||||||
|
option_flags integer not null,
|
||||||
|
|
||||||
power smallint not null,
|
power smallint not null,
|
||||||
mind smallint not null,
|
mind smallint not null,
|
||||||
|
@ -206,6 +206,7 @@ pub struct PgCharacter {
|
|||||||
config: Vec<u8>,
|
config: Vec<u8>,
|
||||||
infoboard: String,
|
infoboard: String,
|
||||||
guildcard: String,
|
guildcard: String,
|
||||||
|
option_flags: i32,
|
||||||
|
|
||||||
power: i16,
|
power: i16,
|
||||||
mind: i16,
|
mind: i16,
|
||||||
@ -254,6 +255,7 @@ impl Into<CharacterEntity> for PgCharacter {
|
|||||||
guildcard: CharacterGuildCard {
|
guildcard: CharacterGuildCard {
|
||||||
description: self.guildcard,
|
description: self.guildcard,
|
||||||
},
|
},
|
||||||
|
option_flags: self.option_flags as u32,
|
||||||
materials: CharacterMaterials {
|
materials: CharacterMaterials {
|
||||||
power: self.power as u32,
|
power: self.power as u32,
|
||||||
mind: self.mind as u32,
|
mind: self.mind as u32,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user