コード例 #1
0
        public void IncludeReadonly <T>() where T : IComponent
        {
            int pos = TypeHelper.Component <T> .componentIndex;

            includeMask.Set(pos);
            includeWriteMask.Unset(pos);
            excludeMask.Unset(pos);
#if DEBUG
            AddToDebugList(ref includeTypes, typeof(T));
#endif
        }
コード例 #2
0
        public void ExcludeShared <T>() where T : ISharedComponent
        {
            int pos = TypeHelper.SharedComponent <T> .componentIndex;

            sharedExcludeMask.Set(pos);
            sharedIncludeMask.Unset(pos);
#if DEBUG
            AddToDebugList(ref sharedExcludeTypes, typeof(T));
#endif
        }