//------------------------------------------------------------ // Game Framework // Copyright © 2013-2021 Jiang Yin. All rights reserved. // Homepage: https://gameframework.cn/ // Feedback: mailto:ellan@gameframework.cn //------------------------------------------------------------ using GameFramework.DataTable; using System; using UnityEngine; namespace MetaClient { [Serializable] public class ThrusterData : AccessoryObjectData { [SerializeField] private float m_Speed = 0f; public ThrusterData(int entityId, int typeId, int ownerId, CampType ownerCamp) : base(entityId, typeId, ownerId, ownerCamp) { IDataTable dtThruster = GameEntry.DataTable.GetDataTable(); DRThruster drThruster = dtThruster.GetDataRow(TypeId); if (drThruster == null) { return; } m_Speed = drThruster.Speed; } /// /// 速度。 /// public float Speed { get { return m_Speed; } } } }