Elin Decompiled Documentation EA 23.312 Nightly Patch 4
Loading...
Searching...
No Matches
CustomStatContent.cs
Go to the documentation of this file.
1using Newtonsoft.Json;
2
3[JsonObject(MemberSerialization.OptOut)]
5{
6 public bool addOnLoad;
7
8 public override string SourceType => "SourceStat";
9
11 {
12 if (owner == null)
13 {
14 owner = ModUtil.FindSourceRowPackage(r);
15 }
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}
string ContentId
Definition: CustomContent.cs:6
override string SourceType
static CustomStatContent CreateFromRow(SourceStat.Row r, ModPackage owner=null)