2 using System.Collections.Generic;
3 using System.Collections.Immutable;
7 using Microsoft.Xna.Framework;
21 AssignCampaignInteraction = 6,
71 if (serializableProperty.GetAttribute<
Editable>() ==
null)
73 DebugConsole.ThrowError($
"Attempted to create {nameof(ChangePropertyEventData)} for the non-editable property {serializableProperty.Name}.");
84 public readonly Dictionary<TalentStatIdentifier, float>
Stats;
92 private readonly
struct ItemStatusEventData : IEventData
96 public readonly
bool LoadingRound;
98 public ItemStatusEventData(
bool loadingRound)
100 LoadingRound = loadingRound;
104 private readonly
struct AssignCampaignInteractionEventData : IEventData
108 public readonly ImmutableArray<Client> TargetClients;
110 public AssignCampaignInteractionEventData(IEnumerable<Client> targetClients)
112 TargetClients = (targetClients ?? Enumerable.Empty<
Client>()).ToImmutableArray();
130 Limb targetLimb =
null,
132 Vector2? worldPosition =
null)
143 private readonly
struct UpgradeEventData : IEventData
146 public readonly Upgrade Upgrade;
148 public UpgradeEventData(Upgrade upgrade)
void ApplyStatusEffect(StatusEffect effect, ActionType type, float deltaTime, Character character=null, Limb limb=null, Entity useTarget=null, bool isNetworkEvent=false, bool checkCondition=true, Vector2? worldPosition=null)
IEnumerable< Item > DroppedStack
bool Combine(Item item, Character user)
The base class for components holding the different functionalities of the item
ActionType
ActionTypes define when a StatusEffect is executed.
ApplyStatusEffectEventData(ActionType actionType, ItemComponent targetItemComponent=null, Character targetCharacter=null, Limb targetLimb=null, Entity useTarget=null, Vector2? worldPosition=null)
readonly Character TargetCharacter
readonly ItemComponent TargetItemComponent
readonly? Vector2 WorldPosition
readonly ActionType ActionType
readonly Entity UseTarget
readonly SerializableProperty SerializableProperty
ChangePropertyEventData(SerializableProperty serializableProperty, ISerializableEntity entity)
readonly ISerializableEntity Entity
readonly ItemComponent Component
ComponentStateEventData(ItemComponent component, ItemComponent.IEventData componentData)
readonly ItemComponent.IEventData ComponentData
InventoryStateEventData(ItemContainer component, Range slotRange)
readonly ItemContainer Component
readonly Dictionary< TalentStatIdentifier, float > Stats
SetItemStatEventData(Dictionary< TalentStatIdentifier, float > stats)