Navigation

    TripleA Logo

    TripleA Forum

    • Register
    • Login
    • Search
    • TripleA Website
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Tags

    Proposal: Add 'allowBid' and 'defaultBid' attributes to '<player>' node

    Map Making
    1
    1
    137
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • LaFayette
      LaFayette Admin last edited by

      Proposal

      Add optional attributes to <player> node:

      • allowBid | boolean | default = true
      • defaultBid | number | default = 0

      For backward compatibility the existing bid <property> would continue to work and could be used if a min and max bid were needed.

      Example, before:

      <playerList>
        <player name="Americans"/>
      </playerList>
      
      <propertyList>
        <property name="Americans bid" value="30" editable="true">
              <number min="0" max="1000"/>
        </property>
      </propertyList>
      

      Example, after:

      The above before example would be equivalent to:

      <playerList>
        <player name="Americans"/>
      </playerList>
      

      With default attribute values specified explicitly:

      <playerList>
        <player name="Americans" allowBid="true" defaultBid="0"/>
      </playerList>
      

      If wanting to disable bid:

      <playerList>
        <player name="Americans" allowBid="false"/>
      </playerList>
      

      If wanting to set a default bid:

      <playerList>
        <player name="Americans" defaultBid="30"/>
      </playerList>
      
      1 Reply Last reply Reply Quote 0
      • 1 / 1
      • First post
        Last post
      Copyright © 2016-2018 TripleA-Devs | Powered by NodeBB Forums