public void Set(int id) { _selected = _objectChipLibrary.GetByID(id); }
public void SpoilObject(ObjectChip objectChip) { _selected = objectChip.Clone(); }
public ObjectChipCommand(Point point, ObjectChip chip) { ObjectChipPointList = new[] { new ObjectChipPoint(point, chip.Clone()), }; }
public ObjectChipPoint(Point point, ObjectChip chip) { Point = point; ObjectChip = chip; }
//引数のインスタンスと同じパラメータかどうか public bool IsSame(ObjectChip target) { return ID == target.ID && Status == target.Status && Param == target.Param && SubParam1 == target.SubParam1 && SubParam2 == target.SubParam2 && Trigger1 == target.Trigger1 && Action1 == target.Action1 && Trigger2 == target.Trigger2 && Action2 == target.Action2 && Trigger3 == target.Trigger3 && Action3 == target.Action3 && Item1 == target.Item1 && Item2 == target.Item2 && Item3 == target.Item3 && Item4 == target.Item4 && Item5 == target.Item5; }
public void Set(Point point, ObjectChip objectChip) { _objectData[point] = objectChip.Clone(); RaisePropertyChanged("ObjectChipModel"); }
public void Set(int x, int y, ObjectChip objectChip) { Set(new Point(x, y), objectChip); }
public ObjectChipViewModel(ObjectChip model) { _model = model; InitializeInput(); }
private string GetCurrentPositionInformation(MapChip mapchip, ObjectChip objectChip) { var pos = string.Format("横 : {0} 縦 : {1}", MapCellWidth, MapCellHeight); var mc = mapchip == null ? "" : string.Format("MapChipID : {0}", mapchip.ID); var oc = objectChip == null ? "" : string.Format("ObjectChipID : {0} Status : {1} Parameter : {2} SubParam1 : {3} SubParam2 : {4}", objectChip.ID, objectChip.Status, objectChip.Param, objectChip.SubParam1, objectChip.SubParam2); return string.Join(" ", new[] { pos, mc, oc }); }