Chaos_Knight
New Member
- Reaction score
- 39
Can someone tell me how to use Structs and/or Methods.
I heard that they are very useful.
//Chaos_Knight
I heard that they are very useful.
//Chaos_Knight
//Warning: FirefoxJASS.
function onInit takes nothing returns nothing
local Food pizza=Food.create()
set pizza.name="Giovanni039;s Specialty"
call pizza.bake()
if pizza.isBaked=true then
call BJDebugMsg("Mama Mia, the pizza is baked and the method works!")
else
call BJDebugMsg("ToolTip made an error.")
endif
endfunction
if pizza.isBaked==true then
if pizza.isBaked then