Sorry, me again. Has something changed with how to convert a single mission scropt for use in a campaign or am I just not remembering how to do it properly?
I thought it used to just be a case of swapping
Code:
public class Mission : AMission
to
Code:
public class Mission : maddox.game.campaign.Mission
But it doesn't seem to be workign and if I put it in the mission builder and use the compile there it says:
error CS0234: The type or namespace name 'campaign' does not exist in the namespace 'maddox.game' (are you missing an assembly reference?)
Am I indeed missing a reference and how do I fix that?
So an example here, this works as a single mission:
Code:
using System;
using System.Collections;
using System.Collections.Generic;
using maddox.game;
using maddox.game.world;
using System.ComponentModel.Design;
using System.Diagnostics;
using maddox.GP;
public class Mission : AMission
{
public override void OnBattleStarted()
{
GamePlay.gpHUDLogCenter("On battle started");
}
}
But if I modify that one line so that the code reads:
Code:
using System;
using System.Collections;
using System.Collections.Generic;
using maddox.game;
using maddox.game.world;
using System.ComponentModel.Design;
using System.Diagnostics;
using maddox.GP;
public class Mission : maddox.game.campaign.Mission
{
public override void OnBattleStarted()
{
GamePlay.gpHUDLogCenter("On battle started");
}
}
It doesn't work.
What am I doing wrong?
Bookmarks