.15 Request for Consistent event names
Posted: Sat Jan 21, 2017 6:22 am
I figure before .15 comes out this would be the best time to ask for consistency with event names.
On the left is the existing event name, on the right the proposed change. Most of these are related to Player events (i.e. They have a non-optional player_index associated with them)
This follows the general scheme of EVENT_FOR_WHAT that most of the existing events are already written as.
on_preplayer_mined_item -> on_player_pre_mined
Player event consistency, as well as matching on_robot_pre_mined, as well as I have to look this one up everytime as its naming scheme is very different from all other events.
on_put_item -> on_player_put_item
Player event consistency
on_built_entity -> on_player_built_entity
Player event consistency
on_pre_player_died -> on_player_pre_died
Player event consistency, for the player: before dying
on_pre_entity_settings_pasted -> on_entity_settings_pre_pasted
Entity event consistency, for the entity: before settings are pasted
On the left is the existing event name, on the right the proposed change. Most of these are related to Player events (i.e. They have a non-optional player_index associated with them)
This follows the general scheme of EVENT_FOR_WHAT that most of the existing events are already written as.
on_preplayer_mined_item -> on_player_pre_mined
Player event consistency, as well as matching on_robot_pre_mined, as well as I have to look this one up everytime as its naming scheme is very different from all other events.
on_put_item -> on_player_put_item
Player event consistency
on_built_entity -> on_player_built_entity
Player event consistency
on_pre_player_died -> on_player_pre_died
Player event consistency, for the player: before dying
on_pre_entity_settings_pasted -> on_entity_settings_pre_pasted
Entity event consistency, for the entity: before settings are pasted