Skip to content

Commit

Permalink
added api
Browse files Browse the repository at this point in the history
  • Loading branch information
craftycram committed Sep 19, 2020
1 parent 12e8115 commit d976a3f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 0 deletions.
26 changes: 26 additions & 0 deletions MechanicBackup/API.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
using Rage;

namespace MechanicBackup
{
public static class API
{

public static void spawnMechanicUnit()
{
SupportUnits.MechanicUnit.spawn(Game.LocalPlayer);
}
public static void spawnTowingUnit()
{
SupportUnits.TowingUnit.spawn(Game.LocalPlayer);
}
public static void spawnPickupUnit()
{
SupportUnits.PickupUnit.spawn(Game.LocalPlayer);
}
public static void spawnDutyVehicleUnit()
{
SupportUnits.DutyVehicleUnit.spawn(Game.LocalPlayer);
}

}
}
1 change: 1 addition & 0 deletions MechanicBackup/MechanicBackup.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="API.cs" />
<Compile Include="Config.cs" />
<Compile Include="EntryPoint.cs" />
<Compile Include="Menu.cs" />
Expand Down

0 comments on commit d976a3f

Please sign in to comment.