Struct rust_rpg_toolkit::nodes::actor::ActorParams [−][src]
pub struct ActorParams {Show 24 fields
pub id: String,
pub is_essential: bool,
pub name: String,
pub class_id: Option<String>,
pub factions: Vec<String>,
pub behavior: ActorBehaviorParams,
pub position: Option<Vec2>,
pub strength: u32,
pub dexterity: u32,
pub constitution: u32,
pub intelligence: u32,
pub willpower: u32,
pub perception: u32,
pub charisma: u32,
pub current_health: f32,
pub current_stamina: f32,
pub current_energy: f32,
pub collider: Option<Collider>,
pub inventory: InventoryParams,
pub equipped_items: EquippedItems,
pub animation_player: SpriteAnimationParams,
pub experience: u32,
pub can_level_up: bool,
pub dialogue_id: Option<String>,
}
Fields
id: String
is_essential: bool
name: String
class_id: Option<String>
factions: Vec<String>
behavior: ActorBehaviorParams
position: Option<Vec2>
strength: u32
dexterity: u32
constitution: u32
intelligence: u32
willpower: u32
perception: u32
charisma: u32
current_health: f32
current_stamina: f32
current_energy: f32
collider: Option<Collider>
inventory: InventoryParams
equipped_items: EquippedItems
animation_player: SpriteAnimationParams
experience: u32
can_level_up: bool
dialogue_id: Option<String>
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
Performs the conversion.
Performs the conversion.
Auto Trait Implementations
impl !RefUnwindSafe for ActorParams
impl Send for ActorParams
impl !Sync for ActorParams
impl Unpin for ActorParams
impl !UnwindSafe for ActorParams
Blanket Implementations
Mutably borrows from an owned value. Read more