public static IPaduin CreatPaduin(PaduinType type) { switch (type) { case PaduinType.Karnotman: return new Karnobatman(); case PaduinType.CountSevgin: return new CountSevgin(); case PaduinType.SashoFett: return new SashoFett(); case PaduinType.WightJan: return new WightJan(); default: throw new ArgumentException(); } }
public static IPaduin CreatPaduin(PaduinType type) { switch (type) { case PaduinType.Karnotman: return(new Karnobatman()); case PaduinType.CountSevgin: return(new CountSevgin()); case PaduinType.SashoFett: return(new SashoFett()); case PaduinType.WightJan: return(new WightJan()); default: throw new ArgumentException(); } }