Skip to content

Commit

Permalink
feat: Import hacking chip data
Browse files Browse the repository at this point in the history
  • Loading branch information
octfx committed Mar 9, 2024
1 parent e5f0c59 commit e0db2ba
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Loader/scdb.Xml/Entities/Components.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,7 @@ public class Components
public SCItemExplosiveParams SCItemExplosiveParams;
public EntityComponentAttachableModifierParams EntityComponentAttachableModifierParams;
public SWeaponModifierComponentParams SWeaponModifierComponentParams;
public HackingChipParams HackingChipParams;
public RemovableChipParams RemovableChipParams;
}
}
9 changes: 9 additions & 0 deletions Loader/scdb.Xml/Entities/HackingChipParams.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System.Xml.Serialization;

namespace scdb.Xml.Entities
{
public class HackingChipParams
{
[XmlAttribute] public double maxCharges;
}
}
9 changes: 9 additions & 0 deletions Loader/scdb.Xml/Entities/RemovableChipParams.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
using System.Xml.Serialization;

namespace scdb.Xml.Entities
{
public class RemovableChipParams
{
public RemovableChipValue[] values;
}
}
10 changes: 10 additions & 0 deletions Loader/scdb.Xml/Entities/RemovableChipValue.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
using System.Xml.Serialization;

namespace scdb.Xml.Entities
{
public class RemovableChipValue
{
[XmlAttribute] public string name;
[XmlAttribute] public double value;
}
}

0 comments on commit e0db2ba

Please sign in to comment.