59 lines
No EOL
696 B
D
59 lines
No EOL
696 B
D
module game_core.basic;
|
|
|
|
import bubel.ecs.core;
|
|
|
|
import ecs_utils.math.vector;
|
|
|
|
import gui.attributes;
|
|
|
|
struct CLocation
|
|
{
|
|
mixin ECS.Component;
|
|
|
|
alias value this;
|
|
|
|
vec2 value = vec2(0);
|
|
}
|
|
|
|
struct CScale
|
|
{
|
|
mixin ECS.Component;
|
|
|
|
alias value this;///use component as it value
|
|
|
|
vec2 value = vec2(16,16);
|
|
}
|
|
|
|
struct CRotation
|
|
{
|
|
mixin ECS.Component;
|
|
|
|
alias value this;///use component as it value
|
|
|
|
float value = 0;
|
|
}
|
|
|
|
struct CDepth
|
|
{
|
|
mixin ECS.Component;
|
|
|
|
alias value this;
|
|
|
|
short value;
|
|
}
|
|
|
|
struct CColor
|
|
{
|
|
mixin ECS.Component;
|
|
|
|
alias value this;
|
|
|
|
@GUIColor uint value;
|
|
}
|
|
|
|
struct CSelected
|
|
{
|
|
mixin ECS.Component;
|
|
|
|
bool value = false;
|
|
} |