EditorState generateNewEditorState() { EditorState e = new EditorState(); HopState h = new HopState(); FermentableState f = new FermentableState(); YeastState y = new YeastState(); AdjunctState a = new AdjunctState(); h.currentSelectedHopID = ""; h.currentSelectedHopIndex = 0; f.currentSelectedFermentableID = ""; f.currentSelectedFermentableIndex = 0; y.currentSelectedYeastID = ""; y.currentSelectedYeastIndex = 0; a.currentSelectedAdjunctID = ""; a.currentSelectedAdjunctIndex = 0; e.hopstate = h; e.fermentableState = f; e.yeastState = y; e.adjunctState = a; return(e); }
void setHopState(HopState state) { hopAnimator.SetInteger("hopState", (int)state); }