#include "object/C4ObjectPtr.h"
#include "script/C4StringTable.h"
#include "script/C4ValueArray.h"
#include "script/C4PropList.h"
#include "script/C4AulFunc.h"
Go to the source code of this file.
Classes | |
union | C4V_Data |
class | C4JSONSerializationError |
class | C4Value |
class | C4ValueNumbers |
Macros | |
#define | C4V_Last ((int) C4V_Array) |
#define | C4V_FirstPointer C4V_PropList |
Enumerations | |
enum | C4V_Type { C4V_Nil =0 , C4V_Int =1 , C4V_Bool =2 , C4V_PropList =3 , C4V_String =4 , C4V_Array =5 , C4V_Function =6 , C4V_Enum =8 , C4V_C4ObjectEnum =9 , C4V_Any , C4V_Object , C4V_Def , C4V_Effect } |
Functions | |
const char * | GetC4VName (const C4V_Type Type) |
C4Value | C4VInt (int32_t i) |
C4Value | C4VBool (bool b) |
C4Value | C4VObj (C4Object *pObj) |
C4Value | C4VPropList (C4PropList *p) |
C4Value | C4VString (C4String *pStr) |
C4Value | C4VString (StdStrBuf strString) |
C4Value | C4VString (const char *strString) |
C4Value | C4VArray (C4ValueArray *pArray) |
C4Value | C4VFunction (C4AulFunc *pFn) |
Variables | |
const C4Value | C4VNull |
#define C4V_FirstPointer C4V_PropList |
enum C4V_Type |
|
inline |
Definition at line 246 of file C4Value.h.
References C4PropList::C4Value.
Referenced by C4EditCursor::PerformDuplication(), and C4AulCompiler::ConstexprEvaluator::visit().
|
inline |
Definition at line 240 of file C4Value.h.
References b, and C4PropList::C4Value.
Referenced by C4ValueGetCompiler::ProcessBool(), and C4AulCompiler::ConstexprEvaluator::visit().
Definition at line 247 of file C4Value.h.
References C4PropList::C4Value.
Referenced by C4AulDefFunc::C4AulDefFunc(), C4AulEngineFunc< RType, ThisType, ParTypes >::C4AulEngineFunc(), C4ScriptHost::CopyPropList(), C4ScriptHost::UnlinkOwnedFunctions(), and C4AulCompiler::PreparseAstVisitor::visit().
|
inline |
Definition at line 239 of file C4Value.h.
References C4PropList::C4Value.
Referenced by C4Object::AddCommand(), C4Effect::Check(), C4Command::Enter(), C4MCCallbackArray::Execute(), C4ScriptGuiWindowAction::ExecuteCommand(), C4Command::Fail(), C4PlayerControlDefs::FinalInit(), C4Object::GetPropertyByS(), C4Effect::GetPropertyByS(), C4Landscape::Incinerate(), InitCoreFunctionMap(), C4MapScriptHost::InitFunctionMap(), InitGameFunctionMap(), InitObjectFunctionMap(), C4DefScriptHost::Parse(), C4EditCursor::PerformDuplication(), C4ValueGetCompiler::ProcessInt(), C4ScenarioParameterDefs::RegisterScriptConstants(), C4Object::SetCommand(), C4MapScriptLayer::UpdateSurfaceSize(), and C4AulCompiler::ConstexprEvaluator::visit().
Definition at line 88 of file C4Value.cpp.
Referenced by C4Object::AddObjectAndContentsToArray(), C4Game::CastObjects(), C4Landscape::P::DigMaterial2Objects(), C4ScriptGuiWindowAction::ExecuteCommand(), C4Command::Fail(), C4FindObject::FindMany(), C4EditCursor::PerformDuplication(), C4EditCursor::PerformDuplicationLegacy(), and C4EditCursor::SetHighlightedObject().
|
inline |
Definition at line 242 of file C4Value.h.
References C4PropList::C4Value.
Referenced by C4EditCursor::AddToSelection(), C4PropListScen::C4PropListScen(), C4Object::ChangeDef(), C4AulScriptEngine::Clear(), C4Set< C4PropListScript * >::CompileFunc(), C4ScriptHost::CopyPropList(), FnPlaceVegetation(), C4PropList::FreezeAndMakeStaticRecursively(), C4Object::Init(), C4MapScriptHost::InitFunctionMap(), C4MapScriptHost::InitializeMap(), C4Def::Load(), C4ScriptHost::Preparse(), C4ValueGetCompiler::ProcessString(), C4EditCursor::RemoveFromSelection(), C4Object::SetAction(), C4ScriptHost::UnLink(), and C4AulCompiler::ConstexprEvaluator::visit().
Definition at line 243 of file C4Value.h.
References C4PropList::C4Value.
Referenced by C4Game::AllocateTranslatedString(), C4Effect::C4Effect(), C4Effect::Check(), C4Command::Fail(), C4PropList::GetProperties(), C4Object::GetProperties(), C4Effect::GetProperties(), C4ValueGetCompiler::ProcessChar(), C4ValueGetCompiler::ProcessString(), C4PropList::SetName(), and C4AulCompiler::ConstexprEvaluator::visit().
|
inline |
const char* GetC4VName | ( | const C4V_Type | Type | ) |
Definition at line 32 of file C4Value.cpp.
References C4V_Any, C4V_Array, C4V_Bool, C4V_Def, C4V_Effect, C4V_Function, C4V_Int, C4V_Nil, C4V_Object, C4V_PropList, and C4V_String.
Referenced by C4AulFunc::CheckParTypes(), and C4Value::GetTypeName().
|
extern |
Definition at line 30 of file C4Value.cpp.
Referenced by C4FindObjectProcedure::Check(), C4Command::Clear(), C4Game::CompileFunc(), C4EditCursorSelection::ConsolidateEmpty(), CreateValueProviderFromArray(), C4Command::Default(), C4AulExec::DirectExec(), C4AulCompiler::ConstexprEvaluator::eval(), C4AulCompiler::ConstexprEvaluator::eval_static(), C4RoundResults::EvaluateGame(), C4ScriptGuiWindowAction::ExecuteCommand(), C4ValueArray::GetItem(), GetValByStdCompiler(), C4Def::GetValue(), C4Object::GetValue(), C4ValueNumbers::GetValue(), C4PropertyPath::ResolveRoot(), C4PropertyPath::ResolveValue(), C4ScriptGuiWindowProperty::Set(), C4AulCompiler::ConstexprEvaluator::visit(), and C4AulCompiler::ConstantResolver::visit().