public ObjectChipModel(MapModel parent, ObjectChipPack[] objectChipPack) { _parent = parent; _objectData = new Dictionary<Point, ObjectChip>(); _objectData = objectChipPack.ToDictionary(x => new Point(x.X, x.Y), x => new ObjectChip(x)); }
public ObjectChip(ObjectChipPack objectChipPack) { ID = objectChipPack.ID; Status = objectChipPack.Status; Param = objectChipPack.Param; SubParam1 = objectChipPack.SubParam1; SubParam2 = objectChipPack.SubParam2; Trigger1 = objectChipPack.Trigger1; Action1 = objectChipPack.Action1; Trigger2 = objectChipPack.Trigger2; Action2 = objectChipPack.Action2; Trigger3 = objectChipPack.Trigger3; Action3 = objectChipPack.Action3; Item1 = objectChipPack.Item1; Item2 = objectChipPack.Item2; Item3 = objectChipPack.Item3; Item4 = objectChipPack.Item4; Item5 = objectChipPack.Item5; }