public AsEntityTemplate( Tbl_EntityTemplate_Record _record) { m_listComponent = _record.ListComponent; foreach( Tbl_EntityTemplate_Record.AsProperty prop in _record.ListProperty) { AsProperty property = m_PropertySet.InitProperty( prop.name_, prop.varType_); property.SetDefaultValueAsString( prop.default_); } }
public override void LoadTable(string _path) { try{ XmlElement root = GetXmlRootElement(_path); XmlNodeList nodes = root.ChildNodes; foreach(XmlNode node in nodes) { Tbl_EntityTemplate_Record record = new Tbl_EntityTemplate_Record((XmlElement)node); EntityTemplateTable.Add(record.EntityType, record); } } catch(System.Exception e) { Debug.LogError("[Tbl_EntityTemplate_Table] LoadTable:|" + e + "| error while parsing"); } }