OpenKO Database Model
Table- and column-level documentation generated from the jsonSchema
Loading...
Searching...
No Matches
full_model::NpcItem Class Referenceexport
module FullModel

[K_NPC_ITEM] NPC loot table More...

Public Types

using BinderType = full_binder::NpcItem
 

Public Member Functions

const int16_t & MapKey () const
 Returns a value for use in map keys based on the table's primary key.
 

Static Public Member Functions

static const std::string & TableName ()
 Returns the table name.
 
static const std::unordered_set< std::string > & ColumnNames ()
 Returns a set of column names for the table.
 
static const std::vector< std::string > & OrderedColumnNames ()
 Returns an ordered vector of column names for the table.
 
static const std::unordered_set< std::string > & BlobColumns ()
 Returns a set of blob column names for the table.
 
static const modelUtil::DbType DbType ()
 Returns the associated database type for the table.
 
static const std::vector< std::string > & PrimaryKey ()
 Returns the columns associated with the table's Primary Key.
 

Public Attributes

int16_t NpcId = {}
 Column [sIndex]: NPC identifier (K_NPC.sSid)
 
int32_t ItemId1 = {}
 Column [iItem01]: Item identifier 1.
 
union { 
 
   std::optional< int16_t >   DropChance [5] 
 
   struct { 
 
      std::optional< int16_t >   DropChance1 
 
      std::optional< int16_t >   DropChance2 
 
      std::optional< int16_t >   DropChance3 
 
      std::optional< int16_t >   DropChance4 
 
      std::optional< int16_t >   DropChance5 
 
   }  
 
};  
 
std::optional< int32_t > ItemId2
 Column [iItem02]: Item identifier 2.
 
std::optional< int32_t > ItemId3
 Column [iItem03]: Item identifier 3.
 
std::optional< int32_t > ItemId4
 Column [iItem04]: Item identifier 4.
 
std::optional< int32_t > ItemId5
 Column [iItem05]: Item identifier 5.
 

Detailed Description

[K_NPC_ITEM] NPC loot table

GAME Database - Full Library
K_NPC_ITEM NPC loot table

The documentation for this class was generated from the following file: