예제 #1
0
        protected PowerObject(IPBContainer parent, string name) : base(parent.GetParent(), name)
        {
            this.parentClass = null;
            Namespace.AddObject(this);

            functionsEnumerable = new ScriptFunctionsEnumerable(scriptFunctions);
            this.documentation  = new PowerObjectDoc(this);
        }
예제 #2
0
        // konstruktory pro unresolved objekty, tzn. objekty, ktere znaji pouze jmena svych potomku a predku
        public PowerObject(IPBContainer parent, string name, string super_class) : base(parent.GetParent(), name)
        {
            unresolvedSuperClass = super_class.ToLower();
            Namespace.AddObject(this);

            functionsEnumerable = new ScriptFunctionsEnumerable(scriptFunctions);
            this.documentation  = new PowerObjectDoc(this);
        }
예제 #3
0
        public PowerObject(IPBContainer parent, string name, PowerObject super_class, PowerObject parent_class) : base(parent.GetParent(), name)
        {
            this.parentClass = parent_class;
            this.superClass  = super_class;

            if (parent_class != null)
            {
                parent_class.AddChildClass(this);
            }
            if (super_class == null)
            {
                // TODO: super_class musi byt PowerObject
            }
            super_class.AddInheritedClass(this);

            functionsEnumerable = new ScriptFunctionsEnumerable(scriptFunctions);
            this.documentation  = new PowerObjectDoc(this);
        }