Rev 8042 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 8042 | Rev 8043 | ||
---|---|---|---|
Line 86... | Line 86... | ||
86 | DSDWORD[id] = 0; |
86 | DSDWORD[id] = 0; |
87 | RETURN id; |
87 | RETURN id; |
88 | } |
88 | } |
Line 89... | Line 89... | ||
89 | 89 | ||
90 | // Analogs JS Functions |
90 | // Analogs JS Functions |
91 | :Timers Time = {0}; |
91 | :Timers Timer = {0}; |
92 | inline dword setTimeout(dword function, time) |
92 | inline dword setTimeout(dword function, time) |
93 | { |
93 | { |
94 | RETURN Time.set(function, time, 0); |
94 | RETURN Timer.set(function, time, 0); |
95 | } |
95 | } |
96 | inline dword setInterval(dword function, time) |
96 | inline dword setInterval(dword function, time) |
97 | { |
97 | { |
98 | RETURN Time.set(function, time, 1); |
98 | RETURN Timer.set(function, time, 1); |
99 | } |
99 | } |
100 | inline dword clearTimeout(dword id) |
100 | inline dword clearTimeout(dword id) |
101 | { |
101 | { |
102 | RETURN Time.clear(id); |
102 | RETURN Timer.clear(id); |
103 | } |
103 | } |
104 | inline dword clearInterval(dword id) |
104 | inline dword clearInterval(dword id) |
105 | { |
105 | { |
106 | RETURN Time.clear(id); |
106 | RETURN Timer.clear(id); |