mrbot/auto_quest/property_editors/property_editors.iss

34 lines
1.2 KiB
Plaintext

#ifndef _mr_property_editors_
#define _mr_property_editors_
#includeoptional "${LavishScript.HomeDirectory}/Scripts/mr/auto_quest/property_editors/npc_dialog_properties/editor.iss"
#includeoptional "${LavishScript.HomeDirectory}/Scripts/mr/auto_quest/property_editors/run_path_properties/editor.iss"
#includeoptional "${LavishScript.HomeDirectory}/Scripts/mr/auto_quest/property_editors/kill_mobs_properties/editor.iss"
variable(global) NPCDialogPropertiesController MRNPCDialogPropertiesController
variable(global) RunPathPropertiesController MRRunPathPropertiesController
variable(global) KillMobsPropertiesController MRKillMobsPropertiesController
objectdef PropertyEditors
{
static member GetPropertyEditor( string stepType )
{
if ${stepType.Equal["${MRNPCDialogPropertiesController.StepType}"]}
{
return MRNPCDialogPropertiesController;
}
if ${stepType.Equal["${MRRunPathPropertiesController.StepType}"]}
{
return MRRunPathPropertiesController;
}
if ${stepType.Equal["${MRKillMobsPropertiesController.StepType}"]}
{
return MRKillMobsPropertiesController;
}
return null;
}
}
#endif