Elin Decompiled Documentation EA 23.269 Nightly Patch 3
Loading...
Searching...
No Matches
Gender Class Reference

Static Public Member Functions

static string Name (int g)
 
static int GetRandom ()
 

Static Public Attributes

const int unknown = 0
 
const int female = 1
 
const int male = 2
 

Detailed Description

Definition at line 1 of file Gender.cs.

Member Function Documentation

◆ GetRandom()

static int Gender.GetRandom ( )
inlinestatic

Definition at line 19 of file Gender.cs.

20 {
21 if (Rand.rnd(30) == 0)
22 {
23 return 0;
24 }
25 return Rand.Range(1, 3);
26 }
Definition: Rand.cs:4
static int Range(int min, int max)
Definition: Rand.cs:42
static int rnd(int max)
Definition: Rand.cs:52

References Rand.Range(), and Rand.rnd().

Referenced by Biography.Generate().

◆ Name()

static string Gender.Name ( int  g)
inlinestatic

Definition at line 9 of file Gender.cs.

10 {
11 return (g switch
12 {
13 1 => "female",
14 2 => "male",
15 _ => "gay",
16 }).lang();
17 }

Referenced by ActEffect.Proc().

Member Data Documentation

◆ female

const int Gender.female = 1
static

Definition at line 5 of file Gender.cs.

◆ male

const int Gender.male = 2
static

Definition at line 7 of file Gender.cs.

◆ unknown

const int Gender.unknown = 0
static

Definition at line 3 of file Gender.cs.


The documentation for this class was generated from the following file: