1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-21 09:27:59 +02:00
Beef/IDE/mintest/src/main.bf

71 lines
1.1 KiB
Beef
Raw Normal View History

2019-08-23 11:56:54 -07:00
//zab1234
// Zoop
//using IDE;
using System;
2019-09-29 07:44:39 -07:00
//using System.Threading;
using System.Collections;
2019-08-23 11:56:54 -07:00
using System.Diagnostics;
using System.Collections;
2019-08-23 11:56:54 -07:00
using System.Collections;
2019-09-29 07:44:39 -07:00
using System.Threading;
2019-08-23 11:56:54 -07:00
namespace Hey.Dude.Bro
{
2020-10-22 06:31:39 -07:00
struct Zoff
2019-08-23 11:56:54 -07:00
{
2020-10-22 06:31:39 -07:00
public void operator<<=(float a)
2019-08-23 11:56:54 -07:00
{
2020-05-22 06:40:06 -07:00
2019-08-23 11:56:54 -07:00
}
}
2022-06-29 15:17:04 -07:00
struct Color
{
public float r, g, b, a;
}
2020-10-22 06:31:39 -07:00
class TestClass
2019-08-23 11:56:54 -07:00
{
2020-10-22 06:31:39 -07:00
/*static void TestFunc()
2019-08-23 11:56:54 -07:00
{
2020-10-22 06:31:39 -07:00
Zonk(=> LocalMethod);
void LocalMethod()
2019-08-23 11:56:54 -07:00
{
2020-10-22 06:31:39 -07:00
int a = zzz;
2019-08-23 11:56:54 -07:00
}
}
2020-10-22 06:31:39 -07:00
static void Zonk<T>(T dlg) where T : delegate void()
2019-08-23 11:56:54 -07:00
{
2020-10-22 06:31:39 -07:00
}*/
2019-08-23 11:56:54 -07:00
2022-06-29 15:17:04 -07:00
//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;
}
2020-10-22 06:31:39 -07:00
public static int Main(String[] args)
2019-08-23 11:56:54 -07:00
{
2022-06-29 15:17:04 -07:00
Test2(1, 2, 3, 4, => GetColor);
2020-10-22 06:31:39 -07:00
//Blurg.Hey();
return 1;
2019-08-23 11:56:54 -07:00
}
}
}