Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 3
0
        /// <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;
        }
Ejemplo n.º 4
0
 /// <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;
 }
Ejemplo n.º 5
0
 /// <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);
 }
Ejemplo n.º 6
0
 /// <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));
 }
Ejemplo n.º 7
0
 public HotkeyEvent(Player player, Timestamp time)
     : base(player, time)
 {
     this.EventType = GameEventType.Other;
 }