public GrapheneObject(string descriptor) { m_raw = descriptor; string[] parts = descriptor.Split('.'); if (parts.Length == 3) { m_type = (GrapheneObjectTypes)Enum.Parse(typeof(GrapheneObjectTypes), parts[1]); if (parts[0] == "2") { m_type = (GrapheneObjectTypes)((uint)m_type + (int)GrapheneObjectTypes.MIDDLE + 1); } m_index = uint.Parse(parts[2]); } }