Remove singelton fix bugs
This commit is contained in:
@@ -1,13 +1,13 @@
|
||||
networking = None
|
||||
|
||||
import argparse
|
||||
import config
|
||||
|
||||
from factories.NetworkFactory import NetworkFactory
|
||||
from factories.GameFactory import GameFactory
|
||||
|
||||
import asyncio
|
||||
import logging
|
||||
|
||||
networking = None
|
||||
|
||||
def main():
|
||||
args = parseCommandLine()
|
||||
@@ -36,6 +36,7 @@ def createGame(args):
|
||||
print(args)
|
||||
global networking
|
||||
networking = NetworkFactory.createNetwork(args.OutputServerAddress, args.InputServerAddress)
|
||||
from factories.GameFactory import GameFactory
|
||||
game = GameFactory().createGame()
|
||||
return game
|
||||
|
||||
|
||||
Reference in New Issue
Block a user