<?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=HasBrotherInLaw</id>
	<title>HasBrotherInLaw - 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=HasBrotherInLaw"/>
	<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=HasBrotherInLaw&amp;action=history"/>
	<updated>2026-05-13T00:01:35Z</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=HasBrotherInLaw&amp;diff=705&amp;oldid=prev</id>
		<title>Tayfunwiki: Created page with &quot;== &lt;code&gt;HasBrotherInLaw&lt;/code&gt; Property in Actor Class ==  === Overview === The &lt;code&gt;HasBrotherInLaw&lt;/code&gt; property in the &lt;code&gt;Actor&lt;/code&gt; class is a boolean value that indicates whether the actor has any living brothers-in-law. This property is important in games where familial relationships and connections, such as those with in-laws, can influence the narrative, character interactions, or gameplay.  === Syntax === &lt;syntaxhighlight lang=&quot;c#&quot;&gt; public bool HasBroth...&quot;</title>
		<link rel="alternate" type="text/html" href="http://www.wlabsocks.com/wiki/index.php?title=HasBrotherInLaw&amp;diff=705&amp;oldid=prev"/>
		<updated>2023-12-23T10:03:11Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;== &amp;lt;code&amp;gt;HasBrotherInLaw&amp;lt;/code&amp;gt; Property in Actor Class ==  === Overview === The &amp;lt;code&amp;gt;HasBrotherInLaw&amp;lt;/code&amp;gt; property in the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class is a boolean value that indicates whether the actor has any living brothers-in-law. This property is important in games where familial relationships and connections, such as those with in-laws, can influence the narrative, character interactions, or gameplay.  === Syntax === &amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt; public bool HasBroth...&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;HasBrotherInLaw&amp;lt;/code&amp;gt; Property in Actor Class ==&lt;br /&gt;
&lt;br /&gt;
=== Overview ===&lt;br /&gt;
The &amp;lt;code&amp;gt;HasBrotherInLaw&amp;lt;/code&amp;gt; property in the &amp;lt;code&amp;gt;Actor&amp;lt;/code&amp;gt; class is a boolean value that indicates whether the actor has any living brothers-in-law. This property is important in games where familial relationships and connections, such as those with in-laws, can influence the narrative, character interactions, or gameplay.&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 bool HasBrotherInLaw =&amp;gt; Siblings(false).SelectMany(s =&amp;gt; s._spouses).Any(s =&amp;gt; s.Gender == IGender.Male);&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=== Description ===&lt;br /&gt;
&lt;br /&gt;
* Property Type: &amp;lt;code&amp;gt;bool&amp;lt;/code&amp;gt;. The &amp;lt;code&amp;gt;HasBrotherInLaw&amp;lt;/code&amp;gt; property signifies if the actor has at least one living brother-in-law.&lt;br /&gt;
* Property Logic: It uses the &amp;lt;code&amp;gt;Siblings&amp;lt;/code&amp;gt; method with &amp;lt;code&amp;gt;false&amp;lt;/code&amp;gt; as the parameter to get only living siblings. Then, it applies &amp;lt;code&amp;gt;SelectMany&amp;lt;/code&amp;gt; to aggregate all spouses of these siblings and checks with &amp;lt;code&amp;gt;.Any()&amp;lt;/code&amp;gt; if there is any male spouse (indicating a brother-in-law).&lt;br /&gt;
* Purpose: The &amp;lt;code&amp;gt;HasBrotherInLaw&amp;lt;/code&amp;gt; property is essential for determining the presence of living brothers-in-law in the actor's extended family. This can affect gameplay elements such as alliances, social dynamics, inheritance, and storyline development.&lt;br /&gt;
&lt;br /&gt;
=== Usage ===&lt;br /&gt;
This property is utilized to check if an actor has living brothers-in-law, impacting various game mechanics, story progression, and character interactions in contexts where extended family relations play a key role.&lt;br /&gt;
&lt;br /&gt;
==== Example: ====&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;c#&amp;quot;&amp;gt;&lt;br /&gt;
if (someActor.HasBrotherInLaw) {&lt;br /&gt;
    // Execute logic specific to actors with living brothers-in-law&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;In this example, specific game logic or narrative elements are conditioned based on the actor having living brothers-in-law.&lt;br /&gt;
&lt;br /&gt;
=== Remarks ===&lt;br /&gt;
&lt;br /&gt;
* The use of &amp;lt;code&amp;gt;Siblings(false).SelectMany(s =&amp;gt; s._spouses).Any(s =&amp;gt; s.Gender == IGender.Male)&amp;lt;/code&amp;gt; provides a comprehensive and efficient way to determine the presence of living brothers-in-law.&lt;br /&gt;
* The &amp;lt;code&amp;gt;HasBrotherInLaw&amp;lt;/code&amp;gt; property is vital in games where extended familial relationships influence the storyline, character motivations, or gameplay decisions.&lt;br /&gt;
* This property adds depth to character development and enriches the complexity of familial and social dynamics within the game world.&lt;/div&gt;</summary>
		<author><name>Tayfunwiki</name></author>
	</entry>
</feed>