1 /**
2 
3 
4 Copyright:
5 Copyright (c) 2007-2018 Juan Linietsky, Ariel Manzur.  
6 Copyright (c) 2014-2018 Godot Engine contributors (cf. AUTHORS.md)  
7 Copyright (c) 2017-2018 Godot-D contributors  
8 
9 License: $(LINK2 https://opensource.org/licenses/MIT, MIT License)
10 
11 
12 */
13 module godot.visualscriptyieldsignal;
14 import std.meta : AliasSeq, staticIndexOf;
15 import std.traits : Unqual;
16 import godot.d.traits;
17 import godot.core;
18 import godot.c;
19 import godot.d.bind;
20 import godot.d.reference;
21 import godot.globalenums;
22 import godot.object;
23 import godot.classdb;
24 import godot.visualscriptnode;
25 import godot.resource;
26 import godot.reference;
27 /**
28 
29 */
30 @GodotBaseClass struct VisualScriptYieldSignal
31 {
32 	package(godot) enum string _GODOT_internal_name = "VisualScriptYieldSignal";
33 public:
34 @nogc nothrow:
35 	union { /** */ godot_object _godot_object; /** */ VisualScriptNode _GODOT_base; }
36 	alias _GODOT_base this;
37 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
38 	package(godot) __gshared bool _classBindingInitialized = false;
39 	package(godot) static struct GDNativeClassBinding
40 	{
41 		__gshared:
42 		@GodotName("get_base_path") GodotMethod!(NodePath) getBasePath;
43 		@GodotName("get_base_type") GodotMethod!(String) getBaseType;
44 		@GodotName("get_call_mode") GodotMethod!(VisualScriptYieldSignal.CallMode) getCallMode;
45 		@GodotName("get_signal") GodotMethod!(String) getSignal;
46 		@GodotName("set_base_path") GodotMethod!(void, NodePath) setBasePath;
47 		@GodotName("set_base_type") GodotMethod!(void, String) setBaseType;
48 		@GodotName("set_call_mode") GodotMethod!(void, long) setCallMode;
49 		@GodotName("set_signal") GodotMethod!(void, String) setSignal;
50 	}
51 	/// 
52 	pragma(inline, true) bool opEquals(in VisualScriptYieldSignal other) const
53 	{ return _godot_object.ptr is other._godot_object.ptr; }
54 	/// 
55 	pragma(inline, true) typeof(null) opAssign(typeof(null) n)
56 	{ _godot_object.ptr = n; return null; }
57 	/// 
58 	pragma(inline, true) bool opEquals(typeof(null) n) const
59 	{ return _godot_object.ptr is n; }
60 	/// 
61 	size_t toHash() const @trusted { return cast(size_t)_godot_object.ptr; }
62 	mixin baseCasts;
63 	/// Construct a new instance of VisualScriptYieldSignal.
64 	/// Note: use `memnew!VisualScriptYieldSignal` instead.
65 	static VisualScriptYieldSignal _new()
66 	{
67 		static godot_class_constructor constructor;
68 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("VisualScriptYieldSignal");
69 		if(constructor is null) return typeof(this).init;
70 		return cast(VisualScriptYieldSignal)(constructor());
71 	}
72 	@disable new(size_t s);
73 	/// 
74 	enum CallMode : int
75 	{
76 		/**
77 		
78 		*/
79 		callModeSelf = 0,
80 		/**
81 		
82 		*/
83 		callModeNodePath = 1,
84 		/**
85 		
86 		*/
87 		callModeInstance = 2,
88 	}
89 	/// 
90 	enum Constants : int
91 	{
92 		callModeSelf = 0,
93 		callModeNodePath = 1,
94 		callModeInstance = 2,
95 	}
96 	/**
97 	
98 	*/
99 	NodePath getBasePath() const
100 	{
101 		checkClassBinding!(typeof(this))();
102 		return ptrcall!(NodePath)(GDNativeClassBinding.getBasePath, _godot_object);
103 	}
104 	/**
105 	
106 	*/
107 	String getBaseType() const
108 	{
109 		checkClassBinding!(typeof(this))();
110 		return ptrcall!(String)(GDNativeClassBinding.getBaseType, _godot_object);
111 	}
112 	/**
113 	
114 	*/
115 	VisualScriptYieldSignal.CallMode getCallMode() const
116 	{
117 		checkClassBinding!(typeof(this))();
118 		return ptrcall!(VisualScriptYieldSignal.CallMode)(GDNativeClassBinding.getCallMode, _godot_object);
119 	}
120 	/**
121 	
122 	*/
123 	String getSignal() const
124 	{
125 		checkClassBinding!(typeof(this))();
126 		return ptrcall!(String)(GDNativeClassBinding.getSignal, _godot_object);
127 	}
128 	/**
129 	
130 	*/
131 	void setBasePath(NodePathArg0)(in NodePathArg0 base_path)
132 	{
133 		checkClassBinding!(typeof(this))();
134 		ptrcall!(void)(GDNativeClassBinding.setBasePath, _godot_object, base_path);
135 	}
136 	/**
137 	
138 	*/
139 	void setBaseType(in String base_type)
140 	{
141 		checkClassBinding!(typeof(this))();
142 		ptrcall!(void)(GDNativeClassBinding.setBaseType, _godot_object, base_type);
143 	}
144 	/**
145 	
146 	*/
147 	void setCallMode(in long mode)
148 	{
149 		checkClassBinding!(typeof(this))();
150 		ptrcall!(void)(GDNativeClassBinding.setCallMode, _godot_object, mode);
151 	}
152 	/**
153 	
154 	*/
155 	void setSignal(in String signal)
156 	{
157 		checkClassBinding!(typeof(this))();
158 		ptrcall!(void)(GDNativeClassBinding.setSignal, _godot_object, signal);
159 	}
160 	/**
161 	
162 	*/
163 	@property String baseType()
164 	{
165 		return getBaseType();
166 	}
167 	/// ditto
168 	@property void baseType(String v)
169 	{
170 		setBaseType(v);
171 	}
172 	/**
173 	
174 	*/
175 	@property VisualScriptYieldSignal.CallMode callMode()
176 	{
177 		return getCallMode();
178 	}
179 	/// ditto
180 	@property void callMode(long v)
181 	{
182 		setCallMode(v);
183 	}
184 	/**
185 	
186 	*/
187 	@property NodePath nodePath()
188 	{
189 		return getBasePath();
190 	}
191 	/// ditto
192 	@property void nodePath(NodePath v)
193 	{
194 		setBasePath(v);
195 	}
196 	/**
197 	
198 	*/
199 	@property String signal()
200 	{
201 		return getSignal();
202 	}
203 	/// ditto
204 	@property void signal(String v)
205 	{
206 		setSignal(v);
207 	}
208 }