Ejemplo n.º 1
0
            public void EncodeForRemote(ref MobStatValue flag, long currentTime, Action <MobBuffStat> func, MobStatValue specificFlag = MobStatValue.ALL)
            {
                if (!IsSet(currentTime) || !specificFlag.HasFlag(Flag))
                {
                    return;
                }

                flag |= Flag;
                func?.Invoke(this);
            }
Ejemplo n.º 2
0
            public void EncodeForLocal(Packet pw, ref MobStatValue flag, long currentTime, MobStatValue specificFlag = MobStatValue.ALL)
            {
                if (!IsSet(currentTime) || !specificFlag.HasFlag(Flag))
                {
                    return;
                }

                flag |= Flag;
                pw.WriteShort(N);
                pw.WriteInt(R);
                pw.WriteShort((short)((TM - currentTime) / 100)); // Not sure what value this should be...
            }