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.visualscriptfunctioncall;
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 VisualScriptFunctionCall
30 {
31 	enum string _GODOT_internal_name = "VisualScriptFunctionCall";
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_base_script") GodotMethod!(void, String) setBaseScript;
44 		@GodotName("get_base_script") GodotMethod!(String) getBaseScript;
45 		@GodotName("set_basic_type") GodotMethod!(void, long) setBasicType;
46 		@GodotName("get_basic_type") GodotMethod!(Variant.Type) getBasicType;
47 		@GodotName("set_singleton") GodotMethod!(void, String) setSingleton;
48 		@GodotName("get_singleton") GodotMethod!(String) getSingleton;
49 		@GodotName("set_function") GodotMethod!(void, String) setFunction;
50 		@GodotName("get_function") GodotMethod!(String) getFunction;
51 		@GodotName("set_call_mode") GodotMethod!(void, long) setCallMode;
52 		@GodotName("get_call_mode") GodotMethod!(VisualScriptFunctionCall.CallMode) getCallMode;
53 		@GodotName("set_base_path") GodotMethod!(void, NodePath) setBasePath;
54 		@GodotName("get_base_path") GodotMethod!(NodePath) getBasePath;
55 		@GodotName("set_use_default_args") GodotMethod!(void, long) setUseDefaultArgs;
56 		@GodotName("get_use_default_args") GodotMethod!(long) getUseDefaultArgs;
57 		@GodotName("_set_argument_cache") GodotMethod!(void, Dictionary) _setArgumentCache;
58 		@GodotName("_get_argument_cache") GodotMethod!(Dictionary) _getArgumentCache;
59 		@GodotName("set_rpc_call_mode") GodotMethod!(void, long) setRpcCallMode;
60 		@GodotName("get_rpc_call_mode") GodotMethod!(VisualScriptFunctionCall.RPCCallMode) getRpcCallMode;
61 		@GodotName("set_validate") GodotMethod!(void, bool) setValidate;
62 		@GodotName("get_validate") GodotMethod!(bool) getValidate;
63 	}
64 	bool opEquals(in VisualScriptFunctionCall other) const { return _godot_object.ptr is other._godot_object.ptr; }
65 	VisualScriptFunctionCall opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; }
66 	bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; }
67 	mixin baseCasts;
68 	static VisualScriptFunctionCall _new()
69 	{
70 		static godot_class_constructor constructor;
71 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("VisualScriptFunctionCall");
72 		if(constructor is null) return typeof(this).init;
73 		return cast(VisualScriptFunctionCall)(constructor());
74 	}
75 	@disable new(size_t s);
76 	/// 
77 	enum RPCCallMode : int
78 	{
79 		/**
80 		
81 		*/
82 		rpcDisabled = 0,
83 		/**
84 		
85 		*/
86 		rpcReliable = 1,
87 		/**
88 		
89 		*/
90 		rpcUnreliable = 2,
91 		/**
92 		
93 		*/
94 		rpcReliableToId = 3,
95 		/**
96 		
97 		*/
98 		rpcUnreliableToId = 4,
99 	}
100 	/// 
101 	enum CallMode : int
102 	{
103 		/**
104 		
105 		*/
106 		callModeSelf = 0,
107 		/**
108 		
109 		*/
110 		callModeNodePath = 1,
111 		/**
112 		
113 		*/
114 		callModeInstance = 2,
115 		/**
116 		
117 		*/
118 		callModeBasicType = 3,
119 		/**
120 		
121 		*/
122 		callModeSingleton = 4,
123 	}
124 	/// 
125 	enum Constants : int
126 	{
127 		callModeSelf = 0,
128 		rpcDisabled = 0,
129 		rpcReliable = 1,
130 		callModeNodePath = 1,
131 		rpcUnreliable = 2,
132 		callModeInstance = 2,
133 		callModeBasicType = 3,
134 		rpcReliableToId = 3,
135 		callModeSingleton = 4,
136 		rpcUnreliableToId = 4,
137 	}
138 	/**
139 	
140 	*/
141 	void setBaseType(StringArg0)(in StringArg0 base_type)
142 	{
143 		checkClassBinding!(typeof(this))();
144 		ptrcall!(void)(_classBinding.setBaseType, _godot_object, base_type);
145 	}
146 	/**
147 	
148 	*/
149 	String getBaseType() const
150 	{
151 		checkClassBinding!(typeof(this))();
152 		return ptrcall!(String)(_classBinding.getBaseType, _godot_object);
153 	}
154 	/**
155 	
156 	*/
157 	void setBaseScript(StringArg0)(in StringArg0 base_script)
158 	{
159 		checkClassBinding!(typeof(this))();
160 		ptrcall!(void)(_classBinding.setBaseScript, _godot_object, base_script);
161 	}
162 	/**
163 	
164 	*/
165 	String getBaseScript() const
166 	{
167 		checkClassBinding!(typeof(this))();
168 		return ptrcall!(String)(_classBinding.getBaseScript, _godot_object);
169 	}
170 	/**
171 	
172 	*/
173 	void setBasicType(in long basic_type)
174 	{
175 		checkClassBinding!(typeof(this))();
176 		ptrcall!(void)(_classBinding.setBasicType, _godot_object, basic_type);
177 	}
178 	/**
179 	
180 	*/
181 	Variant.Type getBasicType() const
182 	{
183 		checkClassBinding!(typeof(this))();
184 		return ptrcall!(Variant.Type)(_classBinding.getBasicType, _godot_object);
185 	}
186 	/**
187 	
188 	*/
189 	void setSingleton(StringArg0)(in StringArg0 singleton)
190 	{
191 		checkClassBinding!(typeof(this))();
192 		ptrcall!(void)(_classBinding.setSingleton, _godot_object, singleton);
193 	}
194 	/**
195 	
196 	*/
197 	String getSingleton() const
198 	{
199 		checkClassBinding!(typeof(this))();
200 		return ptrcall!(String)(_classBinding.getSingleton, _godot_object);
201 	}
202 	/**
203 	
204 	*/
205 	void setFunction(StringArg0)(in StringArg0 _function)
206 	{
207 		checkClassBinding!(typeof(this))();
208 		ptrcall!(void)(_classBinding.setFunction, _godot_object, _function);
209 	}
210 	/**
211 	
212 	*/
213 	String getFunction() const
214 	{
215 		checkClassBinding!(typeof(this))();
216 		return ptrcall!(String)(_classBinding.getFunction, _godot_object);
217 	}
218 	/**
219 	
220 	*/
221 	void setCallMode(in long mode)
222 	{
223 		checkClassBinding!(typeof(this))();
224 		ptrcall!(void)(_classBinding.setCallMode, _godot_object, mode);
225 	}
226 	/**
227 	
228 	*/
229 	VisualScriptFunctionCall.CallMode getCallMode() const
230 	{
231 		checkClassBinding!(typeof(this))();
232 		return ptrcall!(VisualScriptFunctionCall.CallMode)(_classBinding.getCallMode, _godot_object);
233 	}
234 	/**
235 	
236 	*/
237 	void setBasePath(NodePathArg0)(in NodePathArg0 base_path)
238 	{
239 		checkClassBinding!(typeof(this))();
240 		ptrcall!(void)(_classBinding.setBasePath, _godot_object, base_path);
241 	}
242 	/**
243 	
244 	*/
245 	NodePath getBasePath() const
246 	{
247 		checkClassBinding!(typeof(this))();
248 		return ptrcall!(NodePath)(_classBinding.getBasePath, _godot_object);
249 	}
250 	/**
251 	
252 	*/
253 	void setUseDefaultArgs(in long amount)
254 	{
255 		checkClassBinding!(typeof(this))();
256 		ptrcall!(void)(_classBinding.setUseDefaultArgs, _godot_object, amount);
257 	}
258 	/**
259 	
260 	*/
261 	long getUseDefaultArgs() const
262 	{
263 		checkClassBinding!(typeof(this))();
264 		return ptrcall!(long)(_classBinding.getUseDefaultArgs, _godot_object);
265 	}
266 	/**
267 	
268 	*/
269 	void _setArgumentCache(in Dictionary argument_cache)
270 	{
271 		Array _GODOT_args = Array.empty_array;
272 		_GODOT_args.append(argument_cache);
273 		String _GODOT_method_name = String("_set_argument_cache");
274 		this.callv(_GODOT_method_name, _GODOT_args);
275 	}
276 	/**
277 	
278 	*/
279 	Dictionary _getArgumentCache() const
280 	{
281 		Array _GODOT_args = Array.empty_array;
282 		String _GODOT_method_name = String("_get_argument_cache");
283 		return this.callv(_GODOT_method_name, _GODOT_args).as!(RefOrT!Dictionary);
284 	}
285 	/**
286 	
287 	*/
288 	void setRpcCallMode(in long mode)
289 	{
290 		checkClassBinding!(typeof(this))();
291 		ptrcall!(void)(_classBinding.setRpcCallMode, _godot_object, mode);
292 	}
293 	/**
294 	
295 	*/
296 	VisualScriptFunctionCall.RPCCallMode getRpcCallMode() const
297 	{
298 		checkClassBinding!(typeof(this))();
299 		return ptrcall!(VisualScriptFunctionCall.RPCCallMode)(_classBinding.getRpcCallMode, _godot_object);
300 	}
301 	/**
302 	
303 	*/
304 	void setValidate(in bool enable)
305 	{
306 		checkClassBinding!(typeof(this))();
307 		ptrcall!(void)(_classBinding.setValidate, _godot_object, enable);
308 	}
309 	/**
310 	
311 	*/
312 	bool getValidate() const
313 	{
314 		checkClassBinding!(typeof(this))();
315 		return ptrcall!(bool)(_classBinding.getValidate, _godot_object);
316 	}
317 	/**
318 	
319 	*/
320 	@property VisualScriptFunctionCall.CallMode callMode()
321 	{
322 		return getCallMode();
323 	}
324 	/// ditto
325 	@property void callMode(long v)
326 	{
327 		setCallMode(v);
328 	}
329 	/**
330 	
331 	*/
332 	@property String baseType()
333 	{
334 		return getBaseType();
335 	}
336 	/// ditto
337 	@property void baseType(String v)
338 	{
339 		setBaseType(v);
340 	}
341 	/**
342 	
343 	*/
344 	@property String baseScript()
345 	{
346 		return getBaseScript();
347 	}
348 	/// ditto
349 	@property void baseScript(String v)
350 	{
351 		setBaseScript(v);
352 	}
353 	/**
354 	
355 	*/
356 	@property String singleton()
357 	{
358 		return getSingleton();
359 	}
360 	/// ditto
361 	@property void singleton(String v)
362 	{
363 		setSingleton(v);
364 	}
365 	/**
366 	
367 	*/
368 	@property Variant.Type basicType()
369 	{
370 		return getBasicType();
371 	}
372 	/// ditto
373 	@property void basicType(long v)
374 	{
375 		setBasicType(v);
376 	}
377 	/**
378 	
379 	*/
380 	@property NodePath nodePath()
381 	{
382 		return getBasePath();
383 	}
384 	/// ditto
385 	@property void nodePath(NodePath v)
386 	{
387 		setBasePath(v);
388 	}
389 	/**
390 	
391 	*/
392 	@property Dictionary argumentCache()
393 	{
394 		return _getArgumentCache();
395 	}
396 	/// ditto
397 	@property void argumentCache(Dictionary v)
398 	{
399 		_setArgumentCache(v);
400 	}
401 	/**
402 	
403 	*/
404 	@property String _function()
405 	{
406 		return getFunction();
407 	}
408 	/// ditto
409 	@property void _function(String v)
410 	{
411 		setFunction(v);
412 	}
413 	/**
414 	
415 	*/
416 	@property long useDefaultArgs()
417 	{
418 		return getUseDefaultArgs();
419 	}
420 	/// ditto
421 	@property void useDefaultArgs(long v)
422 	{
423 		setUseDefaultArgs(v);
424 	}
425 	/**
426 	
427 	*/
428 	@property bool validate()
429 	{
430 		return getValidate();
431 	}
432 	/// ditto
433 	@property void validate(bool v)
434 	{
435 		setValidate(v);
436 	}
437 	/**
438 	
439 	*/
440 	@property VisualScriptFunctionCall.RPCCallMode rpcCallMode()
441 	{
442 		return getRpcCallMode();
443 	}
444 	/// ditto
445 	@property void rpcCallMode(long v)
446 	{
447 		setRpcCallMode(v);
448 	}
449 }