mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 03:28:20 +02:00
Fixed fully qualified generic lookup
This commit is contained in:
parent
3b711932ec
commit
8aa58b3804
3 changed files with 67 additions and 14 deletions
|
@ -21,6 +21,11 @@ namespace Hey.Dude.Bro
|
|||
}
|
||||
}
|
||||
|
||||
struct Color
|
||||
{
|
||||
public float r, g, b, a;
|
||||
}
|
||||
|
||||
class TestClass
|
||||
{
|
||||
/*static void TestFunc()
|
||||
|
@ -37,8 +42,27 @@ namespace Hey.Dude.Bro
|
|||
|
||||
}*/
|
||||
|
||||
//private const uint16[] DebugIndexes = scope uint16[](0, 1, 2, 1, 2, 3, 2, 3, 4, 3, 4, 5, 4, 5, 6, 5, 6, 7);
|
||||
|
||||
|
||||
|
||||
[Import(@"C:\Beef\BeefTools\TestDLL\x64\Debug\TestDLL.dll"), LinkName("Test2")]
|
||||
public static extern void Test2(int32 a, int32 b, int32 c, int32 d, function Color(int32 a, int32 b) func);
|
||||
|
||||
public static Color GetColor(int32 a, int32 b)
|
||||
{
|
||||
Color c;
|
||||
c.r = 1.2f;
|
||||
c.g = 2.3f;
|
||||
c.b = 3.4f;
|
||||
c.a = 4.5f;
|
||||
return c;
|
||||
}
|
||||
|
||||
public static int Main(String[] args)
|
||||
{
|
||||
Test2(1, 2, 3, 4, => GetColor);
|
||||
|
||||
//Blurg.Hey();
|
||||
return 1;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue