Nestharus
o-o
- Reaction score
- 84
Been playing with aesthetics and what not
Makes it look like you did this
^_^
I would make the Hi struct private, but doing that makes it so Hi can't be used, even through the Message struct : |.
JASS:
scope Test
public struct Hi extends array
public method say takes nothing returns nothing
call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, "Hi " + GetPlayerName(GetLocalPlayer()))
endmethod
endstruct
struct Message extends array
public method operator Hi takes nothing returns Hi
return this
endmethod
public method say takes string s returns nothing
call DisplayTextToPlayer(GetLocalPlayer(), 0, 0, s + " " + GetPlayerName(GetLocalPlayer()))
endmethod
endstruct
endscope
struct Tester extends array
local Message message = Message.create()
call message.say("boo")
call message.Hi.say()
endstruct
Makes it look like you did this
^_^
I would make the Hi struct private, but doing that makes it so Hi can't be used, even through the Message struct : |.