예제 #1
0
 public static Matrix GetBaseEnemyFleetTrans(
     App app,
     int skFleetId,
     Kerberos.Sots.GameStates.StarSystem starSystem,
     OrbitalObjectInfo[] orbitalObjects)
 {
     return(SystemKiller.GetSpawnTransform(app, skFleetId, starSystem, orbitalObjects));
 }
예제 #2
0
        public static SystemKiller InitializeEncounter(
            GameDatabase gamedb,
            AssetDatabase assetdb)
        {
            SystemKiller systemKiller = new SystemKiller();

            systemKiller.PlayerId = gamedb.InsertPlayer("System Killer", "grandmenaces", new int?(), assetdb.RandomEncounterPrimaryColor, new Vector3(0.0f), "", "\\base\\factions\\grandmenaces\\avatars\\Systemkiller_Avatar.tga", 0.0, 0, false, false, false, 0, AIDifficulty.Normal);
            DesignInfo design = new DesignInfo(systemKiller.PlayerId, "System Killer", new string[1]
            {
                string.Format("factions\\{0}\\sections\\{1}", (object)"grandmenaces", (object)"systemkiller.section")
            });

            systemKiller._systemKillerDesignId = gamedb.InsertDesignByDesignInfo(design);
            return(systemKiller);
        }
예제 #3
0
        public static SystemKiller ResumeEncounter(GameDatabase gamedb)
        {
            SystemKiller systemKiller = new SystemKiller();
            PlayerInfo   playerInfo   = gamedb.GetPlayerInfos().ToList <PlayerInfo>().FirstOrDefault <PlayerInfo>((Func <PlayerInfo, bool>)(x =>
            {
                if (!x.isStandardPlayer)
                {
                    return(x.Name.Contains("System Killer"));
                }
                return(false);
            }));

            systemKiller.PlayerId = playerInfo.ID;
            List <DesignInfo> list = gamedb.GetDesignInfosForPlayer(systemKiller.PlayerId).ToList <DesignInfo>();

            systemKiller._systemKillerDesignId = list.First <DesignInfo>((Func <DesignInfo, bool>)(x => x.DesignSections[0].FilePath.EndsWith("systemkiller.section"))).ID;
            return(systemKiller);
        }