Esempio n. 1
0
        public static ModelAnimationData[] parseAnimationData(ConfigNode[] nodes)
        {
            int len = nodes.Length;

            ModelAnimationData[] data = new ModelAnimationData[len];
            for (int i = 0; i < len; i++)
            {
                data[i] = new ModelAnimationData(nodes[i]);
            }
            return(data);
        }
Esempio n. 2
0
 public AnimationData(ConfigNode node)
 {
     deployLabel       = node.GetStringValue("deployLabel", "Deploy");
     retractLabel      = node.GetStringValue("retractLabel", "Retract");
     toggleLabel       = node.GetStringValue("toggleLabel", "Toggle");
     deployLimitActive = node.GetBoolValue("deployLimitActive", false);
     activeEditor      = node.GetBoolValue("activeEditor", true);
     activeFlight      = node.GetBoolValue("activeFlight", true);
     activeUnfocused   = node.GetBoolValue("activeUnfocused", false);
     activeUncommanded = node.GetBoolValue("activeUncommanded", false);
     activeEVAOnly     = node.GetBoolValue("activeEVAOnly", false);
     unfocusedRange    = node.GetFloatValue("unfocusedRange", 4f);
     oneShot           = node.GetBoolValue("oneShot", false);
     looping           = node.GetBoolValue("looping", false);
     //the actual animation data for the model
     mads = ModelAnimationData.parseAnimationData(node.GetNodes("ANIMATION"));
 }