コード例 #1
0
        public static ComponentGroupListView CreateList(ComponentSystemBase system, List <TreeViewState> states, List <string> stateNames,
                                                        SetEntityListSelection entityQuerySelectionCallback, WorldSelectionGetter worldSelectionGetter)
        {
            var state = GetStateForSystem(system, states, stateNames);

            return(new ComponentGroupListView(state, system, entityQuerySelectionCallback, worldSelectionGetter));
        }
コード例 #2
0
 public ComponentGroupListView(TreeViewState state, ComponentSystemBase system, SetEntityListSelection entityListSelectionCallback, WorldSelectionGetter worldSelectionGetter) : base(state)
 {
     this.getWorldSelection           = worldSelectionGetter;
     this.entityListSelectionCallback = entityListSelectionCallback;
     selectedSystem = system;
     rowHeight     += 1;
     showAlternatingRowBackgrounds = true;
     Reload();
 }