netcode: replicate other players for connecting client

This commit is contained in:
2022-05-14 19:04:34 +03:00
parent 3b8a226fdc
commit 789b4bacec
10 changed files with 358 additions and 23 deletions

43
Tests/ConsoleTests.cs Normal file
View File

@@ -0,0 +1,43 @@
using NUnit.Framework;
using Cabrito;
using Console = Cabrito.Console;
namespace GoakeTests.ConsoleTests
{
public class ConsoleTests
{
[SetUp]
public void Setup()
{
Console.Init();
}
[TearDown]
public void CleanUp()
{
Console.Destroy();
}
[Test]
public void Test1()
{
string testPrint = "Hello world!";
Console.OnPrint += delegate(string s) { Assert.True(s == testPrint); };
Console.Print(testPrint);
}
[Test]
public void Test2()
{
string testPrint = "Hello world2!";
Console.OnPrint += delegate(string s) { Assert.True(s == testPrint); };
Console.Print(testPrint);
}
}
}