Survivalcraft API 1.8.2.3 v1.8.2.3
Survivalcraft 2.4
载入中...
搜索中...
未找到
SubtextureReader.cs
浏览该文件的文档.
1using Engine;
3
4namespace Game.IContentReader {
6 public override string[] DefaultSuffix => ["astc", "astcsrgb", "webp", "txt", "png"];
7 public override string Type => "Game.Subtexture";
8
9 public override object Get(ContentInfo[] contents) {
10 if (contents[0].ContentPath.Contains("Textures/Atlas/")) {
11 return TextureAtlasManager.GetSubtexture(contents[0].ContentPath);
12 }
14 }
15 }
16}
static object Get(Type type, string name)
override object Get(ContentInfo[] contents)
static Subtexture GetSubtexture(string name, bool throwOnNotFound)
static readonly Vector2 Zero
static readonly Vector2 One