An example of behaviour pattern with a dummy server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

15 regels
356 B

function run_event(name)
print("run " .. name)
if(name == "archivist") then
Business.fetch_add(10)
elseif(name == "reset") then
Business.fetch_add(-Business.fetch_add(0))
else
Business.fetch_add(1)
end
end
function display_event(name)
print("display " .. name)
return tostring(Business.fetch_add(0))
end