Open perbone opened 3 years ago
A less verbose approach:
Main:signals {
{ 'sum_calculated', { 'sum', 'number' } },
'completed',
{ 'new_title', 'title' },
}
sum_calculated has one parameter defined as number completed has no parameters new_title has one parameter with no explicit type.
The idea is to design how signals will work in Lua and Godot. A signal will be an element in a table in the class object and will follow the definitions from the initial call for the implicit available signals method.
Following below is an excerpt for some of the the designs I have so far.
The signals in the code above have the following characteristics:
Please share your thoughts on this idea or show us a new idea that you come up about this topic.
-- Perbone