Skip to content

Commit

Permalink
feat: Add Ammunition uuid to output
Browse files Browse the repository at this point in the history
  • Loading branch information
octfx committed Mar 13, 2024
1 parent 97984d5 commit 4c00cac
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Loader/ItemBuilder.cs
Original file line number Diff line number Diff line change
Expand Up @@ -542,6 +542,8 @@ StandardisedAmmunition BuildAmmunitionInfo(EntityClassDefinition item)

return new StandardisedAmmunition
{
UUID = ammo.__ref,
Type = ammo.__type,
Speed = ammo.speed,
Range = ammo.lifetime * ammo.speed,
Size = ammo.size,
Expand Down
2 changes: 2 additions & 0 deletions Loader/Json/StandardisedAmmunition.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ namespace Loader
{
public class StandardisedAmmunition
{
public string UUID { get; set; }
public string Type { get; set; }
public double Speed { get; set; }
public double Range { get; set; }
public double Size { get; set; }
Expand Down

0 comments on commit 4c00cac

Please sign in to comment.