Basic mutability framework

This commit is contained in:
Dynamitos committed 2022-01-12 14:40:26 +01:00
1 parent b2718dde70
commit 6d48267ec2
72 files changed
+1781 -1341

No files matched your search

+29 -1
View File
@@ -12,8 +12,36 @@ Actor::~Actor()
{
}
void Actor::tick(float)
void Actor::launchStart()
{
rootComponent->launchStart();
for(auto child : children)
{
child->launchStart();
}
start();
}
Array<Job> Actor::launchTick(float deltaTime) const
{
Array<Job> result = rootComponent->launchTick(deltaTime);
for(auto child : children)
{
result.addAll(child->launchTick(deltaTime));
}
result.add(tick(deltaTime));
return result;
}
Array<Job> Actor::launchUpdate()
{
Array<Job> result = rootComponent->launchUpdate();
for(auto child : children)
{
result.addAll(child->launchUpdate());
}
result.add(update());
return result;
}
void Actor::notifySceneAttach(PScene scene)
{