2017 © Pedro Peláez
 

library maniascript

Autoloader, Compiler and a few Maniascript libraries to ease the developement of Maniascript applications.

image

manialib/maniascript

Autoloader, Compiler and a few Maniascript libraries to ease the developement of Maniascript applications.

  • Wednesday, April 8, 2015
  • by magnetik
  • Repository
  • 3 Watchers
  • 0 Stars
  • 68 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 1 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

Manialib\Maniascript

Unstable!, (*1)

Standalone PHP component to help developing Maniascript applications for the Manialink browser. This is part of Manialib., (*2)

Autoloader

Manialib\Maniascript\Autoloader provides a way to automatically load a Maniascript file, given it's library name (eg. "Manialib/Logger.Script.txt") and a set of include paths. It's inspired from PHP's PSR-4., (*3)

See Manialib\Maniascript\AutoloaderInterface for reference., (*4)

Compiler

Manialib\Maniascript\Compiler helps partitioning a Maniascript application in several files when you cannot use normal #Include directives (eg. when writing a Maniascript application for the Manialink browser). It will replace the "include as" directives recursively, eventually providing a single script., (*5)

Libraries

todo, (*6)

Limitations

Right now, included libraries must be written with "full namespaces", compared to standard #Includes where you only define the function name, not the fully qualified function name., (*7)

Eg. if you're using #Include "Manialib/Logger.Script.txt" as Logger and Logger::Info(), the Info() function in the Logger library will be defined as Manialib_Logger_Info() whereas with standard #Includes it would be defined as Info()., (*8)

Example

See /example, (*9)

The Versions

08/04 2015

dev-master

9999999-dev https://github.com/manialib

Autoloader, Compiler and a few Maniascript libraries to ease the developement of Maniascript applications.

  Sources   Download

MIT

The Requires

 

maniaplanet maniascript shootmania trackmania manialib ubisoft nadeo