Add EditorProp for construction goal

qteditor
Sven Eberhardt 2016-06-07 00:13:35 -04:00
parent 3797b07f29
commit c4dfd5e276
1 changed files with 8 additions and 2 deletions

View File

@ -19,7 +19,7 @@ protected func Initialize()
// Add an object to the list of objects that have to be constructed.
public func AddConstruction(id construction, int count)
{
PushBack(construction_list, {construction = construction, count = count});
PushBack(construction_list, {id = construction, count = count});
return;
}
@ -28,7 +28,7 @@ public func SaveScenarioObject(props)
{
if (!inherited(props, ...)) return false;
for (var con in construction_list)
props->AddCall("Goal", this, "AddConstruction", con.construction, con.count);
props->AddCall("Goal", this, "AddConstruction", con.id, con.count);
return true;
}
@ -107,3 +107,9 @@ public func GetShortDescription(int plr)
/*-- Proplist --*/
local Name = "$Name$";
func Definition(def)
{
def.EditorProp_construction_list = EditorBase.IDList;
return true;
}