赛事功能完善
创建比赛按钮;loading页面more按钮等
This commit is contained in:
1 parent
eed2d13624
commit
e76b5c443f
55 files changed
+7805
-3376
No files matched your search
@@ -41,7 +41,7 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string HeadUrl { get; set; }
|
||||
public string WxHeadImg { get; set; }
|
||||
|
||||
//public string Time { get; set; }
|
||||
|
||||
@@ -66,7 +66,9 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
||||
/// 与冲线时间的差距
|
||||
/// </summary>
|
||||
public string Gap { get; set; }
|
||||
public string Country { get; set; }
|
||||
}
|
||||
|
||||
public class RankingDataModel
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
@@ -74,6 +76,18 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
||||
public TargetData data { get; set; }
|
||||
}
|
||||
|
||||
public class CompetitionTopModel
|
||||
{
|
||||
public int UserId { get; set; }
|
||||
public int Index { get; set; }
|
||||
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Country { get; set; }
|
||||
|
||||
public string TripTime { get; set; }
|
||||
}
|
||||
|
||||
public class RankingSortData
|
||||
{
|
||||
public int Index { get; set; }
|
||||
@@ -114,6 +128,8 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
||||
public int MyRanking { get; set; }
|
||||
|
||||
public List<CompetitionResultModel> Results { get; set; }
|
||||
|
||||
public List<CompetitionTopModel> TopList { get; set; }
|
||||
}
|
||||
/// <summary>
|
||||
/// 骑行中 输出的数据模型
|
||||
@@ -311,6 +327,11 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
||||
|
||||
public double Speed { get; set; }
|
||||
|
||||
public double Power { get; set; }
|
||||
public double? Heart { get; set; }
|
||||
public double? Cadence { get; set; }
|
||||
public int TotalTicks { get; set; }
|
||||
|
||||
public bool IsCompleted { get; set; }
|
||||
|
||||
/// <summary>
|
||||
@@ -367,6 +388,10 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
||||
//public bool exit { get; set; }
|
||||
|
||||
public double Speed { get; set; }
|
||||
public double Power { get; set; }
|
||||
public double HeartRate { get; set; }
|
||||
public double Cadence { get; set; }
|
||||
public int TotoalTicks { get; set; }
|
||||
|
||||
public bool IsCompleted { get; set; }
|
||||
|
||||
@@ -403,7 +428,7 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
||||
public static ReceiveMsgModel Parse(string str)
|
||||
{
|
||||
var list = str.Split(',');
|
||||
if (list.Length != 10)
|
||||
if (list.Length != 14)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
@@ -422,7 +447,11 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
||||
EndDistance = Convert.ToDouble(list[6], CultureInfo.InvariantCulture),
|
||||
WeightKg = Convert.ToDouble(list[7], CultureInfo.InvariantCulture),
|
||||
Competitionid = Convert.ToInt32(list[8], CultureInfo.InvariantCulture),
|
||||
Saved = ToBoolean(list[9])
|
||||
Saved = ToBoolean(list[9]),
|
||||
Power = Convert.ToDouble(list[10], CultureInfo.InvariantCulture),
|
||||
HeartRate = Convert.ToDouble(list[11], CultureInfo.InvariantCulture),
|
||||
Cadence = Convert.ToDouble(list[12], CultureInfo.InvariantCulture),
|
||||
TotoalTicks = Convert.ToInt32(list[13], CultureInfo.InvariantCulture),
|
||||
};
|
||||
}
|
||||
catch
|
||||
@@ -511,6 +540,10 @@ namespace Assets.Scenes.Ride.Scripts.Model
|
||||
/// 速度(km/h)
|
||||
/// </summary>
|
||||
public double Speed { get; set; }
|
||||
public double Power { get; set; }
|
||||
public double HeartRate { get; set; }
|
||||
public double Cadence { get; set; }
|
||||
public int TotalTicks { get; set; }
|
||||
|
||||
///// <summary>
|
||||
///// 圆形头像
|
||||
|
||||
Reference in new issue
Block a user