-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(model): load sequence information when loading models
- Loading branch information
Showing
2 changed files
with
98 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
class M2Sequence { | ||
#id: number; | ||
#variationIndex: number; | ||
#duration: number; | ||
#moveSpeed: number; | ||
#flags: number; | ||
#frequency: number; | ||
#blendTime: number; | ||
#variationNext: number; | ||
#aliasNext: number; | ||
|
||
constructor( | ||
id: number, | ||
variationIndex: number, | ||
duration: number, | ||
moveSpeed: number, | ||
flags: number, | ||
frequency: number, | ||
blendTime: number, | ||
variationNext: number, | ||
aliasNext: number, | ||
) { | ||
this.#id = id; | ||
this.#variationIndex = variationIndex; | ||
this.#duration = duration; | ||
this.#moveSpeed = moveSpeed; | ||
this.#flags = flags; | ||
this.#frequency = frequency; | ||
this.#blendTime = blendTime; | ||
this.#variationNext = variationNext; | ||
this.#aliasNext = aliasNext; | ||
} | ||
|
||
get aliasNext() { | ||
return this.#aliasNext; | ||
} | ||
|
||
get blendTime() { | ||
return this.#blendTime; | ||
} | ||
|
||
get duration() { | ||
return this.#duration; | ||
} | ||
|
||
get flags() { | ||
return this.#flags; | ||
} | ||
|
||
get frequency() { | ||
return this.#frequency; | ||
} | ||
|
||
get id() { | ||
return this.#id; | ||
} | ||
|
||
get moveSpeed() { | ||
return this.#moveSpeed; | ||
} | ||
|
||
get variationIndex() { | ||
return this.#variationIndex; | ||
} | ||
|
||
get variationNext() { | ||
return this.#variationNext; | ||
} | ||
} | ||
|
||
export default M2Sequence; |