-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathBlitzcord.h
58 lines (47 loc) · 1.94 KB
/
Blitzcord.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#pragma once
#include "discord/discord.h"
#include <string>
#include <stdlib.h>
#include <chrono>
#include <limits>
#define uint64 unsigned long long
#define uint32 unsigned int
#define cstring const char*
#define BLITZ3D(x) extern "C" __declspec(dllexport) x _stdcall
//CORE FUNCTIONS
BLITZ3D(int) BlitzcordCreateCore(cstring id);
BLITZ3D(void) BlitzcordRunCallbacks();
//ACTIVITY FUNCTIONS
BLITZ3D(void) BlitzcordSetActivityState(cstring state);
BLITZ3D(void) BlitzcordSetActivityDetails(cstring details);
BLITZ3D(void) BlitzcordSetActivityType(int type);
BLITZ3D(void) BlitzcordClearActivity();
BLITZ3D(void) BlitzcordUpdateActivity();
//SMALL IMAGE FUNCTIONS
BLITZ3D(void) BlitzcordSetSmallImage(cstring image);
BLITZ3D(void) BlitzcordSetSmallText(cstring text);
BLITZ3D(cstring) BlitzcordGetSmallImage();
BLITZ3D(cstring) BlitzcordGetSmallText();
//LARGE IMAGE FUNCTIONS
BLITZ3D(void) BlitzcordSetLargeImage(cstring image);
BLITZ3D(void) BlitzcordSetLargeText(cstring text);
BLITZ3D(cstring) BlitzcordGetLargeImage();
BLITZ3D(cstring) BlitzcordGetLargeText();
//TIMESTAMP FUNCTIONS
BLITZ3D(void) BlitzcordSetTimestampStart(cstring timestamp);
BLITZ3D(void) BlitzcordSetTimestampEnd(cstring timestamp);
BLITZ3D(int) BlitzcordGetTimestampStartUpper();
BLITZ3D(int) BlitzcordGetTimestampStartLower();
BLITZ3D(int) BlitzcordGetTimestampEndUpper();
BLITZ3D(int) BlitzcordGetTimestampEndLower();
//UNIX TIMESTAMP FUNCTIONS
BLITZ3D(cstring) BlitzcordGetCurrentTimestamp();
BLITZ3D(cstring) BlitzcordGetTimestampPlus(int hours, int minutes, int seconds);
BLITZ3D(cstring) BlitzcordGetTimestampMinus(int hours, int minutes, int seconds);
//LONG SPLITTING FUNCTIONS, SINCE BLITZBASIC DOES NOT SUPPORT LONGS.
BLITZ3D(int) StringToUpperLong(cstring stringLong);
BLITZ3D(int) StringToLowerLong(cstring stringLong);
BLITZ3D(cstring) LongToString(int upperLong, int lowerLong);
int longUpper(uint64 value);
int longLower(uint64 value);
uint64 mergeLong(int upperLong, int lowerLong);