private void InitNewLink(IContainsGold obj) { StretchingLineControl stretchingControl = new StretchingLineControl(); stretchingControl.FirstObj = me; stretchingControl.SecondObj = obj; Line line = new Line(sceneMgr, IdMgr.GetNewId(sceneMgr.GetCurrentPlayer().GetId()), me.Position, obj.Position, Colors.Black, 1); line.AddControl(stretchingControl); line.AddControl(new MiningLineControl()); sceneMgr.DelayedAttachToScene(line); CurrentlyMining.Add(new MiningObject(obj, line)); }
public MiningObject(IContainsGold obj, Line line) : this() { Obj = obj; MiningLine = line; }