1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/framework/csharp/object.cpp

21 lines
338 B
C++
Raw Normal View History

2024-05-01 19:09:43 -03:00
#include "object.hpp"
#include "type.hpp"
namespace xna {
2024-05-02 10:52:08 -03:00
sptr<Type> Object::GetType() const
2024-05-01 19:09:43 -03:00
{
auto type = New<Type>();
2024-05-02 10:52:08 -03:00
type->FullName = "xna::Object";
2024-05-01 19:09:43 -03:00
type->Namespace = "xna";
type->IsClass = true;
return type;
}
2024-05-02 10:52:08 -03:00
size_t Object::GetHashCode() const
{
size_t seed = 0;
XnaHHashCombine(seed, this);
return seed;
}
2024-05-01 19:09:43 -03:00
}