Skip to content

Commit

Permalink
Merge branch 'release/beta0.0.03'
Browse files Browse the repository at this point in the history
  • Loading branch information
ctrl-alt-d committed Aug 16, 2019
2 parents f610f33 + 3aa911d commit dc66b72
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/blagario.Unit.Tests/SplitTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public async Task CheckSplit()

// Distance should increase
Assert.Equal(8, cell.Count );
Assert.All<CellPart>( cell, c=> Assert.True(c.X > 400 && c.X < 500) );
Assert.All<CellPart>( cell, c=> Assert.True(c.X > 300 && c.X < 505) );
}

}
Expand Down
4 changes: 2 additions & 2 deletions src/blagario/Pages/Index.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,13 +22,13 @@ public void Dispose() {

protected List<AgarElement> VisibleElements = new List<AgarElement>();

protected override void OnInit()
protected override void OnInitialized()
{
Universe.World.OnTicReached += UpdateUi;
}
private void UpdateUi(object sender, EventArgs ea)
{
Invoke(
InvokeAsync(
() =>
{
VisibleElements = Universe
Expand Down
2 changes: 1 addition & 1 deletion src/blagario/Pages/Index.razor
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
{
<div class="respawn">
<input type="text" style="position:absolute; top:0; left:-100px; width: 350px; height: 30px; border: 0; padding: 0; padding-left:10px;" @bind-value="@Player.Name" />
<input type="button" style="position:absolute; top:0; left:-150px; width:50px; ; height: 30px;" value="Play!" onclick="@Player.Play" />
<input type="button" style="position:absolute; top:0; left:-150px; width:50px; ; height: 30px;" value="Play!" @onclick="Player.Play" />
</div>
}

Expand Down
1 change: 0 additions & 1 deletion src/blagario/_Imports.razor
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
@using System.Net.Http
@using Microsoft.AspNetCore.Components.Forms
@using Microsoft.AspNetCore.Components.Layouts
@using Microsoft.AspNetCore.Components.Routing
@using Microsoft.JSInterop
@using blagario
Expand Down
5 changes: 5 additions & 0 deletions src/global.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"sdk": {
"version": "3.0.100-preview8-013656"
}
}

0 comments on commit dc66b72

Please sign in to comment.