|
Open Game Engine 2D API
|
Functions | |
| int | OGE_OpenCustomConfig (string sConfigFile) |
| Open custom configuration file (ini file) | |
| int | OGE_CloseCustomConfig (int iConfigId) |
| Close the custom config file. | |
| int | OGE_GetDefaultConfig () |
| Get the default config. | |
| int | OGE_GetAppConfig () |
| Get the application config. | |
| string | OGE_ReadConfigStr (int iConfigId, string sSectionName, string sFieldName, string sDefault) |
| Read a string from the config. | |
| int | OGE_ReadConfigInt (int iConfigId, string sSectionName, string sFieldName, int iDefault) |
| Read an integer from the config. | |
| double | OGE_ReadConfigFloat (int iConfigId, string sSectionName, string sFieldName, double fDefault) |
| Read a floating-point value from the config. | |
| bool | OGE_WriteConfigStr (int iConfigId, string sSectionName, string sFieldName, string sValue) |
| Write a string into the config. | |
| bool | OGE_WriteConfigInt (int iConfigId, string sSectionName, string sFieldName, int iValue) |
| Write an integer value into the config. | |
| bool | OGE_WriteConfigFloat (int iConfigId, string sSectionName, string sFieldName, double fValue) |
| Write a floating-point value into the config. | |
| bool | OGE_SaveConfig (int iConfigId) |
| Save the config. | |
| int | OGE_SaveDataToConfig (int iDataId, int iConfigId) |
| Save the data into the config. | |
| int | OGE_LoadDataFromConfig (int iDataId, int iConfigId) |
| Load the data from the config. | |
| int OGE_CloseCustomConfig | ( | int | iConfigId | ) |
Close the custom config file.
| [in] | iConfigId | The ID of the config |
| int OGE_GetAppConfig | ( | ) |
Get the application config.
| int OGE_GetDefaultConfig | ( | ) |
Get the default config.
| int OGE_LoadDataFromConfig | ( | int | iDataId, |
| int | iConfigId | ||
| ) |
Load the data from the config.
| [in] | iDataId | The ID of the data |
| [in] | iConfigId | The ID of the config |
| int OGE_OpenCustomConfig | ( | string | sConfigFile | ) |
Open custom configuration file (ini file)
| [in] | sConfigFile | The path of the config file |
| double OGE_ReadConfigFloat | ( | int | iConfigId, |
| string | sSectionName, | ||
| string | sFieldName, | ||
| double | fDefault | ||
| ) |
Read a floating-point value from the config.
| [in] | iConfigId | The ID of the config |
| [in] | sSectionName | The section name |
| [in] | sFieldName | The field name |
| [in] | fDefault | The default value |
| int OGE_ReadConfigInt | ( | int | iConfigId, |
| string | sSectionName, | ||
| string | sFieldName, | ||
| int | iDefault | ||
| ) |
Read an integer from the config.
| [in] | iConfigId | The ID of the config |
| [in] | sSectionName | The section name |
| [in] | sFieldName | The field name |
| [in] | iDefault | The default value |
| string OGE_ReadConfigStr | ( | int | iConfigId, |
| string | sSectionName, | ||
| string | sFieldName, | ||
| string | sDefault | ||
| ) |
Read a string from the config.
| [in] | iConfigId | The ID of the config |
| [in] | sSectionName | The section name |
| [in] | sFieldName | The field name |
| [in] | sDefault | The default value |
| bool OGE_SaveConfig | ( | int | iConfigId | ) |
Save the config.
| [in] | iConfigId | The ID of the config |
| int OGE_SaveDataToConfig | ( | int | iDataId, |
| int | iConfigId | ||
| ) |
Save the data into the config.
| [in] | iDataId | The ID of the data |
| [in] | iConfigId | The ID of the config |
| bool OGE_WriteConfigFloat | ( | int | iConfigId, |
| string | sSectionName, | ||
| string | sFieldName, | ||
| double | fValue | ||
| ) |
Write a floating-point value into the config.
| [in] | iConfigId | The ID of the config |
| [in] | sSectionName | The section name |
| [in] | sFieldName | The field name |
| [in] | fValue | The floating-point value |
| bool OGE_WriteConfigInt | ( | int | iConfigId, |
| string | sSectionName, | ||
| string | sFieldName, | ||
| int | iValue | ||
| ) |
Write an integer value into the config.
| [in] | iConfigId | The ID of the config |
| [in] | sSectionName | The section name |
| [in] | sFieldName | The field name |
| [in] | iValue | The integer value |
| bool OGE_WriteConfigStr | ( | int | iConfigId, |
| string | sSectionName, | ||
| string | sFieldName, | ||
| string | sValue | ||
| ) |
Write a string into the config.
| [in] | iConfigId | The ID of the config |
| [in] | sSectionName | The section name |
| [in] | sFieldName | The field name |
| [in] | sValue | The string |
1.8.0