-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathUWebSDK.pas
51 lines (38 loc) · 1.4 KB
/
UWebSDK.pas
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
unit UWebSDK;
interface
{$IFDEF FPC}
{$MODE Delphi}
{$ENDIF}
type
// Website
TWebsiteInfo = record
Name: array [0..30] of char;
ID: integer;
end;
TSendInfo = record
Username: UTF8String; // Username
Password: UTF8String; // Password
ScoreInt: integer; // Player's Score Int
ScoreLineInt: integer; // Player's Score Line
ScoreGoldenInt: integer; // Player's Score Golden
MD5Song: string; // Song Hash
Level: byte; // Level (0- Easy, 1- Medium, 2- Hard)
end;
TLoginInfo = record
Username: UTF8String; // Username
Password: UTF8String; // Password
end;
pModi_WebsiteInfo = procedure (var Info: TWebsiteInfo);
{$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
fModi_SendScore = function (SendInfo: TSendInfo): integer;
{$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
fModi_EncryptScore = function (SendInfo: TSendInfo): widestring;
{$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
fModi_Login = function (LoginInfo: TLoginInfo): byte;
{$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
fModi_EncryptPassword = function (LoginInfo: TLoginInfo): widestring;
{$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
fModi_DownloadScore = function (ListMD5Song: widestring; Level: byte): widestring;
{$IFDEF MSWINDOWS} stdcall; {$ELSE} cdecl; {$ENDIF}
implementation
end.