82 lines
2.6 KiB
Plaintext
82 lines
2.6 KiB
Plaintext
void SetLocalArrayString(object oidObject, string sVarName, int nVarNum, string nValue);
|
|
string GetLocalArrayString(object oidObject, string sVarName, int nVarNum);
|
|
void SetLocalArrayInt(object oidObject, string sVarName, int nVarNum, int nValue);
|
|
int GetLocalArrayInt(object oidObject, string sVarName, int nVarNum);
|
|
|
|
/*
|
|
Noel's Array stuff
|
|
*/
|
|
|
|
//::///////////////////////////////////////////////
|
|
//:: GetLocalArrayInt
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Returns an integer, from nVarNum in the array
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Noel
|
|
//:: Created On:
|
|
//:://////////////////////////////////////////////
|
|
|
|
string GetLocalArrayString(object oidObject, string sVarName, int nVarNum)
|
|
{
|
|
string sFullVarName = sVarName + IntToString(nVarNum) ;
|
|
return GetLocalString(oidObject, sFullVarName);
|
|
}
|
|
|
|
//::///////////////////////////////////////////////
|
|
//:: SetLocalArrayInt
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Sets the integer at nVarNum position
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Noel
|
|
//:: Created On:
|
|
//:://////////////////////////////////////////////
|
|
|
|
void SetLocalArrayString(object oidObject, string sVarName, int nVarNum, string nValue)
|
|
{
|
|
string sFullVarName = sVarName + IntToString(nVarNum) ;
|
|
SetLocalString(oidObject, sFullVarName, nValue);
|
|
}
|
|
|
|
|
|
//::///////////////////////////////////////////////
|
|
//:: GetLocalArrayInt
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Returns an integer, from nVarNum in the array
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Noel
|
|
//:: Created On:
|
|
//:://////////////////////////////////////////////
|
|
|
|
int GetLocalArrayInt(object oidObject, string sVarName, int nVarNum)
|
|
{
|
|
string sFullVarName = sVarName + IntToString(nVarNum) ;
|
|
return GetLocalInt(oidObject, sFullVarName);
|
|
}
|
|
|
|
//::///////////////////////////////////////////////
|
|
//:: SetLocalArrayInt
|
|
//:: Copyright (c) 2001 Bioware Corp.
|
|
//:://////////////////////////////////////////////
|
|
/*
|
|
Sets the integer at nVarNum position
|
|
*/
|
|
//:://////////////////////////////////////////////
|
|
//:: Created By: Noel
|
|
//:: Created On:
|
|
//:://////////////////////////////////////////////
|
|
|
|
void SetLocalArrayInt(object oidObject, string sVarName, int nVarNum, int nValue)
|
|
{
|
|
string sFullVarName = sVarName + IntToString(nVarNum) ;
|
|
SetLocalInt(oidObject, sFullVarName, nValue);
|
|
}
|