private void LoadInputBehaviorNow(Player player, InputBehavior inputBehavior) {
            if(player == null || inputBehavior == null) return;

            string xml = GetInputBehaviorXml(player, inputBehavior.id); // try to the behavior for this id
            if(xml == null || xml == string.Empty) return; // no data found for this behavior
            inputBehavior.ImportXmlString(xml); // import the data into the behavior
        }
Ejemplo n.º 2
0
        private void LoadInputBehaviorNow(Player player, InputBehavior inputBehavior)
        {
            if (player == null || inputBehavior == null)
            {
                return;
            }
            string inputBehaviorXml = this.GetInputBehaviorXml(player, inputBehavior.id);

            if (inputBehaviorXml == null || inputBehaviorXml == string.Empty)
            {
                return;
            }
            inputBehavior.ImportXmlString(inputBehaviorXml);
        }
Ejemplo n.º 3
0
        private int LoadInputBehaviorNow(Player player, InputBehavior inputBehavior)
        {
            if (player == null || inputBehavior == null)
            {
                return(0);
            }
            string inputBehaviorXml = this.GetInputBehaviorXml(player, inputBehavior.id);

            if (inputBehaviorXml == null || inputBehaviorXml == string.Empty)
            {
                return(0);
            }
            return((!inputBehavior.ImportXmlString(inputBehaviorXml)) ? 0 : 1);
        }
        private int LoadInputBehaviorNow(Player player, InputBehavior inputBehavior) {
            if(player == null || inputBehavior == null) return 0;

            string xml = GetInputBehaviorXml(player, inputBehavior.id); // try to the behavior for this id
            if(xml == null || xml == string.Empty) return 0; // no data found for this behavior
            return inputBehavior.ImportXmlString(xml) ? 1 : 0; // import the data into the behavior
        }
 private void LoadInputBehaviorNow(Player player, InputBehavior inputBehavior)
 {
     if (player == null || inputBehavior == null)
     {
         return;
     }
     string inputBehaviorXml = this.GetInputBehaviorXml(player, inputBehavior.id);
     if (inputBehaviorXml == null || inputBehaviorXml == string.Empty)
     {
         return;
     }
     inputBehavior.ImportXmlString(inputBehaviorXml);
 }