GithubHelp home page GithubHelp logo

9578577 / citiesskylinesskeletonsrc Goto Github PK

View Code? Open in Web Editor NEW

This project forked from skylinesmodengineer/citiesskylinesskeletonsrc

0.0 2.0 0.0 100 KB

Contains skeleton source files for Cities Skylines modding API

C# 100.00%

citiesskylinesskeletonsrc's Introduction

-----------------------------------------
CITIES SKYLINES MODDING SKELETON CODE
Author: reddit user "SkylinesModEngineer";
Date: 11/03/2015
------------------------------------------

How to setup skeleton code. (Beginners) ADVANCED/Experienced modders go to step 6

1. go to the user mod folder.
On Windows C:\Users\<username>\AppData\Local\Colossal Order\Cities_Skylines\Addons\Mods
On Mac /Users/<username>/Library/Application Support/Colossal Order/Cities_Skylines/Addons/Mods
On Linux /home/<username>/.local/share/Colossal Order/Cities_Skylines/Addons/Mods/

2. Create new folder in ../Mods.  Best practice is to have the same name as your Mod. eg MyModName

3. Open CSSkeletonCode and copy "Source" folder into your mod folder... -> .../Mods/MyModName/Source
   Source folder is where you should place all your Source files(.cs)   

4. Open IUserMod.cs that's in the Source folder
   Rename namespace to one of your choosing
   Rename class name
   Set your own title and description.

5. You should now see your mod title and desc in the modding menu in Cities Skylines.
6. Choosing SkeletonSource:  

The "SkeletonSource" folder contains all the source files implementing the method
signatures from the Modding API wiki
http://www.skylineswiki.com/Modding_API
 
You can choose which source files you need and copy them to your source folder, then implement the methods
HOWEVER you will notice that for each C# interface there is 2 .cs(Source file) that extends an interface
eg. MyIEconomy and MyIEconomyBase, choosing which one is important.
There is a Base interface and a Non base interface. The Non base interface will force you to implement every method
but the Base interface will allow you to choose which mehtods you want to override using the "override" C# keyword

All method signatures can be found on the CitiesSkylines API wiki here:
http://www.skylineswiki.com/Modding_API



NOTES:
- Make sure all you .cp(Source files) in the "Source" folder have the same "namespace"  but different classnames.
If another mod has the same namespace and classname you will get an error.
- All files contained within skeleton code compile without errors, any errors are a result of any modification
- If using the BASE interface you must use the "override" keyword.
- If using a non base interface source file you must implement every method

citiesskylinesskeletonsrc's People

Contributors

skylinesmodengineer avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.