Made use of semicolons more consitent, fixed formatting

This commit is contained in:
JohnJLight 2019-03-19 14:35:57 -04:00 committed by Rémi Verschelde
parent 43a9b8c76c
commit 38d3bfe971
143 changed files with 463 additions and 380 deletions

View file

@ -694,7 +694,7 @@ VARIANT_ENUM_CAST(_Thread::Priority);
class _ClassDB : public Object {
GDCLASS(_ClassDB, Object)
GDCLASS(_ClassDB, Object);
protected:
static void _bind_methods();
@ -779,7 +779,7 @@ public:
class _JSON;
class JSONParseResult : public Reference {
GDCLASS(JSONParseResult, Reference)
GDCLASS(JSONParseResult, Reference);
friend class _JSON;
@ -807,7 +807,7 @@ public:
};
class _JSON : public Object {
GDCLASS(_JSON, Object)
GDCLASS(_JSON, Object);
protected:
static void _bind_methods();

View file

@ -94,7 +94,8 @@ public:
class ResourceImporter : public Reference {
GDCLASS(ResourceImporter, Reference)
GDCLASS(ResourceImporter, Reference);
public:
virtual String get_importer_name() const = 0;
virtual String get_visible_name() const = 0;

View file

@ -62,7 +62,7 @@ public:
class ResourceFormatLoader : public Reference {
GDCLASS(ResourceFormatLoader, Reference)
GDCLASS(ResourceFormatLoader, Reference);
protected:
static void _bind_methods();

View file

@ -38,7 +38,7 @@
*/
class ResourceFormatSaver : public Reference {
GDCLASS(ResourceFormatSaver, Reference)
GDCLASS(ResourceFormatSaver, Reference);
protected:
static void _bind_methods();

View file

@ -42,7 +42,7 @@
class AStar : public Reference {
GDCLASS(AStar, Reference)
GDCLASS(AStar, Reference);
uint64_t pass;

View file

@ -34,7 +34,8 @@
#include "core/reference.h"
class Expression : public Reference {
GDCLASS(Expression, Reference)
GDCLASS(Expression, Reference);
public:
enum BuiltinFunc {
MATH_SIN,

View file

@ -173,7 +173,7 @@ enum MidiMessageList {
*/
class InputEvent : public Resource {
GDCLASS(InputEvent, Resource)
GDCLASS(InputEvent, Resource);
int device;
@ -210,7 +210,7 @@ public:
};
class InputEventWithModifiers : public InputEvent {
GDCLASS(InputEventWithModifiers, InputEvent)
GDCLASS(InputEventWithModifiers, InputEvent);
bool shift;
bool alt;
@ -256,7 +256,7 @@ public:
class InputEventKey : public InputEventWithModifiers {
GDCLASS(InputEventKey, InputEventWithModifiers)
GDCLASS(InputEventKey, InputEventWithModifiers);
bool pressed; /// otherwise release
@ -295,7 +295,7 @@ public:
class InputEventMouse : public InputEventWithModifiers {
GDCLASS(InputEventMouse, InputEventWithModifiers)
GDCLASS(InputEventMouse, InputEventWithModifiers);
int button_mask;
@ -320,7 +320,7 @@ public:
class InputEventMouseButton : public InputEventMouse {
GDCLASS(InputEventMouseButton, InputEventMouse)
GDCLASS(InputEventMouseButton, InputEventMouse);
float factor;
int button_index;
@ -354,7 +354,7 @@ public:
class InputEventMouseMotion : public InputEventMouse {
GDCLASS(InputEventMouseMotion, InputEventMouse)
GDCLASS(InputEventMouseMotion, InputEventMouse);
Vector2 relative;
Vector2 speed;
@ -378,7 +378,7 @@ public:
class InputEventJoypadMotion : public InputEvent {
GDCLASS(InputEventJoypadMotion, InputEvent)
GDCLASS(InputEventJoypadMotion, InputEvent);
int axis; ///< Joypad axis
float axis_value; ///< -1 to 1
@ -403,7 +403,7 @@ public:
};
class InputEventJoypadButton : public InputEvent {
GDCLASS(InputEventJoypadButton, InputEvent)
GDCLASS(InputEventJoypadButton, InputEvent);
int button_index;
bool pressed;
@ -431,7 +431,7 @@ public:
};
class InputEventScreenTouch : public InputEvent {
GDCLASS(InputEventScreenTouch, InputEvent)
GDCLASS(InputEventScreenTouch, InputEvent);
int index;
Vector2 pos;
bool pressed;
@ -457,7 +457,7 @@ public:
class InputEventScreenDrag : public InputEvent {
GDCLASS(InputEventScreenDrag, InputEvent)
GDCLASS(InputEventScreenDrag, InputEvent);
int index;
Vector2 pos;
Vector2 relative;
@ -487,7 +487,7 @@ public:
class InputEventAction : public InputEvent {
GDCLASS(InputEventAction, InputEvent)
GDCLASS(InputEventAction, InputEvent);
StringName action;
bool pressed;
@ -519,7 +519,7 @@ public:
class InputEventGesture : public InputEventWithModifiers {
GDCLASS(InputEventGesture, InputEventWithModifiers)
GDCLASS(InputEventGesture, InputEventWithModifiers);
Vector2 pos;
@ -533,7 +533,7 @@ public:
class InputEventMagnifyGesture : public InputEventGesture {
GDCLASS(InputEventMagnifyGesture, InputEventGesture)
GDCLASS(InputEventMagnifyGesture, InputEventGesture);
real_t factor;
protected:
@ -551,7 +551,7 @@ public:
class InputEventPanGesture : public InputEventGesture {
GDCLASS(InputEventPanGesture, InputEventGesture)
GDCLASS(InputEventPanGesture, InputEventGesture);
Vector2 delta;
protected:
@ -568,7 +568,7 @@ public:
};
class InputEventMIDI : public InputEvent {
GDCLASS(InputEventMIDI, InputEvent)
GDCLASS(InputEventMIDI, InputEvent);
int channel;
int message;

View file

@ -35,7 +35,7 @@
class AnimationBezierTrackEdit : public Control {
GDCLASS(AnimationBezierTrackEdit, Control)
GDCLASS(AnimationBezierTrackEdit, Control);
enum HandleMode {
HANDLE_MODE_FREE,

View file

@ -50,7 +50,7 @@
#include "scene_tree_editor.h"
class AnimationTimelineEdit : public Range {
GDCLASS(AnimationTimelineEdit, Range)
GDCLASS(AnimationTimelineEdit, Range);
Ref<Animation> animation;
int name_limit;
@ -123,7 +123,7 @@ class AnimationTrackEditor;
class AnimationTrackEdit : public Control {
GDCLASS(AnimationTrackEdit, Control)
GDCLASS(AnimationTrackEdit, Control);
enum {
MENU_CALL_MODE_CONTINUOUS,
@ -237,7 +237,8 @@ public:
};
class AnimationTrackEditPlugin : public Reference {
GDCLASS(AnimationTrackEditPlugin, Reference)
GDCLASS(AnimationTrackEditPlugin, Reference);
public:
virtual AnimationTrackEdit *create_value_track_edit(Object *p_object, Variant::Type p_type, const String &p_property, PropertyHint p_hint, const String &p_hint_string, int p_usage);
virtual AnimationTrackEdit *create_audio_track_edit();
@ -248,7 +249,7 @@ class AnimationTrackKeyEdit;
class AnimationBezierTrackEdit;
class AnimationTrackEditGroup : public Control {
GDCLASS(AnimationTrackEditGroup, Control)
GDCLASS(AnimationTrackEditGroup, Control);
Ref<Texture> icon;
String node_name;
NodePath node;
@ -271,7 +272,7 @@ public:
};
class AnimationTrackEditor : public VBoxContainer {
GDCLASS(AnimationTrackEditor, VBoxContainer)
GDCLASS(AnimationTrackEditor, VBoxContainer);
enum {
EDIT_COPY_TRACKS,

View file

@ -34,7 +34,7 @@
#include "editor/animation_track_editor.h"
class AnimationTrackEditBool : public AnimationTrackEdit {
GDCLASS(AnimationTrackEditBool, AnimationTrackEdit)
GDCLASS(AnimationTrackEditBool, AnimationTrackEdit);
Ref<Texture> icon_checked;
Ref<Texture> icon_unchecked;
@ -46,7 +46,7 @@ public:
};
class AnimationTrackEditColor : public AnimationTrackEdit {
GDCLASS(AnimationTrackEditColor, AnimationTrackEdit)
GDCLASS(AnimationTrackEditColor, AnimationTrackEdit);
public:
virtual int get_key_height() const;
@ -57,7 +57,7 @@ public:
};
class AnimationTrackEditAudio : public AnimationTrackEdit {
GDCLASS(AnimationTrackEditAudio, AnimationTrackEdit)
GDCLASS(AnimationTrackEditAudio, AnimationTrackEdit);
ObjectID id;
@ -78,7 +78,7 @@ public:
};
class AnimationTrackEditSpriteFrame : public AnimationTrackEdit {
GDCLASS(AnimationTrackEditSpriteFrame, AnimationTrackEdit)
GDCLASS(AnimationTrackEditSpriteFrame, AnimationTrackEdit);
ObjectID id;
@ -92,7 +92,7 @@ public:
};
class AnimationTrackEditSubAnim : public AnimationTrackEdit {
GDCLASS(AnimationTrackEditSubAnim, AnimationTrackEdit)
GDCLASS(AnimationTrackEditSubAnim, AnimationTrackEdit);
ObjectID id;
@ -106,7 +106,7 @@ public:
};
class AnimationTrackEditTypeAudio : public AnimationTrackEdit {
GDCLASS(AnimationTrackEditTypeAudio, AnimationTrackEdit)
GDCLASS(AnimationTrackEditTypeAudio, AnimationTrackEdit);
void _preview_changed(ObjectID p_which);
@ -134,7 +134,7 @@ public:
};
class AnimationTrackEditTypeAnimation : public AnimationTrackEdit {
GDCLASS(AnimationTrackEditTypeAnimation, AnimationTrackEdit)
GDCLASS(AnimationTrackEditTypeAnimation, AnimationTrackEdit);
ObjectID id;
@ -149,7 +149,7 @@ public:
};
class AnimationTrackEditVolumeDB : public AnimationTrackEdit {
GDCLASS(AnimationTrackEditVolumeDB, AnimationTrackEdit)
GDCLASS(AnimationTrackEditVolumeDB, AnimationTrackEdit);
public:
virtual void draw_bg(int p_clip_left, int p_clip_right);
@ -159,7 +159,8 @@ public:
};
class AnimationTrackEditDefaultPlugin : public AnimationTrackEditPlugin {
GDCLASS(AnimationTrackEditDefaultPlugin, AnimationTrackEditPlugin)
GDCLASS(AnimationTrackEditDefaultPlugin, AnimationTrackEditPlugin);
public:
virtual AnimationTrackEdit *create_value_track_edit(Object *p_object, Variant::Type p_type, const String &p_property, PropertyHint p_hint, const String &p_hint_string, int p_usage);
virtual AnimationTrackEdit *create_audio_track_edit();

View file

@ -36,7 +36,7 @@
#include "servers/audio/audio_stream.h"
class AudioStreamPreview : public Reference {
GDCLASS(AudioStreamPreview, Reference)
GDCLASS(AudioStreamPreview, Reference);
friend class AudioStream;
Vector<uint8_t> preview;
float length;
@ -52,7 +52,7 @@ public:
};
class AudioStreamPreviewGenerator : public Node {
GDCLASS(AudioStreamPreviewGenerator, Node)
GDCLASS(AudioStreamPreviewGenerator, Node);
static AudioStreamPreviewGenerator *singleton;

View file

@ -44,7 +44,7 @@
class CreateDialog : public ConfirmationDialog {
GDCLASS(CreateDialog, ConfirmationDialog)
GDCLASS(CreateDialog, ConfirmationDialog);
Vector<String> favorite_list;
Tree *favorites;

View file

@ -52,7 +52,7 @@ class EditorAudioBuses;
class EditorAudioBus : public PanelContainer {
GDCLASS(EditorAudioBus, PanelContainer)
GDCLASS(EditorAudioBus, PanelContainer);
Ref<Texture> disabled_vu;
LineEdit *track_name;
@ -155,7 +155,7 @@ public:
class EditorAudioBuses : public VBoxContainer {
GDCLASS(EditorAudioBuses, VBoxContainer)
GDCLASS(EditorAudioBuses, VBoxContainer);
HBoxContainer *top_hb;

View file

@ -44,7 +44,8 @@ struct EditorProgress;
class EditorExportPreset : public Reference {
GDCLASS(EditorExportPreset, Reference)
GDCLASS(EditorExportPreset, Reference);
public:
enum ExportFilter {
EXPORT_ALL_RESOURCES,
@ -152,7 +153,7 @@ struct SharedObject {
class EditorExportPlatform : public Reference {
GDCLASS(EditorExportPlatform, Reference)
GDCLASS(EditorExportPlatform, Reference);
public:
typedef Error (*EditorExportSaveFunction)(void *p_userdata, const String &p_path, const Vector<uint8_t> &p_data, int p_file, int p_total);
@ -272,7 +273,7 @@ public:
};
class EditorExportPlugin : public Reference {
GDCLASS(EditorExportPlugin, Reference)
GDCLASS(EditorExportPlugin, Reference);
friend class EditorExportPlatform;
@ -388,7 +389,7 @@ public:
class EditorExportPlatformPC : public EditorExportPlatform {
GDCLASS(EditorExportPlatformPC, EditorExportPlatform)
GDCLASS(EditorExportPlatformPC, EditorExportPlatform);
Ref<ImageTexture> logo;
String name;
@ -440,7 +441,7 @@ public:
class EditorExportTextSceneToBinaryPlugin : public EditorExportPlugin {
GDCLASS(EditorExportTextSceneToBinaryPlugin, EditorExportPlugin)
GDCLASS(EditorExportTextSceneToBinaryPlugin, EditorExportPlugin);
public:
virtual void _export_file(const String &p_path, const String &p_type, const Set<String> &p_features);

View file

@ -48,7 +48,8 @@ public:
class EditorProperty : public Container {
GDCLASS(EditorProperty, Container)
GDCLASS(EditorProperty, Container);
private:
String label;
int text_size;
@ -167,7 +168,7 @@ public:
};
class EditorInspectorPlugin : public Reference {
GDCLASS(EditorInspectorPlugin, Reference)
GDCLASS(EditorInspectorPlugin, Reference);
friend class EditorInspector;
struct AddedEditor {

View file

@ -60,7 +60,8 @@ class EditorToolAddons;
class ScriptEditor;
class EditorInterface : public Node {
GDCLASS(EditorInterface, Node)
GDCLASS(EditorInterface, Node);
protected:
static void _bind_methods();
static EditorInterface *singleton;

View file

@ -42,7 +42,7 @@
class EditorProfiler : public VBoxContainer {
GDCLASS(EditorProfiler, VBoxContainer)
GDCLASS(EditorProfiler, VBoxContainer);
public:
struct Metric {

View file

@ -599,7 +599,8 @@ EditorPropertyFlags::EditorPropertyFlags() {
///////////////////// LAYERS /////////////////////////
class EditorPropertyLayersGrid : public Control {
GDCLASS(EditorPropertyLayersGrid, Control)
GDCLASS(EditorPropertyLayersGrid, Control);
public:
uint32_t value;
Vector<Rect2> flag_rects;

View file

@ -40,7 +40,7 @@
#include "scene/gui/color_picker.h"
class EditorPropertyNil : public EditorProperty {
GDCLASS(EditorPropertyNil, EditorProperty)
GDCLASS(EditorPropertyNil, EditorProperty);
LineEdit *text;
public:
@ -49,7 +49,7 @@ public:
};
class EditorPropertyText : public EditorProperty {
GDCLASS(EditorPropertyText, EditorProperty)
GDCLASS(EditorPropertyText, EditorProperty);
LineEdit *text;
bool updating;
@ -66,7 +66,7 @@ public:
};
class EditorPropertyMultilineText : public EditorProperty {
GDCLASS(EditorPropertyMultilineText, EditorProperty)
GDCLASS(EditorPropertyMultilineText, EditorProperty);
TextEdit *text;
AcceptDialog *big_text_dialog;
@ -87,7 +87,7 @@ public:
};
class EditorPropertyTextEnum : public EditorProperty {
GDCLASS(EditorPropertyTextEnum, EditorProperty)
GDCLASS(EditorPropertyTextEnum, EditorProperty);
OptionButton *options;
void _option_selected(int p_which);
@ -102,7 +102,7 @@ public:
};
class EditorPropertyPath : public EditorProperty {
GDCLASS(EditorPropertyPath, EditorProperty)
GDCLASS(EditorPropertyPath, EditorProperty);
Vector<String> extensions;
bool folder;
bool global;
@ -127,7 +127,8 @@ public:
};
class EditorPropertyClassName : public EditorProperty {
GDCLASS(EditorPropertyClassName, EditorProperty)
GDCLASS(EditorPropertyClassName, EditorProperty);
private:
CreateDialog *dialog;
Button *property;
@ -146,7 +147,8 @@ public:
};
class EditorPropertyMember : public EditorProperty {
GDCLASS(EditorPropertyMember, EditorProperty)
GDCLASS(EditorPropertyMember, EditorProperty);
public:
enum Type {
MEMBER_METHOD_OF_VARIANT_TYPE, ///< a method of a type
@ -179,7 +181,7 @@ public:
};
class EditorPropertyCheck : public EditorProperty {
GDCLASS(EditorPropertyCheck, EditorProperty)
GDCLASS(EditorPropertyCheck, EditorProperty);
CheckBox *checkbox;
void _checkbox_pressed();
@ -193,7 +195,7 @@ public:
};
class EditorPropertyEnum : public EditorProperty {
GDCLASS(EditorPropertyEnum, EditorProperty)
GDCLASS(EditorPropertyEnum, EditorProperty);
OptionButton *options;
void _option_selected(int p_which);
@ -209,7 +211,7 @@ public:
};
class EditorPropertyFlags : public EditorProperty {
GDCLASS(EditorPropertyFlags, EditorProperty)
GDCLASS(EditorPropertyFlags, EditorProperty);
VBoxContainer *vbox;
Vector<CheckBox *> flags;
Vector<int> flag_indices;
@ -228,7 +230,8 @@ public:
class EditorPropertyLayersGrid;
class EditorPropertyLayers : public EditorProperty {
GDCLASS(EditorPropertyLayers, EditorProperty)
GDCLASS(EditorPropertyLayers, EditorProperty);
public:
enum LayerType {
LAYER_PHYSICS_2D,
@ -257,7 +260,7 @@ public:
};
class EditorPropertyInteger : public EditorProperty {
GDCLASS(EditorPropertyInteger, EditorProperty)
GDCLASS(EditorPropertyInteger, EditorProperty);
EditorSpinSlider *spin;
bool setting;
void _value_changed(double p_val);
@ -272,7 +275,7 @@ public:
};
class EditorPropertyObjectID : public EditorProperty {
GDCLASS(EditorPropertyObjectID, EditorProperty)
GDCLASS(EditorPropertyObjectID, EditorProperty);
Button *edit;
String base_type;
void _edit_pressed();
@ -287,7 +290,7 @@ public:
};
class EditorPropertyFloat : public EditorProperty {
GDCLASS(EditorPropertyFloat, EditorProperty)
GDCLASS(EditorPropertyFloat, EditorProperty);
EditorSpinSlider *spin;
bool setting;
void _value_changed(double p_val);
@ -302,7 +305,7 @@ public:
};
class EditorPropertyEasing : public EditorProperty {
GDCLASS(EditorPropertyEasing, EditorProperty)
GDCLASS(EditorPropertyEasing, EditorProperty);
Control *easing_draw;
PopupMenu *preset;
bool full;
@ -335,7 +338,7 @@ public:
};
class EditorPropertyVector2 : public EditorProperty {
GDCLASS(EditorPropertyVector2, EditorProperty)
GDCLASS(EditorPropertyVector2, EditorProperty);
EditorSpinSlider *spin[2];
bool setting;
void _value_changed(double p_val, const String &p_name);
@ -351,7 +354,7 @@ public:
};
class EditorPropertyRect2 : public EditorProperty {
GDCLASS(EditorPropertyRect2, EditorProperty)
GDCLASS(EditorPropertyRect2, EditorProperty);
EditorSpinSlider *spin[4];
bool setting;
void _value_changed(double p_val, const String &p_name);
@ -367,7 +370,7 @@ public:
};
class EditorPropertyVector3 : public EditorProperty {
GDCLASS(EditorPropertyVector3, EditorProperty)
GDCLASS(EditorPropertyVector3, EditorProperty);
EditorSpinSlider *spin[3];
bool setting;
void _value_changed(double p_val, const String &p_name);
@ -383,7 +386,7 @@ public:
};
class EditorPropertyPlane : public EditorProperty {
GDCLASS(EditorPropertyPlane, EditorProperty)
GDCLASS(EditorPropertyPlane, EditorProperty);
EditorSpinSlider *spin[4];
bool setting;
void _value_changed(double p_val, const String &p_name);
@ -399,7 +402,7 @@ public:
};
class EditorPropertyQuat : public EditorProperty {
GDCLASS(EditorPropertyQuat, EditorProperty)
GDCLASS(EditorPropertyQuat, EditorProperty);
EditorSpinSlider *spin[4];
bool setting;
void _value_changed(double p_val, const String &p_name);
@ -415,7 +418,7 @@ public:
};
class EditorPropertyAABB : public EditorProperty {
GDCLASS(EditorPropertyAABB, EditorProperty)
GDCLASS(EditorPropertyAABB, EditorProperty);
EditorSpinSlider *spin[6];
bool setting;
void _value_changed(double p_val, const String &p_name);
@ -431,7 +434,7 @@ public:
};
class EditorPropertyTransform2D : public EditorProperty {
GDCLASS(EditorPropertyTransform2D, EditorProperty)
GDCLASS(EditorPropertyTransform2D, EditorProperty);
EditorSpinSlider *spin[6];
bool setting;
void _value_changed(double p_val, const String &p_name);
@ -447,7 +450,7 @@ public:
};
class EditorPropertyBasis : public EditorProperty {
GDCLASS(EditorPropertyBasis, EditorProperty)
GDCLASS(EditorPropertyBasis, EditorProperty);
EditorSpinSlider *spin[9];
bool setting;
void _value_changed(double p_val, const String &p_name);
@ -463,7 +466,7 @@ public:
};
class EditorPropertyTransform : public EditorProperty {
GDCLASS(EditorPropertyTransform, EditorProperty)
GDCLASS(EditorPropertyTransform, EditorProperty);
EditorSpinSlider *spin[12];
bool setting;
void _value_changed(double p_val, const String &p_name);
@ -479,7 +482,7 @@ public:
};
class EditorPropertyColor : public EditorProperty {
GDCLASS(EditorPropertyColor, EditorProperty)
GDCLASS(EditorPropertyColor, EditorProperty);
ColorPickerButton *picker;
void _color_changed(const Color &p_color);
void _popup_closed();
@ -494,7 +497,7 @@ public:
};
class EditorPropertyNodePath : public EditorProperty {
GDCLASS(EditorPropertyNodePath, EditorProperty)
GDCLASS(EditorPropertyNodePath, EditorProperty);
Button *assign;
Button *clear;
SceneTreeDialog *scene_tree;
@ -517,7 +520,7 @@ public:
};
class EditorPropertyRID : public EditorProperty {
GDCLASS(EditorPropertyRID, EditorProperty)
GDCLASS(EditorPropertyRID, EditorProperty);
Label *label;
public:
@ -526,7 +529,7 @@ public:
};
class EditorPropertyResource : public EditorProperty {
GDCLASS(EditorPropertyResource, EditorProperty)
GDCLASS(EditorPropertyResource, EditorProperty);
enum MenuOption {
@ -605,7 +608,7 @@ public:
/// \brief The EditorInspectorDefaultPlugin class
///
class EditorInspectorDefaultPlugin : public EditorInspectorPlugin {
GDCLASS(EditorInspectorDefaultPlugin, EditorInspectorPlugin)
GDCLASS(EditorInspectorDefaultPlugin, EditorInspectorPlugin);
public:
virtual bool can_handle(Object *p_object);

View file

@ -78,7 +78,7 @@ public:
};
class EditorPropertyArray : public EditorProperty {
GDCLASS(EditorPropertyArray, EditorProperty)
GDCLASS(EditorPropertyArray, EditorProperty);
PopupMenu *change_type;
bool updating;
@ -117,7 +117,7 @@ public:
};
class EditorPropertyDictionary : public EditorProperty {
GDCLASS(EditorPropertyDictionary, EditorProperty)
GDCLASS(EditorPropertyDictionary, EditorProperty);
PopupMenu *change_type;
bool updating;

View file

@ -36,7 +36,7 @@
#include "scene/gui/texture_rect.h"
class EditorSpinSlider : public Range {
GDCLASS(EditorSpinSlider, Range)
GDCLASS(EditorSpinSlider, Range);
String label;
int updown_offset;

View file

@ -41,7 +41,7 @@
class ExportTemplateVersion;
class ExportTemplateManager : public ConfirmationDialog {
GDCLASS(ExportTemplateManager, ConfirmationDialog)
GDCLASS(ExportTemplateManager, ConfirmationDialog);
AcceptDialog *template_downloader;
VBoxContainer *template_list;

View file

@ -36,7 +36,8 @@
// Performs the actual search
class FindInFiles : public Node {
GDCLASS(FindInFiles, Node)
GDCLASS(FindInFiles, Node);
public:
static const char *SIGNAL_RESULT_FOUND;
static const char *SIGNAL_FINISHED;
@ -93,7 +94,8 @@ class HBoxContainer;
// Prompts search parameters
class FindInFilesDialog : public AcceptDialog {
GDCLASS(FindInFilesDialog, AcceptDialog)
GDCLASS(FindInFilesDialog, AcceptDialog);
public:
static const char *SIGNAL_FIND_REQUESTED;
static const char *SIGNAL_REPLACE_REQUESTED;
@ -138,7 +140,8 @@ class ProgressBar;
// Display search results
class FindInFilesPanel : public Control {
GDCLASS(FindInFilesPanel, Control)
GDCLASS(FindInFilesPanel, Control);
public:
static const char *SIGNAL_RESULT_SELECTED;
static const char *SIGNAL_FILES_MODIFIED;

View file

@ -34,7 +34,8 @@
#include "core/io/resource_importer.h"
class EditorImportPlugin : public ResourceImporter {
GDCLASS(EditorImportPlugin, Reference)
GDCLASS(EditorImportPlugin, Reference);
protected:
static void _bind_methods();

View file

@ -37,7 +37,7 @@
class StreamBitMap;
class ResourceImporterBitMap : public ResourceImporter {
GDCLASS(ResourceImporterBitMap, ResourceImporter)
GDCLASS(ResourceImporterBitMap, ResourceImporter);
public:
virtual String get_importer_name() const;

View file

@ -34,7 +34,8 @@
#include "core/io/resource_importer.h"
class ResourceImporterCSVTranslation : public ResourceImporter {
GDCLASS(ResourceImporterCSVTranslation, ResourceImporter)
GDCLASS(ResourceImporterCSVTranslation, ResourceImporter);
public:
virtual String get_importer_name() const;
virtual String get_visible_name() const;

View file

@ -35,7 +35,8 @@
#include "core/io/resource_importer.h"
class ResourceImporterImage : public ResourceImporter {
GDCLASS(ResourceImporterImage, ResourceImporter)
GDCLASS(ResourceImporterImage, ResourceImporter);
public:
virtual String get_importer_name() const;
virtual String get_visible_name() const;

View file

@ -37,7 +37,7 @@
class StreamTexture;
class ResourceImporterLayeredTexture : public ResourceImporter {
GDCLASS(ResourceImporterLayeredTexture, ResourceImporter)
GDCLASS(ResourceImporterLayeredTexture, ResourceImporter);
bool is_3d;
static const char *compression_formats[];

View file

@ -47,7 +47,8 @@ public:
};
class ResourceImporterOBJ : public ResourceImporter {
GDCLASS(ResourceImporterOBJ, ResourceImporter)
GDCLASS(ResourceImporterOBJ, ResourceImporter);
public:
virtual String get_importer_name() const;
virtual String get_visible_name() const;

View file

@ -90,7 +90,7 @@ public:
};
class ResourceImporterScene : public ResourceImporter {
GDCLASS(ResourceImporterScene, ResourceImporter)
GDCLASS(ResourceImporterScene, ResourceImporter);
Set<Ref<EditorSceneImporter> > importers;

View file

@ -37,7 +37,7 @@
class StreamTexture;
class ResourceImporterTexture : public ResourceImporter {
GDCLASS(ResourceImporterTexture, ResourceImporter)
GDCLASS(ResourceImporterTexture, ResourceImporter);
protected:
enum {

View file

@ -34,7 +34,7 @@
#include "core/image.h"
#include "core/io/resource_importer.h"
class ResourceImporterTextureAtlas : public ResourceImporter {
GDCLASS(ResourceImporterTextureAtlas, ResourceImporter)
GDCLASS(ResourceImporterTextureAtlas, ResourceImporter);
struct PackData {
Rect2 region;

View file

@ -34,7 +34,8 @@
#include "core/io/resource_importer.h"
class ResourceImporterWAV : public ResourceImporter {
GDCLASS(ResourceImporterWAV, ResourceImporter)
GDCLASS(ResourceImporterWAV, ResourceImporter);
public:
virtual String get_importer_name() const;
virtual String get_visible_name() const;

View file

@ -32,7 +32,8 @@
#include "editor_node.h"
class ImportDockParameters : public Object {
GDCLASS(ImportDockParameters, Object)
GDCLASS(ImportDockParameters, Object);
public:
Map<StringName, Variant> values;
List<PropertyInfo> properties;

View file

@ -43,7 +43,7 @@
class ImportDockParameters;
class ImportDock : public VBoxContainer {
GDCLASS(ImportDock, VBoxContainer)
GDCLASS(ImportDock, VBoxContainer);
Label *imported;
OptionButton *import_as;

View file

@ -35,7 +35,7 @@
class PaneDrag : public Control {
GDCLASS(PaneDrag, Control)
GDCLASS(PaneDrag, Control);
bool mouse_over;

View file

@ -43,7 +43,7 @@
class AnimationNodeBlendSpace1DEditor : public AnimationTreeNodeEditorPlugin {
GDCLASS(AnimationNodeBlendSpace1DEditor, AnimationTreeNodeEditorPlugin)
GDCLASS(AnimationNodeBlendSpace1DEditor, AnimationTreeNodeEditorPlugin);
Ref<AnimationNodeBlendSpace1D> blend_space;

View file

@ -41,7 +41,8 @@
#include "scene/gui/tree.h"
class AnimationTreeNodeEditorPlugin : public VBoxContainer {
GDCLASS(AnimationTreeNodeEditorPlugin, VBoxContainer)
GDCLASS(AnimationTreeNodeEditorPlugin, VBoxContainer);
public:
virtual bool can_edit(const Ref<AnimationNode> &p_node) = 0;
virtual void edit(const Ref<AnimationNode> &p_node) = 0;

View file

@ -37,7 +37,8 @@
// Edits a y(x) curve
class CurveEditor : public Control {
GDCLASS(CurveEditor, Control)
GDCLASS(CurveEditor, Control);
public:
CurveEditor();
@ -120,14 +121,16 @@ private:
};
class EditorInspectorPluginCurve : public EditorInspectorPlugin {
GDCLASS(EditorInspectorPluginCurve, EditorInspectorPlugin)
GDCLASS(EditorInspectorPluginCurve, EditorInspectorPlugin);
public:
virtual bool can_handle(Object *p_object);
virtual void parse_begin(Object *p_object);
};
class CurveEditorPlugin : public EditorPlugin {
GDCLASS(CurveEditorPlugin, EditorPlugin)
GDCLASS(CurveEditorPlugin, EditorPlugin);
public:
CurveEditorPlugin(EditorNode *p_node);
@ -135,7 +138,8 @@ public:
};
class CurvePreviewGenerator : public EditorResourcePreviewGenerator {
GDCLASS(CurvePreviewGenerator, EditorResourcePreviewGenerator)
GDCLASS(CurvePreviewGenerator, EditorResourcePreviewGenerator);
public:
virtual bool handles(const String &p_type) const;
virtual Ref<Texture> generate(const Ref<Resource> &p_from, const Size2 p_size) const;

View file

@ -36,7 +36,8 @@
void post_process_preview(Ref<Image> p_image);
class EditorTexturePreviewPlugin : public EditorResourcePreviewGenerator {
GDCLASS(EditorTexturePreviewPlugin, EditorResourcePreviewGenerator)
GDCLASS(EditorTexturePreviewPlugin, EditorResourcePreviewGenerator);
public:
virtual bool handles(const String &p_type) const;
virtual bool generate_small_preview_automatically() const;
@ -46,7 +47,8 @@ public:
};
class EditorImagePreviewPlugin : public EditorResourcePreviewGenerator {
GDCLASS(EditorImagePreviewPlugin, EditorResourcePreviewGenerator)
GDCLASS(EditorImagePreviewPlugin, EditorResourcePreviewGenerator);
public:
virtual bool handles(const String &p_type) const;
virtual bool generate_small_preview_automatically() const;
@ -56,7 +58,8 @@ public:
};
class EditorBitmapPreviewPlugin : public EditorResourcePreviewGenerator {
GDCLASS(EditorBitmapPreviewPlugin, EditorResourcePreviewGenerator)
GDCLASS(EditorBitmapPreviewPlugin, EditorResourcePreviewGenerator);
public:
virtual bool handles(const String &p_type) const;
virtual bool generate_small_preview_automatically() const;
@ -77,7 +80,7 @@ public:
class EditorMaterialPreviewPlugin : public EditorResourcePreviewGenerator {
GDCLASS(EditorMaterialPreviewPlugin, EditorResourcePreviewGenerator)
GDCLASS(EditorMaterialPreviewPlugin, EditorResourcePreviewGenerator);
RID scenario;
RID sphere;
@ -123,7 +126,7 @@ public:
class EditorMeshPreviewPlugin : public EditorResourcePreviewGenerator {
GDCLASS(EditorMeshPreviewPlugin, EditorResourcePreviewGenerator)
GDCLASS(EditorMeshPreviewPlugin, EditorResourcePreviewGenerator);
RID scenario;
RID mesh_instance;
@ -151,7 +154,7 @@ public:
class EditorFontPreviewPlugin : public EditorResourcePreviewGenerator {
GDCLASS(EditorFontPreviewPlugin, EditorResourcePreviewGenerator)
GDCLASS(EditorFontPreviewPlugin, EditorResourcePreviewGenerator);
RID viewport;
RID viewport_texture;

View file

@ -36,7 +36,7 @@
#include "scene/gui/gradient_edit.h"
class GradientEditor : public GradientEdit {
GDCLASS(GradientEditor, GradientEdit)
GDCLASS(GradientEditor, GradientEdit);
bool editing;
Ref<Gradient> gradient;
@ -54,7 +54,8 @@ public:
};
class EditorInspectorPluginGradient : public EditorInspectorPlugin {
GDCLASS(EditorInspectorPluginGradient, EditorInspectorPlugin)
GDCLASS(EditorInspectorPluginGradient, EditorInspectorPlugin);
public:
virtual bool can_handle(Object *p_object);
virtual void parse_begin(Object *p_object);

View file

@ -78,7 +78,7 @@ public:
};
class EditorInspectorPluginMaterial : public EditorInspectorPlugin {
GDCLASS(EditorInspectorPluginMaterial, EditorInspectorPlugin)
GDCLASS(EditorInspectorPluginMaterial, EditorInspectorPlugin);
Ref<Environment> env;
public:
@ -99,7 +99,8 @@ public:
};
class SpatialMaterialConversionPlugin : public EditorResourceConversionPlugin {
GDCLASS(SpatialMaterialConversionPlugin, EditorResourceConversionPlugin)
GDCLASS(SpatialMaterialConversionPlugin, EditorResourceConversionPlugin);
public:
virtual String converts_to() const;
virtual bool handles(const Ref<Resource> &p_resource) const;
@ -107,7 +108,8 @@ public:
};
class ParticlesMaterialConversionPlugin : public EditorResourceConversionPlugin {
GDCLASS(ParticlesMaterialConversionPlugin, EditorResourceConversionPlugin)
GDCLASS(ParticlesMaterialConversionPlugin, EditorResourceConversionPlugin);
public:
virtual String converts_to() const;
virtual bool handles(const Ref<Resource> &p_resource) const;
@ -115,7 +117,8 @@ public:
};
class CanvasItemMaterialConversionPlugin : public EditorResourceConversionPlugin {
GDCLASS(CanvasItemMaterialConversionPlugin, EditorResourceConversionPlugin)
GDCLASS(CanvasItemMaterialConversionPlugin, EditorResourceConversionPlugin);
public:
virtual String converts_to() const;
virtual bool handles(const Ref<Resource> &p_resource) const;

View file

@ -73,7 +73,8 @@ public:
};
class EditorInspectorPluginMesh : public EditorInspectorPlugin {
GDCLASS(EditorInspectorPluginMesh, EditorInspectorPlugin)
GDCLASS(EditorInspectorPluginMesh, EditorInspectorPlugin);
public:
virtual bool can_handle(Object *p_object);
virtual void parse_begin(Object *p_object);

View file

@ -42,7 +42,7 @@
class ParticlesEditorBase : public Control {
GDCLASS(ParticlesEditorBase, Control)
GDCLASS(ParticlesEditorBase, Control);
protected:
Spatial *base_node;

View file

@ -37,7 +37,7 @@
#include "scene/animation/animation_tree.h"
class EditorPropertyRootMotion : public EditorProperty {
GDCLASS(EditorPropertyRootMotion, EditorProperty)
GDCLASS(EditorPropertyRootMotion, EditorProperty);
Button *assign;
Button *clear;
NodePath base_hint;
@ -60,7 +60,7 @@ public:
};
class EditorInspectorRootMotionPlugin : public EditorInspectorPlugin {
GDCLASS(EditorInspectorRootMotionPlugin, EditorInspectorPlugin)
GDCLASS(EditorInspectorRootMotionPlugin, EditorInspectorPlugin);
public:
virtual bool can_handle(Object *p_object);

View file

@ -50,7 +50,7 @@
class ScriptEditorQuickOpen : public ConfirmationDialog {
GDCLASS(ScriptEditorQuickOpen, ConfirmationDialog)
GDCLASS(ScriptEditorQuickOpen, ConfirmationDialog);
LineEdit *search_box;
Tree *search_options;
@ -77,7 +77,7 @@ class ScriptEditorDebugger;
class ScriptEditorBase : public VBoxContainer {
GDCLASS(ScriptEditorBase, VBoxContainer)
GDCLASS(ScriptEditorBase, VBoxContainer);
protected:
static void _bind_methods();

View file

@ -431,7 +431,8 @@ public:
class SpatialEditorViewportContainer : public Container {
GDCLASS(SpatialEditorViewportContainer, Container)
GDCLASS(SpatialEditorViewportContainer, Container);
public:
enum View {
VIEW_USE_1_VIEWPORT,

View file

@ -56,7 +56,8 @@ public:
};
class EditorInspectorPluginStyleBox : public EditorInspectorPlugin {
GDCLASS(EditorInspectorPluginStyleBox, EditorInspectorPlugin)
GDCLASS(EditorInspectorPluginStyleBox, EditorInspectorPlugin);
public:
virtual bool can_handle(Object *p_object);
virtual void parse_begin(Object *p_object);

View file

@ -35,7 +35,7 @@
class TextEditor : public ScriptEditorBase {
GDCLASS(TextEditor, ScriptEditorBase)
GDCLASS(TextEditor, ScriptEditorBase);
private:
CodeTextEditor *code_editor;

View file

@ -54,7 +54,8 @@ public:
};
class EditorInspectorPluginTexture : public EditorInspectorPlugin {
GDCLASS(EditorInspectorPluginTexture, EditorInspectorPlugin)
GDCLASS(EditorInspectorPluginTexture, EditorInspectorPlugin);
public:
virtual bool can_handle(Object *p_object);
virtual void parse_begin(Object *p_object);

View file

@ -46,7 +46,7 @@ class TileSetEditor : public HSplitContainer {
friend class TileSetEditorPlugin;
friend class TilesetEditorContext;
GDCLASS(TileSetEditor, HSplitContainer)
GDCLASS(TileSetEditor, HSplitContainer);
enum TextureToolButtons {
TOOL_TILESET_ADD_TEXTURE,

View file

@ -2350,7 +2350,7 @@ VisualShaderEditorPlugin::~VisualShaderEditorPlugin() {
////////////////
class VisualShaderNodePluginInputEditor : public OptionButton {
GDCLASS(VisualShaderNodePluginInputEditor, OptionButton)
GDCLASS(VisualShaderNodePluginInputEditor, OptionButton);
Ref<VisualShaderNodeInput> input;
@ -2395,7 +2395,8 @@ public:
};
class VisualShaderNodePluginDefaultEditor : public VBoxContainer {
GDCLASS(VisualShaderNodePluginDefaultEditor, VBoxContainer)
GDCLASS(VisualShaderNodePluginDefaultEditor, VBoxContainer);
public:
void _property_changed(const String &prop, const Variant &p_value, const String &p_field, bool p_changing = false) {

View file

@ -42,7 +42,8 @@
class VisualShaderNodePlugin : public Reference {
GDCLASS(VisualShaderNodePlugin, Reference)
GDCLASS(VisualShaderNodePlugin, Reference);
protected:
static void _bind_methods();
@ -245,14 +246,14 @@ public:
class VisualShaderNodePluginDefault : public VisualShaderNodePlugin {
GDCLASS(VisualShaderNodePluginDefault, VisualShaderNodePlugin)
GDCLASS(VisualShaderNodePluginDefault, VisualShaderNodePlugin);
public:
virtual Control *create_editor(const Ref<VisualShaderNode> &p_node);
};
class EditorPropertyShaderMode : public EditorProperty {
GDCLASS(EditorPropertyShaderMode, EditorProperty)
GDCLASS(EditorPropertyShaderMode, EditorProperty);
OptionButton *options;
void _option_selected(int p_which);
@ -268,7 +269,7 @@ public:
};
class EditorInspectorShaderModePlugin : public EditorInspectorPlugin {
GDCLASS(EditorInspectorShaderModePlugin, EditorInspectorPlugin)
GDCLASS(EditorInspectorShaderModePlugin, EditorInspectorPlugin);
public:
virtual bool can_handle(Object *p_object);
@ -278,7 +279,7 @@ public:
};
class VisualShaderNodePortPreview : public Control {
GDCLASS(VisualShaderNodePortPreview, Control)
GDCLASS(VisualShaderNodePortPreview, Control);
Ref<VisualShader> shader;
VisualShader::Type type;
int node;

View file

@ -56,7 +56,7 @@ class PropertySelector;
class EditorResourceConversionPlugin : public Reference {
GDCLASS(EditorResourceConversionPlugin, Reference)
GDCLASS(EditorResourceConversionPlugin, Reference);
protected:
static void _bind_methods();

View file

@ -36,7 +36,7 @@
#include "scene/gui/rich_text_label.h"
class PropertySelector : public ConfirmationDialog {
GDCLASS(PropertySelector, ConfirmationDialog)
GDCLASS(PropertySelector, ConfirmationDialog);
LineEdit *search_box;
Tree *search_options;

View file

@ -37,7 +37,7 @@
#include "scene/gui/tree.h"
class EditorQuickOpen : public ConfirmationDialog {
GDCLASS(EditorQuickOpen, ConfirmationDialog)
GDCLASS(EditorQuickOpen, ConfirmationDialog);
LineEdit *search_box;
Tree *search_options;

View file

@ -45,7 +45,7 @@
*/
class BulletPhysicsServer : public PhysicsServer {
GDCLASS(BulletPhysicsServer, PhysicsServer)
GDCLASS(BulletPhysicsServer, PhysicsServer);
friend class BulletPhysicsDirectSpaceState;

View file

@ -54,7 +54,7 @@ class BulletPhysicsDirectBodyState;
/// created by BulletPhysicsServer and is held by the "singleton" variable of this class
/// Each time something require it, the body must be set again.
class BulletPhysicsDirectBodyState : public PhysicsDirectBodyState {
GDCLASS(BulletPhysicsDirectBodyState, PhysicsDirectBodyState)
GDCLASS(BulletPhysicsDirectBodyState, PhysicsDirectBodyState);
static BulletPhysicsDirectBodyState *singleton;

View file

@ -68,7 +68,8 @@ class btGjkEpaPenetrationDepthSolver;
extern ContactAddedCallback gContactAddedCallback;
class BulletPhysicsDirectSpaceState : public PhysicsDirectSpaceState {
GDCLASS(BulletPhysicsDirectSpaceState, PhysicsDirectSpaceState)
GDCLASS(BulletPhysicsDirectSpaceState, PhysicsDirectSpaceState);
private:
SpaceBullet *space;

View file

@ -55,7 +55,8 @@ public:
};
class EditorPluginCSG : public EditorPlugin {
GDCLASS(EditorPluginCSG, EditorPlugin)
GDCLASS(EditorPluginCSG, EditorPlugin);
public:
EditorPluginCSG(EditorNode *p_editor);
};

View file

@ -156,7 +156,8 @@ public:
VARIANT_ENUM_CAST(CSGShape::Operation)
class CSGCombiner : public CSGShape {
GDCLASS(CSGCombiner, CSGShape)
GDCLASS(CSGCombiner, CSGShape);
private:
virtual CSGBrush *_build_brush();
@ -165,7 +166,7 @@ public:
};
class CSGPrimitive : public CSGShape {
GDCLASS(CSGPrimitive, CSGShape)
GDCLASS(CSGPrimitive, CSGShape);
private:
bool invert_faces;
@ -182,7 +183,7 @@ public:
};
class CSGMesh : public CSGPrimitive {
GDCLASS(CSGMesh, CSGPrimitive)
GDCLASS(CSGMesh, CSGPrimitive);
virtual CSGBrush *_build_brush();
@ -204,7 +205,7 @@ public:
class CSGSphere : public CSGPrimitive {
GDCLASS(CSGSphere, CSGPrimitive)
GDCLASS(CSGSphere, CSGPrimitive);
virtual CSGBrush *_build_brush();
Ref<Material> material;
@ -237,7 +238,7 @@ public:
class CSGBox : public CSGPrimitive {
GDCLASS(CSGBox, CSGPrimitive)
GDCLASS(CSGBox, CSGPrimitive);
virtual CSGBrush *_build_brush();
Ref<Material> material;
@ -266,7 +267,7 @@ public:
class CSGCylinder : public CSGPrimitive {
GDCLASS(CSGCylinder, CSGPrimitive)
GDCLASS(CSGCylinder, CSGPrimitive);
virtual CSGBrush *_build_brush();
Ref<Material> material;
@ -303,7 +304,7 @@ public:
class CSGTorus : public CSGPrimitive {
GDCLASS(CSGTorus, CSGPrimitive)
GDCLASS(CSGTorus, CSGPrimitive);
virtual CSGBrush *_build_brush();
Ref<Material> material;
@ -340,7 +341,7 @@ public:
class CSGPolygon : public CSGPrimitive {
GDCLASS(CSGPolygon, CSGPrimitive)
GDCLASS(CSGPolygon, CSGPrimitive);
public:
enum Mode {

View file

@ -38,7 +38,8 @@
class NetworkedMultiplayerENet : public NetworkedMultiplayerPeer {
GDCLASS(NetworkedMultiplayerENet, NetworkedMultiplayerPeer)
GDCLASS(NetworkedMultiplayerENet, NetworkedMultiplayerPeer);
public:
enum CompressionMode {
COMPRESS_NONE,

View file

@ -41,7 +41,7 @@
*/
class ARVRInterfaceGDNative : public ARVRInterface {
GDCLASS(ARVRInterfaceGDNative, ARVRInterface)
GDCLASS(ARVRInterfaceGDNative, ARVRInterface);
void cleanup();

View file

@ -45,7 +45,7 @@ class GDNativeLibraryResourceLoader;
class GDNative;
class GDNativeLibrary : public Resource {
GDCLASS(GDNativeLibrary, Resource)
GDCLASS(GDNativeLibrary, Resource);
static Map<String, Vector<Ref<GDNative> > > *loaded_libraries;
@ -137,7 +137,7 @@ struct GDNativeCallRegistry {
};
class GDNative : public Reference {
GDCLASS(GDNative, Reference)
GDCLASS(GDNative, Reference);
Ref<GDNativeLibrary> library;

View file

@ -99,7 +99,7 @@ struct NativeScriptDesc {
};
class NativeScript : public Script {
GDCLASS(NativeScript, Script)
GDCLASS(NativeScript, Script);
#ifdef TOOLS_ENABLED
Set<PlaceHolderScriptInstance *> placeholders;
@ -370,7 +370,7 @@ inline NativeScriptDesc *NativeScript::get_script_desc() const {
}
class NativeReloadNode : public Node {
GDCLASS(NativeReloadNode, Node)
GDCLASS(NativeReloadNode, Node);
bool unloaded;
public:

View file

@ -36,7 +36,7 @@
#include "modules/gdnative/include/net/godot_net.h"
class MultiplayerPeerGDNative : public NetworkedMultiplayerPeer {
GDCLASS(MultiplayerPeerGDNative, NetworkedMultiplayerPeer)
GDCLASS(MultiplayerPeerGDNative, NetworkedMultiplayerPeer);
protected:
static void _bind_methods();

View file

@ -36,7 +36,7 @@
#include "modules/gdnative/include/net/godot_net.h"
class PacketPeerGDNative : public PacketPeer {
GDCLASS(PacketPeerGDNative, PacketPeer)
GDCLASS(PacketPeerGDNative, PacketPeer);
protected:
static void _bind_methods();

View file

@ -63,7 +63,7 @@ TScriptInstance *cast_script_instance(ScriptInstance *p_inst) {
class CSharpScript : public Script {
GDCLASS(CSharpScript, Script)
GDCLASS(CSharpScript, Script);
friend class CSharpInstance;
friend class CSharpLanguage;

View file

@ -35,7 +35,7 @@
#include "monodevelop_instance.h"
class GodotSharpEditor : public Node {
GDCLASS(GodotSharpEditor, Object)
GDCLASS(GodotSharpEditor, Object);
EditorNode *editor;
@ -109,7 +109,7 @@ public:
};
class MonoReloadNode : public Node {
GDCLASS(MonoReloadNode, Node)
GDCLASS(MonoReloadNode, Node);
Timer *reload_timer;

View file

@ -40,7 +40,7 @@ class MonoBuildTab;
class MonoBottomPanel : public VBoxContainer {
GDCLASS(MonoBottomPanel, VBoxContainer)
GDCLASS(MonoBottomPanel, VBoxContainer);
EditorNode *editor;
@ -87,7 +87,7 @@ public:
class MonoBuildTab : public VBoxContainer {
GDCLASS(MonoBuildTab, VBoxContainer)
GDCLASS(MonoBuildTab, VBoxContainer);
public:
enum BuildResult {

View file

@ -37,7 +37,7 @@
class MonoGCHandle : public Reference {
GDCLASS(MonoGCHandle, Reference)
GDCLASS(MonoGCHandle, Reference);
bool released;
bool weak;

View file

@ -267,7 +267,7 @@ public:
(void)__gdmono__scope__exit__domain__unload__;
class _GodotSharp : public Object {
GDCLASS(_GodotSharp, Object)
GDCLASS(_GodotSharp, Object);
friend class GDMono;

View file

@ -41,7 +41,7 @@ Error connect_signal_awaiter(Object *p_source, const String &p_signal, Object *p
class SignalAwaiterHandle : public MonoGCHandle {
GDCLASS(SignalAwaiterHandle, MonoGCHandle)
GDCLASS(SignalAwaiterHandle, MonoGCHandle);
bool completed;

View file

@ -40,7 +40,7 @@
#include "editor/property_editor.h"
class NoiseTexture : public Texture {
GDCLASS(NoiseTexture, Texture)
GDCLASS(NoiseTexture, Texture);
private:
Ref<Image> data;

View file

@ -38,7 +38,7 @@
#include "thirdparty/misc/open-simplex-noise.h"
class OpenSimplexNoise : public Resource {
GDCLASS(OpenSimplexNoise, Resource)
GDCLASS(OpenSimplexNoise, Resource);
OBJ_SAVE_TYPE(OpenSimplexNoise);
osn_context contexts[6];

View file

@ -43,7 +43,7 @@
class AudioStreamPlaybackOpus : public AudioStreamPlayback {
GDCLASS(AudioStreamPlaybackOpus, AudioStreamPlayback)
GDCLASS(AudioStreamPlaybackOpus, AudioStreamPlayback);
enum {
MIN_MIX = 1024
@ -117,7 +117,7 @@ public:
class AudioStreamOpus : public AudioStream {
GDCLASS(AudioStreamOpus, AudioStream)
GDCLASS(AudioStreamOpus, AudioStream);
String file;

View file

@ -40,7 +40,7 @@ class AudioStreamOGGVorbis;
class AudioStreamPlaybackOGGVorbis : public AudioStreamPlaybackResampled {
GDCLASS(AudioStreamPlaybackOGGVorbis, AudioStreamPlaybackResampled)
GDCLASS(AudioStreamPlaybackOGGVorbis, AudioStreamPlaybackResampled);
stb_vorbis *ogg_stream;
stb_vorbis_alloc ogg_alloc;
@ -72,7 +72,7 @@ public:
class AudioStreamOGGVorbis : public AudioStream {
GDCLASS(AudioStreamOGGVorbis, AudioStream)
GDCLASS(AudioStreamOGGVorbis, AudioStream);
OBJ_SAVE_TYPE(AudioStream) //children are all saved as AudioStream, so they can be exchanged
RES_BASE_EXTENSION("oggstr");

View file

@ -35,7 +35,8 @@
#include "core/io/resource_importer.h"
class ResourceImporterOGGVorbis : public ResourceImporter {
GDCLASS(ResourceImporterOGGVorbis, ResourceImporter)
GDCLASS(ResourceImporterOGGVorbis, ResourceImporter);
public:
virtual String get_importer_name() const;
virtual String get_visible_name() const;

View file

@ -39,7 +39,7 @@ class VisualScriptNodeInstance;
class VisualScript;
class VisualScriptNode : public Resource {
GDCLASS(VisualScriptNode, Resource)
GDCLASS(VisualScriptNode, Resource);
friend class VisualScript;
@ -165,7 +165,7 @@ public:
class VisualScript : public Script {
GDCLASS(VisualScript, Script)
GDCLASS(VisualScript, Script);
RES_BASE_EXTENSION("vs");

View file

@ -35,7 +35,8 @@
class VisualScriptBuiltinFunc : public VisualScriptNode {
GDCLASS(VisualScriptBuiltinFunc, VisualScriptNode)
GDCLASS(VisualScriptBuiltinFunc, VisualScriptNode);
public:
enum BuiltinFunc {
MATH_SIN,

View file

@ -46,7 +46,7 @@
#ifdef TOOLS_ENABLED
class VisualScriptEditorSignalEdit : public Object {
GDCLASS(VisualScriptEditorSignalEdit, Object)
GDCLASS(VisualScriptEditorSignalEdit, Object);
StringName sig;
@ -186,7 +186,7 @@ public:
class VisualScriptEditorVariableEdit : public Object {
GDCLASS(VisualScriptEditorVariableEdit, Object)
GDCLASS(VisualScriptEditorVariableEdit, Object);
StringName var;

View file

@ -44,7 +44,7 @@ class VisualScriptEditorVariableEdit;
#ifdef TOOLS_ENABLED
class VisualScriptEditor : public ScriptEditorBase {
GDCLASS(VisualScriptEditor, ScriptEditorBase)
GDCLASS(VisualScriptEditor, ScriptEditorBase);
enum {
TYPE_SEQUENCE = 1000,

View file

@ -36,7 +36,7 @@
class VisualScriptExpression : public VisualScriptNode {
GDCLASS(VisualScriptExpression, VisualScriptNode)
GDCLASS(VisualScriptExpression, VisualScriptNode);
friend class VisualScriptNodeInstanceExpression;
struct Input {

View file

@ -35,7 +35,7 @@
class VisualScriptReturn : public VisualScriptNode {
GDCLASS(VisualScriptReturn, VisualScriptNode)
GDCLASS(VisualScriptReturn, VisualScriptNode);
Variant::Type type;
bool with_value;
@ -72,7 +72,7 @@ public:
class VisualScriptCondition : public VisualScriptNode {
GDCLASS(VisualScriptCondition, VisualScriptNode)
GDCLASS(VisualScriptCondition, VisualScriptNode);
protected:
static void _bind_methods();
@ -100,7 +100,7 @@ public:
class VisualScriptWhile : public VisualScriptNode {
GDCLASS(VisualScriptWhile, VisualScriptNode)
GDCLASS(VisualScriptWhile, VisualScriptNode);
protected:
static void _bind_methods();
@ -128,7 +128,7 @@ public:
class VisualScriptIterator : public VisualScriptNode {
GDCLASS(VisualScriptIterator, VisualScriptNode)
GDCLASS(VisualScriptIterator, VisualScriptNode);
protected:
static void _bind_methods();
@ -156,7 +156,7 @@ public:
class VisualScriptSequence : public VisualScriptNode {
GDCLASS(VisualScriptSequence, VisualScriptNode)
GDCLASS(VisualScriptSequence, VisualScriptNode);
int steps;
@ -189,7 +189,7 @@ public:
class VisualScriptSwitch : public VisualScriptNode {
GDCLASS(VisualScriptSwitch, VisualScriptNode)
GDCLASS(VisualScriptSwitch, VisualScriptNode);
struct Case {
Variant::Type type;
@ -231,7 +231,7 @@ public:
class VisualScriptTypeCast : public VisualScriptNode {
GDCLASS(VisualScriptTypeCast, VisualScriptNode)
GDCLASS(VisualScriptTypeCast, VisualScriptNode);
StringName base_type;
String script;

View file

@ -35,7 +35,8 @@
class VisualScriptFunctionCall : public VisualScriptNode {
GDCLASS(VisualScriptFunctionCall, VisualScriptNode)
GDCLASS(VisualScriptFunctionCall, VisualScriptNode);
public:
enum CallMode {
CALL_MODE_SELF,
@ -137,7 +138,8 @@ VARIANT_ENUM_CAST(VisualScriptFunctionCall::RPCCallMode);
class VisualScriptPropertySet : public VisualScriptNode {
GDCLASS(VisualScriptPropertySet, VisualScriptNode)
GDCLASS(VisualScriptPropertySet, VisualScriptNode);
public:
enum CallMode {
CALL_MODE_SELF,
@ -242,7 +244,8 @@ VARIANT_ENUM_CAST(VisualScriptPropertySet::AssignOp);
class VisualScriptPropertyGet : public VisualScriptNode {
GDCLASS(VisualScriptPropertyGet, VisualScriptNode)
GDCLASS(VisualScriptPropertyGet, VisualScriptNode);
public:
enum CallMode {
CALL_MODE_SELF,
@ -323,7 +326,7 @@ VARIANT_ENUM_CAST(VisualScriptPropertyGet::CallMode);
class VisualScriptEmitSignal : public VisualScriptNode {
GDCLASS(VisualScriptEmitSignal, VisualScriptNode)
GDCLASS(VisualScriptEmitSignal, VisualScriptNode);
private:
StringName name;

View file

@ -35,7 +35,7 @@
class VisualScriptFunction : public VisualScriptNode {
GDCLASS(VisualScriptFunction, VisualScriptNode)
GDCLASS(VisualScriptFunction, VisualScriptNode);
struct Argument {
String name;
@ -105,7 +105,7 @@ public:
class VisualScriptOperator : public VisualScriptNode {
GDCLASS(VisualScriptOperator, VisualScriptNode)
GDCLASS(VisualScriptOperator, VisualScriptNode);
Variant::Type typed;
Variant::Operator op;
@ -141,7 +141,7 @@ public:
class VisualScriptSelect : public VisualScriptNode {
GDCLASS(VisualScriptSelect, VisualScriptNode)
GDCLASS(VisualScriptSelect, VisualScriptNode);
Variant::Type typed;
@ -174,7 +174,7 @@ public:
class VisualScriptVariableGet : public VisualScriptNode {
GDCLASS(VisualScriptVariableGet, VisualScriptNode)
GDCLASS(VisualScriptVariableGet, VisualScriptNode);
StringName variable;
@ -207,7 +207,7 @@ public:
class VisualScriptVariableSet : public VisualScriptNode {
GDCLASS(VisualScriptVariableSet, VisualScriptNode)
GDCLASS(VisualScriptVariableSet, VisualScriptNode);
StringName variable;
@ -240,7 +240,7 @@ public:
class VisualScriptConstant : public VisualScriptNode {
GDCLASS(VisualScriptConstant, VisualScriptNode)
GDCLASS(VisualScriptConstant, VisualScriptNode);
Variant::Type type;
Variant value;
@ -277,7 +277,7 @@ public:
class VisualScriptPreload : public VisualScriptNode {
GDCLASS(VisualScriptPreload, VisualScriptNode)
GDCLASS(VisualScriptPreload, VisualScriptNode);
Ref<Resource> preload;
@ -309,7 +309,7 @@ public:
class VisualScriptIndexGet : public VisualScriptNode {
GDCLASS(VisualScriptIndexGet, VisualScriptNode)
GDCLASS(VisualScriptIndexGet, VisualScriptNode);
public:
virtual int get_output_sequence_port_count() const;
@ -333,7 +333,7 @@ public:
class VisualScriptIndexSet : public VisualScriptNode {
GDCLASS(VisualScriptIndexSet, VisualScriptNode)
GDCLASS(VisualScriptIndexSet, VisualScriptNode);
public:
virtual int get_output_sequence_port_count() const;
@ -357,7 +357,7 @@ public:
class VisualScriptGlobalConstant : public VisualScriptNode {
GDCLASS(VisualScriptGlobalConstant, VisualScriptNode)
GDCLASS(VisualScriptGlobalConstant, VisualScriptNode);
int index;
@ -388,7 +388,7 @@ public:
class VisualScriptClassConstant : public VisualScriptNode {
GDCLASS(VisualScriptClassConstant, VisualScriptNode)
GDCLASS(VisualScriptClassConstant, VisualScriptNode);
StringName base_type;
StringName name;
@ -425,7 +425,7 @@ public:
class VisualScriptBasicTypeConstant : public VisualScriptNode {
GDCLASS(VisualScriptBasicTypeConstant, VisualScriptNode)
GDCLASS(VisualScriptBasicTypeConstant, VisualScriptNode);
Variant::Type type;
StringName name;
@ -463,7 +463,8 @@ public:
class VisualScriptMathConstant : public VisualScriptNode {
GDCLASS(VisualScriptMathConstant, VisualScriptNode)
GDCLASS(VisualScriptMathConstant, VisualScriptNode);
public:
enum MathConstant {
MATH_CONSTANT_ONE,
@ -512,7 +513,7 @@ VARIANT_ENUM_CAST(VisualScriptMathConstant::MathConstant)
class VisualScriptEngineSingleton : public VisualScriptNode {
GDCLASS(VisualScriptEngineSingleton, VisualScriptNode)
GDCLASS(VisualScriptEngineSingleton, VisualScriptNode);
String singleton;
@ -545,7 +546,7 @@ public:
class VisualScriptSceneNode : public VisualScriptNode {
GDCLASS(VisualScriptSceneNode, VisualScriptNode)
GDCLASS(VisualScriptSceneNode, VisualScriptNode);
NodePath path;
@ -580,7 +581,7 @@ public:
class VisualScriptSceneTree : public VisualScriptNode {
GDCLASS(VisualScriptSceneTree, VisualScriptNode)
GDCLASS(VisualScriptSceneTree, VisualScriptNode);
protected:
virtual void _validate_property(PropertyInfo &property) const;
@ -610,7 +611,7 @@ public:
class VisualScriptResourcePath : public VisualScriptNode {
GDCLASS(VisualScriptResourcePath, VisualScriptNode)
GDCLASS(VisualScriptResourcePath, VisualScriptNode);
String path;
@ -642,7 +643,7 @@ public:
class VisualScriptSelf : public VisualScriptNode {
GDCLASS(VisualScriptSelf, VisualScriptNode)
GDCLASS(VisualScriptSelf, VisualScriptNode);
protected:
static void _bind_methods();
@ -671,7 +672,7 @@ public:
class VisualScriptCustomNode : public VisualScriptNode {
GDCLASS(VisualScriptCustomNode, VisualScriptNode)
GDCLASS(VisualScriptCustomNode, VisualScriptNode);
protected:
static void _bind_methods();
@ -719,7 +720,7 @@ VARIANT_ENUM_CAST(VisualScriptCustomNode::StartMode);
class VisualScriptSubCall : public VisualScriptNode {
GDCLASS(VisualScriptSubCall, VisualScriptNode)
GDCLASS(VisualScriptSubCall, VisualScriptNode);
protected:
static void _bind_methods();
@ -747,7 +748,7 @@ public:
class VisualScriptComment : public VisualScriptNode {
GDCLASS(VisualScriptComment, VisualScriptNode)
GDCLASS(VisualScriptComment, VisualScriptNode);
String title;
String description;
@ -788,7 +789,7 @@ public:
class VisualScriptConstructor : public VisualScriptNode {
GDCLASS(VisualScriptConstructor, VisualScriptNode)
GDCLASS(VisualScriptConstructor, VisualScriptNode);
Variant::Type type;
MethodInfo constructor;
@ -824,7 +825,7 @@ public:
class VisualScriptLocalVar : public VisualScriptNode {
GDCLASS(VisualScriptLocalVar, VisualScriptNode)
GDCLASS(VisualScriptLocalVar, VisualScriptNode);
StringName name;
Variant::Type type;
@ -860,7 +861,7 @@ public:
class VisualScriptLocalVarSet : public VisualScriptNode {
GDCLASS(VisualScriptLocalVarSet, VisualScriptNode)
GDCLASS(VisualScriptLocalVarSet, VisualScriptNode);
StringName name;
Variant::Type type;
@ -897,7 +898,8 @@ public:
class VisualScriptInputAction : public VisualScriptNode {
GDCLASS(VisualScriptInputAction, VisualScriptNode)
GDCLASS(VisualScriptInputAction, VisualScriptNode);
public:
enum Mode {
MODE_PRESSED,
@ -944,7 +946,7 @@ VARIANT_ENUM_CAST(VisualScriptInputAction::Mode)
class VisualScriptDeconstruct : public VisualScriptNode {
GDCLASS(VisualScriptDeconstruct, VisualScriptNode)
GDCLASS(VisualScriptDeconstruct, VisualScriptNode);
struct Element {
StringName name;

View file

@ -36,7 +36,7 @@
#include "scene/gui/rich_text_label.h"
class VisualScriptPropertySelector : public ConfirmationDialog {
GDCLASS(VisualScriptPropertySelector, ConfirmationDialog)
GDCLASS(VisualScriptPropertySelector, ConfirmationDialog);
LineEdit *search_box;
Tree *search_options;

View file

@ -35,7 +35,8 @@
class VisualScriptYield : public VisualScriptNode {
GDCLASS(VisualScriptYield, VisualScriptNode)
GDCLASS(VisualScriptYield, VisualScriptNode);
public:
enum YieldMode {
YIELD_RETURN,
@ -84,7 +85,8 @@ VARIANT_ENUM_CAST(VisualScriptYield::YieldMode)
class VisualScriptYieldSignal : public VisualScriptNode {
GDCLASS(VisualScriptYieldSignal, VisualScriptNode)
GDCLASS(VisualScriptYieldSignal, VisualScriptNode);
public:
enum CallMode {
CALL_MODE_SELF,

View file

@ -41,7 +41,7 @@ class OpusVorbisDecoder;
class VideoStreamPlaybackWebm : public VideoStreamPlayback {
GDCLASS(VideoStreamPlaybackWebm, VideoStreamPlayback)
GDCLASS(VideoStreamPlaybackWebm, VideoStreamPlayback);
String file_name;
int audio_track;

View file

@ -208,7 +208,7 @@ static const LauncherIcon launcher_icons[] = {
class EditorExportPlatformAndroid : public EditorExportPlatform {
GDCLASS(EditorExportPlatformAndroid, EditorExportPlatform)
GDCLASS(EditorExportPlatformAndroid, EditorExportPlatform);
Ref<ImageTexture> logo;
Ref<ImageTexture> run_icon;

View file

@ -40,7 +40,7 @@
class EditorExportPlatformJavaScript : public EditorExportPlatform {
GDCLASS(EditorExportPlatformJavaScript, EditorExportPlatform)
GDCLASS(EditorExportPlatformJavaScript, EditorExportPlatform);
Ref<ImageTexture> logo;
Ref<ImageTexture> run_icon;

View file

@ -37,7 +37,7 @@
class AudioStreamPlayer2D : public Node2D {
GDCLASS(AudioStreamPlayer2D, Node2D)
GDCLASS(AudioStreamPlayer2D, Node2D);
private:
enum {

View file

@ -46,7 +46,7 @@ class StyleBox;
class CanvasItemMaterial : public Material {
GDCLASS(CanvasItemMaterial, Material)
GDCLASS(CanvasItemMaterial, Material);
public:
enum BlendMode {

View file

@ -36,7 +36,7 @@
class CollisionObject2D : public Node2D {
GDCLASS(CollisionObject2D, Node2D)
GDCLASS(CollisionObject2D, Node2D);
bool area;
RID rid;

View file

@ -38,7 +38,7 @@ class CollisionObject2D;
class CollisionShape2D : public Node2D {
GDCLASS(CollisionShape2D, Node2D)
GDCLASS(CollisionShape2D, Node2D);
Ref<Shape2D> shape;
Rect2 rect;
uint32_t owner_id;

View file

@ -35,7 +35,7 @@
class Line2D : public Node2D {
GDCLASS(Line2D, Node2D)
GDCLASS(Line2D, Node2D);
public:
enum LineJointMode {

View file

@ -34,7 +34,7 @@
#include "scene/2d/node_2d.h"
class MeshInstance2D : public Node2D {
GDCLASS(MeshInstance2D, Node2D)
GDCLASS(MeshInstance2D, Node2D);
Ref<Mesh> mesh;

View file

@ -37,7 +37,7 @@
class Particles2D : public Node2D {
private:
GDCLASS(Particles2D, Node2D)
GDCLASS(Particles2D, Node2D);
public:
enum DrawOrder {

View file

@ -35,7 +35,7 @@
class Position2D : public Node2D {
GDCLASS(Position2D, Node2D)
GDCLASS(Position2D, Node2D);
void _draw_cross();

View file

@ -36,7 +36,7 @@
class Skeleton2D;
class Bone2D : public Node2D {
GDCLASS(Bone2D, Node2D)
GDCLASS(Bone2D, Node2D);
friend class Skeleton2D;
#ifdef TOOLS_ENABLED

Some files were not shown because too many files have changed in this diff Show more