天梯排行榜
This commit is contained in:
28
Assets/TcgEngine/Scripts/Data/RankData/LadderConfig.cs
Normal file
28
Assets/TcgEngine/Scripts/Data/RankData/LadderConfig.cs
Normal file
@@ -0,0 +1,28 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
|
||||
namespace TcgEngine
|
||||
{
|
||||
[System.Serializable]
|
||||
public class LadderConfig
|
||||
{
|
||||
public int Id;
|
||||
public int Rank;
|
||||
public string RankName;
|
||||
public int Level;
|
||||
public int BeginStar;
|
||||
public int RankDownStar;
|
||||
public int MaxStar;
|
||||
public int WinGetStar;
|
||||
public int ExtraGetStar;
|
||||
public int LoseLostStar;
|
||||
public int LoseRankDown;
|
||||
public int RankScore;
|
||||
public int AITimes;
|
||||
public string AIDeck;
|
||||
public int WaitTime;
|
||||
public int MaxWaitTime;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,3 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 65340b3a4e424aa5ad2989c210751a8a
|
||||
timeCreated: 1756705296
|
||||
@@ -0,0 +1,19 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace TcgEngine
|
||||
{
|
||||
[System.Serializable]
|
||||
public class LadderLeaderboardEntry
|
||||
{
|
||||
public string playerId; // id
|
||||
public string username; // 用户名
|
||||
public string avatar; // 头像
|
||||
public int rankId; // 天梯ID
|
||||
public int rankScore; // 王者分数
|
||||
public int stars; // 星星数
|
||||
public int totalWins; // 总胜利次数
|
||||
public int position; // 排名位置
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 1f6cf4bfc3415c143a6c68a31e893373
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace TcgEngine
|
||||
{
|
||||
[System.Serializable]
|
||||
public class LadderPositionResponse
|
||||
{
|
||||
// 玩家在排行榜中的位置,未上榜为null
|
||||
public int? position;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 90797bc114f5d254cb94bda0d32215dd
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
21
Assets/TcgEngine/Scripts/Data/RankData/PlayerLadderInfo.cs
Normal file
21
Assets/TcgEngine/Scripts/Data/RankData/PlayerLadderInfo.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
namespace TcgEngine
|
||||
{
|
||||
[System.Serializable]
|
||||
public class PlayerLadderInfo
|
||||
{
|
||||
public string playerName; // 天梯ID名称
|
||||
public string rankName; // 天梯等级
|
||||
public int level; // 天梯等级
|
||||
public bool isRankScore; // 是否王者匹配机制
|
||||
|
||||
public int score; // 王者机制
|
||||
|
||||
//星星
|
||||
public int stars;
|
||||
public int maxStars;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 0d4193b02a88bd94ba19e7ef6b4d1078
|
||||
MonoImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 2
|
||||
defaultReferences: []
|
||||
executionOrder: 0
|
||||
icon: {instanceID: 0}
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Reference in New Issue
Block a user