123456789101112131415161718192021222324252627282930313233343536373839404142434445 |
- //------------------------------------------------------------
- // 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<DRThruster> dtThruster = GameEntry.DataTable.GetDataTable<DRThruster>();
- DRThruster drThruster = dtThruster.GetDataRow(TypeId);
- if (drThruster == null)
- {
- return;
- }
- m_Speed = drThruster.Speed;
- }
- /// <summary>
- /// 速度。
- /// </summary>
- public float Speed
- {
- get
- {
- return m_Speed;
- }
- }
- }
- }
|