public DynamicParameterData GetDynamicParameterData(DynamicParameterType parameterType) { DynamicParameterData dynamicParameterData = default; for (int i = 0; i < m_dynamicParameters.Count; i++) { if (m_dynamicParameters[i].type != parameterType) { continue; } dynamicParameterData = m_dynamicParameters[i]; break; } return(dynamicParameterData); }
private DynamicParameter GetDynamicParameter(DynamicParameterType type, DynamicParameterData data) { switch (type) { case DynamicParameterType.ArtistsCount: return(new ArtistsCount(1, data)); case DynamicParameterType.DrawingSpeed: return(new DrawingSpeed(1, data)); case DynamicParameterType.RunningSpeed: return(new RunSpeed(1, data)); case DynamicParameterType.SprayBottleCapacity: return(new SprayCanCapacity(1, data)); case DynamicParameterType.RespectIncomePerBlock: return(new RespectIncomePerBlock(1, data)); default: return(null); } }