Begin refactor.
This commit is contained in:
@ -11,6 +11,29 @@
|
||||
#include "../file/asset.h"
|
||||
#include "../file/csv.h"
|
||||
|
||||
/** Column name for the KEY within the CSV */
|
||||
#define LANGUAGE_HEADER_KEY "Key"
|
||||
/** Column name for the VALUE within the CSV */
|
||||
#define LANGUAGE_HEADER_VALUE "Value"
|
||||
|
||||
/** Definition for a Language */
|
||||
typedef struct {
|
||||
/** The buffer to read the asset from. */
|
||||
assetbuffer_t *asset;
|
||||
/** CSV Row for the header */
|
||||
csvrow_t header;
|
||||
/** The index in the header row that the key column is in. */
|
||||
int32_t headerIndexKey;
|
||||
/** The index in the header row that the value column is in. */
|
||||
int32_t headerIndexValue;
|
||||
} language_t;
|
||||
|
||||
typedef struct {
|
||||
language_t *language;
|
||||
csvrow_t *row;
|
||||
char *key;
|
||||
} languagecsvget_t;
|
||||
|
||||
/**
|
||||
* Initializes a language.
|
||||
* @param language Language to initialize.
|
||||
|
Reference in New Issue
Block a user