Commit abad13c3 authored by chechunchi's avatar chechunchi

fix

parent ce2e85cf
Pipeline #19499 passed with stages
in 2 minutes and 49 seconds
...@@ -6,7 +6,6 @@ import { ygopro } from "../../../idl/ocgcore"; ...@@ -6,7 +6,6 @@ import { ygopro } from "../../../idl/ocgcore";
type Constructor<T = any> = new (...args: any[]) => T; type Constructor<T = any> = new (...args: any[]) => T;
const PenetrateConfig = _objToMap(PenetrateData);
const ReadFieldHandlerMap: Map<string, readFieldHandler> = new Map([ const ReadFieldHandlerMap: Map<string, readFieldHandler> = new Map([
["uint8", ((reader) => reader.readUint8()) as readFieldHandler], ["uint8", ((reader) => reader.readUint8()) as readFieldHandler],
["uint16", (reader) => reader.readUint16()], ["uint16", (reader) => reader.readUint16()],
...@@ -86,4 +85,5 @@ function _objToMap(obj: any): Map<string, penetrateType> { ...@@ -86,4 +85,5 @@ function _objToMap(obj: any): Map<string, penetrateType> {
return map; return map;
} }
export default new PenetrateManager(PenetrateConfig); const PENETRATE = new PenetrateManager(PenetrateData);
export default PENETRATE;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment