HPL3/Amnesia: Rebirth/Scripting/cEventDatabase

From Frictional Wiki
Jump to navigation Jump to search

Have some helpful descriptions to add to this class? Edit this page and add your insight to the Wiki!

Fields

cEventDatabase has no public fields.

Functions

Return Type Function And Description
cEvent AddEvent(const tString &in asName, const tString &in asOwner, const tString &in asTrigger, const tString &in asScene)
void Clear()
cFactStateContainer CreateFactStateContainer()
void DestroyFactStateContainer(cFactStateContainer@ apContainer)
cFactStateContainer GetDefaultMemory()
cEvent GetEvent(int alIdx)
int GetEventNum()
tString GetName()
cEventOwner GetOwner(const tString &in asName, bool abCreateIfNotExist)
cEventScene GetScene(const tString &in asName, bool abCreateIfNotExist)
cEventTrigger GetTrigger(const tString &in asName, bool abCreateIfNotExist)
void PerformEventActions(cEvent@ apEvent)
void QueryAddFactStates(cFactStateContainer@ apFactStates)
void QueryBegin(cFactStateContainer@ apCustomMemory)
cEvent QueryExecute(const tString &in asOwner, const tString &in asTrigger, const tString &in asScene, bool abPerformEventActions)
cEvent QueryExecuteMultiOwner(int alOwnerFlags, const tString &in asTrigger, const tString &in asScene, bool abPerformEventActions)
void SetupData()

Details

AddEvent

cEvent@ AddEvent(const tString &in asName,
                 const tString &in asOwner,
                 const tString &in asTrigger,
                 const tString &in asScene)


Parameters

Returns:

  • cEvent@

Clear

void Clear()

Returns:

  • void

CreateFactStateContainer

cFactStateContainer@ CreateFactStateContainer()

Returns:

  • cFactStateContainer@

DestroyFactStateContainer

void DestroyFactStateContainer(cFactStateContainer@ apContainer)


Parameters

Returns:

  • void

GetDefaultMemory

cFactStateContainer@ GetDefaultMemory()

Returns:

  • cFactStateContainer@

GetEvent

cEvent@ GetEvent(int alIdx)


Parameters

  • alIdx (int) —

Returns:

  • cEvent@

GetEventNum

int GetEventNum()

Returns:

  • int

GetName

const tString& GetName()

Returns:

  • const tString&

GetOwner

cEventOwner@ GetOwner(const tString &in asName,
                      bool abCreateIfNotExist)


Parameters

  • asName (tString) —
  • abCreateIfNotExist (bool) —

Returns:

  • cEventOwner@

GetScene

cEventScene@ GetScene(const tString &in asName,
                      bool abCreateIfNotExist)


Parameters

  • asName (tString) —
  • abCreateIfNotExist (bool) —

Returns:

  • cEventScene@

GetTrigger

cEventTrigger@ GetTrigger(const tString &in asName,
                          bool abCreateIfNotExist)


Parameters

  • asName (tString) —
  • abCreateIfNotExist (bool) —

Returns:

  • cEventTrigger@

PerformEventActions

void PerformEventActions(cEvent@ apEvent)


Parameters

Returns:

  • void

QueryAddFactStates

void QueryAddFactStates(cFactStateContainer@ apFactStates)


Parameters

Returns:

  • void

QueryBegin

void QueryBegin(cFactStateContainer@ apCustomMemory)


Parameters

Returns:

  • void

QueryExecute

cEvent@ QueryExecute(const tString &in asOwner,
                     const tString &in asTrigger,
                     const tString &in asScene,
                     bool abPerformEventActions)


Parameters

Returns:

  • cEvent@

QueryExecuteMultiOwner

cEvent@ QueryExecuteMultiOwner(int alOwnerFlags,
                               const tString &in asTrigger,
                               const tString &in asScene,
                               bool abPerformEventActions)


Parameters

  • alOwnerFlags (int) —
  • asTrigger (tString) —
  • asScene (tString) —
  • abPerformEventActions (bool) —

Returns:

  • cEvent@

SetupData

void SetupData()

Returns:

  • void

References

See all references...