~starkingdoms/starkingdoms

ref: 69730b33b8aed64f6b26e6cdcb334a7cec4e54f4 starkingdoms/crates/unified/src/ecs.rs -rw-r--r-- 453 bytes
69730b33 — core planets 5 months ago
                                                                                
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use bevy::math::Vec2;
use bevy::prelude::{Component, Event, Resource};
use serde::{Deserialize, Serialize};

#[derive(Component, Serialize, Deserialize)]
pub struct Ball;
#[derive(Component, Serialize, Deserialize)]
pub struct Ground;
#[derive(Component)]
pub struct MainCamera;
#[derive(Resource, Default)]
pub struct CursorWorldCoordinates(pub Option<Vec2>);

#[derive(Debug, Default, Deserialize, Event, Serialize)]
pub struct SendBallHere(pub Vec2);