mirror of
https://github.com/godotengine/godot.git
synced 2025-11-01 06:01:14 +00:00
Fix enums bindings
Add missed bindings for enums Move some enums to class to have correct output of api.json
This commit is contained in:
parent
69017974be
commit
0fffa45158
62 changed files with 412 additions and 210 deletions
|
|
@ -31,13 +31,13 @@
|
|||
#ifndef PLATFORM_JAVASCRIPT_POWER_JAVASCRIPT_H_
|
||||
#define PLATFORM_JAVASCRIPT_POWER_JAVASCRIPT_H_
|
||||
|
||||
#include "os/power.h"
|
||||
#include "os/os.h"
|
||||
|
||||
class PowerJavascript {
|
||||
private:
|
||||
int nsecs_left;
|
||||
int percent_left;
|
||||
PowerState power_state;
|
||||
OS::PowerState power_state;
|
||||
|
||||
bool UpdatePowerInfo();
|
||||
|
||||
|
|
@ -45,7 +45,7 @@ public:
|
|||
PowerJavascript();
|
||||
virtual ~PowerJavascript();
|
||||
|
||||
PowerState get_power_state();
|
||||
OS::PowerState get_power_state();
|
||||
int get_power_seconds_left();
|
||||
int get_power_percent_left();
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue