Skip to content

Commit

Permalink
refactor(ecs): rename StaticObject to StaticGameObject
Browse files Browse the repository at this point in the history
  • Loading branch information
RuggeroVisintin committed Dec 11, 2023
1 parent 7db7723 commit 56e4667
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import { BoundingBoxComponent } from "../components";
import { GameObject } from "./GameObject";

export class StaticObject extends GameObject {
export class StaticGameObject extends GameObject {
public boundingBox = new BoundingBoxComponent();

constructor() {
Expand Down
2 changes: 1 addition & 1 deletion src/ecs/entities/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
export * from './BaseEntity';
export * from './IEntity';
export * from './GameObject';
export * from './StaticObject';
export * from './StaticGameObject';
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
import { BoundingBoxComponent, GameObject, StaticObject } from "../../../../src"
import { GameObject, StaticGameObject } from "../../../../src"

describe('ecs/entities/StaticObject', () => {
let staticObject = new StaticObject();
describe('ecs/entities/StaticGameObject', () => {
let staticObject = new StaticGameObject();

afterEach(() => {
staticObject = new StaticObject();
staticObject = new StaticGameObject();
})

describe('.constructor()', () => {
Expand Down

0 comments on commit 56e4667

Please sign in to comment.