entity tag module
entity tag module
Visualize flow between nodes in a directed acyclic network.
Manipulate TopoJSON and convert it to GeoJSON.
Temporarily substitute tokens in the given `string` with placeholders, then put them back after transforming the string.
Seeded random number generator for Javascript.
Compare strings containing a mix of letters and numbers in the way a human being would in sort order.
A JavaScript library for escaping CSS strings and identifiers while generating the shortest possible ASCII-only output.
A lightweight library that provides tools for organizing asynchronous code
Neo-Async is a drop-in replacement for Async, it almost fully covers its functionality and runs faster
A robust HTML entities encoder/decoder with full Unicode support.
Simple slim progress bars
Universal Children Definition for React Components
Generate JavaScript-compatible regular expressions based on a given set of Unicode symbols or code points.
A robust & optimized `String.prototype.repeat` polyfill, based on the ECMAScript 6 specification.
the brains and guts of a layout library
A robust polyfill for the `CSS.escape` utility method as defined in CSSOM.
Asyncronous JavaScript loader and dependency manager
Turndown plugin to add GitHub Flavored Markdown extensions.
Handy data structures for elements keyed by string.
A readable stream reader that reads a desired number of bytes.
Log a deprecation message with stack
A robust base64 encoder/decoder that is fully compatible with `atob()` and `btoa()`, written in JavaScript.
PostHTML plugin to rename id attributes and it's references
This crate provides a `EntityTag` structure and functions to deal with the ETag header field of HTTP.
HTTP/HTTPS source driver for oxideav (pure-Rust via ureq + rustls + webpki-roots)
Entity logger
Sterilize your strings! Transliterate, generate slugs, smart format, strip tags, encode/decode entities and more.
middleware to let you know when escaped html tags are being rendered, so you can fix them
Truncate HTML without breaking HTML tags, entities, and optionally words
Plugin for tagging cartoonist entities.
a library which uses the map-reduce capabilities of mongodb to group entities based on tags.
a library which uses the map-reduce capabilities of mongodb to group entities based on tags.
High-level Ruby bindings to the Stanford CoreNLP package, a set natural language processing tools that provides tokenization, part-of-speech tagging and parsing for several languages, as well as named entity recognition and coreference resolution for English, German, French and other languages.
The powerful Natural Language Processing APIs let you perform part of speech tagging, entity identification, sentence parsing, and much more to help you understand the meaning of unstructured text.
High-level Ruby bindings to the Stanford CoreNLP package, a set natural language processing tools that provides tokenization, part-of-speech tagging and parsing for several languages, as well as named entity recognition and coreference resolution for English.
RailsPress gives your Rails app a complete content management system: a blog with categories and tags, structured entities with custom schemas, and editable site blocks with inline editing — all behind a namespaced admin interface.
== Description ["Kiwi is a versatile entity component system focussing on fast iteration and a nice api.\n", "\n", "To get started, read the [usage guide](#usage) below.\n", "\n", "[](https://github.com/Jomy10/kiwi-ecs-ruby/actions/workflows/tests.yml)\n", "\n", "## Installation\n", "\n", "The library is available from [ruby gems](https://rubygems.org/gems/kiwi-ecs):\n", "\n", "```sh\n", "gem install kiwi-ecs\n", "```\n", "\n", "To use it in your ruby source files:\n", "\n", "```ruby\n", "require 'kiwi-ecs'\n", "```\n", "\n", "## Usage\n", "\n", "### The world\n", "\n", "The world is the main object that controls the ecs.\n", "\n", "```ruby\n", "world = Kiwi::World.new\n", "```\n", "\n", "### Components\n", "\n", "Creating a component is as simple as declaring a struct:\n", "\n", "```ruby\n", "Position = Struct.new :x, :y\n", "```\n", "\n", "Classes can also be used instead of structs\n", "\n", "```ruby\n", "class Velocity\n", " attr_accessor :x\n", " attr_accessor :y\n", "end\n", "```\n", "\n", "### Entities\n", "\n", "An entity is spawned with a set of components:\n", "\n", "```ruby\n", "entityId = world.spawn(Position.new(10, 10))\n", "\n", "world.spawn(Position.new(3, 5), Velocity.new(1.5, 0.0))\n", "```\n", "\n", "The `world.spawn(*components)` function will return the id of the spawned entity.\n", "\n", "Killing an entity can be done using `world.kill(entityId)`:\n", "\n", "```ruby\n", "world.kill(entityId)\n", "```\n", "\n", "### Systems\n", "\n", "#### Queries\n", "\n", "Queries can be constructed as follows:\n", "\n", "```ruby\n", "# Query all position componentss\n", "world.query(Position) do |pos|\n", " puts pos\n", "end\n", "\n", "# Query all entities having a position and a velocity component, and their entity ids\n", "world.query_with_ids(Position, Velocity) do |id, pos, vel|\n", " # ...\n", "end\n", "```\n", "\n", "### Flags\n", "\n", "Entities can be tagged using flags\n", "\n", "#### Defining flags\n", "\n", "A flag is an integer\n", "\n", "```ruby\n", "module Flags\n", " Player = 0\n", " Enemy = 1\n", "end\n", "```\n", "\n", "#### Setting flags\n", "\n", "```ruby\n", "id = world.spawn\n", "\n", "world.set_flag(id, Flags::Player)\n", "```\n", "\n", "#### Removing a flag\n", "\n", "```ruby\n", "world.remove_flag(id, Flags::Player)\n", "```\n", "\n", "#### Checking wether an entity has a flag\n", "\n", "```ruby\n", "world.has_flag(id, Flags::Player)\n", "```\n", "\n", "#### Filtering queries with flags\n", "\n", "```ruby\n", "world.query_with_ids(Pos)\n", " .filter do |id, pos|\n", " world.has_flag(id, Flags::Player)\n", " end\n", " .each do |id, pos|\n", " # Do something with the filtered query\n", " end\n", "```\n", "\n", "The `hasFlags` function is also available for when you want to check multiple flags.\n", "\n", "## Road map\n", "\n", "- [ ] System groups\n", "\n", "## Contributing\n", "\n", "Contributors are welcome to open an issue requesting new features or fixes or opening a pull request for them.\n", "\n", "## License\n", "\n", "The library is licensed under LGPLv3.\n"]
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.
No description provided.