コード例 #1
0
 protected override void InitializeAndCreateRealExpander()
 {
     Item item = Parameters.ParseEnum<Item>("Item");
     switch (item)
     {
         case Item.MorphingBall:
             m_realExpander =
                 new LineCapsOnly(TerminalName, MissionNodeID, Parameters);
             m_realExpander.AddParameter("Length", "2");
             m_realExpander.AddParameter("Direction", "HRandom");
             m_realExpander.AddParameter("PostProcessor[0]", "BallLock");
             m_realExpander.AddParameter("PostProcessor[1]", "BallLock");
             break;
         case Item.IceBeam:
             const int iceBeamTrialLength = 3;
             m_realExpander =
                 new LineCapsOnly(TerminalName, MissionNodeID, Parameters);
             m_realExpander.AddParameter("FractalCreator", "FractalCreatorStraight");
             m_realExpander.AddParameter("Length", iceBeamTrialLength.ToString());
             m_realExpander.AddParameter("Direction", "Up");
             for (int i = 0; i < iceBeamTrialLength; ++i)
             {
                 m_realExpander.AddParameter(
                     String.Format("{0}[{1}]", "ObjectPopulator", i),
                     "SingleRipper");
             }
             break;
     }
 }
コード例 #2
0
        protected override void InitializeAndCreateRealExpander()
        {
            Item item = Parameters.ParseEnum<Item>("Item");

            m_realExpander = new LineCapsOnly(TerminalName, MissionNodeID, Parameters);
            m_realExpander.AddParameter("Length", "1");
            m_realExpander.AddParameter("FractalCreator", "FractalCreatorStraight");
            m_realExpander.AddParameter("ObjectPopulator[0]", "ChozoWithItem");
        }