public bool Remove(IntPtr entityPointer, BaseObjectType baseObjectType) { switch (baseObjectType) { case BaseObjectType.Player: return(playerPool.Remove(entityPointer)); case BaseObjectType.Vehicle: return(vehiclePool.Remove(entityPointer)); case BaseObjectType.Blip: return(blipPool.Remove(entityPointer)); case BaseObjectType.Checkpoint: return(checkpointPool.Remove(entityPointer)); case BaseObjectType.VoiceChannel: return(voiceChannelPool.Remove(entityPointer)); case BaseObjectType.ColShape: return(colShapePool.Remove(entityPointer)); default: return(false); } }
public void OnRemoveVoiceChannel(IntPtr channelPointer) { VoiceChannelPool.Remove(channelPointer); }
public void OnRemoveCheckpoint(IntPtr checkpointPointer) { CheckpointPool.Remove(checkpointPointer); }
public void OnRemoveBlip(IntPtr blipPointer) { BlipPool.Remove(blipPointer); }