Event Listeners
์ด๋ฆ
์ค๋ช
๐ API ์ค๋ช
๋ฐ ์์
// ํ๋ ์ด์ด๋ค์ด ์ฑํ
์ฐฝ์ ์
๋ ฅํ๋ ๋ชจ๋ ์ฑํ
์ ๋ํด ํธ์ถ ๋๋ ์ด๋ฒคํธ
// !๋ก ์์ํ๋ ํ
์คํธ๋ ์ฑํ
์ฐฝ์ ๋์ค์ง ์์ผ๋, onSay ํจ์์๋ ์ฌ์ฉ ๊ฐ๋ฅ
App.onSay.Add(function(player, text) {
});
// ํ๋ ์ด์ด๊ฐ ๋ค๋ฅธ ํ๋ ์ด์ด์ ๋ถ๋ชํ์ ๋ ํธ์ถ ๋๋ ์ด๋ฒคํธ
App.onPlayerTouched.Add(function(sender, target, x, y){
});
// ํ๋ ์ด์ด๊ฐ ์ค๋ธ์ ํธ์ ๋ถ๋ชํ์ ๋ ํธ์ถ ๋๋ ์ด๋ฒคํธ
App.onObjectTouched.Add(function(sender, x, y, tileID, obj) {
});
// ํ๋ ์ด์ด๊ฐ ํค ๊ฐ์ ๊ฐ์ง ์ค๋ธ์ ํธ์ ๋ถ๋ชํ์ ๋ ํธ์ถ ๋๋ ์ด๋ฒคํธ
App.onAppObjectTouched.Add(function(key, sender, x, y){});
// ํ๋ ์ด์ด๊ฐ ๋ค๋ฅธ ํ๋ ์ด์ด๋ฅผ ๊ณต๊ฒฉํ ๋ (Zํค) ํธ์ถ ๋๋ ์ด๋ฒคํธ
App.onUnitAttacked.Add(function(sender, x, y, target) {
});
// ํ๋ ์ด์ด๊ฐ ์ค๋ธ์ ํธ๋ฅผ ๊ณต๊ฒฉ(Zํค)ํ์ ๋ ํธ์ถ ๋๋ ์ด๋ฒคํธ
App.onObjectAttacked.Add(function(sender, x, y){
});
// ํ๋ ์ด์ด๊ฐ ์ฌ์ด๋๋ฐ ์ฑ์ ํด๋ฆญ(ํฐ์น)ํ ๋ ํธ์ถ ๋๋ ์ด๋ฒคํธ
App.onSidebarTouched.Add(function(player){
});
// ์ค๋ธ์ ํธ์ F ์ํธ์์ฉ ์ ๋์ํ๋ ํจ์
App.onTriggerObject.Add(function(player, layer, x, y){
});
// ํ๋ ์ด์ด๊ฐ ํค ๊ฐ์ ๊ฐ์ง ์ค๋ธ์ ํธ๋ฅผ ๊ณต๊ฒฉํ ๋ (Zํค) ํธ์ถ ๋๋ ์ด๋ฒคํธ
App.onAppObjectAttacked.Add(function (sender, x, y, layer, key) {
});onSay
์ด๋ฆ
ํ์
์ค๋ช
onPlayerTouched
์ด๋ฆ
ํ์
์ค๋ช
onObjectTouched
์ด๋ฆ
ํ์
์ค๋ช
onAppObjectTouched
์ด๋ฆ
ํ์
์ค๋ช
onUnitAttacked
์ด๋ฆ
ํ์
์ค๋ช
onObjectAttacked
์ด๋ฆ
ํ์
์ค๋ช
onSidebarTouched
์ด๋ฆ
ํ์
์ค๋ช
onTriggerObject
์ด๋ฆ
ํ์
์ค๋ช

onAppObjectAttacked
์ด๋ฆ
ํ์
์ค๋ช
Last updated
Was this helpful?
