コード例 #1
0
ファイル: SetScript.cs プロジェクト: Pertex/Quest
 internal SetScriptBase(SetScriptConstructor constructor, IFunction<Element> appliesTo, string property)
 {
     m_constructor = constructor;
     m_worldModel = constructor.WorldModel;
     AppliesTo = appliesTo;
     Property = property;
 }
コード例 #2
0
ファイル: ScriptFactory.cs プロジェクト: Pertex/Quest
        public ScriptFactory(WorldModel worldModel)
        {
            m_worldModel = worldModel;

            // Use Reflection to create instances of all IScriptConstructors
            foreach (Type t in AxeSoftware.Utility.Classes.GetImplementations(System.Reflection.Assembly.GetExecutingAssembly(),
                typeof(IScriptConstructor)))
            {
                AddConstructor((IScriptConstructor)Activator.CreateInstance(t));
            }

            m_setConstructor = (SetScriptConstructor)InitScriptConstructor(new SetScriptConstructor());
            m_procConstructor = (FunctionCallScriptConstructor)InitScriptConstructor(new FunctionCallScriptConstructor());
        }
コード例 #3
0
ファイル: SetScript.cs プロジェクト: Pertex/Quest
 public SetScriptScript(SetScriptConstructor constructor, IFunction<Element> appliesTo, string property, IScript script)
     : base(constructor, appliesTo, property)
 {
     m_script = script;
     m_scriptFactory = constructor.ScriptFactory;
 }
コード例 #4
0
ファイル: SetScript.cs プロジェクト: Pertex/Quest
 public SetExpressionScript(SetScriptConstructor constructor, IFunction<Element> appliesTo, string property, Expression<object> expr)
     : base(constructor, appliesTo, property)
 {
     m_expr = expr;
 }