//// *********************************************************************** //// Assembly : Game //// Author : Kimch //// Created : 2020-09-10 //// Description : //// Last Modified By : //// Last Modified On : //// *********************************************************************** //// //// //// *********************************************************************** //using UnityEngine; //namespace G //{ // /// // /// 皮肤实体类 // /// // public sealed class EntityItemSkin : EntityItem // { // #region Field // private ItemChaSkin _item; // /// // /// 属性 // /// // public CombatAttribute attribute; // /// // /// // /// // private int _combatValue; // /// // /// // /// // public int combatValue // { // get // { // if (isUnlock && item.price != null && item.price.Length != 0) // { // int result = 0; // int status = ArchiveProxy.Instance.GetInt(id); // for (int i = 1; i < 4; i++) // { // if ((status & (1 << i)) != 0) // { // result += item.combatValue; // } // } // return result; // } // return 0; // } // } // /// // /// // /// // public override ItemChaSkin item => _item; // /// // /// 排序规则 // /// // public override int sortOrder => _itemId; // /// // /// // /// // /// // /// // public bool Active(int weapon) // { // int flag = weapon; // if (flag == 0) // flag = 6; // int status = ArchiveProxy.Instance.GetInt(id); // status |= (1 << flag); // ArchiveProxy.Instance.SetInt(id, status); // PlayerProxy.Instance.UpdateGrowthCombatValue(true); // return true; // } // /// // /// // /// // /// // /// // public bool IsActive(int weapon) // { // if (isUnlock) // { // if (item.price != null && item.price.Length != 0) // { // int flag = weapon; // if (flag == 0) // flag = 6; // int status = ArchiveProxy.Instance.GetInt(id); // return (status & (1 << flag)) != 0; // } // return true; // } // return false; // } // /// // /// // /// // public bool isUnlock // { // get { return true; } // } // #endregion // #region Method // /// // /// // /// // protected override void Init() // { // base.Init(); // _item = ItemProxy.Instance.GetStaticItem(_itemId); // //var attributes = _item.attribute; // //if (attributes != null && attributes.Length == 2) // //{ // // attribute.id = (CombatAttributeId)attributes[0]; // // attribute.value = attributes[1]; // // _combatValue = attribute.combatValue; // //} // } // /// // /// // /// // /// // public override string ToString() // { // return attribute.ToString(); // } // #endregion // } //}