Verify aircraft models as lit mod instances
build / mod (push) Failing after 20s

Co-Authored-By: Codex <noreply@openai.com>
This commit is contained in:
2026-11-04 16:15:59 +03:00
parent d45d59df9f
commit 914f723d1f
8 changed files with 36 additions and 1 deletions
+9
View File
@@ -0,0 +1,9 @@
[package]
name = "model-preview"
version = "0.1.0"
edition = "2024"
[lib]
crate-type = ["cdylib"]
[dependencies]
horizon-mod-sdk = { path = "../../horizon/crates/horizon-mod-sdk" }
[workspace]
+7
View File
@@ -0,0 +1,7 @@
id = "model_preview"
name = "Model Preview"
version = "0.1.0"
api = "0.1"
side = "client"
capabilities = ["render"]
experimental = ["render"]
+9
View File
@@ -0,0 +1,9 @@
use horizon_mod_sdk::{Mod, Registration, render};
struct Preview;
impl Mod for Preview {
fn init() -> Result<(Self, Registration), String> { Ok((Self, Registration::new().on_tick())) }
fn tick(&mut self, _: u64) {
render::set_models(&[render::ModelInstance { id: 1, model: "airdef:lancet".into(), x: 0.5, y: 110.5, z: 0.5, rotation: (0.,0.,0.,1.), scale: 1., glow: false }]);
}
}
horizon_mod_sdk::export_mod!(Preview);