Add support for facilities
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use crate::{NotificationData, SimConnect, SimConnectError};
|
||||
use crate::{Object, SimConnect, SimConnectError};
|
||||
|
||||
/// Trait to be implemented by objects that can be registered with SimConnect.
|
||||
pub trait SimConnectObjectExt: Clone + for<'a> TryFrom<&'a NotificationData> {
|
||||
pub trait SimConnectObjectExt: Clone + for<'a> TryFrom<&'a Object> {
|
||||
fn register(client: &mut SimConnect, id: u32) -> Result<(), SimConnectError>;
|
||||
}
|
||||
|
Reference in New Issue
Block a user