Faction Test 100.4.0.0

This commit is contained in:
Markus Isberg
2022-11-14 18:28:28 +02:00
parent 87426b68b2
commit c772b61fc1
412 changed files with 16984 additions and 5530 deletions
@@ -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;
}
}