forked from Dzejrou/tdt
-
Notifications
You must be signed in to change notification settings - Fork 0
/
AlignHelper.hpp
79 lines (70 loc) · 2.66 KB
/
AlignHelper.hpp
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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
#pragma once
#include <Ogre.h>
#include <cstdlib>
#include <string>
class EntitySystem;
namespace AlignHelper
{
/**
* Brief: Sets the material name of a given entity in a given align state.
* Param: Entity system containing the components of the given entity.
* Param: ID of the entity.
* Param: Number of the state.
* Param: New material name.
*/
void set_material(EntitySystem&, std::size_t, std::size_t, const std::string&);
/**
* Brief: Returns the material name of a given entity in a given align state.
* Param: Entity system containing the components of the given entity.
* Param: ID of the entity.
* Param: Number of the state.
*/
const std::string& get_material(EntitySystem&, std::size_t, std::size_t);
/**
* Brief: Sets the mesh name of a given entity in a given align state.
* Param: Entity system containing the components of the given entity.
* Param: ID of the entity.
* Param: Number of the state.
* Param: New mesh name.
*/
void set_mesh(EntitySystem&, std::size_t, std::size_t, const std::string&);
/**
* Brief: Returns the mesh name of a given entity in a given align state.
* Param: Entity system containing the components of the given entity.
* Param: ID of the entity.
* Param: Number of the state.
*/
const std::string& get_mesh(EntitySystem&, std::size_t, std::size_t);
/**
* Brief: Sets the position offset from the position of the residence node
* of a given entity in a given align state.
* Param: Entity system containing the components of the given entity.
* Param: ID of the entity.
* Param: Number of the state.
* Param: New position offset vector.
*/
void set_position_offset(EntitySystem&, std::size_t, std::size_t, const Ogre::Vector3&);
/**
* Brief: Returns the position offset from the position of the residence node
* of a given entity in a given align state.
* Param: Entity system containing the components of the given entity.
* Param: ID of the entity.
* Param: Number of the state.
*/
const Ogre::Vector3& get_position_offset(EntitySystem&, std::size_t, std::size_t);
/**
* Brief: Sets the scale of a given entity in a given align state.
* Param: Entity system containing the components of the given entity.
* Param: ID of the entity.
* Param: Number of the state.
* Param: New scale vector.
*/
void set_scale(EntitySystem&, std::size_t, std::size_t, const Ogre::Vector3&);
/**
* Brief: Returns the scale of a given entity in a given align state.
* Param: Entity system containing the components of the given entity.
* Param: ID of the entity.
* Param: Number of the state.
*/
const Ogre::Vector3& get_scale(EntitySystem&, std::size_t, std::size_t);
}