-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathCWRAsset.cs
43 lines (42 loc) · 1.97 KB
/
CWRAsset.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
using Microsoft.Xna.Framework.Graphics;
using ReLogic.Content;
using Terraria.GameContent;
using Terraria.ID;
namespace CalamityOverhaul
{
internal class CWRAsset : ICWRLoader
{
public static Asset<Texture2D> icon_small;
public static Asset<Texture2D> IceParcloseAsset;
public static Asset<Texture2D> Quiver_back_Asset;
public static Asset<Texture2D> IceGod_back_Asset;
public static Asset<Texture2D> Placeholder_Transparent;
public static Asset<Texture2D> Placeholder_White;
public static Asset<Texture2D> Placeholder_ERROR;
public static Asset<Texture2D> SemiCircularSmear;
public static Asset<Texture2D> UI_JAR;
void ICWRLoader.LoadAsset() {
icon_small = CWRUtils.GetT2DAsset("CalamityOverhaul/icon_small");
IceParcloseAsset = CWRUtils.GetT2DAsset(CWRConstant.Projectile + "IceParclose");
Quiver_back_Asset = CWRUtils.GetT2DAsset(CWRConstant.Asset + "Players/Quiver_back");
IceGod_back_Asset = CWRUtils.GetT2DAsset(CWRConstant.Asset + "Players/IceGod_back");
Placeholder_Transparent = CWRUtils.GetT2DAsset(CWRConstant.Placeholder);
Placeholder_White = CWRUtils.GetT2DAsset(CWRConstant.Placeholder2);
Placeholder_ERROR = CWRUtils.GetT2DAsset(CWRConstant.Placeholder3);
SemiCircularSmear = CWRUtils.GetT2DAsset("CalamityMod/Particles/SemiCircularSmear");
UI_JAR = CWRUtils.GetT2DAsset(CWRConstant.UI + "JAR");
TextureAssets.Item[ItemID.IceSickle] = CWRUtils.GetT2DAsset(CWRConstant.Item_Melee + "IceSickle");
}
void ICWRLoader.UnLoadData() {
icon_small = null;
IceParcloseAsset = null;
Quiver_back_Asset = null;
IceGod_back_Asset = null;
Placeholder_Transparent = null;
Placeholder_White = null;
Placeholder_ERROR = null;
SemiCircularSmear = null;
UI_JAR = null;
}
}
}