42 lines
547 B
C#
42 lines
547 B
C#
using System;
|
|
using System.Collections.Generic;
|
|
using System.Xml;
|
|
|
|
namespace DMX2
|
|
{
|
|
public abstract class Sequenceur
|
|
{
|
|
|
|
static int idmax;
|
|
|
|
public Sequenceur (int id)
|
|
{
|
|
this.id = id;
|
|
idmax = Math.Max(id,idmax);
|
|
}
|
|
|
|
public Sequenceur ()
|
|
{
|
|
id = idmax++;
|
|
}
|
|
|
|
int id;
|
|
|
|
public int ID {
|
|
get {
|
|
return id;
|
|
}
|
|
}
|
|
|
|
|
|
public abstract int EtatCircuit(Circuit c);
|
|
public abstract void Tick(TimeSpan time);
|
|
public static Sequenceur Load(XmlElement el)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
public abstract XmlElement Save();
|
|
}
|
|
}
|
|
|