From b10b6141133ee10971fe24ab15547fd57db00ff2 Mon Sep 17 00:00:00 2001 From: MrKBear Date: Fri, 18 Feb 2022 14:38:30 +0800 Subject: [PATCH] Add individuals metadata --- source/Model/Group.ts | 3 ++- source/Model/Label.ts | 4 +++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/source/Model/Group.ts b/source/Model/Group.ts index 39a7e0c..2dacd11 100644 --- a/source/Model/Group.ts +++ b/source/Model/Group.ts @@ -1,11 +1,12 @@ import { Individual } from "./Individual"; +import { LabelObject } from "./Label"; import type { Behavior } from "./Behavior"; import type { Model } from "./Model"; /** * 群体类型 */ -class Group { +class Group extends LabelObject { /** * 所有个体 diff --git a/source/Model/Label.ts b/source/Model/Label.ts index 79fac66..693d72a 100644 --- a/source/Model/Label.ts +++ b/source/Model/Label.ts @@ -79,4 +79,6 @@ class LabelObject { }); return has; } -} \ No newline at end of file +} + +export { Label, LabelObject }; \ No newline at end of file