Elin Decompiled Documentation
EA 23.102 Nightly
Loading...
Searching...
No Matches
Gender.cs
Go to the documentation of this file.
1
public
class
Gender
2
{
3
public
const
int
unknown
= 0;
4
5
public
const
int
female
= 1;
6
7
public
const
int
male
= 2;
8
9
public
static
string
Name
(
int
g)
10
{
11
return
(g
switch
12
{
13
1 =>
"female"
,
14
2 =>
"male"
,
15
_ =>
"gay"
,
16
}).lang();
17
}
18
19
public
static
int
GetRandom
()
20
{
21
if
(
Rand
.
rnd
(30) == 0)
22
{
23
return
0;
24
}
25
return
Rand
.
Range
(1, 3);
26
}
27
}
Gender
Definition:
Gender.cs:2
Gender.unknown
const int unknown
Definition:
Gender.cs:3
Gender.Name
static string Name(int g)
Definition:
Gender.cs:9
Gender.GetRandom
static int GetRandom()
Definition:
Gender.cs:19
Gender.female
const int female
Definition:
Gender.cs:5
Gender.male
const int male
Definition:
Gender.cs:7
Rand
Definition:
Rand.cs:4
Rand.Range
static int Range(int min, int max)
Definition:
Rand.cs:42
Rand.rnd
static int rnd(int max)
Definition:
Rand.cs:52
Elin
Plugins.basecore
Gender.cs
Generated by
1.9.6