少年修仙传客户端代码仓库
client_linchunjie
2019-03-26 291ccee6cdf1812f8b3b1f7b0e52c1ebd70cfe4c
Core/MapEditor/Data/Event/Evt_RefreshMonster.cs
@@ -51,37 +51,5 @@
                monsters[i].Load(br);
            }
        }
        /*
            float delay = Time.now
            float interval
            int index
            update
                if refreshType == all
                    for index = 0; index < monsters.Length; ++index
                        doRefresh(monsters[index]);
                else if refreshType == onebyoneTime
                    if Time.now - delay > interval
                        doRefresh(monster[index]);
                        index++;
                        delay = Time.now;
                else if refreshType == onebyoneDie
                    if prevNpc.isDie
                        prevNpc = doRefresh(monster[index]);
                        index++;
            int deadCount
            float overTime = conditionParam * 0.001f;
            float timePast = Time.now
            over
                if condition == None
                    return true;
                else if condition == DeadCount
                    return deadCount > monsters.Length || deadCount > conditionParam;
                else if condition == Time
                    return Time.now - timePast >= overTime;
         */
    }
}