(in ./Carbon/OOP.lua)

The base object for all instancable classes.

Inherits OOP.BaseClass


object public Object:Copy()

Returns Object

Copies the given object.

object public Object:Init(...)

Returns self

Initializes the object with the given parameters.

object public Object:Destroy()

Returns void

Destroys the object.

class public Class:PlacementNew(indexable? target, ...)

Returns Object

  • optional target: Where to place the instance, will be provided if not given.
  • optional ...: Arguments to pass to the constructor

Creates a new object and puts it into a given indexable object.

class public Class:New(...)

Returns Object

Creates a new object and passes parameters to its initializer.