2using System.Collections.Generic;
3using System.Runtime.InteropServices;
8 [StructLayout(LayoutKind.Sequential)]
9 public struct ScAction : IEquatable<ScAction>
11 private ScActionType _Type;
14 public ScActionType Type
22 get => TimeSpan.FromMilliseconds(_Delay);
23 set => _Delay = (uint)Math.Round(value.TotalMilliseconds);
28 return _Type == other._Type && _Delay == other._Delay;
31 public override bool Equals(
object obj)
39 public override int GetHashCode()
41 int h1 = this.Delay.GetHashCode();
42 int h2 = this.Type.GetHashCode();
44 return ((h1 << 5) + h1) ^ h2;