コード例 #1
0
ファイル: ParsedCombatItem.cs プロジェクト: tflynt91/evtc
 public ParsedCombatItem(long time, ulong srcAgent, ulong dstAgent, int value, int buffDmg, uint overstackValue,
                         uint skillId, ushort srcAgentId, ushort dstAgentId, ushort srcMasterId, ushort dstMasterId, FriendOrFoe iff, byte buff,
                         Result result, Activation isActivation, BuffRemove isBuffRemove, byte isNinety, byte isFifty,
                         byte isMoving, StateChange isStateChange, byte isFlanking, byte isShields, byte isOffCycle, uint padding)
 {
     Time           = time;
     SrcAgent       = srcAgent;
     DstAgent       = dstAgent;
     Value          = value;
     BuffDmg        = buffDmg;
     OverstackValue = overstackValue;
     SkillId        = skillId;
     SrcAgentId     = srcAgentId;
     DstAgentId     = dstAgentId;
     SrcMasterId    = srcMasterId;
     DstMasterId    = dstMasterId;
     Iff            = iff;
     Buff           = buff;
     Result         = result;
     IsActivation   = isActivation;
     IsBuffRemove   = isBuffRemove;
     IsNinety       = isNinety;
     IsFifty        = isFifty;
     IsMoving       = isMoving;
     IsStateChange  = isStateChange;
     IsFlanking     = isFlanking;
     IsShields      = isShields;
     IsOffCycle     = isOffCycle;
     Padding        = padding;
 }
コード例 #2
0
 public CombatItem(int time, long src_agent, long dst_agent, int value, int buff_dmg, int overstack_value,
                   int skill_id, int src_instid, int dst_instid, int src_master_instid, IFF iff, int buff, Result result,
                   Activation is_activation, BuffRemove is_buffremove, int is_ninety, int is_fifty, int is_moving,
                   StateChange is_statechange, int is_flanking, int is_shields)
 {
     this.time              = time;
     this.src_agent         = src_agent;
     this.dst_agent         = dst_agent;
     this.value             = value;
     this.buff_dmg          = buff_dmg;
     this.overstack_value   = overstack_value;
     this.skill_id          = skill_id;
     this.src_instid        = src_instid;
     this.dst_instid        = dst_instid;
     this.src_master_instid = src_master_instid;
     this.iff            = iff;
     this.is_buff        = buff;
     this.result         = result;
     this.is_activation  = is_activation;
     this.is_buffremove  = is_buffremove;
     this.is_ninety      = is_ninety;
     this.is_fifty       = is_fifty;
     this.is_moving      = is_moving;
     this.is_statechange = is_statechange;
     this.is_flanking    = is_flanking;
     this.is_shields     = is_shields;
 }
コード例 #3
0
        public void RemoveBuff(Entity.Buff buff)
        {
            playerPanel.GetComponent <playBehaviour>().RemoveInfo(playerBuffMap[buff], buff);

            BuffRemove?.Invoke(buff, playerBuffMap[buff]);
            buff.Remove(playerBuffMap[buff], this);
            playerBuffMap.Remove(buff);
        }
