示例#1
0
 void ICustomVisit <UTinyType.Reference> .CustomVisit(UTinyType.Reference value)
 {
     VisitReference(value);
 }
 public UTinyTypeTreeViewItem(IRegistry registry, UTinyModule.Reference mainModule, UTinyModule.Reference module, UTinyType.Reference type) :
     base(registry, mainModule, module)
 {
     Type = type;
 }
 void ICustomVisit <UTinyType.Reference> .CustomVisit(UTinyType.Reference value)
 {
     VisitReference(UTinyBinaryToken.TypeReference, value);
 }
 public CellGraphNodeBindings(UTinyType.Reference typeRef)
     : base(typeRef)
 {
 }
 private UTinyObject MakeObject(UTinyType.Reference typeRef)
 {
     return(new UTinyObject(m_Registry, typeRef));
 }
 private static void AddBindings <TBinding>(IRegistry registry, UTinyType.Reference type, Func <UTinyType.Reference, TBinding> del)
     where TBinding : IComponentBinding
 {
     type.Dereference(registry)?.AddAttribute(Bindings(del(type)));
 }
 private static IEnumerable <UTinyObject> GetComponentsImpl(this IEnumerable <UTinyEntity> source, UTinyType.Reference typeRef)
 {
     foreach (var entity in source)
     {
         var component = entity.GetComponent(typeRef);
         if (null != component)
         {
             yield return(component);
         }
     }
 }
        public static IEnumerable <UTinyEntity> WithoutComponent(this IEnumerable <UTinyEntity> source, UTinyType.Reference typeRef)
        {
            if (null == source)
            {
                throw new ArgumentNullException(nameof(source));
            }

            if (UTinyType.Reference.None.Equals(typeRef))
            {
                throw new ArgumentException(nameof(typeRef));
            }

            return(source.WithoutComponentImpl(typeRef));
        }