A few more assertions, including one that I intend to fail, so I can figure out the structure of a table. This revision is NOT being packaged for release, since the forced fail will work on my machine.
Cette révision appartient à :
Parent
b8624952c5
révision
d72b4d9103
|
@ -1105,6 +1105,10 @@ function QuestHelper:CreateMipmapDodad()
|
|||
end
|
||||
|
||||
function icon:SetObjective(obj)
|
||||
QuestHelper: Assert(obj.loc, "Objective has no location data.")
|
||||
QuestHelper: Assert(obj.loc.c, "c is nil")
|
||||
QuestHelper: Assert(obj.loc.x, "x is nil")
|
||||
QuestHelper: Assert(obj.loc.y, "y is nil")
|
||||
self:SetHeight(20*QuestHelper_Pref.scale)
|
||||
self:SetWidth(20*QuestHelper_Pref.scale)
|
||||
|
||||
|
|
|
@ -353,6 +353,12 @@ Route_Core_Init(
|
|||
local lt = QuestHelper:CreateTable("route controller path shunt loctable")
|
||||
for _, v in ipairs(loctable) do
|
||||
QuestHelper: Assert(v.loc)
|
||||
QuestHelper: Assert(type(v.loc) == "table")
|
||||
string indices = ""
|
||||
for k, v in pairs(v.loc) do
|
||||
indices = string.format("%s %s=%s", indices, tostring(k), tostring(v))
|
||||
end
|
||||
QuestHelper: Assert(false, indices)
|
||||
table.insert(lt, v.loc)
|
||||
end
|
||||
QuestHelper: Assert(#loctable == #lt)
|
||||
|
|
Référencer dans un nouveau ticket