C/C++ code equivalent:
Code: Select all
const char * table1[][5] = {
{"asdf", "asdf", "asdf", "asdf", "asdf"},
{"asdf", "asdf", "asdf", "asdf", "asdf"},
....
};
//or
std::string table2[][5] = {
{"asdf", "asdf", "asdf", "asdf", "asdf"},
{"asdf", "asdf", "asdf", "asdf", "asdf"},
....
};
How do I do that?
I could, of course, jam all data into one long string and use string manipulation routines, but it is probably going to be fairly slow (linear search to access element).
The game use 2da files... can I make my own 2da, load it and access its contents? Or do I have to use Get/Set LocalArray String/Int functions?