コード例 #1
0
ファイル: Character.cs プロジェクト: BasPaap/RedYarn
 public Character()
 {
     Authors            = new CoupledCollection <Author, Character>(this, nameof(Author.Characters));
     Storylines         = new CoupledCollection <Storyline, Character>(this, nameof(Storyline.Characters));
     Tags               = new CoupledCollection <Tag, Character>(this, nameof(Tag.Characters));
     OwnedPlotElements  = new CoupledCollection <PlotElement, Character>(this, nameof(PlotElement.OwningCharacters));
     NeededPlotElements = new CoupledCollection <PlotElement, Character>(this, nameof(PlotElement.NeedingCharacters));
     Relationships      = new ReadOnlyCollection <Relationship>(this.relationships);
 }
コード例 #2
0
 public PlotElement()
 {
     Storylines        = new CoupledCollection <Storyline, PlotElement>(this, nameof(Storyline.PlotElements));
     OwningCharacters  = new CoupledCollection <Character, PlotElement>(this, nameof(Character.OwnedPlotElements));
     NeedingCharacters = new CoupledCollection <Character, PlotElement>(this, nameof(Character.NeededPlotElements));
 }
コード例 #3
0
ファイル: Author.cs プロジェクト: BasPaap/RedYarn
 public Author()
 {
     Characters = new CoupledCollection <Character, Author>(this, nameof(Character.Authors));
     Storylines = new CoupledCollection <Storyline, Author>(this, nameof(Storyline.Authors));
 }
コード例 #4
0
 public Storyline()
 {
     Characters   = new CoupledCollection <Character, Storyline>(this, nameof(Character.Storylines));
     Authors      = new CoupledCollection <Author, Storyline>(this, nameof(Author.Storylines));
     PlotElements = new CoupledCollection <PlotElement, Storyline>(this, nameof(PlotElement.Storylines));
 }