added vm
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
use crate::vm::Value;
|
||||
|
||||
#[derive(Clone, Debug)]
|
||||
pub struct Cartridge {
|
||||
pub rom: Vec<u8>,
|
||||
pub constant_pool: Vec<Value>,
|
||||
}
|
||||
|
||||
impl Cartridge {
|
||||
pub fn new(rom: Vec<u8>, constant_pool: Vec<Value>) -> Self {
|
||||
Self { rom, constant_pool }
|
||||
}
|
||||
}
|
||||
@@ -5,6 +5,7 @@ mod tile_layer;
|
||||
mod tile_bank;
|
||||
mod sprite;
|
||||
mod sample;
|
||||
mod cartridge;
|
||||
|
||||
pub use button::Button;
|
||||
pub use color::Color;
|
||||
@@ -13,3 +14,4 @@ pub use tile_bank::{TileBank, TileSize};
|
||||
pub use tile_layer::{HudTileLayer, ScrollableTileLayer, TileMap};
|
||||
pub use sprite::Sprite;
|
||||
pub use sample::Sample;
|
||||
pub use cartridge::Cartridge;
|
||||
|
||||
Reference in New Issue
Block a user