TrinityCore
PersistentInstanceScriptValueBase Class Reference

#include <InstanceScript.h>

+ Inheritance diagram for PersistentInstanceScriptValueBase:

Public Member Functions

virtual ~PersistentInstanceScriptValueBase ()
 
char const * GetName () const
 
UpdateAdditionalSaveDataEvent CreateEvent () const
 
void LoadValue (int64 value)
 
void LoadValue (double value)
 

Protected Member Functions

 PersistentInstanceScriptValueBase (InstanceScript &instance, char const *name, std::variant< int64, double > value)
 
void NotifyValueChanged ()
 

Protected Attributes

InstanceScript_instance
 
char const * _name
 
std::variant< int64, double > _value
 

Detailed Description

Definition at line 387 of file InstanceScript.h.

Constructor & Destructor Documentation

◆ PersistentInstanceScriptValueBase()

PersistentInstanceScriptValueBase::PersistentInstanceScriptValueBase ( InstanceScript instance,
char const *  name,
std::variant< int64, double >  value 
)
protected

Definition at line 993 of file InstanceScript.cpp.

+ Here is the call graph for this function:

◆ ~PersistentInstanceScriptValueBase()

PersistentInstanceScriptValueBase::~PersistentInstanceScriptValueBase ( )
virtualdefault

Member Function Documentation

◆ CreateEvent()

UpdateAdditionalSaveDataEvent PersistentInstanceScriptValueBase::CreateEvent ( ) const
inline

Definition at line 397 of file InstanceScript.h.

+ Here is the caller graph for this function:

◆ GetName()

char const * PersistentInstanceScriptValueBase::GetName ( ) const
inline

Definition at line 395 of file InstanceScript.h.

◆ LoadValue() [1/2]

void PersistentInstanceScriptValueBase::LoadValue ( double  value)
inline

Definition at line 407 of file InstanceScript.h.

◆ LoadValue() [2/2]

void PersistentInstanceScriptValueBase::LoadValue ( int64  value)
inline

Definition at line 402 of file InstanceScript.h.

◆ NotifyValueChanged()

void PersistentInstanceScriptValueBase::NotifyValueChanged ( )
protected

Definition at line 1001 of file InstanceScript.cpp.

+ Here is the call graph for this function:
+ Here is the caller graph for this function:

Member Data Documentation

◆ _instance

InstanceScript& PersistentInstanceScriptValueBase::_instance
protected

Definition at line 415 of file InstanceScript.h.

◆ _name

char const* PersistentInstanceScriptValueBase::_name
protected

Definition at line 416 of file InstanceScript.h.

◆ _value

std::variant<int64, double> PersistentInstanceScriptValueBase::_value
protected

Definition at line 417 of file InstanceScript.h.


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