esa / opengeode

OpenGEODE - a free SDL editor
https://opengeode.net
GNU Lesser General Public License v3.0
69 stars 20 forks source link

I have a question about signal in openGEODO #49

Closed zongz1024 closed 5 years ago

zongz1024 commented 5 years ago

I wonder where the signal is defined. I can only get its name in the example . I wonder some other information about the siganl such as the type of this signal(int ? float ? or something else?) . image

maxime-esa commented 5 years ago

Sorry I don't understand the question. The signal declarations are visible on your screenshot:

signal run;
signal saved_signal (BoolType);   -- means the parameter is of type BoolType
...
zongz1024 commented 5 years ago

Sorry I don't understand the question. The signal declarations are visible on your screenshot:

signal run;
signal saved_signal (BoolType);   -- means the parameter is of type BoolType
...

what type of the signal named run?????

signal run ; -- int ???? bool ???? or something else ????

maxime-esa commented 5 years ago

A signal in SDL is an asynchronous message, which (by definition) does not return a value. Therefore what you call type of the signal does not exist in SDL.