Leviathan  0.8.0.0
Leviathan game engine
Leviathan::ValidListenerData Struct Reference

some data that is stored when a listener is found More...

#include <ScriptModule.h>

Public Member Functions

 ValidListenerData (asIScriptFunction *funcptr, std::string *name, std::string *metadataend)
 
 ValidListenerData (asIScriptFunction *funcptr, std::string *name, std::string *metadataend, std::string *generictypename)
 
 ~ValidListenerData ()
 

Public Attributes

asIScriptFunction * FuncPtr
 
std::unique_ptr< std::string > ListenerName
 
std::unique_ptr< std::string > RestOfMeta
 
std::unique_ptr< std::string > GenericTypeName
 

Detailed Description

some data that is stored when a listener is found

Definition at line 58 of file ScriptModule.h.

Constructor & Destructor Documentation

◆ ValidListenerData() [1/2]

Leviathan::ValidListenerData::ValidListenerData ( asIScriptFunction *  funcptr,
std::string *  name,
std::string *  metadataend 
)

Definition at line 813 of file ScriptModule.cpp.

814  :
815  FuncPtr(funcptr),
816  ListenerName(name), RestOfMeta(metadataend)
817 {
818  // increase references //
819  FuncPtr->AddRef();
820 }
std::unique_ptr< std::string > RestOfMeta
Definition: ScriptModule.h:66
asIScriptFunction * FuncPtr
Definition: ScriptModule.h:64
std::unique_ptr< std::string > ListenerName
Definition: ScriptModule.h:65

◆ ValidListenerData() [2/2]

Leviathan::ValidListenerData::ValidListenerData ( asIScriptFunction *  funcptr,
std::string *  name,
std::string *  metadataend,
std::string *  generictypename 
)

Definition at line 822 of file ScriptModule.cpp.

823  :
824  FuncPtr(funcptr),
825  ListenerName(name), RestOfMeta(metadataend), GenericTypeName(generictypename)
826 {
827  // increase references //
828  FuncPtr->AddRef();
829 }
std::unique_ptr< std::string > RestOfMeta
Definition: ScriptModule.h:66
asIScriptFunction * FuncPtr
Definition: ScriptModule.h:64
std::unique_ptr< std::string > ListenerName
Definition: ScriptModule.h:65
std::unique_ptr< std::string > GenericTypeName
Definition: ScriptModule.h:67

◆ ~ValidListenerData()

Leviathan::ValidListenerData::~ValidListenerData ( )

Definition at line 831 of file ScriptModule.cpp.

832 {
833  // decrease reference //
834  FuncPtr->Release();
835 }
asIScriptFunction * FuncPtr
Definition: ScriptModule.h:64

Member Data Documentation

◆ FuncPtr

asIScriptFunction* Leviathan::ValidListenerData::FuncPtr

Definition at line 64 of file ScriptModule.h.

◆ GenericTypeName

std::unique_ptr<std::string> Leviathan::ValidListenerData::GenericTypeName

Definition at line 67 of file ScriptModule.h.

◆ ListenerName

std::unique_ptr<std::string> Leviathan::ValidListenerData::ListenerName

Definition at line 65 of file ScriptModule.h.

◆ RestOfMeta

std::unique_ptr<std::string> Leviathan::ValidListenerData::RestOfMeta

Definition at line 66 of file ScriptModule.h.


The documentation for this struct was generated from the following files: