Skip to main content

get_scripted_class_info_for_file

Function get_scripted_class_info_for_file 

Source
pub fn get_scripted_class_info_for_file(
    db: &DbIndex,
    file_id: FileId,
) -> Option<(String, String)>
Expand description

Returns the scripted class info (class_name, global_name) for a file, if it belongs to a GMod scripted class scope. global_name is the well-known table name used in the file (e.g. "ENT", "SWEP", "TOOL", "EFFECT", "PLUGIN"). Uses cached scoped class info when available, falling back to path detection.