Skip to content

hkb_editor.hkb.game_specific

separate_game_specific_attributes

separate_game_specific_attributes(type_name: str, attributes: dict[str, Any]) -> dict[str, Any]

Return a dict of optional attributes for the given behavior node type. These attributes will be removed from the passed attributes dict.

Parameters:

Name Type Description Default
type_name str

Behavior node type name.

required
attributes dict[str, Any]

Attributes for the node type, typically used for construction.

required

Returns:

Type Description
dict[str, Any]

A dict of optional attributes. Values are defaults unless present in the passed attributes dict.