-
Notifications
You must be signed in to change notification settings - Fork 0
Environment
AOCS is designed to provide access to all the major functionality in the program via the global environment. As a note, all major files in the server/ folder are loaded at once before operation.
A name hold-over from AOLS2. Process is responsible for the core logic of the program.
An intermediary class that reads and sends in the protocol of each client. It currently handles the AO2 protocol with support for websockets. Support for other protocols is planned.
The object responsible for managing connections and the sending and receiving of packets.
Internal module for the reading and writing of server data.
Internal module for the printing and recording of messages on the console.
Modules from luasocket used for the program.
The libraries which were included for handling binary data present in the websocket protocol. BitOp Documentation
Helper functions used in the server code.
Finds a value that matches v in table t, and returns the index where it was found.
Same as findindex, but works for all values in a table, returning the key where a match is found.
Returns a new table that is a copy of table t. This new table can be changed freely without affecting the original.
Returns the first empty index of table t.
Returns a readable form of v. Useful for debugging tables.
Evaluates the "truth" state of v. Tables and strings of no length return false. The number 0 returns false. Strings "0" and "false" return false. Otherwise, value itself is returned.
Call a function func with optional arguments in protected mode. On success, the function returns as it would normally. On error, it returns nil with the error string.
Calls the function func for every argument passed into each(). Returns all the results of func in order.
Splits the string input into parts between where the string pattern delimit is found.
Mirrors lua's tonumber() function, but removes any fractional part using math.floor().