summaryrefslogtreecommitdiffstats
path: root/src/renderer/model/data/entity.ts
diff options
context:
space:
mode:
authorMatthias Schiffer <mschiffer@universe-factory.net>2019-12-24 13:53:16 +0100
committerMatthias Schiffer <mschiffer@universe-factory.net>2019-12-24 13:53:16 +0100
commit3c51a1994f41b625823c4f15e92396b5498ce23c (patch)
tree7a96310ec32df82ac87039ea555300bcab510a5e /src/renderer/model/data/entity.ts
parent33926af829848050c54c698ed22da9fe2b912aea (diff)
downloadrpgedit-3c51a1994f41b625823c4f15e92396b5498ce23c.tar
rpgedit-3c51a1994f41b625823c4f15e92396b5498ce23c.zip
Move renderer into "runtime" subdirectory
Diffstat (limited to 'src/renderer/model/data/entity.ts')
-rw-r--r--src/renderer/model/data/entity.ts29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/renderer/model/data/entity.ts b/src/renderer/model/data/entity.ts
deleted file mode 100644
index f52c130..0000000
--- a/src/renderer/model/data/entity.ts
+++ /dev/null
@@ -1,29 +0,0 @@
-import { Collision } from './collision';
-
-export interface EntityAnimation {
- readonly sequence: ReadonlyArray<[number, number]>;
-}
-
-export interface EntityDataInput {
- readonly sprite: string;
- readonly anchor?: [number, number];
- readonly collision?: Collision[];
- readonly frames?: number;
- readonly animation?: EntityAnimation;
-}
-
-export class EntityData {
- public readonly sprite: string;
- public readonly anchor: [number, number];
- public readonly collision: Collision[];
- public readonly frames: number;
- public readonly animation?: EntityAnimation;
-
- constructor(input: EntityDataInput) {
- this.sprite = input.sprite;
- this.anchor = input.anchor || [0.5, 0.5];
- this.collision = input.collision || [];
- this.frames = input.frames || 1;
- this.animation = input.animation;
- }
-}