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 @@
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);