mirror of
https://github.com/CapsAdmin/pac3.git
synced 2025-03-04 03:03:01 -05:00
add BaseName to parts so you can get the
original part it was derived from
This commit is contained in:
parent
0ae8bccfc1
commit
7ff355c47c
@ -15,6 +15,7 @@ local render_PushFilterMag = render.PushFilterMag
|
||||
local BUILDER, PART = pac.PartTemplate("base_movable")
|
||||
|
||||
PART.ClassName = "base_drawable"
|
||||
PART.BaseName = PART.ClassName
|
||||
|
||||
BUILDER
|
||||
:StartStorableVars()
|
||||
|
@ -7,6 +7,7 @@ local Matrix = Matrix
|
||||
local BUILDER, PART = pac.PartTemplate("base")
|
||||
|
||||
PART.ClassName = "base_movable"
|
||||
PART.BaseName = PART.ClassName
|
||||
|
||||
BUILDER
|
||||
:StartStorableVars()
|
||||
|
@ -16,6 +16,7 @@ local table_insert = table.insert
|
||||
local BUILDER, PART = pac.PartTemplate()
|
||||
|
||||
PART.ClassName = "base"
|
||||
PART.BaseName = PART.ClassName
|
||||
|
||||
function PART:__tostring()
|
||||
return string_format("part[%s][%s][%i]", self.ClassName, self:GetName(), self.Id)
|
||||
|
Loading…
Reference in New Issue
Block a user