isaacscript-common 1.0.484 → 1.0.485
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/functions/log.d.ts +11 -14
- package/dist/functions/log.lua +3 -0
- package/package.json +1 -1
package/dist/functions/log.d.ts
CHANGED
|
@@ -5,31 +5,28 @@
|
|
|
5
5
|
*/
|
|
6
6
|
export declare function getDebugPrependString(msg: string, numParentFunctions?: number): string;
|
|
7
7
|
/**
|
|
8
|
-
* Helper function to avoid typing out `Isaac.DebugString()`.
|
|
9
|
-
*
|
|
10
|
-
*
|
|
8
|
+
* Helper function to avoid typing out `Isaac.DebugString()`. If you have the --luadebug launch flag
|
|
9
|
+
* turned on or the Racing+ sandbox enabled, then this function will also prepend the function name
|
|
10
|
+
* and the line number before the string.
|
|
11
11
|
*/
|
|
12
12
|
export declare function log(this: void, msg: string): void;
|
|
13
|
-
/**
|
|
14
|
-
* Helper function for printing out every damage flag that is turned on. Helpful when debugging.
|
|
15
|
-
*/
|
|
13
|
+
/** Helper function for printing out every damage flag that is turned on. Helpful when debugging. */
|
|
16
14
|
export declare function logAllDamageFlags(this: void, flags: int): void;
|
|
17
|
-
/**
|
|
18
|
-
* Helper function for printing out every entity flag that is turned on. Helpful when debugging.
|
|
19
|
-
*/
|
|
15
|
+
/** Helper function for printing out every entity flag that is turned on. Helpful when debugging. */
|
|
20
16
|
export declare function logAllEntityFlags(this: void, flags: int): void;
|
|
17
|
+
/** Helper function for printing out every flag that is turned on. Helpful when debugging. */
|
|
18
|
+
export declare function logAllFlags(this: void, flags: int, flagEnum: LuaTable, description?: string): void;
|
|
21
19
|
/**
|
|
22
|
-
* Helper function for printing out every flag that is turned on. Helpful when debugging.
|
|
20
|
+
* Helper function for printing out every game state flag that is turned on. Helpful when debugging.
|
|
23
21
|
*/
|
|
24
|
-
export declare function logAllFlags(this: void, flags: int, flagEnum: LuaTable, description?: string): void;
|
|
25
22
|
export declare function logAllGameStateFlags(this: void): void;
|
|
26
23
|
/**
|
|
27
24
|
* Helper function for printing out every projectile flag that is turned on. Helpful when debugging.
|
|
28
25
|
*/
|
|
29
26
|
export declare function logAllProjectileFlags(this: void, flags: int): void;
|
|
30
|
-
/**
|
|
31
|
-
|
|
32
|
-
*/
|
|
27
|
+
/** Helper function for printing out every use flag that is turned on. Helpful when debugging. */
|
|
28
|
+
export declare function logAllTearFlags(this: void, flags: int): void;
|
|
29
|
+
/** Helper function for printing out every use flag that is turned on. Helpful when debugging. */
|
|
33
30
|
export declare function logAllUseFlags(this: void, flags: int): void;
|
|
34
31
|
export declare function logArray<T>(this: void, array: T[]): void;
|
|
35
32
|
export declare function logColor(this: void, color: Color): void;
|
package/dist/functions/log.lua
CHANGED
|
@@ -68,6 +68,9 @@ end
|
|
|
68
68
|
function ____exports.logAllProjectileFlags(flags)
|
|
69
69
|
____exports.logAllFlags(flags, ProjectileFlags, "projectile")
|
|
70
70
|
end
|
|
71
|
+
function ____exports.logAllTearFlags(flags)
|
|
72
|
+
____exports.logAllFlags(flags, TearFlags, "tear")
|
|
73
|
+
end
|
|
71
74
|
function ____exports.logAllUseFlags(flags)
|
|
72
75
|
____exports.logAllFlags(flags, UseFlag, "use")
|
|
73
76
|
end
|