示例#1
0
        private void refresh_timer_Tick(object sender, EventArgs e)
        {
            if (bot != null)
            {
                bot.Update(refresh_timer.Interval * 0.001f);
            }

            if (m_Navmesh.IsUpdating)
            {
                Actor local_actor = ActorHelper.GetLocalActor();

                if (local_actor == null)
                {
                    return;
                }

                render_center.X = local_actor.x0A8_WorldPosX;
                render_center.Y = local_actor.x0AC_WorldPosY;

                m_Navmesh.Navigator.CurrentPos = new Vec3(local_actor.x0A8_WorldPosX, local_actor.x0AC_WorldPosY, local_actor.x0B0_WorldPosZ);
            }

            Refresh();
        }