blob: e6a4673c1338b5ada3e56bb7e1434bda6ee45b04 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
#include "Components.h"
#include <iostream>
Component::Component() : mActive(true) {}
Sprite::Sprite(std::string path) : mPath(path) {}
Rigidbody::Rigidbody(int mass, int gravityScale, int bodyType)
: mMass(mass), mGravityScale(gravityScale), mBodyType(bodyType) {}
Colider::Colider(int size) : mSize(size) {}
void BehaviourScript::onStart() {
if(behaviour) {
behaviour->onStart();
}
}
void BehaviourScript::onUpdate() {
if(behaviour) {
behaviour->onUpdate();
}
}
|