1 /// Aliases used by other core types
2 module godot.core.defs;
3 
4 import godot.c;
5 
6 enum GodotError
7 {
8 	ok,
9 	failed,
10 	unavailable,
11 	unconfigured,
12 	unauthorized,
13 	parameterRangeError,
14 	outOfMemory,
15 	fileNotFound,
16 	fileBadDrive,
17 	fileBadPath,
18 	fileNoPermission,
19 	fileAlreadyInUse,
20 	fileCantOpen,
21 	fileCantWrite,
22 	fileCantRead,
23 	fileUnrecognized,
24 	fileCorrupt,
25 	fileMissingDependencies,
26 	fileEof,
27 	cantOpen,
28 	cantCreate,
29 	queryFailed,
30 	alreadyInUse,
31 	locked,
32 	timeout,
33 	cantConnect,
34 	cantResolve,
35 	connectionError,
36 	cantAcquireResource,
37 	cantFork,
38 	invalidData,
39 	invalidParameter,
40 	alreadyExists,
41 	doesNotExist,
42 	databaseCantRead,
43 	databaseCantWrite,
44 	compilationFailed,
45 	methodNotFound,
46 	linkFailed,
47 	scriptFailed,
48 	cyclicLink,
49 	invalidDeclaration,
50 	duplicateSymbol,
51 	parseError,
52 	busy,
53 	skip,
54 	help,
55 	bug,
56 	printerOnFire,
57 	omfgThisIsVeryVeryBad,
58 	wtf = omfgThisIsVeryVeryBad,
59 }
60 
61 
62 alias real_t = float;
63 
64 
65 enum real_t CMP_EPSILON = 0.00001;
66 enum real_t CMP_EPSILON2 = (CMP_EPSILON*CMP_EPSILON);
67 
68 enum real_t _PLANE_EQ_DOT_EPSILON = 0.999;
69 enum real_t _PLANE_EQ_D_EPSILON = 0.0001;
70 
71