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.meta;
17 import godot.core;
18 import godot.c;
19 import godot.d.bind;
20 import godot.d.reference;
21 import godot.object;
22 import godot.classdb;
23 import godot.visualscriptnode;
24 import godot.resource;
25 import godot.reference;
26 /**
27 
28 */
29 @GodotBaseClass struct VisualScriptYieldSignal
30 {
31 	enum string _GODOT_internal_name = "VisualScriptYieldSignal";
32 public:
33 @nogc nothrow:
34 	union { godot_object _godot_object; VisualScriptNode _GODOT_base; }
35 	alias _GODOT_base this;
36 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
37 	package(godot) __gshared bool _classBindingInitialized = false;
38 	package(godot) static struct _classBinding
39 	{
40 		__gshared:
41 		@GodotName("set_base_type") GodotMethod!(void, String) setBaseType;
42 		@GodotName("get_base_type") GodotMethod!(String) getBaseType;
43 		@GodotName("set_signal") GodotMethod!(void, String) setSignal;
44 		@GodotName("get_signal") GodotMethod!(String) getSignal;
45 		@GodotName("set_call_mode") GodotMethod!(void, long) setCallMode;
46 		@GodotName("get_call_mode") GodotMethod!(VisualScriptYieldSignal.CallMode) getCallMode;
47 		@GodotName("set_base_path") GodotMethod!(void, NodePath) setBasePath;
48 		@GodotName("get_base_path") GodotMethod!(NodePath) getBasePath;
49 	}
50 	bool opEquals(in VisualScriptYieldSignal other) const { return _godot_object.ptr is other._godot_object.ptr; }
51 	VisualScriptYieldSignal opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; }
52 	bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; }
53 	mixin baseCasts;
54 	static VisualScriptYieldSignal _new()
55 	{
56 		static godot_class_constructor constructor;
57 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("VisualScriptYieldSignal");
58 		if(constructor is null) return typeof(this).init;
59 		return cast(VisualScriptYieldSignal)(constructor());
60 	}
61 	@disable new(size_t s);
62 	/// 
63 	enum CallMode : int
64 	{
65 		/**
66 		
67 		*/
68 		callModeSelf = 0,
69 		/**
70 		
71 		*/
72 		callModeNodePath = 1,
73 		/**
74 		
75 		*/
76 		callModeInstance = 2,
77 	}
78 	/// 
79 	enum Constants : int
80 	{
81 		callModeSelf = 0,
82 		callModeNodePath = 1,
83 		callModeInstance = 2,
84 	}
85 	/**
86 	
87 	*/
88 	void setBaseType(StringArg0)(in StringArg0 base_type)
89 	{
90 		checkClassBinding!(typeof(this))();
91 		ptrcall!(void)(_classBinding.setBaseType, _godot_object, base_type);
92 	}
93 	/**
94 	
95 	*/
96 	String getBaseType() const
97 	{
98 		checkClassBinding!(typeof(this))();
99 		return ptrcall!(String)(_classBinding.getBaseType, _godot_object);
100 	}
101 	/**
102 	
103 	*/
104 	void setSignal(StringArg0)(in StringArg0 signal)
105 	{
106 		checkClassBinding!(typeof(this))();
107 		ptrcall!(void)(_classBinding.setSignal, _godot_object, signal);
108 	}
109 	/**
110 	
111 	*/
112 	String getSignal() const
113 	{
114 		checkClassBinding!(typeof(this))();
115 		return ptrcall!(String)(_classBinding.getSignal, _godot_object);
116 	}
117 	/**
118 	
119 	*/
120 	void setCallMode(in long mode)
121 	{
122 		checkClassBinding!(typeof(this))();
123 		ptrcall!(void)(_classBinding.setCallMode, _godot_object, mode);
124 	}
125 	/**
126 	
127 	*/
128 	VisualScriptYieldSignal.CallMode getCallMode() const
129 	{
130 		checkClassBinding!(typeof(this))();
131 		return ptrcall!(VisualScriptYieldSignal.CallMode)(_classBinding.getCallMode, _godot_object);
132 	}
133 	/**
134 	
135 	*/
136 	void setBasePath(NodePathArg0)(in NodePathArg0 base_path)
137 	{
138 		checkClassBinding!(typeof(this))();
139 		ptrcall!(void)(_classBinding.setBasePath, _godot_object, base_path);
140 	}
141 	/**
142 	
143 	*/
144 	NodePath getBasePath() const
145 	{
146 		checkClassBinding!(typeof(this))();
147 		return ptrcall!(NodePath)(_classBinding.getBasePath, _godot_object);
148 	}
149 	/**
150 	
151 	*/
152 	@property VisualScriptYieldSignal.CallMode callMode()
153 	{
154 		return getCallMode();
155 	}
156 	/// ditto
157 	@property void callMode(long v)
158 	{
159 		setCallMode(v);
160 	}
161 	/**
162 	
163 	*/
164 	@property String baseType()
165 	{
166 		return getBaseType();
167 	}
168 	/// ditto
169 	@property void baseType(String v)
170 	{
171 		setBaseType(v);
172 	}
173 	/**
174 	
175 	*/
176 	@property NodePath nodePath()
177 	{
178 		return getBasePath();
179 	}
180 	/// ditto
181 	@property void nodePath(NodePath v)
182 	{
183 		setBasePath(v);
184 	}
185 	/**
186 	
187 	*/
188 	@property String signal()
189 	{
190 		return getSignal();
191 	}
192 	/// ditto
193 	@property void signal(String v)
194 	{
195 		setSignal(v);
196 	}
197 }