/*! * Sets the AV Objects stored in this palette. * \return The new AV Objects to be stored in this palette. */ public void SetObjs(IList <NiAVObject> value) { objs.Clear(); foreach (var itr in value) { var obj = new AVObject(); obj.name = itr.Name; obj.avObject = itr; objs.Add(obj); } }
/*! * Adds a single object to the collection. The collection will expand if necessary. * \param[in] mesh The object to add to the collection. */ public bool AddObj(NiAVObject obj) { foreach (var itr in objs) { if (itr.avObject == obj) { return(false); } } var avo = new AVObject(); avo.name = obj.Name; avo.avObject = obj; objs.Add(avo); numObjs++; return(false); }