Ejemplo n.º 1
0
 public AltVAsync()
 {
     mainThread      = Thread.CurrentThread;
     mainThread.Name = "main";
     scheduler       = new TickScheduler(mainThread);
     taskFactory     = new TaskFactory(
         CancellationToken.None, TaskCreationOptions.DenyChildAttach,
         TaskContinuationOptions.None, scheduler);
     AltAsync.Setup(this);
 }
Ejemplo n.º 2
0
 public AsyncModule(IServer server, CSharpNativeResource cSharpNativeResource,
                    IBaseBaseObjectPool baseBaseObjectPool, IBaseEntityPool baseEntityPool, IEntityPool <IPlayer> playerPool,
                    IEntityPool <IVehicle> vehiclePool,
                    IBaseObjectPool <IBlip> blipPool,
                    IBaseObjectPool <ICheckpoint> checkpointPool,
                    IBaseObjectPool <IVoiceChannel> voiceChannelPool) : base(server, cSharpNativeResource, baseBaseObjectPool,
                                                                             baseEntityPool, playerPool, vehiclePool, blipPool,
                                                                             checkpointPool, voiceChannelPool)
 {
     AltAsync.Setup(this);
 }
Ejemplo n.º 3
0
        public AltVAsync(ITickSchedulerFactory tickSchedulerFactory)
        {
            mainThread = Thread.CurrentThread;
            if (mainThread.Name == "")
            {
                mainThread.Name = "main";
            }

            scheduler = tickSchedulerFactory.Create(mainThread);
            AltAsync.Setup(this);
            TickDelegate = FirstTick;
        }
Ejemplo n.º 4
0
 public AsyncModule(IServer server, AssemblyLoadContext assemblyLoadContext, INativeResource moduleResource,
                    IBaseBaseObjectPool baseBaseObjectPool, IBaseEntityPool baseEntityPool, IEntityPool <IPlayer> playerPool,
                    IEntityPool <IVehicle> vehiclePool,
                    IBaseObjectPool <IBlip> blipPool,
                    IBaseObjectPool <ICheckpoint> checkpointPool,
                    IBaseObjectPool <IVoiceChannel> voiceChannelPool,
                    IBaseObjectPool <IColShape> colShapePool,
                    INativeResourcePool nativeResourcePool) : base(server, assemblyLoadContext, moduleResource,
                                                                   baseBaseObjectPool,
                                                                   baseEntityPool, playerPool, vehiclePool, blipPool,
                                                                   checkpointPool, voiceChannelPool, colShapePool, nativeResourcePool)
 {
     AltAsync.Setup(this);
 }
Ejemplo n.º 5
0
        public AltVAsync(ITickSchedulerFactory tickSchedulerFactory)
        {
            mainThread = Thread.CurrentThread;
            if (mainThread.Name == "")
            {
                mainThread.Name = "main";
            }

            scheduler   = tickSchedulerFactory.Create(mainThread);
            taskFactory = new TaskFactory(
                CancellationToken.None, TaskCreationOptions.DenyChildAttach,
                TaskContinuationOptions.None, scheduler);
            AltAsync.Setup(this);
            TickDelegate = FirstTick;
        }