1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00
Beef/BeefLibs/corlib/cpp/sys.cpp

39 lines
828 B
C++
Raw Normal View History

2019-08-23 11:56:54 -07:00
// This is a test class for the debugger. This file isn't actually used or required.
#include <stdio.h>
#include <stdlib.h>
#include <cstring>
#include <math.h>
#include <vector>
#include <map>
#include <string>
namespace Hey
{
namespace Dude
{
namespace Bro
{
struct Vector2
{
float mX;
float mY;
void Write();
float get__Length();
};
void Vector2::Write()
{
// Debug visualizers work for C++ on
// things like std::map and std::string
std::map<int, std::string> testMap;
testMap[1] = "One";
testMap[2] = "Two";
// Calls back into Length property getter in Beef
printf("X:%f Y:%f Length:%f\n", mX, mY, get__Length());
}
}
}
}