Editor.MainViewBase.closeTypeEditor C# (CSharp) Method

closeTypeEditor() public method

public closeTypeEditor ( uint targetid, EntityEditTargetType targetType ) : void
targetid uint
targetType EntityEditTargetType
return void
        public void closeTypeEditor(uint targetid, EntityEditTargetType targetType)
        {
            for (int i = 0; i < entityEditorInstanceList.Count; ++i)
            {
                if(entityEditorInstanceList[i].view.getId() == targetid && entityEditorInstanceList[i].view.getTargetType() == targetType)
                {
                    entityEditorInstanceList[i].view.Invoke((MethodInvoker)(() => entityEditorInstanceList[i].view.Close()));

                    return;
                }
            }

            //These can happen on delete that is not related to typeeditor, cannot check for errors here.
        }