Commit 160c8f96 authored by nanahira's avatar nanahira

fix lib

parent 9f3043ff
...@@ -27,6 +27,20 @@ class Handler { ...@@ -27,6 +27,20 @@ class Handler {
class YGOProMessagesHelper { class YGOProMessagesHelper {
constructor() { constructor() {
this.handlers = {
STOC: [{},
{},
{},
{},
{},
],
CTOS: [{},
{},
{},
{},
{},
]
}
this.initDatas(); this.initDatas();
this.initStructs(); this.initStructs();
} }
...@@ -39,6 +53,7 @@ class YGOProMessagesHelper { ...@@ -39,6 +53,7 @@ class YGOProMessagesHelper {
} }
initStructs() { initStructs() {
this.structs = {};
for (let name in this.structs_declaration ) { for (let name in this.structs_declaration ) {
const declaration = this.structs_declaration [name]; const declaration = this.structs_declaration [name];
let result = Struct(); let result = Struct();
...@@ -232,20 +247,4 @@ class YGOProMessagesHelper { ...@@ -232,20 +247,4 @@ class YGOProMessagesHelper {
} }
YGOProMessagesHelper.prototype.structs = {}
YGOProMessagesHelper.prototype.handlers = {
STOC: [{},
{},
{},
{},
{},
],
CTOS: [{},
{},
{},
{},
{},
]
}
module.exports = YGOProMessagesHelper; module.exports = YGOProMessagesHelper;
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