Maybe something similar to this:
Dictionary<string,byte> carToTimerDic = ...
carToTimerDic.add("BFG",15); //I predefine all this
in place of the case i put this:
if (carToTimerDic.ContainKey("BFG"))
return carToTimerDic["BFG"] (MyTimerDefine value)
else
return 0; // or anything you love
Dictionary<string,byte> carToTimerDic = ...
carToTimerDic.add("BFG",15); //I predefine all this
in place of the case i put this:
if (carToTimerDic.ContainKey("BFG"))
return carToTimerDic["BFG"] (MyTimerDefine value)
else
return 0; // or anything you love