public bool LoadEntity(GameObject entity)
{
var editor = new GameObjectEditor();
editor.SetEntity(entity);
editor.LinkedEditor = this;
MainScreen.Instance.AddEditor(editor, false);
var localEntity = new GameObject(entity.Animation);
foreach (var item in entity.Animations.Values)
{
localEntity.Animations[item.Name] = item;
}
Objects.Add(new ResizableObject(ResizableObject.ObjectType.GameObject, localEntity));
GameObjectPanel.RebuildListBox();
localEntity.Position = entity.Position;
LinkedGameObjects.Add(localEntity, entity);
FixLinkedObjectTitles();
return(true);
}