

It is also able to receive the regular Unity messagesĮDIT: a new mod mega-guide was just added HERE. The mod instance is created in a pre-init unity scene and is kept alive via DontDestroyOnLoad. This is because the game suffered a name change mid-production but we kept using the old one internally. Please note that our code lives in the namespace called ProjectAutomata and not something like RiseOfIndustry as one would expect. For example if you need to access UGUI to create UI scripts you will need to add UnityEngine.UI.dll and ĭocumentation regarding the Unity engine can be found here while all of Rise of Industry's codebase documentation is here Unfortunately we can’t possibly enumerate all classes and the assemblies where they can be found so you will need to refer to the Unit圓D official documentation for that. And other assemblies if you need them.The ones that you should always add are:.In that folder you’ll find all the dll files that you need to add.Once you are there you will have to go to the /Rise of Industry_Data/Managed subfolder.Now you will need to navigate to the folder where Rise of Industry is installed, we will call it.There is also a Browse entry on the left side of the window, please ignore that In the next window (Reference Manager) click the Browse… button at the bottom.

In the context menu that opens select the command Add -> References….Right click your project in the Solution Explorer tab within Visual Studio.To add a reference to an assembly you will need to: In practice you will always need to at least reference the core Unity assemblies that give you access to classes like MonoBehaviour. Now you will need to reference all the assemblies (which are just dll files themselves) that you need.Select “Class Library (.NET Framework)”, found under “Windows Classic Desktop”.Create a new Class Library project using the menu command File -> New -> Project… and then choose the Class Library project template.The steps to create your own dll that Rise of Industry can correctly import are the following (here we assume you are using Visual Studio 2017 Community): If you just want to learn how to translate the game, click HERE. References can be found in the Rise of Industry_Data/Managed folder in the game's root folder (Downloaded via Steam or GoG). To write code that the API can understand, you'll have to create a new C# library project and add the references you need. There are no current plans for adding code written in Lua. (the free Community edition will work just fine) and Unity 2018.1.0f2 ( do not use Unity 2018.2). To create the dll files we strongly recommend using Visual Studio. The modding API in Rise of Industry is able to load custom compiled C# code files in the form of dll files. 5 Extending the Building Panel (Advanced).
