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:
parent
c72526a34d
commit
93ddff8ed4
1 changed files with 1 additions and 15 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue