Closed HuangFuSL closed 3 years ago
I've re-implemented the Python engine of this mod. Changes are listed below:
SkylinesPythonShared
PythonConsole
BinaryFormatter
XMLSerializer
PythonConsole/PythonConsole.cs
EngineAPI
async_mode
GameAPI
help()
help_all()
list_globals()
print_list()
from client import * initialize() # <-- Connect to Cities: Skylines game.get_node(6672) # Access objects
input()
Can you please create a separate pull request just for the XML serialization so I can merge it first?
Okay I've cherry-picked commits from master branch. I'll open a new request
I've re-implemented the Python engine of this mod. Changes are listed below:
SkylinesPythonShared
is statically linked toPythonConsole
, the mod will support Linux and macOS;BinaryFormatter
toXMLSerializer
;PythonConsole
to enable remote calls while not executing scripts (PythonConsole/PythonConsole.cs
);EngineAPI
class andasync_mode
moved toGameAPI
class;help()
,help_all()
,list_globals()
andprint_list()
method inGameAPI
objectinput()
disabled in internal engine;