OpenEnroth 73e68f7
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | Static Public Attributes | List of all members
NPCStats Struct Reference

#include <NPCTable.h>

Public Member Functions

 NPCStats ()
 
void Initialize (GameResourceManager *resourceManager)
 
void InitializeNPCNames (const Blob &npcNames)
 
void InitializeNPCProfs (const Blob &npcProfs)
 
void InitializeNPCText (const Blob &npcText)
 
void InitializeNPCTopics (const Blob &npcTopics)
 
void InitializeNPCDist (const Blob &npcDist)
 
void InitializeNPCData (const Blob &npcData)
 
void InitializeNPCGreets (const Blob &npcGreets)
 
void InitializeNPCGroups (const Blob &npcGroups)
 
void InitializeNPCNews (const Blob &npcNews)
 
void InitializeAdditionalNPCs (NPCData *pNPCDataBuff, MonsterId npc_uid, HouseId uLocation2D, MapId uMapId)
 
void setNPCNamesOnLoad ()
 
const std::string & sub_495366_MispronounceName (uint8_t firstLetter, CharacterSex genderId)
 

Public Attributes

std::array< NPCData, 501 > pOriginalNPCData
 
std::array< NPCData, 501 > pNPCData
 
std::array< IndexedArray< std::string, SEX_FIRST, SEX_LAST >, 540 > pNPCNames = {}
 
IndexedArray< NPCProfession, NPC_PROFESSION_FIRST, NPC_PROFESSION_LASTpProfessions = {}
 
std::array< NPCData, 100 > pAdditionalNPC = {{}}
 
std::array< std::string, 52 > pCatchPhrases {}
 
std::array< std::string, 500 > pNPCUnicNames {}
 
NPCProfessionChance pProfessionChance [77]
 
int field_17884 = 0
 
int field_17888 = 0
 
NPCGreeting pNPCGreetings [206]
 
std::array< uint16_t, 51 > pOriginalGroups = {{}}
 
std::array< uint16_t, 51 > pGroups = {{}}
 
unsigned int uNewlNPCBufPos {}
 
unsigned int uNumNewNPCs {}
 
int field_17FC8 = 0
 
unsigned int uNumNPCProfessions {}
 
IndexedArray< int, SEX_FIRST, SEX_LASTuNumNPCNames = {}
 

Static Public Attributes

static int dword_AE336C_LastMispronouncedNameFirstLetter = -1
 
static int dword_AE3370_LastMispronouncedNameResult = -1
 

Constructor & Destructor Documentation

◆ NPCStats()

NPCStats::NPCStats ( )
inline

Member Function Documentation

◆ Initialize()

void NPCStats::Initialize ( GameResourceManager resourceManager)

◆ InitializeAdditionalNPCs()

void NPCStats::InitializeAdditionalNPCs ( NPCData pNPCDataBuff,
MonsterId  npc_uid,
HouseId  uLocation2D,
MapId  uMapId 
)

◆ InitializeNPCData()

void NPCStats::InitializeNPCData ( const Blob npcData)

◆ InitializeNPCDist()

void NPCStats::InitializeNPCDist ( const Blob npcDist)

◆ InitializeNPCGreets()

void NPCStats::InitializeNPCGreets ( const Blob npcGreets)

◆ InitializeNPCGroups()

void NPCStats::InitializeNPCGroups ( const Blob npcGroups)

◆ InitializeNPCNames()

void NPCStats::InitializeNPCNames ( const Blob npcNames)

◆ InitializeNPCNews()

void NPCStats::InitializeNPCNews ( const Blob npcNews)

◆ InitializeNPCProfs()

void NPCStats::InitializeNPCProfs ( const Blob npcProfs)

◆ InitializeNPCText()

void NPCStats::InitializeNPCText ( const Blob npcText)

◆ InitializeNPCTopics()

void NPCStats::InitializeNPCTopics ( const Blob npcTopics)

◆ setNPCNamesOnLoad()

void NPCStats::setNPCNamesOnLoad ( )
Original binary offset:
0x476C60

◆ sub_495366_MispronounceName()

const std::string & NPCStats::sub_495366_MispronounceName ( uint8_t  firstLetter,
CharacterSex  genderId 
)

Member Data Documentation

◆ dword_AE336C_LastMispronouncedNameFirstLetter

int NPCStats::dword_AE336C_LastMispronouncedNameFirstLetter = -1
static

◆ dword_AE3370_LastMispronouncedNameResult

int NPCStats::dword_AE3370_LastMispronouncedNameResult = -1
static

◆ field_17884

int NPCStats::field_17884 = 0

◆ field_17888

int NPCStats::field_17888 = 0

◆ field_17FC8

int NPCStats::field_17FC8 = 0

◆ pAdditionalNPC

std::array<NPCData, 100> NPCStats::pAdditionalNPC = {{}}

◆ pCatchPhrases

std::array<std::string, 52> NPCStats::pCatchPhrases {}

◆ pGroups

std::array<uint16_t, 51> NPCStats::pGroups = {{}}

◆ pNPCData

std::array<NPCData, 501> NPCStats::pNPCData

◆ pNPCGreetings

NPCGreeting NPCStats::pNPCGreetings[206]

◆ pNPCNames

std::array<IndexedArray<std::string, SEX_FIRST, SEX_LAST>, 540> NPCStats::pNPCNames = {}

◆ pNPCUnicNames

std::array<std::string, 500> NPCStats::pNPCUnicNames {}

◆ pOriginalGroups

std::array<uint16_t, 51> NPCStats::pOriginalGroups = {{}}

◆ pOriginalNPCData

std::array<NPCData, 501> NPCStats::pOriginalNPCData

◆ pProfessionChance

NPCProfessionChance NPCStats::pProfessionChance[77]

◆ pProfessions

◆ uNewlNPCBufPos

unsigned int NPCStats::uNewlNPCBufPos {}

◆ uNumNewNPCs

unsigned int NPCStats::uNumNewNPCs {}

◆ uNumNPCNames

IndexedArray<int, SEX_FIRST, SEX_LAST> NPCStats::uNumNPCNames = {}

◆ uNumNPCProfessions

unsigned int NPCStats::uNumNPCProfessions {}

The documentation for this struct was generated from the following files: