public override string ToString() { string res = String.Empty; if ((Int32)flags != 0) { res = "[" + flags.ToString() + "]"; } res += tag.ToString(); return(res); }
partial void WriteTypeFlagsXML(XElement ele, ElderScrollsPlugin master) { XElement subEle; ele.TryPathTo("TypeFlags", true, out subEle); switch (Type) { case PackageType.Find: subEle.Value = TypeFlags.ToString(); break; case PackageType.Follow: subEle.Value = ((byte[])TypeFlags).ToBase64(); break; case PackageType.Escort: subEle.Value = TypeFlags.ToString(); break; case PackageType.Eat: subEle.Value = TypeFlags.ToString(); break; case PackageType.Sleep: subEle.Value = ((byte[])TypeFlags).ToBase64(); break; case PackageType.Wander: subEle.Value = TypeFlags.ToString(); break; case PackageType.Travel: subEle.Value = ((byte[])TypeFlags).ToBase64(); break; case PackageType.Accompany: subEle.Value = ((byte[])TypeFlags).ToBase64(); break; case PackageType.UseItemAt: subEle.Value = TypeFlags.ToString(); break; case PackageType.Ambush: subEle.Value = TypeFlags.ToString(); break; case PackageType.FleeNotCombat: subEle.Value = ((byte[])TypeFlags).ToBase64(); break; case PackageType.Sandbox: subEle.Value = TypeFlags.ToString(); break; case PackageType.Patrol: subEle.Value = ((byte[])TypeFlags).ToBase64(); break; case PackageType.Guard: subEle.Value = TypeFlags.ToString(); break; case PackageType.Dialog: subEle.Value = ((byte[])TypeFlags).ToBase64(); break; case PackageType.UseWeapon: subEle.Value = ((byte[])TypeFlags).ToBase64(); break; default: break; } }