Exemplo n.º 1
0
    public override void Load(Stream fs)
    {
        currentStep = (FoundationScenarioStep)fs.ReadByte();
        if (currentStep >= FoundationScenarioStep.AnchorBuilding)
        {
            AssignAnchor(colony.GetBuilding(Structure.ANCHOR_BASEMENT_ID) as AnchorBasement);
        }
        //
        if (fs.ReadByte() == 1)
        {
            if (hexBuilder == null)
            {
                SetHexBuilder();
            }
            hexBuilder.Load(fs);
        }
        //
        int x = fs.ReadByte();

        if (x != 0)
        {
            FoundationScenarioStep fss = (FoundationScenarioStep)fs.ReadByte();
            subscenario = FDR_Subscenario.GetSubscenario(fss, this);
            if (subscenario != null)
            {
                subscenario.StartScenario();
                subscenario.Load(fs);
            }
        }
        //
        if (fs.ReadByte() == 1)
        {
            PrepareSettling();
        }
    }
    public override void Load(FileStream fs)
    {
        currentStep = (FoundationScenarioStep)fs.ReadByte();
        if (currentStep > FoundationScenarioStep.AnchorBuilding)
        {
            AssignAnchor(colony.GetBuilding(Structure.ANCHOR_BASEMENT_ID) as AnchorBasement);
        }
        int x = fs.ReadByte();

        if (x != 0)
        {
            StartSubscenario();
            subscenario.Load(fs);
        }
    }