blob: 0d62bd5bad805c55e89132f8f4bd5705ad929024 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#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();
}
}
|