Lua 関数の GetClassDerivationLevel は、クラス名に基づく派生レベル・インデックスを整数で返します。
この例では、Pool クラスのインデックス番号を Command Line History に出力しています。
return function()
-- Get the index integer for the "Pool" class
local classDerivationLevel = GetClassDerivationLevel("Pool")
-- Create a valid Printf return
if classDerivationLevel == nil then
Printf("The return is nil")
else
Printf("The ClassDerivationLevel index for 'Pool' is: %i", classDerivationLevel)
end
end