get_param_value_enum


Description:

[ Version ( since = "0.2.2" ) ]
public int get_param_value_enum (string key, Type enum_type, int default_value)

Retrieve the parameter value associated with a named key as an enum value.

If multiple values are stored against the key, only the first value is returned. If no value is associated, the default_value is returned.

Parameters:

this

an Entity containing the parameters

key

the name of the key

enum_type

the enum type

default_value

the default value to be used, in case there's no value associated with the key

Returns:

the enum value associated with the key, or default_value.