public FunctionCallScript(GameLoader loader, string procedure, IList <IFunction> parameters, IScript paramFunction)
 {
     m_loader        = loader;
     m_procedure     = procedure.Replace(" ", Utility.SpaceReplacementString);
     m_parameters    = new FunctionCallParameters(parameters);
     m_paramFunction = paramFunction;
 }
Esempio n. 2
0
 public FunctionCallScript(GameLoader loader, string procedure, IList<IFunction> parameters, IScript paramFunction)
 {
     m_loader = loader;
     m_procedure = procedure.Replace(" ", Utility.SpaceReplacementString);
     m_parameters = new FunctionCallParameters(parameters);
     m_paramFunction = paramFunction;
 }
Esempio n. 3
0
 public RunDelegateScript(ScriptContext scriptContext, IFunction <Element> obj, IFunction <string> del, IList <IFunction <object> > parameters)
 {
     m_scriptContext = scriptContext;
     m_worldModel    = scriptContext.WorldModel;
     m_delegate      = del;
     m_parameters    = new FunctionCallParameters(m_worldModel, parameters);
     m_appliesTo     = obj;
 }
Esempio n. 4
0
 public RunDelegateScript(ScriptContext scriptContext, IFunction<Element> obj, IFunction<string> del, IList<IFunction<object>> parameters)
 {
     m_scriptContext = scriptContext;
     m_worldModel = scriptContext.WorldModel;
     m_delegate = del;
     m_parameters = new FunctionCallParameters(m_worldModel, parameters);
     m_appliesTo = obj;
 }
Esempio n. 5
0
        public FunctionCallScript(WorldModel worldModel, string procedure, IList <IFunction <object> > parameters, IScript paramFunction)
        {
            m_worldModel    = worldModel;
            m_procedure     = procedure;
            m_parameters    = new FunctionCallParameters(worldModel, parameters);
            m_paramFunction = paramFunction;

            m_parameters.ParametersAsQuestList.Added   += Parameters_Added;
            m_parameters.ParametersAsQuestList.Removed += Parameters_Removed;
        }
Esempio n. 6
0
 public RunDelegateScript(IFunction obj, IFunction del, IList<IFunction> parameters)
 {
     m_delegate = del;
     m_parameters = new FunctionCallParameters(parameters);
     m_appliesTo = obj;
 }
Esempio n. 7
0
        public FunctionCallScript(WorldModel worldModel, string procedure, IList<IFunction<object>> parameters, IScript paramFunction)
        {
            m_worldModel = worldModel;
            m_procedure = procedure;
            m_parameters = new FunctionCallParameters(worldModel, parameters);
            m_paramFunction = paramFunction;

            m_parameters.ParametersAsQuestList.Added += Parameters_Added;
            m_parameters.ParametersAsQuestList.Removed += Parameters_Removed;
        }
 public RunDelegateScript(IFunction obj, IFunction del, IList <IFunction> parameters)
 {
     m_delegate   = del;
     m_parameters = new FunctionCallParameters(parameters);
     m_appliesTo  = obj;
 }