private void OnActorSpawnEye(ref SpawnEyeEventParam prm) { if (!prm.src || prm.src.get_handle().SkillControl == null || prm.src.get_handle().SkillControl.stSkillStat == null) { return; } prm.src.get_handle().SkillControl.stSkillStat.m_uiRealSpawnEyeTimes += 1u; if (prm.src.get_handle().SkillControl.stSkillStat.m_uiSpawnEyeTimes < 15u) { prm.src.get_handle().SkillControl.stSkillStat.stEyePostion[(int)((UIntPtr)prm.src.get_handle().SkillControl.stSkillStat.m_uiSpawnEyeTimes)] = prm.pos; prm.src.get_handle().SkillControl.stSkillStat.m_uiSpawnEyeTimes += 1u; } }
private void OnActorSpawnEye(ref SpawnEyeEventParam prm) { if (!prm.src || prm.src.handle.SkillControl == null || prm.src.handle.SkillControl.stSkillStat == null) { return; } prm.src.handle.SkillControl.stSkillStat.m_uiRealSpawnEyeTimes += 1u; if (prm.src.handle.SkillControl.stSkillStat.m_uiSpawnEyeTimes < 15u) { COMDT_STATISTIC_POS cOMDT_STATISTIC_POS = prm.src.handle.SkillControl.stSkillStat.stEyePostion[(int)((uint)((UIntPtr)prm.src.handle.SkillControl.stSkillStat.m_uiSpawnEyeTimes))]; if (cOMDT_STATISTIC_POS == null) { cOMDT_STATISTIC_POS = new COMDT_STATISTIC_POS(); } cOMDT_STATISTIC_POS.iTime = (int)(Singleton <FrameSynchr> .instance.LogicFrameTick / 1000uL); cOMDT_STATISTIC_POS.iXPos = prm.pos.x; cOMDT_STATISTIC_POS.iZPos = prm.pos.z; prm.src.handle.SkillControl.stSkillStat.m_uiSpawnEyeTimes += 1u; } }