新增战绩存储内容
This commit is contained in:
parent
7824e42af8
commit
d50ce0152c
@ -944,6 +944,11 @@ namespace RuntimeData
|
||||
public GameRecord ExportGameRecord()
|
||||
{
|
||||
var gameRecord = new GameRecord();
|
||||
gameRecord.Mode = MapConfig.GameMode;
|
||||
gameRecord.AIDiff = MapConfig.AIDiff;
|
||||
gameRecord.Turn = PlayerMap.SelfPlayerData.Turn;
|
||||
gameRecord.PlayerCivId = PlayerMap.SelfPlayerData.PlayerCivId;
|
||||
gameRecord.PlayerForceId = PlayerMap.SelfPlayerData.PlayerForceId;
|
||||
gameRecord.Score = PlayerMap.SelfPlayerData.PlayerScore;
|
||||
DateTime now = DateTime.Now;
|
||||
gameRecord.Time = now.ToString("yyyy-MM-dd HH-mm-ss");
|
||||
@ -953,7 +958,6 @@ namespace RuntimeData
|
||||
gameRecord.MapWidth = MapConfig.Width;
|
||||
gameRecord.MapHeight = MapConfig.Height;
|
||||
gameRecord.PlayerCount = MapConfig.PlayerCount - 1;
|
||||
gameRecord.AIDiff = MapConfig.AIDiff;
|
||||
return gameRecord;
|
||||
}
|
||||
|
||||
|
||||
@ -70,12 +70,16 @@ namespace RuntimeData
|
||||
[System.Serializable]
|
||||
public class GameRecord
|
||||
{
|
||||
public GameMode Mode;
|
||||
public AIDifficult AIDiff;
|
||||
public uint Turn;
|
||||
public uint PlayerCivId;
|
||||
public uint PlayerForceId;
|
||||
public float Score;
|
||||
public string Time;
|
||||
public uint CityCount;
|
||||
public uint MapWidth;
|
||||
public uint MapHeight;
|
||||
public uint PlayerCount;
|
||||
public AIDifficult AIDiff;
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user