Exemple #1
0
        public void ReplaceAt(UInt32 tag, WireType wireType, IReader reader, bool shouldNotify)
        {
            switch (tag)
            {
            case 0: this.TargetIndex = this.MaybeNotify(0, reader.ReadUInt16(), this.TargetIndex, OnTargetIndexUpdate, shouldNotify); break;

            case 1: this.BeforeHits = this.MaybeNotify(1, Vector <Action> .Deserialize(reader, this.Path.GetNested(1)), this.BeforeHits, OnBeforeHitsUpdate, shouldNotify); break;

            case 2: this.Hits = this.MaybeNotify(2, ActionsOr <Vector <ActionsOr <Hit> > > .Deserialize(reader, this.Path.GetNested(2)), this.Hits, OnHitsUpdate, shouldNotify); break;

            case 3: this.AfterHits = this.MaybeNotify(3, Vector <Action> .Deserialize(reader, this.Path.GetNested(3)), this.AfterHits, OnAfterHitsUpdate, shouldNotify); break;

            default: reader.SkipField(wireType); break;
            }
        }
Exemple #2
0
            public void ReplaceAt(UInt32 tag, WireType wireType, IReader reader, bool shouldNotify)
            {
                switch (tag)
                {
                case 0: this.CasterIndex = this.MaybeNotify(0, reader.ReadUInt16(), this.CasterIndex, OnCasterIndexUpdate, shouldNotify); break;

                case 1: this.CardId = this.MaybeNotify(1, reader.ReadUInt32(), this.CardId, OnCardIdUpdate, shouldNotify); break;

                case 2: this.BeforeSkills = this.MaybeNotify(2, Vector <Action> .Deserialize(reader, this.Path.GetNested(2)), this.BeforeSkills, OnBeforeSkillsUpdate, shouldNotify); break;

                case 3: this.Skills = this.MaybeNotify(3, ActionsOr <Vector <ActionsOr <Skill> > > .Deserialize(reader, this.Path.GetNested(3)), this.Skills, OnSkillsUpdate, shouldNotify); break;

                case 4: this.AfterSkills = this.MaybeNotify(4, Vector <Action> .Deserialize(reader, this.Path.GetNested(4)), this.AfterSkills, OnAfterSkillsUpdate, shouldNotify); break;

                default: reader.SkipField(wireType); break;
                }
            }