Merge branch '4.14.2' into gz_merge
This commit is contained in:
commit
9aa44fa13b
83 changed files with 927 additions and 270 deletions
|
|
@ -594,6 +594,8 @@ class FBoolCVarRef
|
|||
{
|
||||
FBoolCVar* ref;
|
||||
public:
|
||||
int operator= (const FBoolCVarRef&) = delete;
|
||||
int operator= (FBoolCVarRef&&) = delete;
|
||||
|
||||
inline bool operator= (bool val) { *ref = val; return val; }
|
||||
inline operator bool () const { return **ref; }
|
||||
|
|
@ -607,7 +609,11 @@ class FIntCVarRef
|
|||
FIntCVar* ref;
|
||||
public:
|
||||
|
||||
int operator= (const FIntCVarRef&) = delete;
|
||||
int operator= (FIntCVarRef&&) = delete;
|
||||
|
||||
int operator= (int val) { *ref = val; return val; }
|
||||
|
||||
inline operator int () const { return **ref; }
|
||||
inline int operator *() const { return **ref; }
|
||||
inline FIntCVar* operator->() { return ref; }
|
||||
|
|
@ -618,6 +624,8 @@ class FFloatCVarRef
|
|||
{
|
||||
FFloatCVar* ref;
|
||||
public:
|
||||
int operator= (const FFloatCVarRef&) = delete;
|
||||
int operator= (FFloatCVarRef&&) = delete;
|
||||
|
||||
float operator= (float val) { *ref = val; return val; }
|
||||
inline operator float () const { return **ref; }
|
||||
|
|
@ -630,6 +638,8 @@ class FStringCVarRef
|
|||
{
|
||||
FStringCVar* ref;
|
||||
public:
|
||||
int operator= (const FStringCVarRef&) = delete;
|
||||
int operator= (FStringCVarRef&&) = delete;
|
||||
|
||||
const char* operator= (const char* val) { *ref = val; return val; }
|
||||
inline operator const char* () const { return **ref; }
|
||||
|
|
@ -642,6 +652,8 @@ class FColorCVarRef
|
|||
{
|
||||
FColorCVar* ref;
|
||||
public:
|
||||
int operator= (const FColorCVarRef&) = delete;
|
||||
int operator= (FColorCVarRef&&) = delete;
|
||||
|
||||
//uint32_t operator= (uint32_t val) { *ref = val; return val; }
|
||||
inline operator uint32_t () const { return **ref; }
|
||||
|
|
@ -654,6 +666,9 @@ class FFlagCVarRef
|
|||
{
|
||||
FFlagCVar* ref;
|
||||
public:
|
||||
int operator= (const FFlagCVarRef&) = delete;
|
||||
int operator= (FFlagCVarRef&&) = delete;
|
||||
|
||||
inline bool operator= (bool val) { *ref = val; return val; }
|
||||
inline bool operator= (const FFlagCVar& val) { *ref = val; return val; }
|
||||
inline operator int () const { return **ref; }
|
||||
|
|
@ -665,6 +680,9 @@ class FMaskCVarRef
|
|||
{
|
||||
FMaskCVar* ref;
|
||||
public:
|
||||
int operator= (const FMaskCVarRef&) = delete;
|
||||
int operator= (FMaskCVarRef&&) = delete;
|
||||
|
||||
//int operator= (int val) { *ref = val; return val; }
|
||||
inline operator int () const { return **ref; }
|
||||
inline int operator *() const { return **ref; }
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue