public override void Initialization(FTLibrary.XML.XmlNode player)
        {
            base.Initialization(player);
            //Left = Convert.ToInt32(player.Attribute("leftValue"));
            //Right = Convert.ToInt32(player.Attribute("rightValue"));
            TurnMidValue     = Convert.ToInt32(player.Attribute("TurnMidValue"));
            TurnSilenceValue = Convert.ToInt32(player.Attribute("TurnSilenceValue"));
            TurnAxisKey      = Convert.ToInt32(player.Attribute("TurnAxisKey"));
            Front            = Convert.ToInt32(player.Attribute("frontValue"));
            Back             = Convert.ToInt32(player.Attribute("backValue"));
            InsertCoinsKey   = Convert.ToInt32(player.Attribute("InsertCoinsKey"));

            XmlNode node = player.SelectSingleNode("FireValue");

            Fire       = Convert.ToInt32(node.Attribute("inputValue"));
            FireOutput = Convert.ToInt32(node.Attribute("outputValue"));

            node      = player.SelectSingleNode("Egg");
            EggInput  = Convert.ToInt32(node.Attribute("inputValue"));
            EggOutput = Convert.ToInt32(node.Attribute("outputValue"));

            node         = player.SelectSingleNode("Ticket");
            TicketInput  = Convert.ToInt32(node.Attribute("inputValue"));
            TicketOutput = Convert.ToInt32(node.Attribute("outputValue"));
        }
Ejemplo n.º 2
0
        public override void Initialization(FTLibrary.XML.XmlNode player)
        {
            base.Initialization(player);
            Left       = (KeyCode)Convert.ToInt32(player.Attribute("leftValue"));
            Right      = (KeyCode)Convert.ToInt32(player.Attribute("rightValue"));
            Front      = (KeyCode)Convert.ToInt32(player.Attribute("frontValue"));
            Back       = (KeyCode)Convert.ToInt32(player.Attribute("backValue"));
            InsertCoin = (KeyCode)Convert.ToInt32(player.Attribute("InsertCoin"));

            Fire = (KeyCode)Convert.ToInt32(player.Attribute("fireValue"));
        }