rust/lib-hedgewars-engine/src/lib.rs
changeset 16045 4933920eba89
parent 15921 5b3beb90e1a6
child 16046 e8afb1bf2779
equal deleted inserted replaced
16044:0e90bdfc2642 16045:4933920eba89
    60     CursorMove,
    60     CursorMove,
    61     CursorClick,
    61     CursorClick,
    62 }
    62 }
    63 
    63 
    64 #[no_mangle]
    64 #[no_mangle]
    65 pub extern "C" fn simple_event(engine_state: &mut EngineInstance, event_type: SimpleEventType) {}
    65 pub extern "C" fn simple_event(engine_state: &mut EngineInstance, event_type: SimpleEventType) {
       
    66     println!("{:?}", event_type);
       
    67 }
    66 
    68 
    67 #[no_mangle]
    69 #[no_mangle]
    68 pub extern "C" fn long_event(
    70 pub extern "C" fn long_event(
    69     engine_state: &mut EngineInstance,
    71     engine_state: &mut EngineInstance,
    70     event_type: LongEventType,
    72     event_type: LongEventType,