Elin Decompiled Documentation EA 23.102 Nightly
All Classes Namespaces Files Functions Variables Enumerations Enumerator Properties Events Pages
CoreDebug.MatColorTest Class Reference

Public Member Functions

void Update ()
 

Public Attributes

bool enable
 
Color color
 
int matColor
 
ColorProfile profile
 

Detailed Description

Definition at line 61 of file CoreDebug.cs.

Member Function Documentation

◆ Update()

void CoreDebug.MatColorTest.Update ( )
inline

Definition at line 71 of file CoreDebug.cs.

72 {
73 foreach (SourceMaterial.Row row in EClass.sources.materials.rows)
74 {
75 if (row != MATERIAL.sourceWaterSea)
76 {
77 MatColors matColors = profile.matColors.TryGetValue(row.alias);
78 row.matColor = matColors.main;
79 row.altColor = matColors.alt;
80 }
81 }
82 }
UD_String_MatData matColors
ColorProfile profile
Definition: CoreDebug.cs:69
Definition: EClass.cs:5
static SourceManager sources
Definition: EClass.cs:42
static SourceMaterial.Row sourceWaterSea
Definition: MATERIAL.cs:41
Color main
Definition: MatColors.cs:7
Color alt
Definition: MatColors.cs:9
SourceMaterial materials
bool TryGetValue(TKey key, out TValue value)
Definition: UDictionary.cs:178

References MatColors.alt, MatColors.main, ColorProfile.matColors, SourceManager.materials, CoreDebug.MatColorTest.profile, EClass.sources, MATERIAL.sourceWaterSea, and UDictionary< TKey, TValue >.TryGetValue().

Member Data Documentation

◆ color

Color CoreDebug.MatColorTest.color

Definition at line 65 of file CoreDebug.cs.

◆ enable

bool CoreDebug.MatColorTest.enable

Definition at line 63 of file CoreDebug.cs.

◆ matColor

int CoreDebug.MatColorTest.matColor

Definition at line 67 of file CoreDebug.cs.

◆ profile

ColorProfile CoreDebug.MatColorTest.profile

Definition at line 69 of file CoreDebug.cs.

Referenced by CoreDebug.MatColorTest.Update().


The documentation for this class was generated from the following file: