Exemple #1
0
        public AttributeNode(TSHintAttribute attribute, float value)
        {
            Name = attribute.Name;

            Type = attribute.TypeOfValue;
            if (Type == typeof(Single) || Type == typeof(Double))
            {
                Value = value.ToString("F");
            }
            else
            {
                Value = Convert.ChangeType(value, Type).ToString();
            }

            m_annotation = attribute.Annotation;
        }
 public void SetHint(TSHintAttribute attr, float value)
 {
     // some TSHints related to Tetris?
 }
        public AttributeNode(TSHintAttribute attribute, float value)
        {
            Name = attribute.Name;

            Type = attribute.TypeOfValue;
            if (Type == typeof(Single) || Type == typeof(Double))
                Value = value.ToString("F");
            else
                Value = Convert.ChangeType(value, Type).ToString();

            m_annotation = attribute.Annotation;
        }
Exemple #4
0
 public void SetHint(TSHintAttribute attr, float value)
 {
 }