// v2.0.0 -
//::////////////////////////////////////////////////////////////////////////////
//:: FileName:  hark_i0_campaign
//::////////////////////////////////////////////////////////////////////////////
/*
   Include library for setting persistent variables using campaign functions.
*/
//::////////////////////////////////////////////////////////////////////////////


// * CONSTANTS


const string CAM_DB_NAME = "HS_CAMPAIGN_DB";


// * FUNCTION DEFINITIONS


//::////////////////////////////////////////////////////////////////////////////
void SetCampaignDBString(object oObject, string sVarName, string sValue)
{
  SetCampaignString(CAM_DB_NAME, sVarName, sValue, oObject);
}
//::////////////////////////////////////////////////////////////////////////////
string GetCampaignDBString(object oObject, string sVarName)
{
  return GetCampaignString(CAM_DB_NAME, sVarName, oObject);
}
//::////////////////////////////////////////////////////////////////////////////
void SetCampaignDBInt(object oObject, string sVarName, int nValue)
{
  SetCampaignInt(CAM_DB_NAME, sVarName, nValue, oObject);
}
//::////////////////////////////////////////////////////////////////////////////
int GetCampaignDBInt(object oObject, string sVarName)
{
  return GetCampaignInt(CAM_DB_NAME, sVarName, oObject);
}
//::////////////////////////////////////////////////////////////////////////////
void SetCampaignDBFloat(object oObject, string sVarName, float fValue)
{
  SetCampaignFloat(CAM_DB_NAME, sVarName, fValue, oObject);
}
//::////////////////////////////////////////////////////////////////////////////
float GetCampaignDBFloat(object oObject, string sVarName)
{
  return GetCampaignFloat(CAM_DB_NAME, sVarName, oObject);
}
//::////////////////////////////////////////////////////////////////////////////
void SetCampaignDBLocation(object oObject, string sVarName, location lValue)
{
  SetCampaignLocation(CAM_DB_NAME, sVarName, lValue, oObject);
}
//::////////////////////////////////////////////////////////////////////////////
location GetCampaignDBLocation(object oObject, string sVarName)
{
  return GetCampaignLocation(CAM_DB_NAME, sVarName, oObject);
}
//::////////////////////////////////////////////////////////////////////////////
int StoreCampaignDBObject(object oObject, string sVarName, object oValue)
{
  return StoreCampaignObject(CAM_DB_NAME, sVarName, oValue, oObject);
}
//::////////////////////////////////////////////////////////////////////////////
object RetrieveCampaignDBObject(object oObject, string sVarName, location lLocation, object oInventory = OBJECT_INVALID)
{
  object oOwner = oInventory;
  if (!GetIsObjectValid(oOwner)) { oOwner = oObject; }
  return RetrieveCampaignObject(CAM_DB_NAME, sVarName, lLocation, oOwner, oObject);
}
//::////////////////////////////////////////////////////////////////////////////
void DeleteCampaignDBVariable(object oObject, string sVarName, int nVarInt = 0, int nVarObj = 0, int nVarStr = 0)
{
  DeleteCampaignVariable(CAM_DB_NAME, sVarName, oObject);
}
//::////////////////////////////////////////////////////////////////////////////
//void main(){}
