Пример #1
0
 public RunDelegateScript(WorldModel worldModel, IFunction<Element> obj, IFunction<string> del, IList<IFunction<object>> parameters)
 {
     m_worldModel = worldModel;
     m_delegate = del;
     m_parameters = new FunctionCallParameters(worldModel, parameters);
     m_appliesTo = obj;
 }
Пример #2
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;
        }