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.pckpacker;
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.reference;
24 /**
25 
26 */
27 @GodotBaseClass struct PCKPacker
28 {
29 	enum string _GODOT_internal_name = "PCKPacker";
30 public:
31 @nogc nothrow:
32 	union { godot_object _godot_object; Reference _GODOT_base; }
33 	alias _GODOT_base this;
34 	alias BaseClasses = AliasSeq!(typeof(_GODOT_base), typeof(_GODOT_base).BaseClasses);
35 	package(godot) __gshared bool _classBindingInitialized = false;
36 	package(godot) static struct _classBinding
37 	{
38 		__gshared:
39 		@GodotName("pck_start") GodotMethod!(GodotError, String, long) pckStart;
40 		@GodotName("add_file") GodotMethod!(GodotError, String, String) addFile;
41 		@GodotName("flush") GodotMethod!(GodotError, bool) flush;
42 	}
43 	bool opEquals(in PCKPacker other) const { return _godot_object.ptr is other._godot_object.ptr; }
44 	PCKPacker 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 PCKPacker _new()
48 	{
49 		static godot_class_constructor constructor;
50 		if(constructor is null) constructor = _godot_api.godot_get_class_constructor("PCKPacker");
51 		if(constructor is null) return typeof(this).init;
52 		return cast(PCKPacker)(constructor());
53 	}
54 	@disable new(size_t s);
55 	/**
56 	
57 	*/
58 	GodotError pckStart(StringArg0)(in StringArg0 pck_name, in long alignment)
59 	{
60 		checkClassBinding!(typeof(this))();
61 		return ptrcall!(GodotError)(_classBinding.pckStart, _godot_object, pck_name, alignment);
62 	}
63 	/**
64 	
65 	*/
66 	GodotError addFile(StringArg0, StringArg1)(in StringArg0 pck_path, in StringArg1 source_path)
67 	{
68 		checkClassBinding!(typeof(this))();
69 		return ptrcall!(GodotError)(_classBinding.addFile, _godot_object, pck_path, source_path);
70 	}
71 	/**
72 	
73 	*/
74 	GodotError flush(in bool verbose)
75 	{
76 		checkClassBinding!(typeof(this))();
77 		return ptrcall!(GodotError)(_classBinding.flush, _godot_object, verbose);
78 	}
79 }