REO-EE/_module/nss/nwnx_areas.nss
Jaysyn904 f82740bbbd Initial commit
Initial commit
2024-02-22 13:22:03 -05:00

38 lines
813 B
Plaintext

// Linux version
// NWNX Areas
// Area instancing plugin
// (c) by virusman, 2006-2010
// Create new area from ResRef
object LoadArea(string sResRef);
// Create new area from ResRef
object CreateArea(string sResRef);
// Destroy area
void DestroyArea(object oArea);
// Set name for oArea
void SetAreaName(object oArea, string sName);
object LoadArea(string sResRef)
{
SetLocalString(GetModule(), "NWNX!AREAS!CREATE_AREA", sResRef);
return GetLocalObject(GetModule(), "NWNX!AREAS!GET_LAST_AREA_ID");
}
object CreateArea(string sResRef)
{
return LoadArea(sResRef);
}
void DestroyArea(object oArea)
{
SetLocalString(GetModule(), "NWNX!AREAS!DESTROY_AREA", ObjectToString(oArea));
}
void SetAreaName(object oArea, string sName)
{
SetLocalString(oArea, "NWNX!AREAS!SET_AREA_NAME", sName);
}