18 lines
246 B
TypeScript
18 lines
246 B
TypeScript
![]() |
enum InstructionType
|
||
|
{
|
||
|
Point,
|
||
|
Line,
|
||
|
Circle
|
||
|
}
|
||
|
|
||
|
class Instruction
|
||
|
{
|
||
|
public fn: InstructionType;
|
||
|
public params :Parameter[];
|
||
|
|
||
|
constructor(type: InstructionType)
|
||
|
{
|
||
|
this.fn = type;
|
||
|
this.params = [];
|
||
|
}
|
||
|
}
|