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.animationnodeanimation;
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.animationrootnode;
24 import godot.animationnode;
25 import godot.resource;
26 import godot.reference;
27 /**
28 
29 */
30 @GodotBaseClass struct AnimationNodeAnimation
31 {
32 	enum string _GODOT_internal_name = "AnimationNodeAnimation";
33 public:
34 @nogc nothrow:
35 	union { godot_object _godot_object; AnimationRootNode _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 _classBinding
40 	{
41 		__gshared:
42 		@GodotName("set_animation") GodotMethod!(void, String) setAnimation;
43 		@GodotName("get_animation") GodotMethod!(String) getAnimation;
44 		@GodotName("get_playback_time") GodotMethod!(double) getPlaybackTime;
45 	}
46 	bool opEquals(in AnimationNodeAnimation other) const { return _godot_object.ptr is other._godot_object.ptr; }
47 	AnimationNodeAnimation opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; }
48 	bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; }
49 	mixin baseCasts;
50 	static AnimationNodeAnimation _new()
51 	{
52 		static godot_class_constructor constructor;
53 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("AnimationNodeAnimation");
54 		if(constructor is null) return typeof(this).init;
55 		return cast(AnimationNodeAnimation)(constructor());
56 	}
57 	@disable new(size_t s);
58 	/**
59 	
60 	*/
61 	void setAnimation(StringArg0)(in StringArg0 name)
62 	{
63 		checkClassBinding!(typeof(this))();
64 		ptrcall!(void)(_classBinding.setAnimation, _godot_object, name);
65 	}
66 	/**
67 	
68 	*/
69 	String getAnimation() const
70 	{
71 		checkClassBinding!(typeof(this))();
72 		return ptrcall!(String)(_classBinding.getAnimation, _godot_object);
73 	}
74 	/**
75 	
76 	*/
77 	double getPlaybackTime() const
78 	{
79 		checkClassBinding!(typeof(this))();
80 		return ptrcall!(double)(_classBinding.getPlaybackTime, _godot_object);
81 	}
82 	/**
83 	
84 	*/
85 	@property String animation()
86 	{
87 		return getAnimation();
88 	}
89 	/// ditto
90 	@property void animation(String v)
91 	{
92 		setAnimation(v);
93 	}
94 }