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); }
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); }
public AltVAsync(ITickSchedulerFactory tickSchedulerFactory) { mainThread = Thread.CurrentThread; if (mainThread.Name == "") { mainThread.Name = "main"; } scheduler = tickSchedulerFactory.Create(mainThread); AltAsync.Setup(this); TickDelegate = FirstTick; }
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); }
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; }