removed unused processesseessess
This commit is contained in:
parent
348f355eb2
commit
4fdc567e08
158 changed files with 1317 additions and 3351 deletions
|
|
@ -9,24 +9,16 @@
|
|||
function isMechanicalType(itemOrType) { return Boolean(mech()?.isMechanicalType?.(itemOrType)); }
|
||||
function worldSegments(item) { return mech()?.worldSegments?.(item) || []; }
|
||||
function obstacleRects(item) { return mech()?.obstacleRects?.(item) || []; }
|
||||
function placementRects(item) { return mech()?.placementRects?.(item) || obstacleRects(item); }
|
||||
function poisonHazardRects(item) { return mech()?.poisonHazardRects?.(item) || []; }
|
||||
function boundsAabb(item) { return mech()?.boundsAabb?.(item) || null; }
|
||||
function hazardAabb(item) { return mech()?.hazardAabb?.(item) || null; }
|
||||
function extent(item) { return mech()?.extent?.(item) || 0; }
|
||||
function reach(item) { return mech()?.reach?.(item) || extent(item); }
|
||||
function hitTest(item, x, y, worldRef, opts = {}) { return mech()?.hitTest?.(item, x, y, worldRef, opts) || { hit: false, distance: Infinity }; }
|
||||
|
||||
global.TarinaiMechanicalShapeSystem = Object.freeze({
|
||||
isMechanicalType,
|
||||
worldSegments,
|
||||
obstacleRects,
|
||||
placementRects,
|
||||
poisonHazardRects,
|
||||
boundsAabb,
|
||||
hazardAabb,
|
||||
extent,
|
||||
reach,
|
||||
hitTest,
|
||||
});
|
||||
})(typeof window !== "undefined" ? window : globalThis);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue