Git Product home page Git Product logo

Comments (9)

noHero123 avatar noHero123 commented on September 7, 2024

so, added some (halfhearted) classes

from auction.mod.

MaPePeR avatar MaPePeR commented on September 7, 2024

I would recommend a structure like this:

  • AuctionList Keeps track of Auctions
    • Method to add Auctions
    • Method to set the filters (Resource/Name/Rarity)
    • Method to get the filtered Auctions
  • MessageParser Reads the auctions from a String (Called by Network and TradeMessageHandler)
    • Method for parsing human and nonhuman trademessages
  • Network and TradeMessageHandler Recieve the Trade Messages from different Sources
    (Both with their own handleMessage-Implementation)
    • Use MessageParser to read the auctions from the message
    • Then add the Auctions to the AuctionList
  • Settings Stores Settings like: rowheight, spam-protections ...
    • Set/Get/Save/Load the Settings
  • AuctionHouseUI Draws the Auction House
    • Displays the AuctionList
    • Sets the Filters for the List
  • GeneratorUI Draws the Generator
  • SettingsUI Draws the Settings-Panel
    • Sets the Settings in the Settings-Class
  • ScrollHelper
    • Organizes Nicknames for Scrolls
    • Does Scroll->Id and Scroll->ImageId ...
    • Scroll->Amount of Scrolls Owned
    • Uses Dictionarys for O(1) Lookup instead of O(N)
  • Prices
    • Gets Prices from ScrollsPost
    • Rounds and formats the Suggested price according to Settings

The Settings class you introduced has nothing to do with the Mod-Settings!

from auction.mod.

noHero123 avatar noHero123 commented on September 7, 2024

better?

from auction.mod.

MaPePeR avatar MaPePeR commented on September 7, 2024

Its a step in the right direction, yes.

from auction.mod.

MaPePeR avatar MaPePeR commented on September 7, 2024

Naming Conventions in C#: http://stackoverflow.com/questions/1618316/naming-convention-in-c-sharp

from auction.mod.

MaPePeR avatar MaPePeR commented on September 7, 2024

Read comment

from auction.mod.

noHero123 avatar noHero123 commented on September 7, 2024

with the last changes, do you agree to closing this issue?

from auction.mod.

MaPePeR avatar MaPePeR commented on September 7, 2024

I would remove the addcardstolist and additemtolist Methods in Messageparser.cs (Line 75-142), because they not really have a purpose, because the AuctionHouse-class already separates the auctions by WTB/WTS, so one could create one single list in the parse method and add it to the AuctionHouse at once.
But yes, i think we can close this now.

from auction.mod.

noHero123 avatar noHero123 commented on September 7, 2024

deleted addcardstolist, and in additemtolist I'm adding all items to the same list.

from auction.mod.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.