Example #1
0
 public static Type GetType(ImbuingResource resource)
 {
     if (m_ResourceTable.ContainsKey(resource))
     {
         return(m_ResourceTable[resource]);
     }
     else
     {
         return(null);
     }
 }
Example #2
0
        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);
            }
        }
Example #3
0
        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;
        }
Example #4
0
 public static Type GetType( ImbuingResource resource )
 {
     if ( m_ResourceTable.ContainsKey( resource ) )
         return m_ResourceTable[resource];
     else
         return null;
 }