File processing and serialization functions. File I/O functions simplify the saving and loading of data.
More...
File processing and serialization functions. File I/O functions simplify the saving and loading of data.
object [] VSLib.FileIO.LoadTable |
( |
string |
fileName | ) |
|
|
private |
This function will deserialize and return the compiled table. If the table does not exist, null is returned.
object [] VSLib.FileIO.LoadTableFileName |
( |
string |
mapname, |
|
|
string |
modename |
|
) |
| |
|
private |
This function will deserialize and return the compiled table from the current mapname. If the table does not exist, null is returned.
string VSLib.FileIO.MakeFileName |
( |
string |
mapname, |
|
|
string |
modename |
|
) |
| |
|
private |
This function will make the filename unique for each mapname.
void VSLib.FileIO.SaveTable |
( |
string |
fileName, |
|
|
object[] |
table |
|
) |
| |
|
private |
This function will serialize and save a table to the hard disk; useful for storing stats, round times, and other important information.
void VSLib.FileIO.SaveTableFileName |
( |
string |
mapname, |
|
|
string |
modename, |
|
|
object[] |
table |
|
) |
| |
|
private |
This function will serialize and save a table to the hard disk from the current mapname; useful for storing stats, round times, and other important information individually for every mapname.
string VSLib.FileIO.SerializeTable |
( |
object[] |
tbl, |
|
|
string |
predicateStart = "{\n" , |
|
|
string |
predicateEnd = "}\n" , |
|
|
bool |
indice = true |
|
) |
| |
|
private |
Recursively serializes a table and returns the string. This command ignores all functions within the table, saving only the primitive types (i.e. integers, floats, strings, etc with definite values). The indexes that you use for your table need to be programmatically "clean," meaning that the index cannot contain invalid characters like +-=!#$%^&*() etc. Indexes that contain any kind of invalid character is completely ignored. If you are trying to store player information, use Player::GetUniqueID() instead of Player::GetSteamID() for the index ID.
You probably won't need to use this function by itself.
- See also
- SaveTable()
The documentation for this class was generated from the following file: