public HostSupportComponent(IEntityLogger logger, IPlatformSupport platformSupport, HumanoidNPCGameComponentContext internalContext, IWorldCoreGameComponentContext worldContext)
     : base(logger)
 {
     _internalContext     = internalContext;
     _worldContext        = worldContext;
     _invokerInMainThread = worldContext.InvokerInMainThread;
     _platformSupport     = platformSupport;
 }
Ejemplo n.º 2
0
 public void setPlatform(IPlatformSupport pl)
 {
     this.platform = pl;
     pubPool.setPlatform(pl);
     subPool.setPlatform(pl);
     cliPool.setPlatform(pl);
     srvPool.setPlatform(pl);
 }
        public static void runNodeInThisThread(IPlatformSupport platform, GMQueue gmq, INodeFactory factory)
        {
            ThreadStartInfo info = new ThreadStartInfo();

            info.platform  = platform;
            info.gmq       = gmq;
            info.factories = new INodeFactory[] { factory };

            nodeThreadQueueMain(info);
        }
        public static void runNodeInAnotherThread(IPlatformSupport platform, GMQueue gmq, INodeFactory factory)
        {
            ThreadStartInfo info = new ThreadStartInfo();

            info.platform  = platform;
            info.gmq       = gmq;
            info.factories = new INodeFactory[] { factory };

            Thread th = new Thread(nodeThreadQueueMain);

            th.Start(info);
        }
 public TstHostSupportComponent(IPlatformSupport platformSupport)
 {
     _platformSupport = platformSupport;
 }
Ejemplo n.º 6
0
 public void setPlatform(IPlatformSupport pl) { platform = pl; }