int OnPropertyAdded(PropertyDef def, PropertyValue v, int propertyID = 0) { def.m_propertyID = propertyID == 0 ? m_defines.Count : propertyID; m_defines[def.m_propertyID] = def; v.m_type = def.m_type; PropertySet propDefault = m_allPropertyClass.GetDefaultProperty(); return(propDefault.AddPropertyIn(v, def.m_propertyID)); }
public void AddProperty(int propertyID, int notifyPipe) { PropertyValue v = new PropertyValue(); int index = m_default.AddPropertyIn(v, propertyID); if ((notifyPipe & (int)ENPropertyNotifyPipe.enNotifyPipeSerializeSave) > 0) { m_saveProperty.Add(index); } if ((notifyPipe & (int)ENPropertyNotifyPipe.enNotifyPipeAround) > 0) { m_viewableProperty.Add(index); } }