sync my shit
This commit is contained in:
+14
-2
@@ -1,13 +1,25 @@
|
||||
package main
|
||||
|
||||
import ecs "shoal/src"
|
||||
import rl "vendor:raylib"
|
||||
|
||||
Transform :: struct {
|
||||
GridActorComponent :: struct {
|
||||
position: rl.Vector2,
|
||||
size: int,
|
||||
speed: f32,
|
||||
can_move: bool,
|
||||
}
|
||||
GridActor: ecs.Storage(GridActorComponent)
|
||||
|
||||
Weapon :: struct {
|
||||
WeaponComponent :: struct {
|
||||
dmg: i32,
|
||||
rpm: f32,
|
||||
cooldown: bool,
|
||||
}
|
||||
Weapon: ecs.Storage(WeaponComponent)
|
||||
|
||||
EnemyComponent :: struct {}
|
||||
Enemy: ecs.Storage(EnemyComponent)
|
||||
|
||||
PlayerComponent :: struct {}
|
||||
Player: ecs.Storage(PlayerComponent)
|
||||
|
||||
Reference in New Issue
Block a user