Upload from upload_mods.ps1
This commit is contained in:
23
Scripts/MinEventActions/MinEventActionItemAccessBase.cs
Normal file
23
Scripts/MinEventActions/MinEventActionItemAccessBase.cs
Normal file
@@ -0,0 +1,23 @@
|
||||
using System.Xml.Linq;
|
||||
|
||||
public class MinEventActionItemAccessBase : MinEventActionItemCountRandomBase
|
||||
{
|
||||
protected string itemName;
|
||||
protected ItemValue itemValueCache = null;
|
||||
|
||||
public override bool ParseXmlAttribute(XAttribute _attribute)
|
||||
{
|
||||
if (base.ParseXmlAttribute(_attribute))
|
||||
return true;
|
||||
|
||||
switch (_attribute.Name.LocalName)
|
||||
{
|
||||
case "item":
|
||||
itemName = _attribute.Value;
|
||||
return true;
|
||||
default:
|
||||
return false;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user