Timers ko KR - Reetus/ClassicAssist GitHub Wiki

ํด๋ž˜์‹์–ด์‹œ์ŠคํŠธ ๋งคํฌ๋กœ ๋ช…๋ น์–ด

์ƒ์„ฑ๋œ 2025-01-05 ์˜ค์ „ 6:50:16
๋ฒ„์ „: 4.5.1+b51c2255947841746a3ef6c844a7f313392177c9
Translated by Mark Hunt & Andy H.

ํƒ€์ด๋จธ

CreateTimer

๋ฉ”์„œ๋“œ ์‹œ๊ทธ๋‹ˆ์ฒ˜:

Void CreateTimer(System.String)

ํŒŒ๋ผ๋ฏธํ„ฐ

  • name: ํƒ€์ด๋จธ ์ด๋ฆ„.

์„ค๋ช…:

ํƒ€์ด๋จธ๋ฅผ ์ƒˆ๋กœ ๋งŒ๋“ญ๋‹ˆ๋‹ค.

์˜ˆ์‹œ:

CreateTimer("shmoo")  

RemoveTimer

๋ฉ”์„œ๋“œ ์‹œ๊ทธ๋‹ˆ์ฒ˜:

Void RemoveTimer(System.String)

ํŒŒ๋ผ๋ฏธํ„ฐ

  • name: ํƒ€์ด๋จธ ์ด๋ฆ„.

์„ค๋ช…:

ํƒ€์ด๋จธ๋ฅผ ์ œ๊ฑฐํ•ฉ๋‹ˆ๋‹ค.

์˜ˆ์‹œ:

RemoveTimer("shmoo")  

SetTimer

๋ฉ”์„œ๋“œ ์‹œ๊ทธ๋‹ˆ์ฒ˜:

Void SetTimer(System.String, Int32)

ํŒŒ๋ผ๋ฏธํ„ฐ

  • name: ์ •์ˆ˜ ๋˜๋Š” 16์ง„์ˆ˜ ํ˜•์‹์˜ ์‹ค์ œ ์‹œ๋ฆฌ์–ผ, ๋˜๋Š” "self"์™€ ๊ฐ™์€ ์ด๋ฆ„ ๋ฌธ์ž์—ด.
  • milliseconds: ์ •์ˆ˜ ๊ฐ’ - ์‚ฌ์šฉ ๋ฐฉ๋ฒ•์— ๋Œ€ํ•œ ์„ค๋ช…์„ ๋ณด์„ธ์š”. (์˜ต์…˜)

์„ค๋ช…:

ํƒ€์ด๋จธ ๊ฐ’์„ ์„ค์ •ํ•˜๊ณ  ์กด์žฌํ•˜์ง€ ์•Š๋Š” ๊ฒฝ์šฐ ์ƒ์„ฑํ•ฉ๋‹ˆ๋‹ค.

์˜ˆ์‹œ:

SetTimer("shmoo", 0)  

Timer

๋ฉ”์„œ๋“œ ์‹œ๊ทธ๋‹ˆ์ฒ˜:

Int64 Timer(System.String)

ํŒŒ๋ผ๋ฏธํ„ฐ

  • name: ํƒ€์ด๋จธ ์ด๋ฆ„.

์„ค๋ช…:

ํƒ€์ด๋จธ ๊ฐ’์„ ํ™•์ธํ•˜์‹ญ์‹œ์˜ค.

์˜ˆ์‹œ:

if Timer("shmoo") > 10000:  

TimerExists

๋ฉ”์„œ๋“œ ์‹œ๊ทธ๋‹ˆ์ฒ˜:

Boolean TimerExists(System.String)

ํŒŒ๋ผ๋ฏธํ„ฐ

  • name: ํƒ€์ด๋จธ ์ด๋ฆ„.

์„ค๋ช…:

ํƒ€์ด๋จธ๊ฐ€ ์กด์žฌํ•˜๋ฉด ๋™์ž‘ํ•ฉ๋‹ˆ๋‹ค.

์˜ˆ์‹œ:

if TimerExists("shmoo"):  

TimerMsg

๋ฉ”์„œ๋“œ ์‹œ๊ทธ๋‹ˆ์ฒ˜:

Void TimerMsg(System.String)

ํŒŒ๋ผ๋ฏธํ„ฐ

  • name: ํƒ€์ด๋จธ ์ด๋ฆ„.

์„ค๋ช…:

๊ฒฝ๊ณผ ๋œ ํƒ€์ด๋จธ ๊ฐ’์„ ์‹œ์Šคํ…œ ๋ฉ”์„ธ์ง€๋กœ ์ถ•๋ ฅํ•ฉ๋‹ˆ๋‹ค.

์˜ˆ์‹œ:

TimerMsg("shmoo")