How to use the restructure.Boolean function in restructure

To help you get started, we’ve selected a few restructure examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github wowserhq / blizzardry / src / lib / dbc / entities / skill-line.js View on Github external
import r from 'restructure';

import Entity from '../entity';
import LocalizedStringRef from '../localized-string-ref';

export default Entity({
  id: r.uint32le,
  categoryID: r.uint32le,
  unknown: new r.Reserved(r.uint32le),
  name: LocalizedStringRef,
  description: LocalizedStringRef,
  spellIconID: r.uint32le,
  verb: LocalizedStringRef,
  canLink: new r.Boolean(r.uint32le),
});
github wowserhq / blizzardry / src / lib / dbc / entities / spell-dispel-type.js View on Github external
import r from 'restructure';

import Entity from '../entity';
import LocalizedStringRef from '../localized-string-ref';
import StringRef from '../string-ref';

export default Entity({
  id: r.uint32le,
  name: LocalizedStringRef,
  mask: r.uint32le,
  immunityPossible: new r.Boolean(r.uint32le),
  internalName: StringRef,
});
github wowserhq / blizzardry / src / lib / dbc / entities / creature-type.js View on Github external
import r from 'restructure';

import Entity from '../entity';
import LocalizedStringRef from '../localized-string-ref';

export default Entity({
  id: r.uint32le,
  name: LocalizedStringRef,
  noExperience: new r.Boolean(r.uint32le),
});
github wowserhq / blizzardry / lib / dbc / entities / creature-type.js View on Github external
'use strict';

var r = require('restructure');
var Entity = require('../entity');
var LocalizedStringRef = require('../localized-string-ref');

module.exports = Entity({
  id: r.uint32le,
  name: LocalizedStringRef,
  noExperience: new r.Boolean(r.uint32le)
});
github wowserhq / blizzardry / lib / dbc / entities / map.js View on Github external
'use strict';

var r = require('restructure');
var Entity = require('../entity');
var LocalizedStringRef = require('../localized-string-ref');
var StringRef = require('../string-ref');

module.exports = Entity({
  id: r.uint32le,
  internalName: StringRef,
  type: r.uint32le,
  pvp: new r.Boolean(r.uint32le),
  name: LocalizedStringRef,
  areaID: r.uint32le,

  hordeIntro: LocalizedStringRef,
  allianceIntro: LocalizedStringRef,

  loadingScreenID: r.uint32le,
  minimapIconScale: r.floatle,

  corpseMapID: r.int32le,
  corpseStartX: r.floatle,
  corpseStartY: r.floatle,

  timeOfDayOverride: r.int32le,
  expansionID: r.uint32le,
  maxPlayers: r.uint32le,
github wowserhq / blizzardry / lib / dbc / entities / spell-dispel-type.js View on Github external
'use strict';

var r = require('restructure');
var Entity = require('../entity');
var LocalizedStringRef = require('../localized-string-ref');
var StringRef = require('../string-ref');

module.exports = Entity({
  id: r.uint32le,
  name: LocalizedStringRef,
  mask: r.uint32le,
  immunityPossible: new r.Boolean(r.uint32le),
  internalName: StringRef
});
github wowserhq / blizzardry / lib / dbc / entities / attack-anim-kits.js View on Github external
'use strict';

var r = require('restructure');
var Entity = require('../entity');

module.exports = Entity({
  id: r.uint32le,
  animationID: r.uint32le,
  typeID: r.uint32le,
  flags: r.uint32le,
  unknown: new r.Reserved(new r.Boolean(r.uint32le))
});
github wowserhq / blizzardry / src / lib / dbc / entities / light-params.js View on Github external
import r from 'restructure';

import Entity from '../entity';

export default Entity({
  id: r.uint32le,
  highlightSky: new r.Boolean(r.uint32le),
  lightSkyboxID: r.uint32le,
  glow: r.floatle,
  waterShallowAlpha: r.floatle,
  waterDeepAlpha: r.floatle,
  oceanShallowAlpha: r.floatle,
  oceanDeepAlpha: r.floatle,
  flags: r.uint32le,
});
github wowserhq / blizzardry / lib / dbc / entities / creature-display-info-extra.js View on Github external
hairStyle: r.uint32le,
  beardStyle: r.uint32le,

  helmID: r.uint32le,
  shoulderID: r.uint32le,
  shirtID: r.uint32le,
  cuirassID: r.uint32le,
  beltID: r.uint32le,
  legsID: r.uint32le,
  bootsID: r.uint32le,
  wristID: r.uint32le,
  glovesID: r.uint32le,
  tabardID: r.uint32le,
  capeID: r.uint32le,

  canEquip: new r.Boolean(r.uint32le),
  texture: StringRef
});
github wowserhq / blizzardry / src / lib / dbc / entities / map.js View on Github external
import r from 'restructure';

import Entity from '../entity';
import LocalizedStringRef from '../localized-string-ref';
import StringRef from '../string-ref';

export default Entity({
  id: r.uint32le,
  internalName: StringRef,
  flags: r.uint32le,
  type: r.uint32le,
  pvp: new r.Boolean(r.uint32le),
  name: LocalizedStringRef,
  areaID: r.uint32le,

  hordeIntro: LocalizedStringRef,
  allianceIntro: LocalizedStringRef,

  loadingScreenID: r.uint32le,
  minimapIconScale: r.floatle,

  corpseMapID: r.int32le,
  corpseStartX: r.floatle,
  corpseStartY: r.floatle,

  timeOfDayOverride: r.int32le,
  expansionID: r.uint32le,
  maxPlayers: r.uint32le,