nix dead code
This commit is contained in:
parent
bf26e85b49
commit
2bff1f6cdf
1 changed files with 0 additions and 18 deletions
|
@ -1,24 +1,6 @@
|
||||||
|
|
||||||
export const INPUT_FREQUENCY = 33; // roughly 30fps
|
export const INPUT_FREQUENCY = 33; // roughly 30fps
|
||||||
|
|
||||||
export interface DeepCopy<T> {
|
|
||||||
deepCopy(patch: Partial<T>): T;
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface Equals {
|
|
||||||
equals(other: this): boolean;
|
|
||||||
}
|
|
||||||
|
|
||||||
function equals<T extends Equals | string | number>(a: T, b: T): boolean {
|
|
||||||
if(typeof a === "string"){
|
|
||||||
return a == b;
|
|
||||||
}
|
|
||||||
if(typeof a === "number"){
|
|
||||||
return a == b;
|
|
||||||
}
|
|
||||||
return (a as Equals).equals(b as Equals);
|
|
||||||
}
|
|
||||||
|
|
||||||
export interface LockstepProcessor<Input, State> {
|
export interface LockstepProcessor<Input, State> {
|
||||||
compareInput(a: Input, b: Input): boolean;
|
compareInput(a: Input, b: Input): boolean;
|
||||||
cloneState(source: State): State;
|
cloneState(source: State): State;
|
||||||
|
|
Loading…
Reference in a new issue