Module Common

Donxon Common module.

This module contains the functionality for scripts running on both the client and server.

It can be used in script files registered in both "game" and "ui" array of project.json.

Tables

COLOR Available colors.

Fields

maxPlayer Maximum supported player slots.
vecZero Zero vector (0, 0, 0).
emptyFunc Empty function.

Classes

Color Color class.
Vector2D 2D Vector class.
Vector 3D Vector class.
NetMessage Network Message Builder class.
TextMenu Common Text Menu class.
ScreenFade Common ScreenFade class.


Tables

COLOR
Available colors.

Fields:

  • YELLOWISH
  • REDISH
  • GREENISH

Fields

maxPlayer
Maximum supported player slots.
  • maxPlayer number (default 24)
vecZero
Zero vector (0, 0, 0).
emptyFunc
Empty function.

An empty function used for internal stuffs.

  • emptyFunc function

Classes

Color
Color class.

Shared functions and properties for color manipulations.

Vector2D
2D Vector class.

Used for many pathfinding and many other operations that are treated as planar rather than 3d.

Vector
3D Vector class.
NetMessage
Network Message Builder class.

Used to builds network messages that will be sent from server to client(s).

TextMenu
Common Text Menu class.

Shared functions and properties for text menu classes.

ScreenFade
Common ScreenFade class.

Shared functions and properties for screen fade classes.

generated by LDoc 1.4.6 Last updated 2020-06-15 21:15:36