예제 #1
0
        void ShowGroups()
        {
            var flags   = currentProperty.GetValue <ByteFlag>();
            var options = new FlagsOption[groupData.Count];

            for (int i = 0; i < options.Length; i++)
            {
                var group = groupData[i];
                var name  = group.GroupName.Replace('_', '/').ToGUIContent();
                options[i] = new FlagsOption(name, group, EntityMatchOld.Matches(flags, group.Group));
            }

            Flags(currentPosition, currentProperty, options, OnGroupSelected, currentLabel);
        }
예제 #2
0
 public bool IsComponentGroupValid(IEntityOld entity, ByteFlag components)
 {
     return(EntityMatchOld.Matches(entity, components, match));
 }
예제 #3
0
 public bool IsEntityGroupValid(IEntityOld entity, ByteFlag groups)
 {
     return(EntityMatchOld.Matches(entity.Groups, groups, match));
 }