Skip to content

Refactor IOMarket Extracted into tfs::IOMarket namespace#4976

Merged
ArturKnopik merged 2 commits intootland:masterfrom
alysonjacomin:namespace-IOMarket
Oct 5, 2025
Merged

Refactor IOMarket Extracted into tfs::IOMarket namespace#4976
ArturKnopik merged 2 commits intootland:masterfrom
alysonjacomin:namespace-IOMarket

Conversation

@alysonjacomin
Copy link
Contributor

@alysonjacomin alysonjacomin commented Jul 26, 2025

Pull Request Prelude

  • I have followed [proper The Forgotten Server code styling][code].
  • I have read and understood the [contribution guidelines][cont] before making this PR.
  • I am aware that this PR may be closed if the above-mentioned criteria are not fulfilled.

All credits to @ramon-bernardo, I just used his PR #4690 that had been forcibly closed and created this new PR

The goal is to continue the refactoring process for namespaces in functions

src/iomarket.h Outdated
static MarketOfferEx getOfferByCounter(uint32_t timestamp, uint16_t counter);

static void createOffer(uint32_t playerId, MarketAction_t action, uint32_t itemId, uint16_t amount, uint64_t price,
namespace tfs::IOMarket {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Namespaces should be lowercase, so tfs::iomarket

All credits to @ramon-bernardo, I just used his PR that had been forcibly closed and created this new PR

The goal is to continue the refactoring process for namespaces in functions
Copy link
Contributor

@ArturKnopik ArturKnopik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, code styling is fixed on master

@ArturKnopik ArturKnopik merged commit fd991a9 into otland:master Oct 5, 2025
15 of 16 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants