public void SetGemIcon(EEventGimmick EventType) { this.MarkType = UnitGaugeMark.EMarkType.MapGem; EEventGimmick eeventGimmick = EventType; switch (eeventGimmick) { case EEventGimmick.CriUp: this.mGemIconType = UnitGaugeMark.EGemIcon.CriUp; break; case EEventGimmick.MovUp: this.mGemIconType = UnitGaugeMark.EGemIcon.MovUp; break; default: if (eeventGimmick == EEventGimmick.Heal) { this.mGemIconType = UnitGaugeMark.EGemIcon.Heal; break; } this.mGemIconType = UnitGaugeMark.EGemIcon.Normal; break; } }
public void Setup(EventTrigger src) { this.mTrigger = src.Trigger; this.mEventType = src.EventType; this.mGimmickType = src.GimmickType; this.mStrValue = src.StrValue; this.mIntValue = src.IntValue; this.mCount = src.Count; }
public bool Deserialize(JSON_EventTrigger json) { if (json == null) { return(false); } this.mTrigger = (EEventTrigger)json.trg; this.mEventType = (EEventType)json.type; this.mGimmickType = (EEventGimmick)json.detail; this.mStrValue = json.sval; this.mIntValue = json.ival; this.mCount = json.cnt; return(true); }