Faction Test 100.4.0.0
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using Barotrauma.Items.Components;
|
||||
using Barotrauma.Networking;
|
||||
using Microsoft.Xna.Framework;
|
||||
@@ -18,9 +19,10 @@ namespace Barotrauma
|
||||
AssignCampaignInteraction = 6,
|
||||
ApplyStatusEffect = 7,
|
||||
Upgrade = 8,
|
||||
ItemStat = 9,
|
||||
|
||||
MinValue = 0,
|
||||
MaxValue = 6
|
||||
MaxValue = 9
|
||||
}
|
||||
|
||||
public interface IEventData : NetEntityEvent.IData
|
||||
@@ -56,10 +58,24 @@ namespace Barotrauma
|
||||
{
|
||||
public EventType EventType => EventType.ChangeProperty;
|
||||
public readonly SerializableProperty SerializableProperty;
|
||||
public readonly ISerializableEntity Entity;
|
||||
|
||||
public ChangePropertyEventData(SerializableProperty serializableProperty)
|
||||
public ChangePropertyEventData(SerializableProperty serializableProperty, ISerializableEntity entity)
|
||||
{
|
||||
SerializableProperty = serializableProperty;
|
||||
Entity = entity;
|
||||
}
|
||||
}
|
||||
|
||||
public readonly struct SetItemStatEventData : IEventData
|
||||
{
|
||||
public EventType EventType => EventType.ItemStat;
|
||||
|
||||
public readonly Dictionary<ItemStatManager.TalentStatIdentifier, float> Stats;
|
||||
|
||||
public SetItemStatEventData(Dictionary<ItemStatManager.TalentStatIdentifier, float> stats)
|
||||
{
|
||||
Stats = stats;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user