示例#1
0
 /// <summary>
 /// Initilises the beginging of a UI creation. Complete must be called for the UI to be added to the entity controller
 /// </summary>
 /// <param name="entityController"></param>
 public static void Begin(EntityController entityController)
 {
     panel = null;
     components.Clear();
     entityGroup = new EntityGroup();
     UIBuilder.entityController = entityController;
     panel = new PanelC();
 }
示例#2
0
        /// <summary>
        /// For code readability, however it serves no real purpose other then retreaving the id of the base UI panel Entity
        /// </summary>
        /// <returns> The id of the base UI Panel</returns>
        public static EntityGroup Complete()
        {
            if (panel == null)
            {
                throw new UIException("Complete called before Begin");
            }

            panel = null;
            components.Clear();
            entityGroup = null;
            return(entityGroup);
        }