コード例 #1
0
ファイル: GroundGenerator.cs プロジェクト: Xyzyx101/OcelotRun
 public void Init(TileWidget tileWidget, float xOffest, float height)
 {
     this.tileWidget = tileWidget;
     parent.transform.position = new Vector3(xOffest, height, 0.0f);
     tilesRemaining = (int)(ChunkWidth / tileSize);
     totalTiles = (int)(ChunkWidth / tileSize);
     Generate();
 }
コード例 #2
0
        public async Task <IHttpActionResult> CreateAsync(CreateWidgetDto createWidgetDto)
        {
            var newWidget = TileWidget.Build(CurrentUser.Id, createWidgetDto.Name, createWidgetDto.Name, createWidgetDto.Url);

            _repository.Add(newWidget);

            await _unitOfWork.CompleteAsync();

            return(Created(new Uri(Request.RequestUri + "/" + newWidget.Id), newWidget));
        }