コード例 #4
0
ファイル: Ev.cs プロジェクト: Archomeda/Blish-HUD
 public Ev(
     ulong time, ulong srcAgent, ulong dstAgent, int value, int buffDmg, uint overStackValue, uint skillId,
     ushort srcInstId, ushort dstInstId, ushort srcMasterInstId, ushort dstMasterInstId, IFF iff, bool buff,
     byte result, Activation isActivation, BuffRemove isBuffRemove, bool isNinety, bool isFifty, bool isMoving,
     StateChange isStateChange, bool isFlanking, bool isShields, bool isOffCycle, byte pad61, byte pad62, byte pad63,
     byte pad64
     )
 {
     this.Time            = time;
     this.SrcAgent        = srcAgent;
     this.DstAgent        = dstAgent;
     this.Value           = value;
     this.BuffDmg         = buffDmg;
     this.OverStackValue  = overStackValue;
     this.SkillId         = skillId;
     this.SrcInstId       = srcInstId;
     this.DstInstId       = dstInstId;
     this.SrcMasterInstId = srcMasterInstId;
     this.DstMasterInstId = dstMasterInstId;
     this.Iff             = iff;
     this.Buff            = buff;
     this.Result          = result;
     this.IsActivation    = isActivation;
     this.IsBuffRemove    = isBuffRemove;
     this.IsNinety        = isNinety;
     this.IsFifty         = isFifty;
     this.IsMoving        = isMoving;
     this.IsStateChange   = isStateChange;
     this.IsFlanking      = isFlanking;
     this.IsShields       = isShields;
     this.IsOffCycle      = isOffCycle;
     this.Pad61           = pad61;
     this.Pad62           = pad62;
     this.Pad63           = pad63;
     this.Pad64           = pad64;
 }
コード例 #5
0
 protected virtual void Handle(BuffRemove message)
 {
 }
コード例 #6
0
ファイル: EVTCParser.cs プロジェクト: itsmefox/evtc
        private static ParsedCombatItem ReadCombatItemRevision1(ByteArrayBinaryReader reader)
        {
            // 8 bytes: time
            long time = reader.ReadInt64();

            // 8 bytes: src_agent
            ulong srcAgent = reader.ReadUInt64();

            // 8 bytes: dst_agent
            ulong dstAgent = reader.ReadUInt64();

            // 4 bytes: value
            int value = reader.ReadInt32();

            // 4 bytes: buff_dmg
            int buffDmg = reader.ReadInt32();

            // 4 bytes: overstack_value
            uint overstackValue = reader.ReadUInt32();

            // 4 bytes: skill_id
            uint skillId = reader.ReadUInt32();

            // 2 bytes: src_instid
            ushort srcInstid = reader.ReadUInt16();

            // 2 bytes: dst_instid
            ushort dstInstid = reader.ReadUInt16();

            // 2 bytes: src_master_instid
            ushort srcMasterInstid = reader.ReadUInt16();

            // 2 bytes: dst_master_instid
            ushort dstMasterInstid = reader.ReadUInt16();

            // 1 byte: iff
            FriendOrFoe iff = GetFriendOrFoeFromByte(reader.ReadByte());

            // 1 byte: buff
            byte buff = reader.ReadByte();

            // 1 byte: result
            Result result = GetResultFromByte(reader.ReadByte());

            // 1 byte: is_activation
            Activation isActivation = GetActivationFromByte(reader.ReadByte());

            // 1 byte: is_buffremove
            BuffRemove isBuffRemove = GetBuffRemoveFromByte(reader.ReadByte());

            // 1 byte: is_ninety
            byte isNinety = reader.ReadByte();

            // 1 byte: is_fifty
            byte isFifty = reader.ReadByte();

            // 1 byte: is_moving
            byte isMoving = reader.ReadByte();

            // 1 byte: is_statechange
            StateChange isStateChange = GetStateChangeFromByte(reader.ReadByte());

            // 1 byte: is_flanking
            byte isFlanking = reader.ReadByte();

            // 1 byte: is_shields
            byte isShields = reader.ReadByte();

            // 1 byte: is_offcycle
            byte isOffcycle = reader.ReadByte();

            // 4 bytes: "padding"
            uint padding = reader.ReadUInt32();

            return(new ParsedCombatItem(time, srcAgent, dstAgent, value, buffDmg, overstackValue, skillId,
                                        srcInstid, dstInstid, srcMasterInstid, dstMasterInstid, iff, buff, result, isActivation, isBuffRemove,
                                        isNinety, isFifty, isMoving, isStateChange, isFlanking, isShields, isOffcycle, padding));
        }
コード例 #7
0
 protected override void Handle(BuffRemove args)
 {
     App.QueueOnMainThread(() => Buffs.Remove(args.BuffId));
 }