| | |
| | | |
| | | public class InvestModel : GameSystemManager<InvestModel> |
| | | { |
| | | public ILOpenServerActivityProxy activity; |
| | | // public ILOpenServerActivityProxy activity; |
| | | |
| | | public const int FuncID = 119; |
| | | public const int FuncID = 25; |
| | | |
| | | |
| | | //投资对应奖励 |
| | |
| | | |
| | | |
| | | public event Action onSelectUpdate; |
| | | public event Action onInvestUpdate; |
| | | public event Action<int> onInvestUpdate; |
| | | |
| | | public const int redpointID = 20931; |
| | | public Redpoint redpoint = new Redpoint(MainRedDot.REDPOINT_OPENSERVER, redpointID); |
| | |
| | | items.Add(new Item() |
| | | { |
| | | id = itemArray[j][0], |
| | | countEx = (ulong)itemArray[j][1], |
| | | countEx = itemArray[j][1], |
| | | bind = itemArray[j][2], |
| | | }); |
| | | } |
| | |
| | | } |
| | | |
| | | //获得单投资的总收益 |
| | | public ulong GetTotalIncome(int type) |
| | | public long GetTotalIncome(int type) |
| | | { |
| | | ulong income = 0; |
| | | long income = 0; |
| | | if (m_InvestItems.ContainsKey(type)) |
| | | { |
| | | var keyList = m_InvestItems[type].Keys.ToList(); |
| | |
| | | { |
| | | if (id == FuncID) |
| | | { |
| | | activity.StateUpdate(id); |
| | | // activity.StateUpdate(id); |
| | | UpdateRedpoint(); |
| | | } |
| | | |
| | |
| | | |
| | | if (onInvestUpdate != null) |
| | | { |
| | | onInvestUpdate(); |
| | | onInvestUpdate(package.InvestType); |
| | | } |
| | | } |
| | | |