Starting new VN Structure
This commit is contained in:
25
archive/visualnovel/components/VisualNovelCharacter.cpp
Normal file
25
archive/visualnovel/components/VisualNovelCharacter.cpp
Normal file
@ -0,0 +1,25 @@
|
||||
// Copyright (c) 2022 Dominic Masters
|
||||
//
|
||||
// This software is released under the MIT License.
|
||||
// https://opensource.org/licenses/MIT
|
||||
|
||||
#include "VisualNovelCharacter.hpp"
|
||||
|
||||
using namespace Dawn;
|
||||
|
||||
VisualNovelCharacter::VisualNovelCharacter(SceneItem *item) :
|
||||
SceneItemComponent(item)
|
||||
{
|
||||
}
|
||||
|
||||
std::vector<SceneItemComponent*> VisualNovelCharacter::getDependencies() {
|
||||
return std::vector<SceneItemComponent*>{
|
||||
(this->material = this->item->getComponent<SimpleTexturedMaterial>()),
|
||||
(this->tiledSprite = this->item->getComponent<TiledSprite>())
|
||||
};
|
||||
}
|
||||
|
||||
void VisualNovelCharacter::onStart() {
|
||||
assertNotNull(this->material);
|
||||
assertNotNull(this->tiledSprite);
|
||||
}
|
Reference in New Issue
Block a user