26 lines
No EOL
509 B
TypeScript
26 lines
No EOL
509 B
TypeScript
declare module EndGate {
|
|
export interface ICloneable {
|
|
Clone(): any;
|
|
}
|
|
}
|
|
|
|
interface Number extends EndGate.ICloneable { }
|
|
|
|
module EndGate.Tweening {
|
|
export class Tween<T extends ICloneable>{
|
|
private _from: T;
|
|
|
|
|
|
constructor(from: T) {
|
|
this._from = from.Clone();
|
|
}
|
|
}
|
|
}
|
|
|
|
module EndGate.Tweening {
|
|
export class NumberTween extends Tween<number>{
|
|
constructor(from: number) {
|
|
super(from);
|
|
}
|
|
}
|
|
} |