Exemple #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);
        }
Exemple #2
0
 public static IEntityGroupOld GetEntityGroup(EntityMatchOld match)
 {
     return(masterGroup.Filter(match));
 }
Exemple #3
0
 public IEntityGroupOld Filter(EntityMatchOld match)
 {
     return(Filter(match.Groups, match.Match));
 }
Exemple #4
0
 public bool IsComponentGroupValid(IEntityOld entity, ByteFlag components)
 {
     return(EntityMatchOld.Matches(entity, components, match));
 }
Exemple #5
0
 public bool IsEntityGroupValid(IEntityOld entity, ByteFlag groups)
 {
     return(EntityMatchOld.Matches(entity.Groups, groups, match));
 }