forked from openfl/lime
-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathLibrary.hx
More file actions
40 lines (34 loc) · 857 Bytes
/
Library.hx
File metadata and controls
40 lines (34 loc) · 857 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
package lime.tools;
import hxp.Path;
class Library
{
public var embed:Null<Bool>;
public var generate:Null<Bool>;
public var name:String;
public var prefix:String;
public var preload:Null<Bool>;
public var sourcePath:String;
public var type:String;
public function new(sourcePath:String, name:String = "", type:String = null, embed:Null<Bool> = null, preload:Null<Bool> = null,
generate:Null<Bool> = null, prefix:String = "")
{
this.sourcePath = sourcePath;
if (name == "")
{
this.name = Path.withoutDirectory(Path.withoutExtension(sourcePath));
}
else
{
this.name = name;
}
this.type = type;
this.embed = embed;
this.preload = preload;
this.generate = generate;
this.prefix = prefix;
}
public function clone():Library
{
return new Library(sourcePath, name, type, embed, preload, generate, prefix);
}
}