branch | transitional_engine |
changeset 16040 | 6c5b3c576fc6 |
parent 16039 | a236360669cc |
--- a/rust/lib-hwengine-future/src/lib.rs Sun Oct 27 17:00:17 2024 +0100 +++ b/rust/lib-hwengine-future/src/lib.rs Fri Nov 22 17:29:30 2024 +0100 @@ -269,6 +269,16 @@ } #[no_mangle] +pub extern "C" fn ai_have_plan(ai: &AI) -> bool { + ai.have_plan() +} + +#[no_mangle] +pub extern "C" fn ai_get(ai: &AI) -> bool { + ai.have_plan() +} + +#[no_mangle] pub extern "C" fn dispose_ai(ai: *mut AI) { unsafe { drop(Box::from_raw(ai)) }; -} \ No newline at end of file +}