[oden] Derive debug

This commit is contained in:
John Doty 2023-06-24 23:03:02 -07:00
parent 82c386fd0f
commit 1aa3663ca4

View file

@ -2,14 +2,17 @@ use oden_js::{module, ContextRef, Value, ValueResult};
use std::sync::mpsc::Sender;
use std::sync::Arc;
#[derive(Debug)]
pub struct PrintCommand {
pub text: String,
}
#[derive(Debug)]
pub struct ClearCommand {
pub color: [f64; 4],
}
#[derive(Debug)]
pub struct SpriteCommand {
pub x: f32,
pub y: f32,
@ -21,6 +24,7 @@ pub struct SpriteCommand {
pub sh: f32,
}
#[derive(Debug)]
pub enum GraphicsCommand {
Clear(ClearCommand),
Print(PrintCommand),