diff --git a/src/Ecs/Lockstep.ts b/src/Ecs/Lockstep.ts index f19d34a..cb959d6 100644 --- a/src/Ecs/Lockstep.ts +++ b/src/Ecs/Lockstep.ts @@ -1,24 +1,6 @@ export const INPUT_FREQUENCY = 33; // roughly 30fps -export interface DeepCopy { - deepCopy(patch: Partial): T; -} - -export interface Equals { - equals(other: this): boolean; -} - -function equals(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 { compareInput(a: Input, b: Input): boolean; cloneState(source: State): State;