Client LuaCsForBarotrauma
HullEventData.cs
3 using System;
4 
5 namespace Barotrauma
6 {
7  partial class Hull
8  {
9  [Flags]
10  public enum EventType
11  {
12  Status = 0,
13  Decal = 1,
15  BallastFlora = 3,
16 
17  MinValue = 0,
18  MaxValue = 3
19  }
20 
21  public interface IEventData : NetEntityEvent.IData
22  {
23  public EventType EventType { get; }
24  }
25 
26  private readonly struct StatusEventData : IEventData
27  {
28  public EventType EventType => EventType.Status;
29  }
30 
31  private readonly struct DecalEventData : IEventData
32  {
33  public EventType EventType => EventType.Decal;
34  public readonly Decal Decal;
35 
36  public DecalEventData(Decal decal)
37  {
38  Decal = decal;
39  }
40  }
41 
42  private readonly struct BackgroundSectionsEventData : IEventData
43  {
44  public EventType EventType => EventType.BackgroundSections;
45  public readonly int SectorStartIndex;
46 
47  public BackgroundSectionsEventData(int sectorStartIndex)
48  {
49  SectorStartIndex = sectorStartIndex;
50  }
51  }
52 
53  public readonly struct BallastFloraEventData : IEventData
54  {
55  public EventType EventType => EventType.BallastFlora;
56  public readonly BallastFloraBehavior Behavior;
57  public readonly BallastFloraBehavior.IEventData SubEventData;
58 
59  public BallastFloraEventData(BallastFloraBehavior behavior, BallastFloraBehavior.IEventData subEventData)
60  {
61  Behavior = behavior;
62  SubEventData = subEventData;
63  }
64  }
65  }
66 }
List< BackgroundSection > BackgroundSections
BallastFloraEventData(BallastFloraBehavior behavior, BallastFloraBehavior.IEventData subEventData)
readonly BallastFloraBehavior Behavior
readonly BallastFloraBehavior.IEventData SubEventData