1 /** 2 Generic 3D Position hint for editing. 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.position3d; 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.node; 25 /** 26 Generic 3D Position hint for editing. 27 28 It's just like a plain $(D Spatial) but displays as a cross in the 3D-Editor at all times. 29 */ 30 @GodotBaseClass struct Position3D 31 { 32 enum string _GODOT_internal_name = "Position3D"; 33 public: 34 @nogc nothrow: 35 union { godot_object _godot_object; Spatial _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 } 43 bool opEquals(in Position3D other) const { return _godot_object.ptr is other._godot_object.ptr; } 44 Position3D opAssign(T : typeof(null))(T n) { _godot_object.ptr = null; } 45 bool opEquals(typeof(null) n) const { return _godot_object.ptr is null; } 46 mixin baseCasts; 47 static Position3D _new() 48 { 49 static godot_class_constructor constructor; 50 if(constructor is null) constructor = _godot_api.godot_get_class_constructor("Position3D"); 51 if(constructor is null) return typeof(this).init; 52 return cast(Position3D)(constructor()); 53 } 54 @disable new(size_t s); 55 }