コード例 #1
0
 /// <summary>
 /// Inner constructor.
 /// </summary>
 private ElementBuilder()
 {
     Action = BuilderAction.Alter;
 }
コード例 #2
0
 /// <summary>
 /// Initialize a new instance of the element builder.
 /// </summary>
 public ElementBuilder(Element element, IAction <Element> onBuilt)
 {
     Element  = element;
     _onBuilt = onBuilt;
     Action   = BuilderAction.Alter;
 }
コード例 #3
0
        //----------------------------------//

        /// <summary>
        /// Initialize a new instance of the element builder.
        /// </summary>
        public ElementBuilder(string key)
        {
            Key    = key;
            Action = BuilderAction.Alter;
        }
コード例 #4
0
 /// <summary>
 /// Initialize a new instance of the element builder.
 /// </summary>
 public ElementBuilder(string key, IAction <Element> onBuilt)
 {
     Key      = key;
     _onBuilt = onBuilt;
     Action   = BuilderAction.Alter;
 }
コード例 #5
0
 // Build the default subject for the given builder method
 private static EventSubject <GameEntityModel> BuildDefaultSubject(BuilderAction subjectsDefaultBuilderAction)
 {
     return(new EventSubject <GameEntityModel>(subjectsDefaultBuilderAction(null), GetReevaluateSubject(null)));
 }