public static CUseable CreateUsableByRandowReward(RES_RANDOM_REWARD_TYPE type, int cnt, uint baseId) { COM_REWARDS_TYPE type2; CUseableManager.RandomRewardTypeToComRewardType(type, out type2); return(CUseableManager.CreateUsableByServerType(type2, cnt, baseId)); }
public static CUseable GetUseableByRewardInfo(ResRandomRewardStore inRewardInfo) { if (inRewardInfo != null) { COM_REWARDS_TYPE type; CUseableManager.RandomRewardTypeToComRewardType((RES_RANDOM_REWARD_TYPE)inRewardInfo.astRewardDetail[0].bItemType, out type); int dwLowCnt = (int)inRewardInfo.astRewardDetail[0].dwLowCnt; uint dwItemID = inRewardInfo.astRewardDetail[0].dwItemID; return(CUseableManager.CreateUsableByServerType(type, dwLowCnt, dwItemID)); } return(null); }