@@ -5,9 +5,8 @@ use lazy_static::lazy_static;
5
5
6
6
use unreal_modloader:: unreal_asset:: ue4version:: VER_UE4_23 ;
7
7
use unreal_modloader:: unreal_modintegrator:: {
8
- helpers:: game_to_absolute, BakedInstructions , BakedMod , IntegratorConfig , IntegratorMod ,
8
+ helpers:: game_to_absolute, BakedMod , HandlerFn , IntegratorConfig , IntegratorMod ,
9
9
} ;
10
- use unreal_modloader:: unreal_pak:: PakFile ;
11
10
12
11
pub mod assets;
13
12
pub ( crate ) mod baked;
@@ -45,28 +44,9 @@ impl<'data> IntegratorConfig<'data, (), io::Error> for AstroIntegratorConfig {
45
44
& ( )
46
45
}
47
46
48
- fn get_handlers (
49
- & self ,
50
- ) -> std:: collections:: HashMap <
51
- String ,
52
- Box <
53
- dyn FnMut (
54
- & ( ) ,
55
- & mut PakFile ,
56
- & mut Vec < PakFile > ,
57
- & mut Vec < PakFile > ,
58
- & Vec < serde_json:: Value > ,
59
- ) -> Result < ( ) , io:: Error > ,
60
- > ,
61
- > {
62
- type HandlerFn = dyn FnMut (
63
- & ( ) ,
64
- & mut PakFile ,
65
- & mut Vec < PakFile > ,
66
- & mut Vec < PakFile > ,
67
- & Vec < serde_json:: Value > ,
68
- ) -> Result < ( ) , io:: Error > ;
69
- let mut handlers: std:: collections:: HashMap < String , Box < HandlerFn > > = HashMap :: new ( ) ;
47
+ fn get_handlers ( & self ) -> std:: collections:: HashMap < String , Box < HandlerFn < ( ) , io:: Error > > > {
48
+ let mut handlers: std:: collections:: HashMap < String , Box < HandlerFn < ( ) , io:: Error > > > =
49
+ HashMap :: new ( ) ;
70
50
71
51
handlers. insert (
72
52
String :: from ( "mission_trailheads" ) ,
@@ -91,10 +71,6 @@ impl<'data> IntegratorConfig<'data, (), io::Error> for AstroIntegratorConfig {
91
71
handlers
92
72
}
93
73
94
- fn get_instructions ( & self ) -> Option < BakedInstructions > {
95
- None
96
- }
97
-
98
74
fn get_baked_mods ( & self ) -> Vec < IntegratorMod < io:: Error > > {
99
75
Vec :: from ( [ BakedMod {
100
76
data : baked:: CORE_MOD ,
0 commit comments