diff options
| author | Karroffel | 2017-03-05 15:32:16 +0100 |
|---|---|---|
| committer | Karroffel | 2017-03-05 15:32:16 +0100 |
| commit | 15838f37028a19e7b78f2125d93051acbea13621 (patch) | |
| tree | 0cca72312bc50ddbb5634431c5e1393f4e6ac420 /core/variant.cpp | |
| parent | 481e511082fbe746a9436d2a79d42c62ba2b039a (diff) | |
| download | godot-15838f37028a19e7b78f2125d93051acbea13621.tar.gz godot-15838f37028a19e7b78f2125d93051acbea13621.tar.zst godot-15838f37028a19e7b78f2125d93051acbea13621.zip | |
Diffstat (limited to 'core/variant.cpp')
| -rw-r--r-- | core/variant.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/core/variant.cpp b/core/variant.cpp index f45c3fd55..f19dacf26 100644 --- a/core/variant.cpp +++ b/core/variant.cpp @@ -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; |
