Struct peppi::model::game::Player [−][src]
pub struct Player {Show 15 fields
pub port: Port,
pub character: External,
pub type: PlayerType,
pub stocks: u8,
pub costume: u8,
pub team: Option<Team>,
pub handicap: u8,
pub bitfield: u8,
pub cpu_level: Option<u8>,
pub offense_ratio: f32,
pub defense_ratio: f32,
pub model_scale: f32,
pub ucf: Option<Ucf>,
pub name_tag: Option<String>,
pub netplay: Option<Netplay>,
}
Expand description
Information about each player such as character, team, stock count, etc.
Fields
port: Port
character: External
type: PlayerType
stocks: u8
starting stock count
costume: u8
team: Option<Team>
handicap: u8
handicap level; affects offense_ratio
& defense_ratio
bitfield: u8
miscellaneous flags (metal, stamina mode, etc)
cpu_level: Option<u8>
offense_ratio: f32
knockback multiplier when this player hits another
defense_ratio: f32
knockback multiplier when this player is hit
model_scale: f32
ucf: Option<Ucf>
UCF info (added: v1.0)
name_tag: Option<String>
in-game name-tag (added: v1.3)
netplay: Option<Netplay>
netplay info (added: v3.9)
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations
impl RefUnwindSafe for Player
impl UnwindSafe for Player
Blanket Implementations
Mutably borrows from an owned value. Read more