Made the resource system use general enums as resource type identifyers