You've already forked CC-Framework.BriskGameServer
Initial Brisk Unity SDK project
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
# Changelog
|
||||
|
||||
## 0.1.0
|
||||
|
||||
- Initial embedded package structure
|
||||
- Added Brisk runtime facade and service modules
|
||||
- Added default error presenter
|
||||
- Added quick start sample script and sample scene
|
||||
@@ -0,0 +1,8 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cc4dc90e0c0542adbd88e58e9daf4336
|
||||
folderAsset: yes
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,43 @@
|
||||
# Quick Start
|
||||
|
||||
## Initialize
|
||||
|
||||
```csharp
|
||||
await Brisk.InitializeAsync(new BriskOptions
|
||||
{
|
||||
BaseUrl = "https://brisk.lightyears.ltd",
|
||||
GameKey = "demo-game",
|
||||
ClientVersion = Application.version,
|
||||
DeviceId = SystemInfo.deviceUniqueIdentifier
|
||||
});
|
||||
```
|
||||
|
||||
## Login
|
||||
|
||||
```csharp
|
||||
await Brisk.Auth.LoginWithUserIdAsync("tap", "tap_user_10001");
|
||||
```
|
||||
|
||||
## Common calls
|
||||
|
||||
```csharp
|
||||
var me = await Brisk.Player.GetMeAsync();
|
||||
var config = await Brisk.Config.GetCurrentAsync();
|
||||
var top = await Brisk.Leaderboard.GetTopAsync("season-score", 20);
|
||||
await Brisk.Leaderboard.SubmitScoreAsync("season-score", 128);
|
||||
```
|
||||
|
||||
## Sample
|
||||
|
||||
For the current source project, open directly:
|
||||
|
||||
- `Assets/BriskSdk/Samples/QuickStart/BriskQuickStartSample.cs`
|
||||
- `Assets/Scenes/BriskQuickStartScene.unity`
|
||||
|
||||
The sample scene uses an IMGUI debug panel and can directly test:
|
||||
|
||||
- initialize and restore
|
||||
- login by `login_user_id`
|
||||
- login by `code`
|
||||
- player, config, announcement, leaderboard, archive, and space flows
|
||||
- global event logs and request results
|
||||
@@ -0,0 +1,7 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 9972933694db41dfb51eaf3332ef8374
|
||||
DefaultImporter:
|
||||
externalObjects: {}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,38 @@
|
||||
# FoldCC Brisk Game Server SDK
|
||||
|
||||
This directory is the package publishing skeleton for Brisk.
|
||||
|
||||
The active Unity project source currently lives under:
|
||||
|
||||
- `Assets/BriskSdk/Runtime`
|
||||
- `Assets/BriskSdk/Samples/QuickStart`
|
||||
- `Assets/Scenes/BriskQuickStartScene.unity`
|
||||
|
||||
## Included runtime modules
|
||||
|
||||
- Bootstrap and initialization
|
||||
- Auth and session restore
|
||||
- Player profile
|
||||
- Dynamic config
|
||||
- Announcements
|
||||
- Leaderboard
|
||||
- Archive upload and download
|
||||
- Player space
|
||||
- Default blocking error UI
|
||||
|
||||
## Package layout
|
||||
|
||||
- `Runtime`
|
||||
- `Samples~`
|
||||
- `Documentation~`
|
||||
|
||||
## Quick start
|
||||
|
||||
See:
|
||||
|
||||
- `Documentation~/QuickStart.md`
|
||||
- `Samples~/QuickStart`
|
||||
|
||||
This sample uses an IMGUI test panel for end-to-end SDK flow verification.
|
||||
|
||||
When preparing a publish branch, place the package-ready runtime, samples, and docs into this package directory and tag that branch for external consumption.
|
||||
@@ -0,0 +1,17 @@
|
||||
{
|
||||
"name": "com.foldcc.cc-framework.BriskGameServer",
|
||||
"displayName": "FoldCC Brisk Game Server SDK",
|
||||
"version": "0.1.0",
|
||||
"unity": "2021.3",
|
||||
"description": "A lightweight Unity SDK for Brisk game services, including bootstrap, auth, announcements, leaderboard, archive, and player space modules.",
|
||||
"keywords": [
|
||||
"brisk",
|
||||
"sdk",
|
||||
"leaderboard",
|
||||
"archive",
|
||||
"unity"
|
||||
],
|
||||
"author": {
|
||||
"name": "FoldCC"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user