Exemple #1
0
        public override bool Equals(object obj)
        {
            EntityGenerationInfo rhs = obj as EntityGenerationInfo;

            if (rhs == null)
            {
                return(false);
            }
            return(this.SequenceEqual(rhs));
        }
Exemple #2
0
        public bool Parse(State.Game game, State.ReadOnlyEntity entity)
        {
            this.id = entity.Id;

            this.card_id    = entity.CardId;
            this.controller = entity.GetTagOrDefault(State.GameTag.CONTROLLER, -1);

            this.generate_under_blocks = new EntityGenerationInfo();
            foreach (var obj in entity.generate_under_blocks_)
            {
                this.generate_under_blocks.Add(obj);
            }

            tags = new Dictionary <string, int>();
            foreach (var kv in entity.Tags)
            {
                tags[kv.Key.ToString()] = kv.Value;
            }

            return(true);
        }