mirror of
https://github.com/godotengine/godot.git
synced 2024-11-15 00:23:27 +00:00
Merge pull request #7958 from karroffel/powerstate-ptrcall-fix
Added PowerState casting operator to Variant
This commit is contained in:
commit
f4fb19d11a
@ -2178,6 +2178,11 @@ Variant::operator IP_Address() const {
|
||||
return IP_Address( operator String() );
|
||||
}
|
||||
|
||||
Variant::operator PowerState() const
|
||||
{
|
||||
return (PowerState) operator int();
|
||||
}
|
||||
|
||||
Variant::Variant(bool p_bool) {
|
||||
|
||||
type=BOOL;
|
||||
|
@ -45,6 +45,7 @@
|
||||
#include "path_db.h"
|
||||
#include "simple_type.h"
|
||||
#include "os/input_event.h"
|
||||
#include "os/power.h"
|
||||
#include "color.h"
|
||||
#include "face3.h"
|
||||
#include "ref_ptr.h"
|
||||
@ -254,6 +255,7 @@ public:
|
||||
operator Orientation() const;
|
||||
|
||||
operator IP_Address() const;
|
||||
operator PowerState() const;
|
||||
|
||||
|
||||
Variant(bool p_bool);
|
||||
|
Loading…
Reference in New Issue
Block a user