当前位置: 首页>>代码示例>>C#>>正文


C# Core.GetPlugin方法代码示例

本文整理汇总了C#中Core.GetPlugin方法的典型用法代码示例。如果您正苦于以下问题:C# Core.GetPlugin方法的具体用法?C# Core.GetPlugin怎么用?C# Core.GetPlugin使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Core的用法示例。


在下文中一共展示了Core.GetPlugin方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: JoystickActivatedTrigger

 public JoystickActivatedTrigger(Core coordinator, XmlNode node)
     : base(coordinator, GetName(node, "Joystick Activated Trigger"))
 {
     mCoordinator = coordinator;
     if (mCoordinator.HasPlugin<XBoxControllerPlugin>()) {
         mPlugin = mCoordinator.GetPlugin<XBoxControllerPlugin>();
         mInitialised = true;
     }
 }
开发者ID:JohnMcCaffery,项目名称:ChimeraClean,代码行数:9,代码来源:JoystickActivatedTrigger.cs

示例2: Init

        public void Init(Core core)
        {
            if (!core.HasPlugin<OverlayPlugin>()) {
                Logger.Warn("Unable to initialise MousePlugin. No OverlayPlugin registered with the coordinator.");
            } else {
                mOverlayPlugin = core.GetPlugin<OverlayPlugin>();
                mCore = core;
            }

            //if (mEnabled)
                //core.Tick += mTickListener;
        }
开发者ID:JohnMcCaffery,项目名称:ChimeraClean,代码行数:12,代码来源:MousePlugin.cs

示例3: Init

 public void Init(Core core)
 {
     if (!core.HasPlugin<OverlayPlugin>()) {
         //throw new ArgumentException("Unable to load kinect cursor. Overlay plugin is not loaded.");
         Logger.Warn("Unable to load axis cursor. Overlay plugin is not loaded.");
         Init();
         return;
     }
     mOverlayPlugin = core.GetPlugin<OverlayPlugin>();
     if (core.HasFrame(mWindow)) {
         mManager = mOverlayPlugin[mWindow];
     } else {
         mWindowAddedListener = new Action<Chimera.Frame, EventArgs>(coordinator_WindowAdded);
         core.FrameAdded += mWindowAddedListener;
     }
     Init();
 }
开发者ID:JohnMcCaffery,项目名称:ChimeraClean,代码行数:17,代码来源:AxisCursorPlugin.cs

示例4: Init

 public void Init(Core core)
 {
     mCore = core;
     config = new KinectDisableConfig();
     Key = config.DisableKey;
     log = LogManager.GetLogger("KinectDisable");
     hotkey = new Hotkey();
     hotkey.KeyCode = Key;
     hotkey.Pressed += new HandledEventHandler(hostkey_keypressed);
     if(mCore.HasPlugin<KinectMovementPlugin>())
         mInput = mCore.GetPlugin<KinectMovementPlugin>();
     if(mCore.HasPlugin<SimpleKinectCursor>())
         mCursor = mCore.GetPlugin<SimpleKinectCursor>();
 }
开发者ID:JohnMcCaffery,项目名称:ChimeraClean,代码行数:14,代码来源:KinectDisablePlugin.cs

示例5: Init

        public void Init(Core core)
        {
            mCore = core;
            mMainController = mCore.GetPlugin<OpenSimController>();
            mMainController.ClientLoginComplete += new EventHandler(mMainController_CLientLoginComplete);
            mCore.ControlMode = mConfig.Mode;
            if (mCore.HasPlugin<ClientRecorderPlugin>())
                mRecorder = mCore.GetPlugin<ClientRecorderPlugin>();

            if (!mConfig.SettingsLoaderEnabled || !mCore.HasPlugin<SettingLoaderPlugin>())
                Logger.Info("Setting Settings file: " + mConfig.SettingsFile + ".");
            Logger.Info("Setting Region: " + mConfig.Region + ".");

            foreach (var frame in core.Frames) {
                ViewerConfig config = (frame.Output as OpenSimController).Config as ViewerConfig;
                if (!mConfig.SettingsLoaderEnabled || !mCore.HasPlugin<SettingLoaderPlugin>())
                    SettingLoaderPlugin.ReplaceSettingsFile(config, mConfig.SettingsFile, mConfig, Logger);
                config.ViewerArguments += " --set LoginLocation \"" + mConfig.Region + "\"";
            }
            LoadTargets();
        }
开发者ID:JohnMcCaffery,项目名称:ChimeraClean,代码行数:21,代码来源:AvatarMovementPlugin.cs

示例6: Init

        public void Init(Core coordinator)
        {
            if (!coordinator.HasPlugin<OverlayPlugin>())
                return;

            mOverlay = coordinator.GetPlugin<OverlayPlugin>();

            foreach (var state in mOverlay.States)
                mStatistics.Add(state.Name, new TickStatistics());

            if (mOverlay.CurrentState != null)
                StateActivated(mOverlay.CurrentState);

            mOverlay.StateChanged += new Action<Overlay.State>(StateActivated);
        }
开发者ID:JohnMcCaffery,项目名称:ChimeraClean,代码行数:15,代码来源:OverlayStatsPlugin.cs

示例7: Init

        public override void Init(Core input)
        {
            base.Init(input);

            if (input.HasPlugin<OverlayPlugin>()) {
                mOverlayPlugin = input.GetPlugin<OverlayPlugin>();
            }

            if (input.Frames.Count() == 0)
                input.FrameAdded += new Action<Frame, EventArgs>(input_FrameAdded);
            else {
                mFrame = input.Frames.First();
                if (mConfig.Frame != null)
                    mFrame = input[mConfig.Frame];
                input_FrameAdded(mFrame, null);
            }
        }
开发者ID:JohnMcCaffery,项目名称:ChimeraClean,代码行数:17,代码来源:TouchscreenPlugin.cs


注:本文中的Core.GetPlugin方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。