Elin Decompiled Documentation
EA 23.312 Nightly Patch 4
Loading...
Searching...
No Matches
CustomStatContent.cs
Go to the documentation of this file.
1
using
Newtonsoft.Json;
2
3
[JsonObject(MemberSerialization.OptOut)]
4
public
class
CustomStatContent
:
CustomSourceContent
5
{
6
public
bool
addOnLoad
;
7
8
public
override
string
SourceType
=>
"SourceStat"
;
9
10
public
static
CustomStatContent
CreateFromRow
(
SourceStat
.
Row
r,
ModPackage
owner =
null
)
11
{
12
if
(owner ==
null
)
13
{
14
owner = ModUtil.FindSourceRowPackage(r);
15
}
16
CustomStatContent
result =
new
CustomStatContent
17
{
18
ContentId
=
"Stat/"
+ r.alias,
19
SourceId
= r.alias,
20
Owner
= owner
21
};
22
ModUtil.AppendSpriteSheet(r.alias, 32, 32);
23
return
result;
24
}
25
}
CustomContent.Owner
EMod Owner
Definition:
CustomContent.cs:9
CustomContent.ContentId
string ContentId
Definition:
CustomContent.cs:6
CustomSourceContent
Definition:
CustomSourceContent.cs:5
CustomSourceContent.SourceId
string SourceId
Definition:
CustomSourceContent.cs:10
CustomStatContent
Definition:
CustomStatContent.cs:5
CustomStatContent.SourceType
override string SourceType
Definition:
CustomStatContent.cs:8
CustomStatContent.CreateFromRow
static CustomStatContent CreateFromRow(SourceStat.Row r, ModPackage owner=null)
Definition:
CustomStatContent.cs:10
CustomStatContent.addOnLoad
bool addOnLoad
Definition:
CustomStatContent.cs:6
ModPackage
Definition:
ModPackage.cs:11
SourceStat.Row
Definition:
SourceStat.cs:8
SourceStat
Definition:
SourceStat.cs:5
Elin
CustomStatContent.cs
Generated by
1.9.6