public GfxObjInstance(uint gfxObjID) { GfxObj = GfxObjCache.Get(gfxObjID); Position = Vector3.Zero; Rotation = Quaternion.Identity; Scale = Vector3.One; }
public Polygon(GfxObj gfxObj, ACE.DatLoader.Entity.Polygon polygon) { GfxObj = gfxObj; _polygon = polygon; BuildIndices(); Texture = gfxObj.Textures[polygon.PosSurface]; }
public static GfxObj Get(uint gfxObjID) { if (!Cache.TryGetValue(gfxObjID, out var gfxObj)) { //Console.WriteLine($"- Loading {gfxObjID:X8}"); gfxObj = new GfxObj(gfxObjID); Cache.Add(gfxObjID, gfxObj); } return(gfxObj); }