1
Fork 0
mirror of https://github.com/redstrate/Kawari.git synced 2025-07-09 15:37:45 +00:00

Address "warning: this impl can be derived"

This commit is contained in:
The Dax 2025-07-08 17:36:03 -04:00 committed by Joshua Goins
parent c72526a34d
commit 93ddff8ed4

View file

@ -3,7 +3,7 @@ use binrw::binrw;
use crate::common::ObjectTypeId;
use crate::ipc::zone::{ServerZoneIpcData, ServerZoneIpcType};
#[derive(Debug, Clone)]
#[derive(Debug, Clone, Default)]
#[binrw]
#[brw(little)]
#[brw(import{max_params: usize})]
@ -23,20 +23,6 @@ pub struct EventScene {
pub params: Vec<u32>,
}
impl Default for EventScene {
fn default() -> Self {
Self {
actor_id: ObjectTypeId::default(),
event_id: 0,
scene: 0,
scene_flags: 0,
unk1: 0,
params_count: 0,
params: Vec::<u32>::new(),
}
}
}
impl EventScene {
pub fn package_scene(&self) -> Option<(ServerZoneIpcType, ServerZoneIpcData)> {
let op_code;