public Arrow(ArrowModel item) { this.id = Guid.NewGuid(); this.FirstId = item.FirstId; this.StartTerrainName = item.StartTerrainName; this.EndTerrainName = item.EndTerrainName; this.ArrowType = (int)item.ArrowType; }
public ArrowModel ToArrowModel() { var result = new ArrowModel(); result.FirstId = this.FirstId; result.StartTerrainName = this.StartTerrainName; result.EndTerrainName = this.EndTerrainName; result.ArrowType = (ArrowType)this.ArrowType; return(result); }