Module:Color/utils/class: Revision history

From Space Station 14 Wiki

Diff selection: Mark the radio buttons of the revisions to compare and hit enter or the button at the bottom.
Legend: (cur) = difference with latest revision, (prev) = difference with preceding revision, m = minor edit.

24 May 2025

  • curprev 07:5607:56, 24 May 2025 Aliser talk contribs 1,385 bytes +1,385 Created page with "-- Code based on: -- http://lua-users.org/wiki/SimpleLuaClasses --- Helper function to create classes -- -- @usage local Color = class(function () --constructor end) -- @usage local Color2 = class( -- Color, -- function () --constructor end, -- { prop_a = "some value" } -- ) local function class(base, init, defaults) local c = defaults or {} -- a new class instance if not init and type(base) == 'function' then init = base base = nil el..."