コード例 #1
0
        private MonoBehaviour GetTempObject(TypeInitialization type)
        {
            var obj       = new GameObject(name + "_delay_destroyed");
            var component = obj.AddComponent <DelayDestroyedObject>();
            var duration  = _events.Where(evt => evt.IsEqualType(type)).Max(evt => evt.GetDuration()) + 1;

            component.Destroy(duration);
            return(component);
        }
コード例 #2
0
 public NodeFactory(CompilerTypeSystemContext context, TypeInitialization typeInitManager, bool cppCodeGen)
 {
     _target     = context.Target;
     _context    = context;
     _cppCodeGen = cppCodeGen;
     TypeInitializationManager = typeInitManager;
     DispatchMapTable          = new InterfaceDispatchMapTableNode(this.Target);
     CreateNodeCaches();
 }
コード例 #3
0
        public NodeFactory(CompilerTypeSystemContext context, TypeInitialization typeInitManager, CompilationModuleGroup compilationModuleGroup, bool cppCodeGen)
        {
            _target                   = context.Target;
            _context                  = context;
            _cppCodeGen               = cppCodeGen;
            _compilationModuleGroup   = compilationModuleGroup;
            TypeInitializationManager = typeInitManager;
            CreateNodeCaches();

            MetadataManager = new MetadataGeneration();
        }
コード例 #4
0
        private void DeleteAll_Click(string Name)
        {
            TypeInitialization initialization = new TypeInitialization();

            BACAClient.Model.Collection model = new BACAClient.Model.Collection
            {
                UserID = this.model.UserId,
                TypeID = initialization.INT,
                LngId  = initialization.INT
            };
            MESSAGE message = new MESSAGE();

            OpenWindows.Prompt(message.RemoveSuccess);
        }
コード例 #5
0
        private void Run(TypeInitialization type, Vector3 delta)
        {
            var eventsSelectedByType = _events.Where(evt => evt.IsEqualType(type)).ToArray();

            if (!eventsSelectedByType.Any())
            {
                return;
            }

            var obj = GetTempObject(type);

            foreach (var evt in eventsSelectedByType)
            {
                evt.Run(obj, delta);
            }
        }
コード例 #6
0
        private void Run(TypeInitialization type)
        {
            var eventsSelectedByType = _events.Where(evt => evt.IsEqualType(type)).ToArray();

            if (!eventsSelectedByType.Any())
            {
                return;
            }

            var obj = type == TypeInitialization.OnDestroy || type == TypeInitialization.OnDisable
                ? GetTempObject(type)
                : this;

            foreach (var evt in eventsSelectedByType)
            {
                evt.Run(obj);
            }
        }
コード例 #7
0
ファイル: DocDetail.xaml.cs プロジェクト: radtek/BACAClient
        private void A_Click(object sender, HtmlElementEventArgs e)
        {
            HtmlElement           elementFromPoint  = (sender as HtmlDocument).GetElementFromPoint(e.ClientMousePosition);
            HtmlElementCollection elementsByTagName = this.web_browser.Document.GetElementById("detail").GetElementsByTagName("a");
            string name = string.Empty;

            foreach (HtmlElement element3 in elementsByTagName)
            {
                if (element3.OuterHtml == elementFromPoint.OuterHtml)
                {
                    name = element3.Name;
                    break;
                }
            }
            if (!string.IsNullOrEmpty(name))
            {
                TypeInitialization initialization = new TypeInitialization();
                this.gotokdp(initialization.INT, initialization.INT, name);
            }
        }
コード例 #8
0
ファイル: Compilation.cs プロジェクト: shahid-pk/corert
        public Compilation(CompilationOptions options)
        {
            _options = options;

            _typeSystemContext = new CompilerTypeSystemContext(new TargetDetails(options.TargetArchitecture, options.TargetOS));
            _typeSystemContext.InputFilePaths = options.InputFilePaths;
            _typeSystemContext.ReferenceFilePaths = options.ReferenceFilePaths;

            _typeSystemContext.SetSystemModule(_typeSystemContext.GetModuleForSimpleName(options.SystemModuleName));

            _nameMangler = new NameMangler(this);

            _typeInitManager = new TypeInitialization();

            if (options.MultiFile)
            {
                _compilationModuleGroup = new MultiFileCompilationModuleGroup(_typeSystemContext, this);
            }
            else
            {
                _compilationModuleGroup = new SingleFileCompilationModuleGroup(_typeSystemContext, this);
            }
        }
コード例 #9
0
 private void Run(TypeInitialization type, in Func <string, bool> compareTag)
コード例 #10
0
ファイル: Events.cs プロジェクト: votizlov/CameraTracker
 public bool IsEqualType(TypeInitialization type) => type == _typeAction;