@@ -7,7 +7,8 @@ namespace AltV.Net.Mock
77 //TODO: MValue_GetEntity is currently broken because the cpp code tries to access the getType method from entity
88 //TODO: we need a way now to create MValues that are giving back the correct values inside storage pointer but without using mvalue_get
99 //TODO: or create own mock cpp lib? maybe add an macro for building mock lib
10- public class MockAltV < TPlayer , TVehicle , TPed , TObject , TBlip , TCheckpoint , TVoiceChannel , TColShape , TVirtualEntity , TVirtualEntityGroup , TMarker , TConnectionInfo > where TPlayer : IPlayer
10+ public class MockAltV < TPlayer , TVehicle , TPed , TObject , TBlip , TCheckpoint , TVoiceChannel , TColShape ,
11+ TVirtualEntity , TVirtualEntityGroup , TMarker , TConnectionInfo > where TPlayer : IPlayer
1112 where TVehicle : IVehicle
1213 where TBlip : IBlip
1314 where TCheckpoint : ICheckpoint
@@ -18,7 +19,7 @@ public class MockAltV<TPlayer, TVehicle, TPed, TObject, TBlip, TCheckpoint, TVoi
1819 where TVirtualEntityGroup : IVirtualEntityGroup
1920 where TMarker : IMarker
2021 where TConnectionInfo : IConnectionInfo
21- where TColShape : IColShape
22+ where TColShape : IColShape
2223 {
2324 private readonly ICore core ;
2425
@@ -35,9 +36,11 @@ public MockAltV(string entryPoint)
3536 var voiceChannelFactory = new MockVoiceChannelFactory < TVoiceChannel > ( resource . GetVoiceChannelFactory ( ) ) ;
3637 var colShapeFactory = new MockColShapeFactory < TColShape > ( resource . GetColShapeFactory ( ) ) ;
3738 var virtualEntityFactory = new MockVirtualEntityFactory < TVirtualEntity > ( resource . GetVirtualEntityFactory ( ) ) ;
38- var virtualEntityGroupFactory = new MockVirtualEntityGroupFactory < TVirtualEntityGroup > ( resource . GetVirtualEntityGroupFactory ( ) ) ;
39+ var virtualEntityGroupFactory =
40+ new MockVirtualEntityGroupFactory < TVirtualEntityGroup > ( resource . GetVirtualEntityGroupFactory ( ) ) ;
3941 var markerFactory = new MockMarkerFactory < TMarker > ( resource . GetMarkerFactory ( ) ) ;
40- var connectionInfoFactory = new MockConnectionInfoFactory < TConnectionInfo > ( resource . GetConnectionInfoFactory ( ) ) ;
42+ var connectionInfoFactory =
43+ new MockConnectionInfoFactory < TConnectionInfo > ( resource . GetConnectionInfoFactory ( ) ) ;
4144
4245 var playerPool = new MockPlayerPool ( playerFactory ) ;
4346 var vehiclePool = new MockVehiclePool ( vehicleFactory ) ;
@@ -53,15 +56,17 @@ public MockAltV(string entryPoint)
5356 var connectionInfoPool = new MockConnectionInfoPool ( connectionInfoFactory ) ;
5457
5558 var baseObjectPool =
56- new MockPoolManager ( playerPool , vehiclePool , pedPool , objectPool , blipPool , checkpointPool , voiceChannelPool , colShapePool , virtualEntityPool , virtualEntityGroupPool , markerPool , connectionInfoPool ) ;
59+ new MockPoolManager ( playerPool , vehiclePool , pedPool , objectPool , blipPool , checkpointPool ,
60+ voiceChannelPool , colShapePool , virtualEntityPool , virtualEntityGroupPool , markerPool ,
61+ connectionInfoPool ) ;
5762 core = new MockCore ( IntPtr . Zero , baseObjectPool , null ) ;
5863 resource . OnStart ( ) ;
5964 }
6065
6166 public IPlayer ConnectPlayer ( string playerName , string reason , Action < IPlayer > intercept = null )
6267 {
6368 var ptr = MockEntities . GetNextPtr ( out var entityId ) ;
64- var player = Alt . Core . PoolManager . Player . Create ( core , ptr , entityId ) ;
69+ var player = Alt . Core . PoolManager . Player . Create ( core , ptr , entityId ) ;
6570 //player.Name = playerName;
6671 intercept ? . Invoke ( player ) ;
6772 Alt . CoreImpl . OnPlayerConnect ( ptr , player . Id , reason ) ;
0 commit comments