Upload from upload_mods.ps1
This commit is contained in:
21
Scripts/Requirements/RoundsInMagazineBase.cs
Normal file
21
Scripts/Requirements/RoundsInMagazineBase.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Xml.Linq;
|
||||
|
||||
public class RoundsInMagazineBase : RoundsInMagazine
|
||||
{
|
||||
protected bool roundsBeforeShot = false;
|
||||
|
||||
public override bool ParseXAttribute(XAttribute _attribute)
|
||||
{
|
||||
if (base.ParseXAttribute(_attribute))
|
||||
return true;
|
||||
|
||||
if (_attribute.Name.LocalName == "rounds_before_shot")
|
||||
{
|
||||
roundsBeforeShot = bool.Parse(_attribute.Value);
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user