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