Revision a5c338e8
Added by Vincent Le Goff over 4 years ago
src/sharp/function.py | ||
---|---|---|
32 | 32 |
|
33 | 33 |
"""The function class, parent of all SharpScript functions.""" |
34 | 34 |
|
35 |
def __init__(self, engine, client, sharp): |
|
35 |
def __init__(self, engine, client, sharp, world=None):
|
|
36 | 36 |
self.engine = engine |
37 | 37 |
self.client = client |
38 | 38 |
self.sharp_engine = sharp |
39 | 39 |
self.init() |
40 |
self.world = world |
|
40 | 41 |
|
41 | 42 |
def init(self): |
42 | 43 |
"""Another secondary constructor.""" |
Also available in: Unified diff
Put the macros and triggers in the world itself