Skip to content

Library with C# tools for Cities Skylines 2 mod development

Notifications You must be signed in to change notification settings

klyte45/CS2-BelzontCommons

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Belzont Commons - C# Library for Cities Skylines 2

This library offers some utility methods that I use in Cities Skylines 2 development. It's an evolution from Klyte Commons and Kwytto Utility libraries that I used in Cities Skylines 1.

Some highlights are:

  • Frontend.targets contains automation to compile multiple frontend subprojects, both using EUIS or Vanilla APIs
  • IBelzontSerializableSingleton contains utility to save/load system data. It uses default jobs to make the work of serialization/deserialization of system files.
  • IBelzontBindable is meant to be used along EUIS to register event/call/trigger bindings throught all UI screens enabled and also the vanilla UI as well. More details at EUIS documentation.
  • BasicIMod contains a lot of common tasks when developing a CS2 mod, like loading locales, registering bindings, etc. It's an evolution from the CS1 version.
  • BasicIModData contains basic data for the mod options at settings screen. It shows debug settings and also the mod version.
  • LogUtils contains utility for doing logging stuff. Don't forget to rename the log file prefix if plan to use this library

I recommend to not use this library directly, but creating your own fork instead. I may change a lot of stuff to fit my needs and it might break someone else mod... I also recommend to use this library as a folder inside the main dll of your mod, or merging all DLLs after compiling the solution like I did on CS2 BuildFiles target file.

About

Library with C# tools for Cities Skylines 2 mod development

Resources

Stars

Watchers

Forks

Languages