Elin Decompiled Documentation
EA 23.312 Nightly Patch 4
Loading...
Searching...
No Matches
CustomSourceContent.cs
Go to the documentation of this file.
1
using
System;
2
using
Newtonsoft.Json;
3
4
public
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
}
ContainerFlag.item
@ item
EditorTag.Empty
@ Empty
CustomContent
Definition:
CustomContent.cs:4
CustomSourceContent
Definition:
CustomSourceContent.cs:5
CustomSourceContent.SourceType
virtual string SourceType
Definition:
CustomSourceContent.cs:7
CustomSourceContent.SourceId
string SourceId
Definition:
CustomSourceContent.cs:10
CustomSourceContent.GetParams
static string string string[] kv GetParams(string tag)
Definition:
CustomSourceContent.cs:12
CustomSourceContent.spec
static string string spec
Definition:
CustomSourceContent.cs:12
CustomSourceContent.action
static string action
Definition:
CustomSourceContent.cs:12
Elin
CustomSourceContent.cs
Generated by
1.9.6