@@ -19,7 +19,6 @@ public class PoolManager : IPoolManager
1919 public IBaseObjectPool < ICheckpoint > Checkpoint { get ; }
2020 public IBaseObjectPool < IVirtualEntity > VirtualEntity { get ; }
2121 public IBaseObjectPool < IVirtualEntityGroup > VirtualEntityGroup { get ; }
22- public IBaseObjectPool < IMarker > Marker { get ; }
2322 public IBaseObjectPool < IRmlDocument > RmlDocument { get ; }
2423 public IBaseObjectPool < IRmlElement > RmlElement { get ; }
2524 public IBaseObjectPool < IAudio > Audio { get ; }
@@ -35,6 +34,7 @@ public class PoolManager : IPoolManager
3534 public IBaseObjectPool < ILocalVehicle > LocalVehicle { get ; }
3635 public IBaseObjectPool < ILocalPed > LocalPed { get ; }
3736 public IBaseObjectPool < IFont > Font { get ; }
37+ public IBaseObjectPool < IMarker > Marker { get ; }
3838 public IBaseObjectPool < IColShape > ColShape { get ; }
3939
4040 public IPlayerPool Player { get ; }
@@ -76,7 +76,8 @@ public PoolManager(
7676 IBaseObjectPool < IAudioFrontendOutput > audioFrontendOutputPool ,
7777 IBaseObjectPool < IAudioAttachedOutput > audioAttachedOutputPool ,
7878 IBaseObjectPool < IAudioWorldOutput > audioWorldOutputPool ,
79- IBaseObjectPool < IFont > fontPool )
79+ IBaseObjectPool < IFont > fontPool ,
80+ IBaseObjectPool < IMarker > markerPool )
8081 {
8182 this . Player = playerPool ;
8283 this . Vehicle = vehiclePool ;
@@ -102,6 +103,7 @@ public PoolManager(
102103 AudioAttachedOutput = audioAttachedOutputPool ;
103104 AudioWorldOutput = audioWorldOutputPool ;
104105 Font = fontPool ;
106+ Marker = markerPool ;
105107 }
106108
107109 ISharedBaseObject ISharedPoolManager . GetOrCreate ( ISharedCore core , IntPtr entityPointer , BaseObjectType baseObjectType ,
@@ -139,6 +141,7 @@ public IBaseObject GetOrCreate(ICore core, IntPtr entityPointer, BaseObjectType
139141 BaseObjectType . AudioOutputFrontend => AudioFrontendOutput . GetOrCreate ( core , entityPointer , entityId ) ,
140142 BaseObjectType . AudioOutputWorld => AudioWorldOutput . GetOrCreate ( core , entityPointer , entityId ) ,
141143 BaseObjectType . Font => Font . GetOrCreate ( core , entityPointer , entityId ) ,
144+ BaseObjectType . Marker => Marker . GetOrCreate ( core , entityPointer , entityId ) ,
142145 _ => default
143146 } ;
144147 }
@@ -171,6 +174,7 @@ public IBaseObject GetOrCreate(ICore core, IntPtr entityPointer, BaseObjectType
171174 BaseObjectType . AudioOutputFrontend => AudioFrontendOutput . GetOrCreate ( core , entityPointer ) ,
172175 BaseObjectType . AudioOutputWorld => AudioWorldOutput . GetOrCreate ( core , entityPointer ) ,
173176 BaseObjectType . Font => Font . GetOrCreate ( core , entityPointer ) ,
177+ BaseObjectType . Marker => Marker . GetOrCreate ( core , entityPointer ) ,
174178 _ => default
175179 } ;
176180 }
@@ -204,6 +208,7 @@ public IBaseObject Get(IntPtr entityPointer, BaseObjectType baseObjectType)
204208 BaseObjectType . AudioOutputFrontend => AudioFrontendOutput . Get ( entityPointer ) ,
205209 BaseObjectType . AudioOutputWorld => AudioWorldOutput . Get ( entityPointer ) ,
206210 BaseObjectType . Font => Font . Get ( entityPointer ) ,
211+ BaseObjectType . Marker => Marker . Get ( entityPointer ) ,
207212 _ => default
208213 } ;
209214 }
@@ -242,6 +247,7 @@ public bool Remove(IntPtr entityPointer, BaseObjectType baseObjectType)
242247 BaseObjectType . AudioOutputFrontend => AudioFrontendOutput . Remove ( entityPointer ) ,
243248 BaseObjectType . AudioOutputWorld => AudioWorldOutput . Remove ( entityPointer ) ,
244249 BaseObjectType . Font => Font . Remove ( entityPointer ) ,
250+ BaseObjectType . Marker => Marker . Remove ( entityPointer ) ,
245251 _ => default
246252 } ;
247253 }
@@ -272,6 +278,7 @@ public void Dispose()
272278 AudioFrontendOutput . Dispose ( ) ;
273279 AudioWorldOutput . Dispose ( ) ;
274280 Font . Dispose ( ) ;
281+ Marker . Dispose ( ) ;
275282 }
276283 }
277284}
0 commit comments