terraria-cpp2il-methodrecon
v1.4.4.9
Terraria mobile dump, with reconstructed method body. Dump with CallAnalysis: https://infinitynichto.github.io/terraria-cpp2il
Loading...
Searching...
No Matches
◆
UnityTexture
Texture2D
Microsoft.Xna.Framework.Graphics.Texture2D.UnityTexture
get
Definition at line
194
of file
Texture2D.cs
.
195
{
196
get
197
{
198
if
(this.
_textureLoaded
)
199
{
200
return
this.
_unityTexture
;
201
}
202
TextureAtlasDB
textureAtlas
= this.
_textureAtlas
;
203
if
(textureAtlas !=
null
)
204
{
205
int
atlasIndex
= this.
PackedEntry
.
AtlasIndex
;
206
textureAtlas.
LoadTexturesAsync
(
atlasIndex
);
207
}
208
string
sourceLoadAsset
= this.
_sourceLoadAsset
;
209
bool
flag =
string
.IsNullOrEmpty(
sourceLoadAsset
);
210
this.
LoadSourceTexture
();
211
TextureAtlasEntry
packedEntry
= this.
PackedEntry
;
212
Texture2D
texture2D
;
213
this._unityTexture
=
texture2D
;
214
TextureAtlasDB
textureAtlas2
= this.
_textureAtlas
;
215
int
atlasIndex2
= packedEntry.
AtlasIndex
;
216
Texture2D
texture2D2
=
textureAtlas2
.AltlasAlphaTexture(
atlasIndex2
);
217
TextureAtlasEntry
packedEntry2
= this.
PackedEntry
;
218
this._unityAlphaTexture
=
texture2D2
;
219
TextureAtlasDB
textureAtlas3
= this.
_textureAtlas
;
220
int
atlasIndex3
= packedEntry2.
AtlasIndex
;
221
Texture2D
texture2D3
=
textureAtlas3
.AltlasPalTexture(
atlasIndex3
);
222
Texture2D
unityTexture
= this.
_unityTexture
;
223
this._unityPalTexture
=
texture2D3
;
224
this._textureLoaded
=
true
;
225
Texture2D
unityTexture2
= this.
_unityTexture
;
226
this.UnityWidth
=
unityTexture
;
227
this.UnityHeight
=
unityTexture2
;
228
return
unityTexture2
;
229
}
230
}
j__TPar
class f__AnonymousType0<< Count > j__TPar
Definition
--f__AnonymousType0.cs:8
Microsoft.Xna.Framework.Graphics.Texture2D._textureAtlas
TextureAtlasDB _textureAtlas
Definition
Texture2D.cs:494
Microsoft.Xna.Framework.Graphics.Texture2D._textureLoaded
bool _textureLoaded
Definition
Texture2D.cs:479
Microsoft.Xna.Framework.Graphics.Texture2D._unityTexture
Texture2D _unityTexture
Definition
Texture2D.cs:485
Microsoft.Xna.Framework.Graphics.Texture2D.PackedEntry
TextureAtlasEntry PackedEntry
Definition
Texture2D.cs:470
Microsoft.Xna.Framework.Graphics.Texture2D.LoadSourceTexture
void LoadSourceTexture()
Definition
Texture2D.cs:93
Microsoft.Xna.Framework.Graphics.Texture2D._sourceLoadAsset
string _sourceLoadAsset
Definition
Texture2D.cs:506
TextureAtlasDB.LoadTexturesAsync
void LoadTexturesAsync(int index)
Definition
TextureAtlasDB.cs:198
TextureAtlasDB
Definition
TextureAtlasDB.cs:11
TextureAtlasEntry.AtlasIndex
int AtlasIndex
Definition
TextureAtlasEntry.cs:68
TextureAtlasEntry
Definition
TextureAtlasEntry.cs:8
UnityEngine.Texture2D
Definition
Texture2D.cs:16
Microsoft
Xna
Framework
Graphics
Texture2D
Generated by
1.10.0