示例#1
0
        public Matcher One(params Type[] types)
        {
            foreach (var type in types)
            {
                this.oneSet.Set(ComponentTypeManager.GetIndexFor(type));
            }

            return(this);
        }
示例#2
0
        private static void AppendTypes(StringBuilder builder, string headerMessage, BitSet typeBits)
        {
            var firstType = true;

            builder.Append(headerMessage);
            foreach (var type in ComponentTypeManager.GetTypesFromBits(typeBits))
            {
                if (!firstType)
                {
                    builder.Append(", ");
                }
                builder.Append(type.Name);

                firstType = false;
            }

            builder.AppendLine();
        }