public override object?GetNthMask(int index) { NpcOwner_FieldIndex enu = (NpcOwner_FieldIndex)index; switch (enu) { case NpcOwner_FieldIndex.Npc: return(Npc); case NpcOwner_FieldIndex.Global: return(Global); default: return(base.GetNthMask(index)); } }
public override void SetNthMask(int index, object obj) { NpcOwner_FieldIndex enu = (NpcOwner_FieldIndex)index; switch (enu) { case NpcOwner_FieldIndex.Npc: this.Npc = (Exception?)obj; break; case NpcOwner_FieldIndex.Global: this.Global = (Exception?)obj; break; default: base.SetNthMask(index, obj); break; } }
public override void SetNthException(int index, Exception ex) { NpcOwner_FieldIndex enu = (NpcOwner_FieldIndex)index; switch (enu) { case NpcOwner_FieldIndex.Npc: this.Npc = ex; break; case NpcOwner_FieldIndex.Global: this.Global = ex; break; default: base.SetNthException(index, ex); break; } }