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.
37 lines
1.3 KiB
37 lines
1.3 KiB
5 years ago
|
using System;
|
||
|
using System.Collections;
|
||
|
using System.Collections.Generic;
|
||
|
using AX.MessageSystem;
|
||
|
using UnityEngine;
|
||
|
|
||
|
/// <summary>
|
||
|
/// 报警信息灾情库记录
|
||
|
/// </summary>
|
||
|
public class PoliceCallDisasterRecord : DisasterLibraryRecord
|
||
|
{
|
||
|
public PoliceCallPanel policeCallPanel;
|
||
|
public PoliceCallDisaster policeCallDisaster = new PoliceCallDisaster();
|
||
|
|
||
|
public override void DLRecord(IMessage obj)
|
||
|
{
|
||
|
DisasterRecord(policeCallDisaster);
|
||
|
}
|
||
|
|
||
|
public override void DisasterRecord(Disaster disaster)
|
||
|
{
|
||
|
base.DisasterRecord(disaster);
|
||
|
|
||
|
var policeCall = (PoliceCallDisaster)disaster;
|
||
|
policeCall.PoliceCallData.Name = policeCallPanel.callname;
|
||
|
policeCall.PoliceCallData.Phone = policeCallPanel.phone;
|
||
|
policeCall.PoliceCallData.FirePlace = policeCallPanel.firePlace;
|
||
|
policeCall.PoliceCallData.FireReason = policeCallPanel.fireReason;
|
||
|
policeCall.PoliceCallData.FireArea = policeCallPanel.fireArea;
|
||
|
policeCall.PoliceCallData.FireLevel = policeCallPanel.fireLevel;
|
||
|
policeCall.PoliceCallData.HasDangerous = policeCallPanel.hasDangerous;
|
||
|
policeCall.PoliceCallData.HasTrapped = policeCallPanel.hasTrapped;
|
||
|
|
||
|
DisasterLibraryFile.Instance.PoliceCallData = policeCall.PoliceCallData;
|
||
|
}
|
||
|
}
|