#include <cScriptableInterface.h>
metadata to define a property or method of a cScriptableInterfaceDef. { key, type, offset, extra, flags, plevelwrite, plevelread, help, method, interface } StrT::k_LEN_MAX_KEY
◆ get_ElementType()
VARTYPE_TYPE GrayLib::cScriptableProp::get_ElementType |
( |
| ) |
const |
|
inline |
◆ get_HashCode()
ATOMCODE_t GrayLib::cScriptableProp::get_HashCode |
( |
| ) |
const |
|
inlinenoexcept |
If we want to sort by (or reference by) 32 bit hash code. (NOT Atom id?)
◆ get_InterfaceID()
id the interface this belongs to
◆ get_MethodIndex()
What Method inside my interface is this ?
◆ get_Name()
const ATOMCHAR_t* GrayLib::cScriptableProp::get_Name |
( |
| ) |
const |
|
inlinenoexcept |
◆ get_NamePropA()
cAtomRef GrayLib::cScriptableProp::get_NamePropA |
( |
| ) |
const |
◆ get_NamePropLen()
StrLen_t GrayLib::cScriptableProp::get_NamePropLen |
( |
| ) |
const |
◆ get_NumArgs()
int GrayLib::cScriptableProp::get_NumArgs |
( |
| ) |
const |
|
inlinenoexcept |
requires at least 1 arg for this Prop or method?
◆ get_PropIndex()
the index of the prop in the interface.
What Prop inside my interface is this ?
◆ GetARGS()
Qty of arguments expected. Was CSCRIPTPROP_ARGS()
◆ GetElementVal()
bool GrayLib::cScriptableProp::GetElementVal |
( |
const void * |
pBaseInst, |
|
|
OUT cVariant & |
vValRet |
|
) |
| const |
|
inline |
◆ HasKnownArgs()
bool GrayLib::cScriptableProp::HasKnownArgs |
( |
| ) |
const |
|
inlinenoexcept |
requires x args (may be 0)
◆ HasNoArgs()
bool GrayLib::cScriptableProp::HasNoArgs |
( |
| ) |
const |
|
inlinenoexcept |
◆ HasPrivLevelRead()
bool GrayLib::cScriptableProp::HasPrivLevelRead |
( |
PLEVEL_TYPE |
ePrivLevel | ) |
const |
|
inlinenoexcept |
◆ HasPrivLevelWrite()
bool GrayLib::cScriptableProp::HasPrivLevelWrite |
( |
PLEVEL_TYPE |
ePrivLevel | ) |
const |
|
inlinenoexcept |
◆ InitProp()
void GrayLib::cScriptableProp::InitProp |
( |
| ) |
|
Called when the interface is init
◆ isDeprecated()
bool GrayLib::cScriptableProp::isDeprecated |
( |
| ) |
const |
|
inlinenoexcept |
- Note
- These MUST be static. since Send_PropsI relies on client/server being in sync
◆ isFunction()
bool GrayLib::cScriptableProp::isFunction |
( |
| ) |
const |
|
inlinenoexcept |
global function = not a method.
◆ isMethod()
bool GrayLib::cScriptableProp::isMethod |
( |
| ) |
const |
|
inlinenoexcept |
◆ isNOARGS()
recommended number of args.
◆ isProp()
bool GrayLib::cScriptableProp::isProp |
( |
| ) |
const |
|
inlinenoexcept |
◆ IsPropFlags()
◆ isValidProp()
bool GrayLib::cScriptableProp::isValidProp |
( |
| ) |
const |
|
inlinenoexcept |
For ASSERT on construction.
◆ ScriptRead()
If read only don't read it !
◆ ScriptWrite()
If read only don't write it !
◆ SerializeOutput()
assume we don't have to write the interface id
◆ SetElementCheck()
HRESULT GrayLib::cScriptableProp::SetElementCheck |
( |
void * |
pBaseInst, |
|
|
const cVariant & |
vVal |
|
) |
| const |
|
inline |
Using cStructNamedElem and pBaseInst try to set the actual value of the prop. check for value not changing.
◆ SetElementVal()
bool GrayLib::cScriptableProp::SetElementVal |
( |
void * |
pBaseInst, |
|
|
const cVariant & |
vVal |
|
) |
| const |
|
inline |
◆ m_a
(key,type,offset,extra)
Prop/Method name. with linkage into class/struct. NOT always used.
◆ m_nHashCode
◆ m_nMethodStub
UINT_PTR GrayLib::cScriptableProp::m_nMethodStub |
just identifies it as a method or not. although m_PrivLevelRead==PLEVEL_QTY does as well.
◆ m_pInterfaceDef
point back to my root class. (not used for context functions)
◆ m_PrivLevelRead
BYTE GrayLib::cScriptableProp::m_PrivLevelRead |
What PLEVEL_TYPE required to read this prop. (does not apply to methods)
◆ m_PrivLevelWrite
BYTE GrayLib::cScriptableProp::m_PrivLevelWrite |
What PLEVEL_TYPE required to write this prop or exec/invoke this method.
◆ m_pszHelp
const ATOMCHAR_t* GrayLib::cScriptableProp::m_pszHelp |
short piece of help text on this prop/method. CSCRIPT_PROP_HELP
◆ m_wFlags
CSCRIPTPROP_RETNUL (apply slightly diff to cScriptableMethod, cScriptableMethod, cScriptableMethod.
m_wFlags describes the args etc. Type it is likely to return. Number of required args. Max Number of optional args.
The documentation for this class was generated from the following files: