public GameEventBase(Player player, Timestamp time) { this.Player = player; this.Time = time; }
public PlayerLeftEvent(Player player, Timestamp time) : base(player, time) { this.EventType = GameEventType.Inactive; }
/// <summary> Parses a Timestamp object from a BinaryReader and advances it's position. </summary> /// <param name="reader"> The binary reader, at the position of the Timestamp object. </param> /// <returns> Returns the parsed Timestamp. </returns> public static Timestamp Parse(BinaryReader reader) { int value = ParseTimestamp(reader); var timestamp = new Timestamp { Value = value }; return timestamp; }
/// <summary> Creates a Timestamp object from an integer value. </summary> /// <param name="value"> The integer value. </param> /// <returns> Returns a Timestamp object with the given value. </returns> public static Timestamp Create(int value) { var timestamp = new Timestamp { Value = value }; return timestamp; }
/// <summary> Compares two Timestamp objects to determine which has a greater value. </summary> /// <param name="obj"> A timestamp object to compare against. </param> /// <returns> An integer value describing the relative valeus between the two objects. </returns> public int CompareTo(Timestamp obj) { return this.Value.CompareTo(obj.Value); }
/// <summary> Compares two Timestamp objects to determine which has a greater value. </summary> /// <param name="obj"> A timestamp object to compare against. </param> /// <returns> An integer value describing the relative valeus between the two objects. </returns> public int CompareTo(Timestamp obj) { return(this.Value.CompareTo(obj.Value)); }
public HotkeyEvent(Player player, Timestamp time) : base(player, time) { this.EventType = GameEventType.Other; }