UNPKG

@ginstone/nga-api

Version:

22 lines (21 loc) 620 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.TopicMiscVar = void 0; const ForumType_1 = require("../../enums/ForumType"); class TopicMiscVar { constructor(raw) { const entrance = raw[1]; switch (entrance) { case 32: this.entrance = ForumType_1.ForumType.FORUM; this.forumId = raw[3]; break; case 33: this.entrance = ForumType_1.ForumType.COLLECTION; break; default: break; } } } exports.TopicMiscVar = TopicMiscVar;