1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30
use crate::wrappers::{*, structs::*, unreal::*}; use super::*; pub struct AttachmentPickupWrapper(pub usize); impl_object!(AttachmentPickupWrapper); impl AttachmentPickup for AttachmentPickupWrapper {} impl RumblePickupComponent for AttachmentPickupWrapper {} impl CarComponent for AttachmentPickupWrapper {} impl Actor for AttachmentPickupWrapper {} pub trait AttachmentPickup : RumblePickupComponent { fn pickup_end(&self) { unsafe { SpecialPickup_Attachment_TA_PickupEnd(self.addr()); } } fn pickup_start(&self) { unsafe { SpecialPickup_Attachment_TA_PickupStart(self.addr()); } } } extern "C" { fn SpecialPickup_Attachment_TA_PickupEnd(obj: usize); fn SpecialPickup_Attachment_TA_PickupStart(obj: usize); }