Ejemplo n.º 1
0
        /// <summary>
        /// Creates a new <see cref="Icon"/> instance.
        /// </summary>
        /// <param name="position"></param>
        /// <param name="type"></param>
        /// <param name="rotation"></param>
        // TODO: ReSharper suggest that EAVector3 be ExposedBase. I'm wary that this could f**k up something else. Opinions?
        public Icon(EAVector3 position, uint type, float rotation)
        {
            var addr = (uint)CallBinding <uint>(_EASharpBinding_109, position.mSelf, type, rotation);

            mSelf = new IntPtr(addr);

            exists = true;
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Spawns a traffic car (Note: Not sure how this function works).
 /// </summary>
 /// <param name="vehicleKey"></param>
 /// <param name="position"></param>
 /// <param name="direction"></param>
 /// <param name="initialSpeed"></param>
 public static unsafe void SpawnTraffic(uint vehicleKey, EAVector3 position, EAVector3 direction, float initialSpeed)
 {
     CallBinding(_EASharpBinding_492, vehicleKey, position.mSelf, direction.mSelf, initialSpeed);
 }
Ejemplo n.º 3
0
 /// <summary>
 /// Spawns a cop (Note: Not sure how this function works).
 /// </summary>
 /// <param name="vehicleKey"></param>
 /// <param name="position"></param>
 /// <param name="direction"></param>
 public static unsafe void SpawnCop(uint vehicleKey, EAVector3 position, EAVector3 direction)
 {
     CallBinding(_EASharpBinding_53, vehicleKey, position.mSelf, direction.mSelf);
 }