public bool CanOpenPack() { SpecialEventType type; NetCache.BoosterStack boosterStack = this.GetBoosterStack(); if (boosterStack == null) { return(false); } DbfRecord record = GameDbf.Booster.GetRecord(boosterStack.Id); if (record == null) { return(false); } string val = string.Empty; if (!record.TryGetString("OPEN_PACK_EVENT", out val)) { return(false); } if (!EnumUtils.TryGetEnum <SpecialEventType>(val, out type)) { return(false); } return((type == SpecialEventType.IGNORE) || SpecialEventManager.Get().IsEventActive(type, false)); }
public UnopenedPack() { DragRotatorInfo info = new DragRotatorInfo(); DragRotatorAxisInfo info2 = new DragRotatorAxisInfo { m_ForceMultiplier = 3f, m_MinDegrees = -55f, m_MaxDegrees = 55f, m_RestSeconds = 2f }; info.m_PitchInfo = info2; info2 = new DragRotatorAxisInfo { m_ForceMultiplier = 4.5f, m_MinDegrees = -60f, m_MaxDegrees = 60f, m_RestSeconds = 2f }; info.m_RollInfo = info2; this.m_DragRotatorInfo = info; NetCache.BoosterStack stack = new NetCache.BoosterStack { Id = 0, Count = 0 }; this.m_boosterStack = stack; }
public void SetBoosterStack(NetCache.BoosterStack boosterStack) { this.m_boosterStack = boosterStack; this.UpdateState(); }
public void UpdatePack(UnopenedPack pack, NetCache.BoosterStack boosterStack) { object[] objArray1 = new object[] { pack, boosterStack }; base.method_8("UpdatePack", objArray1); }
public void SetBoosterStack(NetCache.BoosterStack boosterStack) { object[] objArray1 = new object[] { boosterStack }; base.method_8("SetBoosterStack", objArray1); }