コード例 #1
0
 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;
 }
コード例 #2
0
        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);
        }