- Main Page
- Packages
- Classes
- Files

- File List
- File Members

# D:/guillaume/guillara/3D/DXGfx/Backup/DXGfxLib/Event.cs

Go to the documentation of this file.

    00001 using System;
    00002 using System.Collections.Generic;
    00003 using System.Text;
    00004
    00005 namespace DXGfxLib
    00006 {
    00013     public class Event : IComparable
    00014     {
    00018         public string name;
    00023         public float timeOffset;
    00027         public string type;
    00032         public string value;
    00036         public bool fired = false;
    00037
    00041         public Event()
    00042         {
    00043         }
    00044
    00053         public Event(string name, float timeOffset, string type, string value, bool fired)
    00054         {
    00055             this.name = name;
    00056             this.timeOffset = timeOffset;
    00057             this.type = type;
    00058             this.value = value;
    00059             this.fired = fired;
    00060         }
    00061
    00065         public void Reset()
    00066         {
    00067             fired = false;
    00068         }
    00069
    00075         public int CompareTo(Event evt)
    00076         {
    00077             return timeOffset.CompareTo(evt.timeOffset);
    00078         }
    00079
    00085         public int CompareTo(Object obj)
    00086         {
    00087             Event evt = obj as Event;
    00088
    00089             if (evt == null)
    00090             {
    00091                 return -1;
    00092             }
    00093             else
    00094             {
    00095                 return CompareTo(evt);
    00096             }
    00097         }
    00098     }
    00099 }