public static void InitMaterialLookup() { var tempWear = new WearNTear(); foreach (WearNTear.MaterialType material in Enum.GetValues(typeof(WearNTear.MaterialType))) { tempWear.m_materialType = material; MaterialProperties props = default(MaterialProperties); tempWear.GetMaterialProperties(out props.maxSupport, out props.minSupport, out props.horizontalLoss, out props.verticalLoss); materialLookup.Add(material, props); } }