public virtual void InitMenu(eCLASS _userClass) { userClass = _userClass; /*if (mainItemKind == eCashStoreMainCategory.RECOMMEND) { List<Store_Item_Info_Table> listItem = AsTableManager.Instance.GetCashStoreItems( _userClass, mainItemKind); listItem.Sort( new RecommendCashItemCompare()); addItemToList( listItem); } * */ if (menuMode == eCashStoreMenuMode.EVENT) addItemToList(AsTableManager.Instance.GetCashStoreItems(userClass, eCashStoreMainCategory.EVENT, eCashStoreSubCategory.NONE)); else if (mainItemKind == eCashStoreMainCategory.MIRACLE) { AsBasePurchase purchase = AsCashStore.Instance.GetPurchaseManager(); if( purchase != null) { addItemToList( purchase.GetStoreItemList()); } else { #if UNITY_EDITOR // test code AsCashStore.Instance.AddItemToListForEditor(); #endif } } }
public override void InitMenu(eCLASS _userClass) { base.InitMenu(_userClass); InitComponent(); btnLineup.SetInputDelegate(ProcessLineup); btnOpenGacha.SetInputDelegate(OpenGacha); int usrLevel = AsEntityManager.Instance.UserEntity.GetProperty<int>(eComponentProperty.LEVEL); int checkLevel = GetGachaLevel(usrLevel); listFilteredItem = new List<Store_Item_Info_Table>(); List<Store_Item_Info_Table> listFree = AsTableManager.Instance.GetCashStoreItems(_userClass, eCashStoreMainCategory.FREE, eCashStoreSubCategory.NONE); foreach (Store_Item_Info_Table itemInfo in listFree) { Item item = ItemMgr.ItemManagement.GetItem(itemInfo.ID); if (item.ItemData.levelLimit == checkLevel) listFilteredItem.Add(itemInfo); } btnNote.SetInputDelegate(ShowNoteWebPage); if (AsCashStore.Instance != null) spriteFreeMark.gameObject.SetActive(AsCashStore.Instance.FreeGachaPoint == 1); }
public override void InitMenu(eCLASS _userClass) { base.InitMenu(_userClass); InitComponent(); List<Store_Item_Info_Table> listItem = AsTableManager.Instance.GetCashStoreItems(_userClass, eCashStoreMainCategory.WEAPON , eCashStoreSubCategory.NONE); listFilteredItem = new List<Store_Item_Info_Table>(); int usrLevel = AsEntityManager.Instance.UserEntity.GetProperty<int>(eComponentProperty.LEVEL); int checkLevel = GetGachaLevel(usrLevel); foreach (Store_Item_Info_Table info in listItem) { Item item = ItemMgr.ItemManagement.GetItem(info.ID); if (item == null) continue; if (item.ItemData.levelLimit == checkLevel) listFilteredItem.Add(info); } addItemToList(listFilteredItem); btnLineup.SetInputDelegate(ProcessLineup); btnNote.SetInputDelegate(ShowNoteWebPage); }
public AttendBonusItem GetAttendBonusItem( eCLASS _class ) { if( m_dicAttendanceItem.ContainsKey( _class ) == false ) return null; return m_dicAttendanceItem[_class]; }
public void SetType( eCLASS type) { switch( type) { case eCLASS.DIVINEKNIGHT: symbol_1.renderer.enabled = true; symbol_2.renderer.enabled = false; symbol_3.renderer.enabled = false; symbol_4.renderer.enabled = false; symbol_5.renderer.enabled = false; break; // case eCLASS.MAGICIAN: // symbol_1.renderer.enabled = false; // symbol_2.renderer.enabled = true; // symbol_3.renderer.enabled = false; // symbol_4.renderer.enabled = false; // symbol_5.renderer.enabled = false; // break; default: symbol_1.renderer.enabled = false; symbol_2.renderer.enabled = false; symbol_3.renderer.enabled = false; symbol_4.renderer.enabled = false; symbol_5.renderer.enabled = false; // Debug.LogError( "Invalid class type!!!"); break; } }
public override bool SetPartsItem( int _nItemTableIdx, byte _nStrengthenCount, eGENDER _eGender, eCLASS eClass, PartsRoot _partsRoot ) { if( false == base.SetPartsItem( _nItemTableIdx, _nStrengthenCount, _eGender, eClass, _partsRoot ) ) return false; SetNeedResetParts(true); return true; }
public void Init( eCLASS targetClass) { foreach( SimpleSprite symbol in symbols) { symbol.gameObject.SetActiveRecursively( false); } symbols[ (int)targetClass].gameObject.SetActiveRecursively( true); }
public override bool SetPartsItem( int _nItemTableIdx, byte _nStrengthenCount, eGENDER _eGender, eCLASS eClass, PartsRoot _partsRoot ) { if( false == base.SetPartsItem( _nItemTableIdx, _nStrengthenCount, _eGender, eClass, _partsRoot ) ) return false; if( null != AssetbundleManager.Instance && true == AssetbundleManager.Instance.useAssetbundle) { SetNeedResetParts(true); return true; } if( false == (getItem.ItemData.getGender == eGENDER.eGENDER_NOTHING || getItem.ItemData.getGender == _eGender) ) { Debug.Log(" WeaponElement::SetPartsItem() [getItem.ItemData.getGender == eGENDER.eGENDER_NOTHING || getItem.ItemData.getGender == _eGender]"); return false; } string strPartItem = string.Empty; if( eGENDER.eGENDER_MALE == _eGender ) { strPartItem = getItem.ItemData.GetPartsItem_M(); if (null == strPartItem) { Debug.LogError("PartsItem don't find [ null == strPartItem ] " ); return false; } } else { strPartItem = getItem.ItemData.GetPartsItem_W(); if (null == strPartItem) { Debug.LogError("PartsItem don't find [ null == strPartItem ] "); return false; } } if( -1 != m_EffectIdx ) { AsEffectManager.Instance.RemoveEffectEntity( m_EffectIdx ); } float fScale = 1f; if( null == _partsRoot ) return false; fScale = _partsRoot.transform.localScale.x; m_EffectIdx = AsEffectManager.Instance.PlayEffect( strPartItem, _partsRoot.transform, true, 0f, fScale); AsEffectManager.Instance.AddAttachEffectUser(m_EffectIdx, _partsRoot.getOwnerUniqKey ); if( -1 == m_EffectIdx ) return false; return true; }
public AnimationEventInfo(eCLASS _class, eGENDER _gender, string _name, eAnimEvent _event, float _timing) { // race_ = _race; class_ = _class; gender_ = _gender; name_ = _name; event_ = _event; timing_ = _timing; }
public override void InitMenu(eCLASS _userClass) { base.InitMenu(_userClass); InitComponent(); ConstructDictionary(); btnRadios[0].Value = true; CategoryRadioForcedOn(eCashStoreSubCategory.PETEGG); }
public override void InitMenu(eCLASS _userClass) { userClass = _userClass; InitComponent(); ConstructHairList(); listCategory.SetValueChangedDelegate(CategoryValueChange); ForcedSelectCategory(eCashStoreSubCategory.HAIR); }
public override void InitMenu(eCLASS _userClass) { userClass = _userClass; if (IsInitilized == false) StartCoroutine("LoadAllTextureFromWeb"); if (loadingIndigator != null && IsInitilized == false) loadingIndigator.SetActive(true); mainScrollList.SetValueChangedDelegate(ClickAd); }
public Tbl_SkillBook_Record(BinaryReader br) { m_Index = br.ReadInt32(); coupleIndex = br.ReadInt32(); m_Class = (eCLASS)br.ReadInt32(); m_ClassLevel = br.ReadInt32(); m_SkillShop_BuyAmount = br.ReadInt32(); m_ChoiceType = (eChoiceType)br.ReadInt32(); m_Skill1_Index = br.ReadInt32(); m_Skill1_Level = br.ReadInt32(); m_Skill2_Index = br.ReadInt32(); m_Skill2_Level = br.ReadInt32(); }
public Dictionary<string, List<AnimationEventInfo>> GetEventDic(eCLASS _class, eGENDER _gender) { if(m_dicEvents.ContainsKey(_class) == true) { if(m_dicEvents[_class].ContainsKey(_gender) == true) { return m_dicEvents[_class][_gender]; } } // Debug.LogError("AnimationEventAsset::GetEventList: event not registered is requested. [" + _class + "][" + _gender + "]"); return null; }
public void SetSkillBookRecordByClass(eCLASS _class) { record_ = AsTableManager.Instance.GetTbl_SkillBook_Record(_class, nSkillTableIdx, nSkillLevel); if(record_ == null) { Tbl_Skill_Record skill = AsTableManager.Instance.GetTbl_Skill_Record(nSkillTableIdx); if(skill.Skill_Type != eSKILL_TYPE.Base) { Debug.LogWarning("SkillView::SetSkillBookRecordByClass: record is not exist. class=" + _class + ", skill index=" + nSkillTableIdx + ", skill level=" + nSkillLevel); } } if( null == record_ ) { Debug.LogError("null == record_ 3 "); } }
public override void InitMenu(eCLASS _userClass) { base.InitMenu(_userClass); InitComponent(); // make costume list ConstructCostumeList(_userClass); btnLineup.SetInputDelegate(ProcessLineup); listCategory.SetValueChangedDelegate(CategoryValueChange); if (listCategory.Count >= 1) listCategory.SetSelectedItem(0); btnNote.SetInputDelegate(ShowNoteWebPage); }
public Tbl_UserLevel_Record(BinaryReader br) { m_Index = br.ReadInt32(); m_Class = (eCLASS)br.ReadInt32(); m_Level = br.ReadInt32(); m_TotalEXP = br.ReadInt32(); m_HPMax = br.ReadSingle(); m_MPMax = br.ReadSingle(); m_PhysicalAttack_Min = br.ReadSingle(); m_PhysicalAttack_Max = br.ReadSingle(); m_PhysicalDefense = br.ReadSingle(); m_MagicalAttack_Min = br.ReadSingle(); m_MagicalAttack_Max = br.ReadSingle(); m_MagicalResist = br.ReadSingle(); m_Resurrection_Cost = br.ReadInt32(); m_Lv_Bonus = br.ReadInt32(); m_Lv_BonusCount = br.ReadInt32(); }
public List<AnimationEventInfo> GetEventList(eCLASS _class, eGENDER _gender, string _name) { // if(m_dicEvents == null) // SetEventDictionary(); if(m_dicEvents.ContainsKey(_class) == true) { if(m_dicEvents[_class].ContainsKey(_gender) == true) { if(m_dicEvents[_class][_gender].ContainsKey(_name) == true) { if(m_dicEvents[_class][_gender][_name] != null) return m_dicEvents[_class][_gender][_name]; } } } // Debug.LogError("AnimationEventAsset::GetEventList: event not registered is requested. [" + _class + "][" + _gender + "][" + _name + "]"); return null; }
// virtual public virtual bool SetPartsItem( int _nItemTableIdx, byte _nStrengthenCount, eGENDER _eGender, eCLASS eClass, PartsRoot _partsRoot ) { m_Item = ItemMgr.ItemManagement.GetItem( _nItemTableIdx ); if( null == m_Item ) { SetEmpty(); Debug.LogError("SetPartsItem() [null == item] index : " + _nItemTableIdx ); return false; } if( m_Item.ItemData.GetSubType() != (int)getEquip ) { SetEmpty(); Debug.LogError("SetPartsItem() [m_Item.ItemData.GetSubType() != m_eEquipType]item id: " + m_Item.ItemID + " cur equip : " + getEquip + " [item equip : " + (Item.eEQUIP)m_Item.ItemData.GetSubType() ); return false; } return true; }
public ConditionClass( eCLASS _classType) { ClassType = _classType; }
public ConditionClass() { ClassType = eCLASS.NONE; }
public override bool SetPartsItem( int _nItemTableIdx, byte _nStrengthenCount, eGENDER _eGender, eCLASS eClass, PartsRoot _partsRoot ) { if( false == base.SetPartsItem( _nItemTableIdx, _nStrengthenCount, _eGender, eClass, _partsRoot ) ) return false; if( null != AssetbundleManager.Instance && true == AssetbundleManager.Instance.useAssetbundle) { SetNeedResetParts(true); return true; } if( false == (getItem.ItemData.getGender == eGENDER.eGENDER_NOTHING || getItem.ItemData.getGender == _eGender) ) { Debug.Log(" WeaponElement::SetPartsItem() [getItem.ItemData.getGender == eGENDER.eGENDER_NOTHING || getItem.ItemData.getGender == _eGender]"); return false; } /*GameObject goPartsItem = null; if( eGENDER.eGENDER_MALE == _eGender ) { goPartsItem = getItem.GetPartsItem_M(); if (null == goPartsItem) { Debug.LogError("PartsItem don't find [ name : " + getItem.ItemData.GetPartsItem_M() ); return false; } } else { goPartsItem = getItem.GetPartsItem_W(); if (null == goPartsItem) { Debug.LogError("PartsItem don't find [ name : " + getItem.ItemData.GetPartsItem_W() ); return false; } } if (null != m_goWeapon) GameObject.Destroy(m_goWeapon); m_goWeapon = GameObject.Instantiate(goPartsItem, Vector3.zero, Quaternion.identity) as GameObject; m_goWeapon.transform.parent = m_BoneTransform; m_goWeapon.transform.localPosition = Vector3.zero; m_goWeapon.transform.localRotation = Quaternion.identity; m_goWeapon.transform.localScale = Vector3.one; */ string path_model; string path_texture; if( eGENDER.eGENDER_MALE == _eGender ) { path_model = getItem.ItemData.GetPartsItem_M(); path_texture = getItem.ItemData.GetPartsItemDiff_M(); } else { path_model = getItem.ItemData.GetPartsItem_W(); path_texture = getItem.ItemData.GetPartsItemDiff_W(); } SetGameObject( ResourceLoad.CreateGameObject( path_model ), ResourceLoad.Loadtexture(path_texture) ); return true; }
bool IsAvailableCommandSkill( eCLASS _class, eCommand_Type type) { float curMP = UserEntity.GetProperty<float>( eComponentProperty.MP_CUR); // Tbl_Skill_Record skillRecord = AsTableManager.Instance.GetTbl_Skill_Record( _class, eSKILL_TYPE.Command, type); Tbl_Skill_Record skillRecord = SkillBook.Instance.GetLearnedCommandSkill( type); // < ilmeda 20120420 if( null == skillRecord) return false; // ilmeda 20120420 > SkillView view = null; if( SkillBook.Instance.dicCurSkill.ContainsKey( skillRecord.Index) == true) view = SkillBook.Instance.dicCurSkill[skillRecord.Index]; else return false; if( view == null) return false; Tbl_SkillLevel_Record skillLevelRecord = AsTableManager.Instance.GetTbl_SkillLevel_Record( view.nSkillLevel, view.nSkillTableIdx); if( curMP < ( float)skillLevelRecord.Mp_Decrease) { AsMyProperty.Instance.AlertMP(); // GameObject go = AsHUDController.Instance.gameObject; // if( null != go) // { // AsHUDController hud = go.GetComponent<AsHUDController>(); // hud.AlertMP(); // } return false; } return true; }
bool IsAvailableDoubleTapSkill( eCLASS _class, eCommandPicking_Type _pickingType) { float curMP = UserEntity.GetProperty<float>( eComponentProperty.MP_CUR); // Tbl_Skill_Record skillRecord = AsTableManager.Instance.GetTbl_Skill_RecordByPickingType( _class, _pickingType); Tbl_Skill_Record skillRecord = SkillBook.Instance.GetLearnedDoubleTapSkill( _pickingType); if( null == skillRecord) { Debug.LogError( "AsPlayerFsm:: IsAvailableDoubleTapSkill: character has no [" + _pickingType + "] double tap skill"); return false; } SkillView view = null; if( SkillBook.Instance.dicCurSkill.ContainsKey( skillRecord.Index) == true) view = SkillBook.Instance.dicCurSkill[skillRecord.Index]; else return false; if( view == null) return false; Tbl_SkillLevel_Record skillLevelRecord = AsTableManager.Instance.GetTbl_SkillLevel_Record( view.nSkillLevel, view.nSkillTableIdx); if( curMP < ( float)skillLevelRecord.Mp_Decrease) { AsMyProperty.Instance.AlertMP(); return false; } return true; }
static public string GetClassName( eCLASS _type) { switch( _type) { case eCLASS.DIVINEKNIGHT: return AsTableManager.Instance.GetTbl_String(306); case eCLASS.MAGICIAN: return AsTableManager.Instance.GetTbl_String(307); case eCLASS.CLERIC: return AsTableManager.Instance.GetTbl_String(308); case eCLASS.HUNTER: return AsTableManager.Instance.GetTbl_String(309); default: return AsTableManager.Instance.GetTbl_String(0); } }
public SuitableBasicSkill GetSuitableBasicSkill(eCLASS _class, float _dist) { // if(m_mdicBaseSkill.ContainsKey(_class) == false) // { // Debug.LogError("Tbl_Skill::GetSuitableBasicSkill: unknown class = " + _class); // return null; // } // // float curDist = float.MaxValue; // // foreach(Tbl_Skill_Record node in m_mdicBaseSkill[_class]) // { // Tbl_Skill_Record skill = node; // Tbl_SkillLevel_Record skillLevel = AsTableManager.Instance.GetTbl_SkillLevel_Record( 1, skill.Index); // // float usableDistance = skillLevel.Usable_Distance * 0.01f; // } // // return null; _dist *= 100f; if(m_dmdicBaseSkill_Dist.ContainsKey(_class) == false) { Debug.LogError("Tbl_Skill::GetSuitableBasicSkill: unknown class = " + _class); return null; } List<Tbl_Skill_Record> listSuitable = null; int count = 0; foreach(float dist in m_dmdicBaseSkill_Dist[_class].Keys) { listSuitable = m_dmdicBaseSkill_Dist[_class][dist]; if(_dist < dist) { count = listSuitable.Count; return new SuitableBasicSkill(true, listSuitable[UnityEngine.Random.Range(0, count)]); } } count = listSuitable.Count; return new SuitableBasicSkill(false, listSuitable[UnityEngine.Random.Range(0, count)]); }
public Tbl_Skill_Record GetRandomBaseSkill(eCLASS _class) { if(m_mdicBaseSkill.ContainsKey(_class) == true) { int count = m_mdicBaseSkill[_class].Count; return m_mdicBaseSkill[_class][UnityEngine.Random.Range(0, count)]; } else { Debug.Log("GetRandomBaseSkill: Class[" + _class + "] has no base skill"); return null; } }
public List<Tbl_Skill_Record> GetSkillsByClass(eCLASS _class) { return m_ClassTypeTable[_class]; }
// bad code public Tbl_Skill_Record GetSkillByType(eCLASS _class, eSKILL_TYPE _type, eCommand_Type _commandType) { if(_commandType == eCommand_Type.DoubleTab) { Debug.LogWarning("Tbl_Skill_Table::GetSkillByType: invalid usage eCommand_Type.DoubleTab. " + "DoubleTab skills does not exist alone, So use [GetDoubleTabSkillByPickingType()] function"); return null; } foreach(Tbl_Skill_Record record in m_ClassTypeTable[_class]) { if(record.Skill_Type == _type) { if(_commandType == eCommand_Type.NONE) return record; else if(_commandType == record.Command_Type) return record; } } Debug.LogWarning( "[Tbl_Skill_Table]GetSkillByType: there is no record. class=" + _class + ", type = " + _type + ", command type = " + _commandType); return null; }
public Tbl_Skill_Record(BinaryReader br)// : base(_element) { m_Index = br.ReadInt32(); m_SkillName_Index = br.ReadInt32(); m_Description_Index = br.ReadInt32(); m_SkillName_Print = (eSkillNamePrint)br.ReadInt32(); m_SkillReset = (eSkillReset)br.ReadInt32(); m_nSkillResetCost = br.ReadInt32(); m_SkillAutoTarget = (eSkillAutoTarget)br.ReadInt32(); m_Skill_Icon = br.ReadString(); m_Class = (eCLASS)br.ReadInt32(); m_Skill_Type = (eSKILL_TYPE)br.ReadInt32(); m_Skill_TargetType = (eSkill_TargetType)br.ReadInt32(); m_SkillIcon_Enable_Target = (eSkillIcon_Enable_Target)br.ReadInt32(); m_SkillIcon_Enable_Condition = (eSkillIcon_Enable_Condition)br.ReadInt32(); m_SkillIcon_Enable_ConditionValue = br.ReadInt32(); m_Command_Type = (eCommand_Type)br.ReadInt32(); m_CommandPicking_Type = (eCommandPicking_Type)br.ReadInt32(); m_Attack_Direction = (eATTACK_DIRECTION)br.ReadInt32(); m_CoolTimeGroup = br.ReadInt32(); m_DisableInPvP = (eDisableInPvP)br.ReadInt32(); m_DisableInRaid = (eDisableInRaid)br.ReadInt32(); m_DisableInField = (eDisableInRaid)br.ReadInt32(); m_DisableInInDun = (eDisableInInDun)br.ReadInt32(); for(int i=1; i<=AsTableManager.sSkillLevelPotencyCount; ++i) { ePotency_Enable_Target check_target = (ePotency_Enable_Target)br.ReadInt32(); ePotency_Enable_Condition check_condition = (ePotency_Enable_Condition)br.ReadInt32(); float check_conditionValue = br.ReadSingle(); ePotency_Enable_Target check_target2 = (ePotency_Enable_Target)br.ReadInt32(); ePotency_Enable_Condition check_condition2 = (ePotency_Enable_Condition)br.ReadInt32(); float check_conditionValue2 = br.ReadSingle(); ePotency_Type type = (ePotency_Type)br.ReadInt32(); ePotency_Target target = (ePotency_Target)br.ReadInt32(); ePotency_DurationType duration = (ePotency_DurationType)br.ReadInt32(); ePotency_Attribute attribute = (ePotency_Attribute)br.ReadInt32(); ePotency_Element element = ePotency_Element.NONE; string buff = br.ReadString(); int buffToolTipIdx = br.ReadInt32(); Tbl_Skill_Potency potency = new Tbl_Skill_Potency(check_target, check_condition, check_conditionValue, check_target2, check_condition2, check_conditionValue2, type, target, duration, attribute, element, buff, buffToolTipIdx); m_listSkillPotency.Add(potency); } }