Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add CharHairTexture.dbc support #130

Draft
wants to merge 2 commits into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 11 additions & 0 deletions src/lib/dbc/entities/char-hair-texture.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import r from 'restructure';

import Entity from '../entity';

export default Entity({
id: r.int32le,
race: r.int32le,
gender: new r.Boolean(r.uint8), // here is the issue (?)
field03: new r.Boolean(r.uint8), // here is the issue (?)
field04: new r.Array(r.int32le, 4),
});
11 changes: 11 additions & 0 deletions src/lib/dbc/entities/death-thud-lookups.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import r from 'restructure';

import Entity from '../entity';

export default Entity({
id: r.int32le,
sizeClass: r.int32le,
terraintypeSoundId: r.int32le,
soundEntryId: r.int32le,
soundEntryIdWater: r.int32le,
});
2 changes: 2 additions & 0 deletions src/lib/dbc/entities/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ export Cfg_Categories from './cfg-categories';
export Cfg_Configs from './cfg-configs';
export CharBaseInfo from './char-base-info';
export CharHairGeosets from './char-hair-geosets';
export CharHairTexture from './char-hair-texture';
export CharSections from './char-sections';
export CharStartOutfit from './char-start-outfit';
export CharTitles from './char-titles';
Expand All @@ -40,6 +41,7 @@ export CreatureType from './creature-type';
export CurrencyCategory from './currency-category';
export CurrencyTypes from './currency-types';
export DanceMoves from './dance-moves';
export DeathThudLookups from './death-thud-lookups'
export DeclinedWord from './declined-word';
export DeclinedWordCases from './declined-word-cases';
export DungeonEncounter from './dungeon-encounter';
Expand Down