MCPcopy
hub / github.com/FreezingMoon/AncientBeast / has

Method has

src/utility/pointfacade.ts:34–42  ·  view source on GitHub ↗
(point: Point | Point[] | Creature | number, y = 0)

Source from the content-addressed store, hash-verified

32 }
33
34 has(point: Point | Point[] | Creature | number, y = 0) {
35 const points = normalize(point, y, this.config);
36 for (const point of points) {
37 if (this.s.has(hash(point))) {
38 return true;
39 }
40 }
41 return false;
42 }
43}
44
45export class PointFacade {

Callers 15

_uniqueHexesMethod · 0.80
teleportMethod · 0.80
trySummonMethod · 0.80
tryMovementAbilityMethod · 0.80
isClosedMethod · 0.80
useFunction · 0.80
uniqueHexesFunction · 0.80
renderBasePathFunction · 0.80

Calls 1

normalizeFunction · 0.85

Tested by 1

buildHexGridFunction · 0.64