Exemplo n.º 1
0
        public Matcher One(params Type[] types)
        {
            foreach (var type in types)
            {
                oneSet.set(ComponentTypeManager.GetIndexFor(type));
            }

            return(this);
        }
Exemplo n.º 2
0
        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();
        }