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.
27 lines
696 B
27 lines
696 B
using System; |
|
using System.Collections; |
|
using System.Collections.Generic; |
|
using AX.MessageSystem; |
|
using UnityEngine; |
|
|
|
/// <summary> |
|
/// 普通火灾情库记录 |
|
/// </summary> |
|
public class FireNormalRecord : DisasterLibraryRecord |
|
{ |
|
public FireNormalDisaster fireNormalDisaster = new FireNormalDisaster(); |
|
|
|
public override void DLRecord(IMessage obj) |
|
{ |
|
DisasterRecord(fireNormalDisaster); |
|
} |
|
|
|
public override void DisasterRecord(Disaster disaster) |
|
{ |
|
base.DisasterRecord(disaster); |
|
|
|
((FireNormalDisaster)disaster).fireAttribute = GetComponent<FireSpreadCtrl>().fireAttribute; |
|
|
|
DisasterLibraryFile.Instance.DisasterRecord(disaster); |
|
} |
|
}
|
|
|