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.navigationmeshinstance;
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.spatial;
24 import godot.navigationmesh;
25 import godot.node;
26 /**
27 
28 */
29 @GodotBaseClass struct NavigationMeshInstance
30 {
31 	enum string _GODOT_internal_name = "NavigationMeshInstance";
32 public:
33 @nogc nothrow:
34 	union { godot_object _godot_object; Spatial _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_navigation_mesh") GodotMethod!(void, NavigationMesh) setNavigationMesh;
42 		@GodotName("get_navigation_mesh") GodotMethod!(NavigationMesh) getNavigationMesh;
43 		@GodotName("set_enabled") GodotMethod!(void, bool) setEnabled;
44 		@GodotName("is_enabled") GodotMethod!(bool) isEnabled;
45 	}
46 	bool opEquals(in NavigationMeshInstance other) const { return _godot_object.ptr is other._godot_object.ptr; }
47 	NavigationMeshInstance 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 NavigationMeshInstance _new()
51 	{
52 		static godot_class_constructor constructor;
53 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("NavigationMeshInstance");
54 		if(constructor is null) return typeof(this).init;
55 		return cast(NavigationMeshInstance)(constructor());
56 	}
57 	@disable new(size_t s);
58 	/**
59 	
60 	*/
61 	void setNavigationMesh(NavigationMesh navmesh)
62 	{
63 		checkClassBinding!(typeof(this))();
64 		ptrcall!(void)(_classBinding.setNavigationMesh, _godot_object, navmesh);
65 	}
66 	/**
67 	
68 	*/
69 	Ref!NavigationMesh getNavigationMesh() const
70 	{
71 		checkClassBinding!(typeof(this))();
72 		return ptrcall!(NavigationMesh)(_classBinding.getNavigationMesh, _godot_object);
73 	}
74 	/**
75 	
76 	*/
77 	void setEnabled(in bool enabled)
78 	{
79 		checkClassBinding!(typeof(this))();
80 		ptrcall!(void)(_classBinding.setEnabled, _godot_object, enabled);
81 	}
82 	/**
83 	
84 	*/
85 	bool isEnabled() const
86 	{
87 		checkClassBinding!(typeof(this))();
88 		return ptrcall!(bool)(_classBinding.isEnabled, _godot_object);
89 	}
90 	/**
91 	
92 	*/
93 	@property NavigationMesh navmesh()
94 	{
95 		return getNavigationMesh();
96 	}
97 	/// ditto
98 	@property void navmesh(NavigationMesh v)
99 	{
100 		setNavigationMesh(v);
101 	}
102 	/**
103 	
104 	*/
105 	@property bool enabled()
106 	{
107 		return isEnabled();
108 	}
109 	/// ditto
110 	@property void enabled(bool v)
111 	{
112 		setEnabled(v);
113 	}
114 }