public StartPosItem(NJS_OBJECT model, string textures, float offset, Vertex position, int yrot, Device dev, EditorItemSelection selectionManager, bool Weight = false) : base(selectionManager) { Model = model; hasWeight = Weight; model.ProcessVertexData(); if (hasWeight) { Meshes = model.ProcessWeightedModel().ToArray(); } else { NJS_OBJECT[] models = model.GetObjects(); Meshes = new Mesh[models.Length]; for (int i = 0; i < models.Length; i++) { if (models[i].Attach != null) { Meshes[i] = models[i].Attach.CreateD3DMesh(); } } } texture = textures; this.offset = offset; Position = position; YRotation = yrot; }