blob: a44d36704ca88e160ef32fcd0da40b99ede25ef7 (
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
26
27
28
29
30
|
#pragma once
#include <crepe/api/Animator.h>
#include <crepe/api/BehaviorScript.h>
#include <crepe/api/BoxCollider.h>
#include <crepe/api/GameObject.h>
#include <crepe/api/Rigidbody.h>
#include <crepe/api/Sprite.h>
class PlayerObject : public crepe::GameObject {
public:
PlayerObject(crepe::GameObject &&);
public:
struct {
crepe::Sprite & body;
crepe::Sprite & head;
crepe::Sprite & jetpack;
} sprite;
struct {
crepe::Animator & body;
crepe::Animator & head;
crepe::Animator & jetpack;
} animator;
crepe::Rigidbody & body;
crepe::BoxCollider & collider;
crepe::BehaviorScript & controller;
};
|