DayZ 1.27
DayZ Explorer by KGB
 
Загрузка...
Поиск...
Не найдено

◆ Tick()

override void CallQueue::Tick ( )
inlineprivate

System function, don't call it.

См. определение в файле tools.c строка 165

166 {
167 if (m_processing) return;
168
169 m_processing = true;
170
171 int last_index = 0;
172 int mouse_x;
173 int mouse_y;
174 bool is_holding = false;
175 CallQueueContext ctx;
176
177 if (GetMouseState(MouseState.LEFT) & 0x80000000)
178 {
179 is_holding = true;
180 }
181
182 GetMousePos(mouse_x, mouse_y);
183
184 if (!is_holding || mouse_x != m_mouse_params.param1 || mouse_y != m_mouse_params.param2)
185 {
186 m_mouse_params.param1 = mouse_x;
187 m_mouse_params.param2 = mouse_y;
188 m_mouse_params.param3 = is_holding;
189
190 while (Count() > last_index)
191 {
192 ctx = Get(last_index);
193 if (!ctx.IsValid())
194 {
195 Remove(last_index);
196 }
197 else
198 {
200 last_index++;
201 }
202 }
203 }
204
205 // clear queue when mouse button is released
206 if (!is_holding)
207 {
208 Clear();
209 }
210
211 m_processing = false;
212 }
void Remove(Object object)
Определения ActionTargets.c:207
override float Get()
Определения PlayerStatBase.c:134
@ Count
Определения RandomGeneratorSyncManager.c:8
void Clear(bool clearFile=false)
Определения ScriptConsoleEnfScriptTab.c:359
ref Param3< int, int, bool > m_mouse_params
Определения tools.c:155
bool IsValid()
Определения tools.c:51
void CallParams(Param params)
Определения tools.c:35
MouseState
Определения EnSystem.c:311
proto native int GetMouseState(MouseState index)
proto void GetMousePos(out int x, out int y)

Перекрестные ссылки CallQueueContext::CallParams(), Clear(), Count, Get(), GetMousePos(), GetMouseState(), CallQueueContext::IsValid(), m_mouse_params и Remove().