Beispiel #1
0
        internal void AddProperty(RobloxProperty Property)
        {
            if (Properties == null)
            {
                Properties = new List <RobloxProperty>();
            }

            Properties.Add(Property);
        }
Beispiel #2
0
        internal bool GetProperty(string PropertyName, out RobloxProperty PropertyInst)
        {
            if (this.Properties != null)
            {
                foreach (var Property in Properties)
                {
                    if (Property.Name == PropertyName)
                    {
                        PropertyInst = Property;
                        return(true);
                    }
                }
            }

            if (Superclass != null)
            {
                return(Superclass.GetProperty(PropertyName, out PropertyInst));
            }

            PropertyInst = null;
            return(false);
        }