private BaseObject CreateDynamicBaseObject(Xmb2Element childElement) { var typeName = childElement.GetAttributeByName("type").GetTextValue(); var type = ObjectType.FindByFullName(typeName); return(type.ConstructFunction2()); }
private SQEX.Luminous.Core.Object.Object ReadObject(Xmb2Element element, out bool through) { through = false; string typeFullName = null; var typeAttribute = element.GetAttributeByName("type"); if (typeAttribute != null) { typeFullName = typeAttribute.GetTextValue(); } var type = ObjectType.FindByFullName(typeFullName); if (type == null) { return(null); } /*if (type == EntityPackage.ObjectType) * { * return null; * }*/ var instance = type.ConstructFunction2() as SQEX.Luminous.Core.Object.Object; if (instance != null) { through = true; } return(instance); }