5 internal partial class BallastFloraBehavior
9 public NetworkHeader NetworkHeader {
get; }
14 public NetworkHeader NetworkHeader => NetworkHeader.Spawn;
17 private readonly
struct KillEventData :
IEventData
19 public NetworkHeader NetworkHeader => NetworkHeader.Kill;
22 private readonly
struct RemoveEventData : IEventData
24 public NetworkHeader NetworkHeader => NetworkHeader.Remove;
27 private readonly
struct BranchCreateEventData : IEventData
29 public NetworkHeader NetworkHeader => NetworkHeader.BranchCreate;
30 public readonly BallastFloraBranch NewBranch;
31 public readonly BallastFloraBranch Parent;
33 public BranchCreateEventData(BallastFloraBranch newBranch, BallastFloraBranch parent)
35 NewBranch = newBranch;
40 private readonly
struct BranchRemoveEventData : IEventData
42 public NetworkHeader NetworkHeader => NetworkHeader.BranchRemove;
43 public readonly BallastFloraBranch Branch;
45 public BranchRemoveEventData(BallastFloraBranch branch)
51 private readonly
struct BranchDamageEventData : IEventData
53 public NetworkHeader NetworkHeader => NetworkHeader.BranchDamage;
54 public readonly BallastFloraBranch Branch;
56 public BranchDamageEventData(BallastFloraBranch branch)
62 private readonly
struct InfectEventData : IEventData
64 public enum InfectState { Yes, No }
66 public NetworkHeader NetworkHeader => NetworkHeader.Infect;
68 public readonly InfectState Infect;
69 public readonly BallastFloraBranch Infector;
71 public InfectEventData(Item item, InfectState infect, BallastFloraBranch infector)