mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-05 19:20:12 +08:00
wip: replace packages with pure files
This commit is contained in:
1 parent
2d95ca382f
commit
87b8ca5d04
112 files changed
+740
-522
No files matched your search
@@ -0,0 +1,26 @@
|
||||
import { IStage } from './schema'
|
||||
import { StageException } from './Exception'
|
||||
import { Event } from './Event'
|
||||
|
||||
export class Stage extends Event {
|
||||
name: string
|
||||
private exceptions: StageException[]
|
||||
|
||||
constructor({
|
||||
id,
|
||||
name,
|
||||
condition,
|
||||
requirements,
|
||||
exceptions,
|
||||
response,
|
||||
}: IStage) {
|
||||
super(id, condition, response, requirements)
|
||||
this.name = name || ''
|
||||
this.exceptions =
|
||||
exceptions?.map((exception) => new StageException(exception)) || []
|
||||
}
|
||||
|
||||
getExceptions(): StageException[] {
|
||||
return this.exceptions
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user