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); }
public bool IsComponentGroupValid(IEntityOld entity, ByteFlag components) { return(EntityMatchOld.Matches(entity, components, match)); }
public bool IsEntityGroupValid(IEntityOld entity, ByteFlag groups) { return(EntityMatchOld.Matches(entity.Groups, groups, match)); }