the game where you go into mines and start crafting! but for consoles (forked directly from smartcmd's github)
1/********************************************************
2* *
3* Copyright (C) Microsoft. All rights reserved. *
4* *
5********************************************************/
6
7// Sentient Client System API
8//
9// Include this to get access to all System Sentient features.
10
11#pragma once
12
13#include "SenClientTypes.h"
14
15
16namespace Sentient
17{
18 /************************
19 ***** System Types *****
20 ************************/
21
22 // Standardized callback that all asynchronous functions call either on completion or on failure.
23 typedef void (*SenSysCompletedCallback)( HRESULT taskResult, void *userCallbackData );
24
25 typedef void *(*SenSysMemAllocCallback)( size_t size );
26
27 typedef void (*SenSysMemFreeCallback)( void *ptr );
28
29 typedef void (*SenSysOutputCallback)( const wchar_t *outputString );
30
31
32 /****************************
33 ***** System Functions *****
34 ****************************/
35
36#ifdef _XBOX
37 // Call this to get the XDK version number that Sentient was compiled against
38 int SenSysGetXDKVersion();
39#endif
40#ifdef __WINLIVE__
41 // Call this to get the GFWL version number that Sentient was compiled against
42 int SenSysGetGFWLSDKVersion();
43#endif
44
45 // Sentient calls this to get total allocated memory.
46 // (this is only tracked in debug mode - in release mode, this will return 0)
47 size_t SenSysMemAllocated();
48
49 // Redirects all of Sentient's internal memory allocs to a custom allocator.
50 void SenSysSetMemAllocCallback( SenSysMemAllocCallback callback );
51
52 // Redirects all of Sentient's internal memory frees to a custom allocator.
53 void SenSysSetMemFreeCallback( SenSysMemFreeCallback callback );
54
55 // Redirects all of Sentient's internal output to a custom routine.
56 void SenSysSetOutputCallback( SenSysOutputCallback callback );
57
58} // namespace Sentient