Hi guys
I am loving the game and after creating mods for minecraft some years back I thought I would take a look at Cities modding.
Now I am a VB.net developer so my c# may look a little off to you guys, but I *think* I know enough to write in C#
What I am trying to do for my first mod is just return the current currency amount to another project. However I am getting a StackOverFlow on the get of currentMoneyAccount as I am just stuck with how to get the ingame money, obviously the current code just causes a loop.
This is all my code
I have uploaded my files to Addons/Mods/MyMod and it appears in game with no problems.
Now what I assume is when the game runs it uses the compiled dll from obj/debug? Is this correct because I believe this is where my issue may be.
Basically once the game is running I want to load the compiled dll of my mod into a seperate project and output the currentMoneyamount.
Can anyone point me in the right direction?
I am loving the game and after creating mods for minecraft some years back I thought I would take a look at Cities modding.
Now I am a VB.net developer so my c# may look a little off to you guys, but I *think* I know enough to write in C#
What I am trying to do for my first mod is just return the current currency amount to another project. However I am getting a StackOverFlow on the get of currentMoneyAccount as I am just stuck with how to get the ingame money, obviously the current code just causes a loop.
This is all my code
Code:
using ICities;
using System;
namespace CitiesSLPlugin
{
public class CitiesSL : IUserMod
{
public string Name
{
get
{
return "CitiesSLCompanion";
}
}
public string Description
{
get
{
return "A windows desktop companion app for Cities: Skylines";
}
}
}
public class getEconomy : IEconomy
{
public long currentMoneyAmount
{
get
{
return currentMoneyAmount;
}
}
public long internalMoneyAmount
{
get
{
return internalMoneyAmount;
}
}
public IManagers managers
{
get
{
return managers;
}
}
}
}
I have uploaded my files to Addons/Mods/MyMod and it appears in game with no problems.
Now what I assume is when the game runs it uses the compiled dll from obj/debug? Is this correct because I believe this is where my issue may be.
Basically once the game is running I want to load the compiled dll of my mod into a seperate project and output the currentMoneyamount.
Can anyone point me in the right direction?
Last edited: