2015-12-12 10:10:23 +00:00
|
|
|
|
using System;
|
2016-01-06 18:06:22 +00:00
|
|
|
|
using System.Runtime.CompilerServices;
|
2015-12-12 10:10:23 +00:00
|
|
|
|
using System.Collections.Generic;
|
|
|
|
|
using System.Linq;
|
|
|
|
|
using System.Text;
|
|
|
|
|
using System.Threading.Tasks;
|
|
|
|
|
|
|
|
|
|
namespace MultiTheftAuto
|
|
|
|
|
{
|
|
|
|
|
public class ColShape : Element
|
|
|
|
|
{
|
2016-01-06 18:06:22 +00:00
|
|
|
|
public ColShape()
|
2015-12-12 10:10:23 +00:00
|
|
|
|
{
|
|
|
|
|
}
|
2015-12-23 20:27:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ColCircle : ColShape
|
|
|
|
|
{
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern ColCircle( Vector2 position, float radius );
|
2015-12-23 20:27:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ColCuboid : ColShape
|
|
|
|
|
{
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern ColCuboid( Vector3 position, Vector3 size );
|
2015-12-23 20:27:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ColSphere : ColShape
|
|
|
|
|
{
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern ColSphere( Vector3 position, float fadius );
|
2015-12-23 20:27:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ColRectangle : ColShape
|
|
|
|
|
{
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern ColRectangle( Vector2 position, Vector2 size );
|
2015-12-23 20:27:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ColPolygon : ColShape
|
|
|
|
|
{
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern ColPolygon( Vector2 pos1, Vector2 pos2, Vector2 pos3, Vector2 pos4, params Vector2[] args );
|
2015-12-23 20:27:08 +00:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
public class ColTube : ColShape
|
|
|
|
|
{
|
2016-01-06 18:06:22 +00:00
|
|
|
|
[MethodImpl( MethodImplOptions.InternalCall )]
|
|
|
|
|
public extern ColTube( Vector3 position, float radius, float height );
|
2015-12-12 10:10:23 +00:00
|
|
|
|
}
|
|
|
|
|
}
|