Пример #1
0
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <param name="tree">The lookup target.</param>
 /// <param name="tile">The tree's tile position.</param>
 /// <param name="translations">Provides translations stored in the mod folder.</param>
 public TreeSubject(Tree tree, Vector2 tile, ITranslationHelper translations)
     : base(TreeSubject.GetName(translations, tree), null, translations.Get(L10n.Types.Tree), translations)
 {
     this.Target = tree;
     this.Tile   = tile;
 }
Пример #2
0
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <param name="gameHelper">Provides utility methods for interacting with the game code.</param>
 /// <param name="tree">The lookup target.</param>
 /// <param name="tile">The tree's tile position.</param>
 /// <param name="translations">Provides translations stored in the mod folder.</param>
 public TreeSubject(GameHelper gameHelper, Tree tree, Vector2 tile, ITranslationHelper translations)
     : base(gameHelper, TreeSubject.GetName(tree), null, L10n.Types.Tree(), translations)
 {
     this.Target = tree;
     this.Tile   = tile;
 }
 /*********
 ** Public methods
 *********/
 /// <summary>Construct an instance.</summary>
 /// <param name="tree">The lookup target.</param>
 /// <param name="tile">The tree's tile position.</param>
 public TreeSubject(Tree tree, Vector2 tile)
     : base(TreeSubject.GetName(tree), null, "Tree")
 {
     this.Target = tree;
     this.Tile   = tile;
 }