Kryzeth Standard Library

StdLib.Core

The Core module loads some helper functions and globals useful in all stages of a mods life cycle. All modules have an __index method into core.

@usage local Core = require('kry_stdlib/stdlib/core')

Methods6

function Core.__call(t, ...) -> any
function Core.log_and_print(msg: string) -> boolean

Prints and logs the msg

Parameters
msgstring
Returns
boolean

true if the message was printed to someone

function Core.VALID_FILTER(v) -> any
Deprecated

Simple valid check, only available in control stage.

Deprecated
function Core.get_file_path(append) -> string
function Core.inspect(self) -> unknown

Inspect the class

function Core.help(self) -> ""

Help function available on everything.

Fields8

Core._VERSION: string = "1.0.0"
Core._DESCRIPTION: string = "Factorio Lua Standard Library Project"
Core._URL: string = "https://github.com/Afforess/Factorio-Stdlib"
Core._LICENSE: string = "        MIT LICENSE

        Copyright (c) 2016 Afforess, 2024 Kuxynator

        Permission to use, copy, modify, and/or distribute this software for any
        purpose with or without fee is hereby granted, provided that the above
        copyright notice and this permission notice appear in all copies.

        THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
        WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
        MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
        ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
        WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
        ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
        OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
    "
Core.__class: string = "Core"
Core.__config : unknown
Core.Unique_Array : unknown
Core.String_Array : unknown