mwg API
    Preparing search index...

    Function cellKey

    • A stable string key naming one cell, for Map/Set membership.

      'x,y' is the spelling consumers reach for anyway (the Wesnoth port keys its own Maps by hand with it); taking it from the framework means a key written by one system is understood by the next, which a pair of numbers in a string is otherwise not guaranteed to be. Negative coordinates are included, since a grid view that scrolls can hand one out.

      Parameters

      • x: number
      • y: number

      Returns string