Navigation

    forum

    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    1. Home
    2. Thynosaur
    3. Posts
    • Flag Profile
    • block_user
    • Profile
    • Following
    • Followers
    • Topics
    • Posts
    • Groups
    • Blog

    Posts made by Thynosaur

    • RE: Draft: Store prototype API

      @artch said in Draft: Store prototype API:

      I'd say that Store.getAmount() without arguments should return an object with all resources rather than one single number of total used capacity.

      @artch I would say that Store.getAmounts() should return such an object. Store.getAmount() is "get the amount of whatever is in the store" 😉

      posted in News & Announcements
      Thynosaur
    • RE: Draft: Store prototype API

      Hello,

      I like this proposal in this current state. Code will be much simpler for many situations.

      The only improvement I'd favour would be to change store.getUsedCapacity([resourceType]) to store.getAmount([resourceType]), favoring concision to regularity, MrFaul's store.getStored looks a bit redundant to me, but I like the rest of his definition.

      posted in News & Announcements
      Thynosaur