~starkingdoms/starkingdoms

ref: 2da0954c6ae9dc630ff3a1dad75b826d4be38aea starkingdoms/crates/unified/src/ecs.rs -rw-r--r-- 453 bytes
2da0954c — core client start 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);