You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
41 lines
929 B
41 lines
929 B
using System.Collections; |
|
using System.Collections.Generic; |
|
using UnityEngine; |
|
|
|
|
|
public struct DisasterRecord |
|
{ |
|
public object Disaster; |
|
} |
|
|
|
/// <summary> |
|
/// 灾情文件数据类 |
|
/// </summary> |
|
public class DisasterLibraryFile |
|
{ |
|
public static readonly DisasterLibraryFile Instance = new DisasterLibraryFile(); |
|
|
|
private DisasterRecord disasterRecord; |
|
//灾情库数据结构 |
|
public List<DisasterRecord> DisasterList = new List<DisasterRecord>(); |
|
|
|
//胜利条件 |
|
public VictoryConditionSetting VictoryCondition = new VictoryConditionSetting(); |
|
|
|
//报警信息 |
|
public PoliceCallData PoliceCallData = new PoliceCallData(); |
|
|
|
//灾情简介 |
|
public string DisasterIntro; |
|
|
|
public void DisasterRecord(Disaster disaster) |
|
{ |
|
disasterRecord.Disaster = disaster; |
|
DisasterList.Add(disasterRecord); |
|
} |
|
|
|
public void Reset() |
|
{ |
|
DisasterList.Clear(); |
|
} |
|
}
|
|
|