コード例 #1
0
 public IBlip CreateBlip(IPlayer player, byte type, Position pos)
 {
     unsafe
     {
         CheckIfCallIsValid();
         CheckIfThreadIsValid();
         var ptr = Library.Server.Core_CreateBlip(NativePointer, player?.PlayerNativePointer ?? IntPtr.Zero,
                                                  type, pos);
         if (ptr == IntPtr.Zero)
         {
             return(null);
         }
         return(BlipPool.Create(this, ptr));
     }
 }
コード例 #2
0
        public IBlip CreateBlip(IPlayer player, byte type, IEntity entityAttach)
        {
            unsafe
            {
                CheckIfCallIsValid();
                CheckIfThreadIsValid();

                var ptr = Library.Server.Core_CreateBlipAttached(NativePointer,
                                                                 player?.PlayerNativePointer ?? IntPtr.Zero,
                                                                 type, entityAttach.EntityNativePointer);
                if (ptr == IntPtr.Zero)
                {
                    return(null);
                }
                return(BlipPool.Create(this, ptr));
            }
        }