Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
godot
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
community
godot
Commits
f4fb19d1
Commit
f4fb19d1
authored
Mar 05, 2017
by
Rémi Verschelde
Committed by
GitHub
Mar 05, 2017
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #7958 from karroffel/powerstate-ptrcall-fix
Added PowerState casting operator to Variant
parents
e1c1d7d1
15838f37
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
7 additions
and
0 deletions
+7
-0
variant.cpp
core/variant.cpp
+5
-0
variant.h
core/variant.h
+2
-0
No files found.
core/variant.cpp
View file @
f4fb19d1
...
...
@@ -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
;
...
...
core/variant.h
View file @
f4fb19d1
...
...
@@ -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
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment