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.animationnodestatemachineplayback;
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.resource;
24 import godot.reference;
25 /**
26 
27 */
28 @GodotBaseClass struct AnimationNodeStateMachinePlayback
29 {
30 	enum string _GODOT_internal_name = "AnimationNodeStateMachinePlayback";
31 public:
32 @nogc nothrow:
33 	union { godot_object _godot_object; Resource _GODOT_base; }
34 	alias _GODOT_base this;
35 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
36 	package(godot) __gshared bool _classBindingInitialized = false;
37 	package(godot) static struct _classBinding
38 	{
39 		__gshared:
40 		@GodotName("travel") GodotMethod!(void, String) travel;
41 		@GodotName("start") GodotMethod!(void, String) start;
42 		@GodotName("stop") GodotMethod!(void) stop;
43 		@GodotName("is_playing") GodotMethod!(bool) isPlaying;
44 		@GodotName("get_current_node") GodotMethod!(String) getCurrentNode;
45 		@GodotName("get_travel_path") GodotMethod!(PoolStringArray) getTravelPath;
46 	}
47 	bool opEquals(in AnimationNodeStateMachinePlayback other) const { return _godot_object.ptr is other._godot_object.ptr; }
48 	AnimationNodeStateMachinePlayback opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; }
49 	bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; }
50 	mixin baseCasts;
51 	static AnimationNodeStateMachinePlayback _new()
52 	{
53 		static godot_class_constructor constructor;
54 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("AnimationNodeStateMachinePlayback");
55 		if(constructor is null) return typeof(this).init;
56 		return cast(AnimationNodeStateMachinePlayback)(constructor());
57 	}
58 	@disable new(size_t s);
59 	/**
60 	
61 	*/
62 	void travel(StringArg0)(in StringArg0 to_node)
63 	{
64 		checkClassBinding!(typeof(this))();
65 		ptrcall!(void)(_classBinding.travel, _godot_object, to_node);
66 	}
67 	/**
68 	
69 	*/
70 	void start(StringArg0)(in StringArg0 node)
71 	{
72 		checkClassBinding!(typeof(this))();
73 		ptrcall!(void)(_classBinding.start, _godot_object, node);
74 	}
75 	/**
76 	
77 	*/
78 	void stop()
79 	{
80 		checkClassBinding!(typeof(this))();
81 		ptrcall!(void)(_classBinding.stop, _godot_object);
82 	}
83 	/**
84 	
85 	*/
86 	bool isPlaying() const
87 	{
88 		checkClassBinding!(typeof(this))();
89 		return ptrcall!(bool)(_classBinding.isPlaying, _godot_object);
90 	}
91 	/**
92 	
93 	*/
94 	String getCurrentNode() const
95 	{
96 		checkClassBinding!(typeof(this))();
97 		return ptrcall!(String)(_classBinding.getCurrentNode, _godot_object);
98 	}
99 	/**
100 	
101 	*/
102 	PoolStringArray getTravelPath() const
103 	{
104 		checkClassBinding!(typeof(this))();
105 		return ptrcall!(PoolStringArray)(_classBinding.getTravelPath, _godot_object);
106 	}
107 }