示例#1
0
    //Load in the already-created armies from local
    public void LoadArmiesFromFile()
    {
        FrontierSquadLibrary fsl = new FrontierSquadLibrary();

        rosters.Add(new List <Roster>());
        Roster test = new Roster("Test One", 0, Roster.Faction.FRONTIERWORLDS);

        test.AddSquad(System.ObjectExtensions.Copy(fsl.getItem("Frontiersmen")), "Test Frontiersmen");

        Debug.Log(test.GetSquad("Test Frontiersmen"));
        test.GetSquad("Test Frontiersmen").GetOption("Dyneema").implement(test.GetSquad("Test Frontiersmen"));
        Debug.Log(test.GetSquad("Test Frontiersmen"));
        test.AddSquad(System.ObjectExtensions.Copy(fsl.getItem("Frontiersmen")), "Test Frontiersmen 2");
        Debug.Log(test.GetSquad("Test Frontiersmen 2"));

        rosters[0].Add(test);
    }