public MockAltV(string entryPoint) { var resource = new MockResourceLoader(IntPtr.Zero, string.Empty, entryPoint).Init(); var playerFactory = new MockPlayerFactory <TPlayer>(resource.GetPlayerFactory()); var vehicleFactory = new MockVehicleFactory <TVehicle>(resource.GetVehicleFactory()); var blipFactory = new MockBlipFactory <TBlip>(resource.GetBlipFactory()); var checkpointFactory = new MockCheckpointFactory <TCheckpoint>(resource.GetCheckpointFactory()); var voiceChannelFactory = new MockVoiceChannelFactory <TVoiceChannel>(resource.GetVoiceChannelFactory()); var colShapeFactory = new MockColShapeFactory <TColShape>(resource.GetColShapeFactory()); var playerPool = new MockPlayerPool(playerFactory); var vehiclePool = new MockVehiclePool(vehicleFactory); var blipPool = new MockBlipPool(blipFactory); var checkpointPool = new MockCheckpointPool(checkpointFactory); var voiceChannelPool = new MockVoiceChannelPool(voiceChannelFactory); var colShapePool = new MockColShapePool(colShapeFactory); var entityPool = new MockBaseEntityPool(playerPool, vehiclePool); var baseObjectPool = new MockBaseBaseObjectPool(playerPool, vehiclePool, blipPool, checkpointPool, voiceChannelPool, colShapePool); var server = new MockServer(IntPtr.Zero, baseObjectPool, entityPool, playerPool, vehiclePool, blipPool, checkpointPool, voiceChannelPool); var cSharpNativeResource = new CSharpNativeResource(IntPtr.Zero); var module = resource.GetModule(server, AssemblyLoadContext.Default, cSharpNativeResource, baseObjectPool, entityPool, playerPool, vehiclePool, blipPool, checkpointPool, voiceChannelPool, colShapePool); resource.OnStart(); }
public MockAltV(string entryPoint) { //var resource = new MockResourceLoader(IntPtr.Zero, string.Empty, entryPoint).Init(); IResource resource = null; var playerFactory = new MockPlayerFactory <TPlayer>(resource.GetPlayerFactory()); var vehicleFactory = new MockVehicleFactory <TVehicle>(resource.GetVehicleFactory()); var blipFactory = new MockBlipFactory <TBlip>(resource.GetBlipFactory()); var checkpointFactory = new MockCheckpointFactory <TCheckpoint>(resource.GetCheckpointFactory()); var voiceChannelFactory = new MockVoiceChannelFactory <TVoiceChannel>(resource.GetVoiceChannelFactory()); var colShapeFactory = new MockColShapeFactory <TColShape>(resource.GetColShapeFactory()); var playerPool = new MockPlayerPool(playerFactory); var vehiclePool = new MockVehiclePool(vehicleFactory); var blipPool = new MockBlipPool(blipFactory); var checkpointPool = new MockCheckpointPool(checkpointFactory); var voiceChannelPool = new MockVoiceChannelPool(voiceChannelFactory); var colShapePool = new MockColShapePool(colShapeFactory); var entityPool = new MockBaseEntityPool(playerPool, vehiclePool); var baseObjectPool = new MockBaseBaseObjectPool(playerPool, vehiclePool, blipPool, checkpointPool, voiceChannelPool, colShapePool); core = new MockCore(IntPtr.Zero, baseObjectPool, entityPool, playerPool, vehiclePool, blipPool, checkpointPool, voiceChannelPool, null); resource.OnStart(); }