예제 #1
0
        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);
            }
        }
예제 #2
0
 public void OnRemoveVoiceChannel(IntPtr channelPointer)
 {
     VoiceChannelPool.Remove(channelPointer);
 }
예제 #3
0
 public void OnRemoveCheckpoint(IntPtr checkpointPointer)
 {
     CheckpointPool.Remove(checkpointPointer);
 }
예제 #4
0
 public void OnRemoveBlip(IntPtr blipPointer)
 {
     BlipPool.Remove(blipPointer);
 }