pub struct GameplayAttributeAssociation { /* private fields */ }Expand description
One gameplay-event to attribute relationship from the SDK schema.
Several gameplay events reuse attribute descriptors such as pay.amount,
source.id, and target.id. Keeping event membership outside
AnyAttribute preserves that many-to-many shape and gives schema tooling
an enumerable association catalog without duplicating typed descriptors.
Implementations§
Source§impl GameplayAttributeAssociation
impl GameplayAttributeAssociation
Sourcepub const fn new<T: SdkValue>(
event: GameplayEventId,
attribute: Attribute<T>,
availability: GameSchemaAvailability,
) -> Self
pub const fn new<T: SdkValue>( event: GameplayEventId, attribute: Attribute<T>, availability: GameSchemaAvailability, ) -> Self
Declares that one typed attribute is carried by a gameplay event.
Sourcepub const fn event(self) -> GameplayEventId
pub const fn event(self) -> GameplayEventId
Gameplay event which carries the attribute.
Sourcepub const fn attribute(self) -> AnyAttribute
pub const fn attribute(self) -> AnyAttribute
Type-erased attribute metadata for enumeration and diagnostics.
Sourcepub const fn availability(self) -> GameSchemaAvailability
pub const fn availability(self) -> GameSchemaAvailability
First ETS2 and ATS schemas which expose this relationship.
Trait Implementations§
Source§impl Clone for GameplayAttributeAssociation
impl Clone for GameplayAttributeAssociation
Source§fn clone(&self) -> GameplayAttributeAssociation
fn clone(&self) -> GameplayAttributeAssociation
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreimpl Copy for GameplayAttributeAssociation
Source§impl Debug for GameplayAttributeAssociation
impl Debug for GameplayAttributeAssociation
impl Eq for GameplayAttributeAssociation
impl StructuralPartialEq for GameplayAttributeAssociation
Auto Trait Implementations§
impl Freeze for GameplayAttributeAssociation
impl RefUnwindSafe for GameplayAttributeAssociation
impl Send for GameplayAttributeAssociation
impl Sync for GameplayAttributeAssociation
impl Unpin for GameplayAttributeAssociation
impl UnsafeUnpin for GameplayAttributeAssociation
impl UnwindSafe for GameplayAttributeAssociation
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