Skip to content

Commit

Permalink
Fix types
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Sep 24, 2024
1 parent 938c80c commit e33fb84
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/entities/bitmapTerrain.ts
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
import { UPDATE_PRIORITY, Container, Graphics, Rectangle, Texture, Sprite } from "pixi.js";
import { IDamageableEntity, IMatterEntity } from "./entity";
import { IMatterEntity } from "./entity";
import { generateQuadTreeFromTerrain, imageDataToTerrainBoundaries } from "../terrain";
import Flags from "../flags";
import { collisionGroupBitmask, CollisionGroups, GameWorld, PIXELS_PER_METER, RapierPhysicsObject } from "../world";
import { Collider, ColliderDesc, RigidBody, RigidBodyDesc, Vector2 } from "@dimforge/rapier2d-compat";
import { Coordinate, MetersValue } from "../utils/coodinate";

export type OnDamage = () => void;
export class BitmapTerrain implements IMatterEntity, IDamageableEntity {
export class BitmapTerrain implements IMatterEntity {
public readonly priority = UPDATE_PRIORITY.LOW;
private static readonly collisionBitmask = collisionGroupBitmask(CollisionGroups.WorldObjects, [CollisionGroups.Terrain, CollisionGroups.WorldObjects, CollisionGroups.Player]);

Expand Down

0 comments on commit e33fb84

Please sign in to comment.