public static Type GetType(ImbuingResource resource) { if (m_ResourceTable.ContainsKey(resource)) { return(m_ResourceTable[resource]); } else { return(null); } }
private static bool AddNeededResource(Dictionary <Type, int> types, ImbuingResource resource, int amount) { Type type = GetType(resource); if (type != null) { types.Add(type, amount); return(true); } else { return(false); } }
private static bool AddNeededResource( Dictionary<Type, int> types, ImbuingResource resource, int amount ) { Type type = GetType( resource ); if ( type != null ) { types.Add( type, amount ); return true; } else return false; }
public static Type GetType( ImbuingResource resource ) { if ( m_ResourceTable.ContainsKey( resource ) ) return m_ResourceTable[resource]; else return null; }