CModifierProperty
Wraps CModifierProperty - manages modifier state bits on an entity. Uses CNetworkVarChainer to chain network notifications to the owning entity.
public class CModifierProperty : NativeEntity
Namespace: DeadworksManaged.Api
Inherits / implements: NativeEntity
Source: Entities/CModifierProperty.cs#L7
Properties
CModifierProperty.Owner
The entity that owns this modifier property.
Signature
public CBaseEntity? Owner { get; }
Source: Entities/CModifierProperty.cs#L14
CModifierProperty.Modifiers
Returns all active modifiers on this entity.
Signature
public IReadOnlyList<CBaseModifier> Modifiers { get; }
Source: Entities/CModifierProperty.cs#L19
Methods
CModifierProperty.HasModifier()
Returns true if this entity has an active modifier with the specified subclass VData name.
Signature
public bool HasModifier(string name)
Source: Entities/CModifierProperty.cs#L35
CModifierProperty.SetModifierState()
Sets or clears the specified modifier state bit on this entity, notifying the network if changed.
Signature
public void SetModifierState(EModifierState state, bool enabled)
Source: Entities/CModifierProperty.cs#L56
CModifierProperty.HasModifierState()
Returns true if the specified modifier state bit is currently set on this entity.
Signature
public bool HasModifierState(EModifierState state)