private void LoadPositionComponent(GameEntity entity, PositionComponentInfo componentInfo)
        {
            var poscomp = new PositionComponent();
            entity.AddComponent(poscomp);

            if (componentInfo != null)
                poscomp.LoadInfo(componentInfo);
        }
 public IComponentInfo Load(XElement node, Project project)
 {
     var posInfo = new PositionComponentInfo();
     posInfo.PersistOffscreen = node.TryAttribute<bool>("persistoffscreen");
     return posInfo;
 }
 internal void LoadInfo(PositionComponentInfo info)
 {
     PersistOffScreen = info.PersistOffscreen;
 }