isaacscript-common 1.0.455 → 1.0.456

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.
@@ -38,6 +38,7 @@ export declare function logKColor(this: void, kColor: KColor): void;
38
38
  export declare function logMap(this: void, map: Map<AnyNotNil, unknown>): void;
39
39
  export declare function logTable(this: void, table: unknown): void;
40
40
  export declare function logSet(this: void, set: Set<AnyNotNil>): void;
41
+ export declare function logVector(this: void, vector: Vector): void;
41
42
  /**
42
43
  * Converts every `isaacscript-common` function that begins with "log" to a global function.
43
44
  * This is useful for printing out variables from the in-game debug console.
@@ -128,6 +128,11 @@ function ____exports.logSet(set)
128
128
  "The size of the set was: " .. tostring(set.size)
129
129
  )
130
130
  end
131
+ function ____exports.logVector(vector)
132
+ ____exports.log(
133
+ ((("Vector: (" .. tostring(vector.X)) .. ", ") .. tostring(vector.Y)) .. ")"
134
+ )
135
+ end
131
136
  function ____exports.setLogFunctionsGlobal(self)
132
137
  local globals = _G
133
138
  globals.log = ____exports.log
@@ -144,6 +149,7 @@ function ____exports.setLogFunctionsGlobal(self)
144
149
  globals.logMap = ____exports.logMap
145
150
  globals.logTable = ____exports.logTable
146
151
  globals.logSet = ____exports.logSet
152
+ globals.logVector = ____exports.logVector
147
153
  end
148
154
  function ____exports.traceback(self)
149
155
  if debug ~= nil then
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "isaacscript-common",
3
- "version": "1.0.455",
3
+ "version": "1.0.456",
4
4
  "description": "Helper functions for IsaacScript mods",
5
5
  "keywords": [
6
6
  "isaac",