SoW Reddog
Oct-29-2013, 17:16
OK, so I've spent all day writing code at work (without the game obviously), sent it home and put it into my mission file and unsurprisingly it had a shed load of errors in it. I've managed to debug and go through it until I'm down to an issue I just don't understand.
This works from Kodiak's RDF script
GamePlay.gpSectorName(kvp.Key.Pos().x, kvp.Key.Pos().y);
where kvp.Key is an AiAirgroup
Yet this doesn't compile
GamePlay.gpSectorName(DynRaids[raid].Pos().x, DynRaids[raid].Pos().y);
where DynRaids is a dictionary <string, list> where the list is aiairgroup also.
The error I'm getting is
System.Collections.Generic.List<maddox.game.world.AiAirGroup>' does not contain a definition for 'Pos' and no extension method 'Pos' accepting a first argument of type 'System.Collections.Generic.List<maddox.game.world.AiAirGroup>' could be found (are you missing a using directive or an assembly reference?)
What the hell am I missing?
This works from Kodiak's RDF script
GamePlay.gpSectorName(kvp.Key.Pos().x, kvp.Key.Pos().y);
where kvp.Key is an AiAirgroup
Yet this doesn't compile
GamePlay.gpSectorName(DynRaids[raid].Pos().x, DynRaids[raid].Pos().y);
where DynRaids is a dictionary <string, list> where the list is aiairgroup also.
The error I'm getting is
System.Collections.Generic.List<maddox.game.world.AiAirGroup>' does not contain a definition for 'Pos' and no extension method 'Pos' accepting a first argument of type 'System.Collections.Generic.List<maddox.game.world.AiAirGroup>' could be found (are you missing a using directive or an assembly reference?)
What the hell am I missing?