Exemple #1
0
        public ktValue(ktValue Value)
            : base("ktValue", 0)
        {
            //ktDebug.Log( "Value::CONSTR( " + Value.Export() + " )" );
            SetName(Value.Name);
            SetType(Value.Type);
            SetHardType(Value.HardType);
            SetConstant(Value.Constant);

            m_Object = Value.Value;
        }
Exemple #2
0
        public ktValue(ktString Name, ktString Type, ktIntObj Object,
                       bool HardType, bool Constant, ktClass CallbackClass)
            : base("ktValue", 0)
        {
            m_Object = Object;

            SetName(Name);
            SetType(Type);
            SetHardType(HardType);
            SetConstant(Constant);
            SetCallback(CallbackClass);
        }
Exemple #3
0
        public ktValue(ktString Name, ktString Type, ktIntObj Object,
                       bool HardType, bool Constant)
            : this(Name, Type, Object, HardType, Constant, null)
        {
            /*
            SetName( Name );
            SetType( Type );
            SetHardType( HardType );
            SetConstant( Constant );
            SetCallback( CallbackClass );*/

              //  m_Object = Object;
        }
Exemple #4
0
 public void SetValue(ktValue Value)
 {
     //ktDebug.Log( "ktValue::SetValue( " + Value.Export() + " )" );
     m_Name = Value.m_Name;
     m_VType = Value.Type;
     m_HardType = Value.HardType;
     m_Constant = Value.Constant;
     m_Object = Value.m_Object;
 }
Exemple #5
0
        public void SetTheValue(ktValue Value)
        {
            //ktDebug.Log( "ktValue::SetTheValue( " + Value.Export() + " )" );
            /*if (Hard && !CheckType( Value )) {
                throw new ktError( "The
            }*/
            if (!HardType)
            {
                m_VType = Value.Type;
            }
            m_Object = Value.m_Object;

            CallCallback("PropertyChanged");
        }