File tree Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Expand file tree Collapse file tree 3 files changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -10,14 +10,13 @@ class Mod(object):
10
10
Execution order is as follows:
11
11
:meth:`mod_load` -> :meth:`mod_complete`
12
12
"""
13
- # pylint: disable=no-self-use
14
13
def mod_info (self ):
15
14
"""Get the mod info
16
15
17
16
Returns:
18
17
A tuple with the name, version, and author
19
18
"""
20
- raise Exception ("Mod info isn't overriden" )
19
+ raise NotImplementedError ("Mod info isn't overriden" )
21
20
22
21
def mod_load (self ):
23
22
"""Executes when the mod is loaded
@@ -27,14 +26,14 @@ def mod_load(self):
27
26
See Also:
28
27
:meth:`mod_complete`
29
28
"""
30
- pass
29
+ raise NotImplementedError ( "Mod load isn't overriden" )
31
30
32
31
def mod_complete (self ):
33
32
"""Executes when all mods are loaded
34
33
35
34
This method is useful for dependency loading
36
35
"""
37
- pass
36
+ raise NotImplementedError ( "Mod complete isn't overriden" )
38
37
39
38
40
39
def loadable_mod (modclass ):
Original file line number Diff line number Diff line change @@ -53,3 +53,6 @@ def mod_load(self):
53
53
# After getting the SLDisplayable, append that to the main menu screen.
54
54
# That's how we put the button "DEV TEST" on the main menu screen
55
55
modast .get_slscreen ('main_menu' ).children .append (target_display )
56
+
57
+ def mod_complete (self ):
58
+ pass
Original file line number Diff line number Diff line change @@ -47,3 +47,6 @@ def kevin_cb(node):
47
47
48
48
kevin_credits = modast .search_for_node_with_criteria (true_search , kevin_cb , 800 )
49
49
kevin_credits .chain (modast .search_for_node_type (kevin_credits , ast .Scene ))
50
+
51
+ def mod_complete (self ):
52
+ pass
You can’t perform that action at this time.
0 commit comments