aboutsummaryrefslogtreecommitdiff
path: root/src/client/northstar/core/brusher/IBaseBrushable.ts
diff options
context:
space:
mode:
authorbob <bcz@cs.brown.edu>2019-03-20 18:00:39 -0400
committerbob <bcz@cs.brown.edu>2019-03-20 18:00:39 -0400
commita16e6592caafb601b59c3d9f7609e8c1af231eba (patch)
treee732e34c5a9fc371bf328fdd35a08ddd196bf6af /src/client/northstar/core/brusher/IBaseBrushable.ts
parent208a57b15e6b415659311873431dbe9d5b8d8021 (diff)
initial
Diffstat (limited to 'src/client/northstar/core/brusher/IBaseBrushable.ts')
-rw-r--r--src/client/northstar/core/brusher/IBaseBrushable.ts13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/client/northstar/core/brusher/IBaseBrushable.ts b/src/client/northstar/core/brusher/IBaseBrushable.ts
new file mode 100644
index 000000000..07d4e7580
--- /dev/null
+++ b/src/client/northstar/core/brusher/IBaseBrushable.ts
@@ -0,0 +1,13 @@
+import { BrushLinkModel } from '../brusher/BrushLinkModel'
+import { PIXIPoint } from '../../utils/MathUtil'
+import { IEquatable } from '../../utils/IEquatable';
+
+export interface IBaseBrushable<T> extends IEquatable {
+ BrusherModels: Array<BrushLinkModel<T>>;
+ BrushColors: Array<number>;
+ Position: PIXIPoint;
+ Size: PIXIPoint;
+}
+export function instanceOfIBaseBrushable<T>(object: any): object is IBaseBrushable<T> {
+ return 'BrusherModels' in object;
+} \ No newline at end of file