pub struct Skillset { /* private fields */ }
Implementations§
Source§impl Skillset
impl Skillset
pub fn new<S: Into<String>>(name: S, position: Option<Position>) -> Self
pub fn name(&self) -> &str
pub fn position(&self) -> Option<Position>
pub fn types(&self) -> &Vec<RlType>
pub fn add_type(&mut self, rl_type: RlType) -> TypeId
pub fn get_type(&self, id: TypeId) -> Option<&RlType>
pub fn type_map(&self) -> HashMap<String, TypeId>
pub fn data(&self) -> &Vec<Data>
pub fn get_data(&self, id: DataId) -> Option<&Data>
pub fn add_data(&mut self, data: Data) -> DataId
pub fn resources(&self) -> &Vec<Resource>
pub fn get_resource(&self, id: ResourceId) -> Option<&Resource>
pub fn add_resource(&mut self, resource: Resource) -> ResourceId
pub fn resource_map(&self) -> HashMap<String, ResourceId>
pub fn get_state(&self, id: StateId) -> Option<&State>
pub fn state_map(&self) -> HashMap<String, StateId>
pub fn events(&self) -> &Vec<Event>
pub fn get_event(&self, id: EventId) -> Option<&Event>
pub fn add_event(&mut self, event: Event) -> EventId
pub fn skills(&self) -> &Vec<Skill>
pub fn get_skill(&self, id: SkillId) -> Option<&Skill>
pub fn add_skill(&mut self, skill: Skill) -> SkillId
pub fn type_naming(&self) -> Vec<Naming> ⓘ
pub fn data_naming(&self) -> Vec<Naming> ⓘ
pub fn resource_naming(&self) -> Vec<Naming> ⓘ
pub fn event_naming(&self) -> Vec<Naming> ⓘ
pub fn skill_naming(&self) -> Vec<Naming> ⓘ
pub fn duplicate(&self) -> Result<(), RlError>
pub fn resolve(&mut self) -> Result<(), RlError>
pub fn resolve_type(&mut self) -> Result<(), RlError>
pub fn resolve_resource(&mut self) -> Result<(), RlError>
pub fn resolve_state(&mut self) -> Result<(), RlError>
Trait Implementations§
Source§impl GetFromId<PreconditionId, Precondition> for Skillset
impl GetFromId<PreconditionId, Precondition> for Skillset
fn get(&self, id: PreconditionId) -> Option<&Precondition>
Auto Trait Implementations§
impl Freeze for Skillset
impl RefUnwindSafe for Skillset
impl Send for Skillset
impl Sync for Skillset
impl Unpin for Skillset
impl UnwindSafe for Skillset
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more