예제 #1
0
 //public bool HasColoniseOrder()
 //{
 //    if (Client.Instance.Player.Orders.GetColoniseOrder(this) != null)
 //    {
 //        return true;
 //    }
 //    else
 //    {
 //        return false;
 //    }
 //}
 public MapObject Clone()
 {
     MapObject obj = new MapObject();
     obj.Name = this.Name;
     obj.ID = this.ID;
     obj.Image = this.Image;
     foreach (Component component in this.Components)
     {
         obj.Components.Add(component);
     }
     return obj;
 }
예제 #2
0
파일: Client.cs 프로젝트: sal1n/lcog-client
 public void TargetNearestMapObject(Point point)
 {
     this.Target = this.Map.GetNearestObject(point);
     this.UpdateView();
 }