diff --git a/Vendor/Premake/LICENSE.txt b/Vendor/Premake/LICENSE.txt new file mode 100644 index 0000000..f445f59 --- /dev/null +++ b/Vendor/Premake/LICENSE.txt @@ -0,0 +1,27 @@ +Copyright (c) 2003-2019 Jason Perkins and individual contributors. +All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + + 2. Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + 3. Neither the name of Premake nor the names of its contributors may be + used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE +FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, +OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE +OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/Vendor/Premake/Linux/premake5 b/Vendor/Premake/Linux/premake5 new file mode 100644 index 0000000..2fd412d Binary files /dev/null and b/Vendor/Premake/Linux/premake5 differ diff --git a/Vendor/Premake/Mac/premake5 b/Vendor/Premake/Mac/premake5 new file mode 100644 index 0000000..d192618 Binary files /dev/null and b/Vendor/Premake/Mac/premake5 differ diff --git a/Vendor/Premake/Windows/premake5.exe b/Vendor/Premake/Windows/premake5.exe new file mode 100644 index 0000000..f081fe1 Binary files /dev/null and b/Vendor/Premake/Windows/premake5.exe differ diff --git a/Vendor/TribuFu/Android/aarch64/libTribuFu.so b/Vendor/TribuFu/Android/aarch64/libTribuFu.so new file mode 100644 index 0000000..a4242db Binary files /dev/null and b/Vendor/TribuFu/Android/aarch64/libTribuFu.so differ diff --git a/Vendor/TribuFu/Android/armv7/libTribuFu.so b/Vendor/TribuFu/Android/armv7/libTribuFu.so new file mode 100644 index 0000000..7407362 Binary files /dev/null and b/Vendor/TribuFu/Android/armv7/libTribuFu.so differ diff --git a/Vendor/TribuFu/Android/i686/libTribuFu.so b/Vendor/TribuFu/Android/i686/libTribuFu.so new file mode 100644 index 0000000..0a2ac0c Binary files /dev/null and b/Vendor/TribuFu/Android/i686/libTribuFu.so differ diff --git a/Vendor/TribuFu/Android/x86_64/libTribuFu.so b/Vendor/TribuFu/Android/x86_64/libTribuFu.so new file mode 100644 index 0000000..a765416 Binary files /dev/null and b/Vendor/TribuFu/Android/x86_64/libTribuFu.so differ diff --git a/Vendor/TribuFu/Linux/libTribuFu.so b/Vendor/TribuFu/Linux/libTribuFu.so new file mode 100644 index 0000000..97759d4 Binary files /dev/null and b/Vendor/TribuFu/Linux/libTribuFu.so differ diff --git a/Vendor/TribuFu/Mac/libTribuFu.dylib b/Vendor/TribuFu/Mac/libTribuFu.dylib new file mode 100644 index 0000000..9fe0ea4 Binary files /dev/null and b/Vendor/TribuFu/Mac/libTribuFu.dylib differ diff --git a/Vendor/TribuFu/TribuFu.h b/Vendor/TribuFu/TribuFu.h new file mode 100644 index 0000000..bdf9070 --- /dev/null +++ b/Vendor/TribuFu/TribuFu.h @@ -0,0 +1,136 @@ +// Copyright (c) TribuFu. All Rights Reserved + +#pragma once + +#include +#include +#include +#include +#include + +#define VERSION "0.0.1" + +#ifdef __cplusplus +namespace TribuFu +{ +#endif + + enum Role + { + User, + Bot, + Helper, + Tester, + Developer, + Moderator, + Admin, + Root, + }; + + enum Status + { + Offline, + Away, + Disturb, + Online, + Playing, + }; + + enum Theme + { + Light, + Dark, + }; + + struct Email + { + const char *Address; + bool Confirmed; + bool Primary; + }; + + struct User + { + enum Role Role; + bool Confirmed; + bool TwoFactorEnabled; + bool Verified; + bool ParentalControl; + bool PublicBirthday; + enum Theme Theme; + uint32_t FailedLogins; + uint32_t ProfileViews; + uint32_t Content; + enum Status Status; + uint32_t Warnings; + }; + +#ifdef __cplusplus + extern "C" + { +#endif + + void AcceptFriend(char *id1, char *id2); + + void AddFriend(char *id1, char *id2); + + /** + * Dealloc a email pointer. + */ + void DeallocEmail(struct Email *email); + + /** + * Dealloc a string pointer. + */ + void DeallocString(char *ptr); + + /** + * Dealloc a user pointer. + */ + void DeallocUser(struct User *user); + + void EnterTeam(void); + + void GetDevice(char *id); + + /** + * Get email data from address. + */ + struct Email *GetEmail(char *address); + + void GetFriends(char *id); + + void GetMessage(char *id); + + void GetRole(char *id); + + /** + * Get user data from id. + */ + struct User *GetUser(char *id); + + void GetUserDevices(char *id); + + void GetUserEmails(char *id); + + void GetUserRoles(char *id); + + char *Hello(char *input); + + void InviteToTeam(void); + + struct User *Login(char *name, char *password); + + void Logout(void); + + void Refresh(void); + + void Register(char *name, char *email, char *password); + +#ifdef __cplusplus + } +#endif + +#ifdef __cplusplus +} +#endif diff --git a/Vendor/TribuFu/Windows/TribuFu.dll b/Vendor/TribuFu/Windows/TribuFu.dll new file mode 100644 index 0000000..0499551 Binary files /dev/null and b/Vendor/TribuFu/Windows/TribuFu.dll differ diff --git a/Vendor/TribuFu/Windows/TribuFu.lib b/Vendor/TribuFu/Windows/TribuFu.lib new file mode 100644 index 0000000..35316e6 Binary files /dev/null and b/Vendor/TribuFu/Windows/TribuFu.lib differ