public void ProcessFriendList(COMDT_ACNT_UNIQ uniq, COMDT_INTIMACY_DATA data) { if (uniq == null || data == null) { return; } byte bIntimacyState = data.bIntimacyState; CFR cfr = this.GetCfr(uniq.ullUid, uniq.dwLogicWorldId); if (cfr != null && cfr.state != COM_INTIMACY_STATE.COM_INTIMACY_STATE_NULL) { return; } if (CFR.GetCDDays(data.dwTerminateTime) != -1) { this.Add(uniq.ullUid, uniq.dwLogicWorldId, (COM_INTIMACY_STATE)bIntimacyState, COM_INTIMACY_RELATION_CHG_TYPE.COM_INTIMACY_RELATION_NULL, data.dwTerminateTime, false); return; } if (data.bIntimacyState == 0 && (uint)data.wIntimacyValue >= Singleton <CFriendContoller> .instance.model.GetIntimacyRequestValue()) { this.Add(uniq.ullUid, uniq.dwLogicWorldId, COM_INTIMACY_STATE.COM_INTIMACY_STATE_VALUE_FULL, COM_INTIMACY_RELATION_CHG_TYPE.COM_INTIMACY_RELATION_NULL, data.dwTerminateTime, false); return; } if (bIntimacyState != 0) { this.Add(uniq.ullUid, uniq.dwLogicWorldId, (COM_INTIMACY_STATE)bIntimacyState, COM_INTIMACY_RELATION_CHG_TYPE.COM_INTIMACY_RELATION_NULL, data.dwTerminateTime, false); } }
public void ProcessFriendList(COMDT_ACNT_UNIQ uniq, COMDT_INTIMACY_DATA data) { if (uniq == null || data == null) { return; } byte bIntimacyState = data.bIntimacyState; CFR cfr = this.GetCfr(uniq.ullUid, uniq.dwLogicWorldId); if (cfr != null && cfr.state != null) { return; } if (CFR.GetCDDays(data.dwTerminateTime) != -1) { this.Add(uniq.ullUid, uniq.dwLogicWorldId, bIntimacyState, 0, data.dwTerminateTime, false); return; } if (data.bIntimacyState == 0 && (uint)data.wIntimacyValue == Singleton <CFriendContoller> .get_instance().model.GetMaxIntimacyNum()) { this.Add(uniq.ullUid, uniq.dwLogicWorldId, 24, 0, data.dwTerminateTime, false); return; } if (bIntimacyState != 0) { this.Add(uniq.ullUid, uniq.dwLogicWorldId, bIntimacyState, 0, data.dwTerminateTime, false); } }
private void SetTimeStamp(uint ts) { this.CDDays = CFR.GetCDDays(ts); }