mirror of
https://github.com/ChronosX88/mta-mono.git
synced 2024-11-21 17:52:23 +00:00
Added ColCircle, ColCuboid, ColSphere, ColRectangle, ColPolygon and ColTube classes
This commit is contained in:
parent
370ba4eec4
commit
0c327abcee
@ -8,14 +8,64 @@ namespace MultiTheftAuto
|
||||
{
|
||||
public class ColShape : Element
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
public ColShape( UInt32 userdata )
|
||||
: base( userdata )
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
#endregion
|
||||
public class ColCircle : ColShape
|
||||
{
|
||||
public ColCircle( float x, float y, float radius )
|
||||
: base( Native.ColShape.CreateCircle( x, y, radius ) )
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class ColCuboid : ColShape
|
||||
{
|
||||
public ColCuboid( float x, float y, float z, float width, float depth, float height )
|
||||
: base( Native.ColShape.CreateCuboid( x, y, z, width, depth, height ) )
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class ColSphere : ColShape
|
||||
{
|
||||
public ColSphere( float x, float y, float z, float fadius )
|
||||
: base( Native.ColShape.CreateSphere( x, y, z, fadius ) )
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class ColRectangle : ColShape
|
||||
{
|
||||
public ColRectangle( float x, float y, float width, float height )
|
||||
: base( Native.ColShape.CreateRectangle( x, y, width, height ) )
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class ColPolygon : ColShape
|
||||
{
|
||||
public ColPolygon( float x, float y, float x1, float y1, float x2, float y2, float x3, float y3, params float[] args )
|
||||
: base( Native.ColShape.CreatePolygon( x, y, x1, y1, x2, y2, x3, y3, args ) )
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public class ColTube : ColShape
|
||||
{
|
||||
public ColTube( float x, float y, float z, float radius, float height )
|
||||
: base( Native.ColShape.CreateTube( x, y, z, radius, height ) )
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user