<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Grandparents</id>
	<title>Grandparents - Revision history</title>
	<link rel="self" type="application/atom+xml" href="http://www.wlabsocks.com/wiki/index.php?action=history&amp;feed=atom&amp;title=Grandparents"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Grandparents&amp;action=history"/>
	<updated>2026-05-12T22:56:23Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.5</generator>
	<entry>
		<id>http://www.wlabsocks.com/wiki/index.php?title=Grandparents&amp;diff=662&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;Grandparents&lt;/code&gt; Method in Actor Class ==  === Overview === The &lt;code&gt;Grandparents&lt;/code&gt; method in the &lt;code&gt;Actor&lt;/code&gt; class retrieves the grandparents of an actor. It allows for the inclusion or exclusion of deceased grandparents based on the provided parameter.  === Syntax === &lt;syntaxhighlight lang=&quot;c#&quot;&gt; public IEnumerable&lt;Actor&gt; Grandparents(bool inclusivePassive = true) &lt;/syntaxhighlight&gt;  === Parameters ===  * &lt;code&gt;inclusivePassive&lt;/code&gt; (bool): A...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=Grandparents&amp;diff=662&amp;oldid=prev"/>
		<updated>2023-12-21T18:43:33Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;Grandparents&amp;lt;/code&amp;gt; Method in Actor Class ==  === Overview === The &amp;lt;code&amp;gt;Grandparents&amp;lt;/code&amp;gt; method in the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class retrieves the grandparents of an actor. It allows for the inclusion or exclusion of deceased grandparents based on the provided parameter.  === Syntax === &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; public IEnumerable&amp;lt;Actor&amp;gt; Grandparents(bool inclusivePassive = true) &amp;lt;/syntaxhighlight&amp;gt;  === Parameters ===  * &amp;lt;code&amp;gt;inclusivePassive&amp;lt;/code&amp;gt; (bool): A...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== &amp;lt;code&amp;gt;Grandparents&amp;lt;/code&amp;gt; Method in Actor Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;Grandparents&amp;lt;/code&amp;gt; method in the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class retrieves the grandparents of an actor. It allows for the inclusion or exclusion of deceased grandparents based on the provided parameter.&lt;br /&gt;
&lt;br /&gt;
=== Syntax ===&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
public IEnumerable&amp;lt;Actor&amp;gt; Grandparents(bool inclusivePassive = true)&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Parameters ===&lt;br /&gt;
&lt;br /&gt;
* &amp;lt;code&amp;gt;inclusivePassive&amp;lt;/code&amp;gt; (bool): A flag that determines whether to include deceased (passive state) grandparents in the returned collection. The default value is &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;.&lt;br /&gt;
&lt;br /&gt;
=== Returns ===&lt;br /&gt;
&lt;br /&gt;
* Return Type: &amp;lt;code&amp;gt;IEnumerable&amp;lt;Actor&amp;gt;&amp;lt;/code&amp;gt;. The method returns a collection of &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; objects, each representing a grandparent of the actor.&lt;br /&gt;
* When &amp;lt;code&amp;gt;inclusivePassive&amp;lt;/code&amp;gt; is set to &amp;lt;code&amp;gt;true&amp;lt;/code&amp;gt;, the collection includes all grandparents, alive or deceased.&lt;br /&gt;
* When &amp;lt;code&amp;gt;inclusivePassive&amp;lt;/code&amp;gt; is set to &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt;, it includes only living (active state) grandparents.&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
The &amp;lt;code&amp;gt;Grandparents&amp;lt;/code&amp;gt; method provides a way to access the actor's grandparents, with an option to include those who have passed away. The method uses LINQ's &amp;lt;code&amp;gt;SelectMany&amp;lt;/code&amp;gt; function to aggregate grandparents from the actor's parents, allowing for a comprehensive collection.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This method is useful in game scenarios where familial lineage and ancestry play a role, such as for inheritance, story development, or character background.&lt;br /&gt;
&lt;br /&gt;
==== Example: ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
var allGrandparents = someActor.Grandparents();&lt;br /&gt;
var livingGrandparents = someActor.Grandparents(false);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;In these examples, &amp;lt;code&amp;gt;allGrandparents&amp;lt;/code&amp;gt; includes both living and deceased grandparents, while &amp;lt;code&amp;gt;livingGrandparents&amp;lt;/code&amp;gt; includes only the living ones.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* The ability to include or exclude deceased grandparents provides depth to the handling of familial and relational dynamics within the game.&lt;br /&gt;
* The &amp;lt;code&amp;gt;Grandparents&amp;lt;/code&amp;gt; method is crucial for managing complex relationships and can significantly impact the storylines and character interactions in the game.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>