Elin Decompiled Documentation EA 23.312 Nightly Patch 4
Loading...
Searching...
No Matches
CustomSourceContent.cs
Go to the documentation of this file.
1using System;
2using Newtonsoft.Json;
3
4public abstract class CustomSourceContent : CustomContent
5{
6 [JsonIgnore]
7 public virtual string SourceType { get; }
8
9 [JsonIgnore]
10 public string SourceId { get; set; }
11
12 public static (string action, string spec, string[] kv) GetParams(string tag)
13 {
14 if (tag.IsEmpty())
15 {
16 return (action: string.Empty, spec: string.Empty, kv: Array.Empty<string>());
17 }
18 int num = tag.IndexOf('(');
19 string text;
20 string text2;
21 if (num >= 0)
22 {
23 text = tag[..num];
24 text2 = tag.ExtractInBetween('(', ')');
25 }
26 else
27 {
28 text = tag.Split('_')[0];
29 text2 = tag[text.Length..].TrimStart('_');
30 }
31 string[] item = text2.Split('=');
32 return (action: text, spec: text2, kv: item);
33 }
34}
virtual string SourceType
static string string string[] kv GetParams(string tag)
static string string spec