ACES

A list of all Actions, Conditions and Expressions supported in this addon.

General

  • Actions

    Enqueue {0}

    Enqueue an element to the end of the queue

    Dequeue

    Dequeue the first element from the queue

    Clear

    Clears the queue

    Load

    Load the queue from JSON

  • Conditions

    Is empty

    Check if the queue is empty

    Compare count {0} {1}

    Compare a number with the count of the queue

    Compare first {0} {1}

    Compare a number with the first of the queue

  • Expressions

    Peek

    Returns the first element of the queue.

    Dequeue

    Returns the first element of the queue and deletes it.

    ToJSON

    Returns the queue in a JSON format

    Length

    Returns the length of the queue.

Download

1.0 Stable (17 KB)

Info

  • License MIT License
  • Copyright Ossama Jouini. All rights reserved.

Statistics

  • Download count 90 total downloads
  • Latest download count 90 downloads of latest version
  • Average download count 1 downloads per day average

Owners

Tags

  • 3 Comments

  • Order by
Want to leave a comment? Login or Register an account!
  • can you describe a little bit more what this addon is for ?

    • Hello, there isn't much to say about it. It literally replicates the way Queues work as a data structure. I recommend you look at this page that explains it pretty well:

      https://en.wikipedia.org/wiki/Queue_(abstract_data_type)

      Basically, it's like a list, but instead of being able to add or remove data where you want, you can only add data to the back and remove and get data from the front. It's a simpler and more narrowed down version of an array, but it's really useful when you only need that type of data structure, and not a whole array.

      For example, if you record a set of actions in your game, in order to replay it later, you can use a queue data structure. There are lots of applications for this.