Exemplo n.º 1
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);
        }
Exemplo n.º 2
0
 public ktClass(ktString Name, ktClass Parent, ktList Properties, ktList Methods,
                bool AddIfNotSet, bool IsClass_, bool HardType = false, bool IsConstant = false)
     : base("ktClass", 0)
 {
     m_Name = Name;
     m_Parent = Parent;
     m_Properties = Properties;
     m_Methods = Methods;
     m_AddIfNotSet = AddIfNotSet;
     m_IsClass = IsClass_;
     m_HardType = HardType;
     m_IsConstant = IsConstant;
 }
Exemplo n.º 3
0
 public ktClass(ktClass Parent)
     : this("", Parent, null, null, Parent.AddIfNotSet, false)
 {
 }
Exemplo n.º 4
0
        public bool AddClass(ktClass Class)
        {
            if (Class == null)
                return false;

            if (m_Classes == null)
                m_Classes = new ktList();

            ktNode Node = new ktNode(Class);
            Node.Name = Class.Name;

            return m_Classes.Add(Node);
        }
Exemplo n.º 5
0
 public void SetCallback()
 {
     m_Callback = null;
 }
Exemplo n.º 6
0
 public void SetCallback(ktClass Callback)
 {
     m_Callback = Callback;
 }