Exemplo n.º 1
0
        public GfxObjInstance(uint gfxObjID)
        {
            GfxObj = GfxObjCache.Get(gfxObjID);

            Position = Vector3.Zero;
            Rotation = Quaternion.Identity;
            Scale    = Vector3.One;
        }
Exemplo n.º 2
0
        public Polygon(GfxObj gfxObj, ACE.DatLoader.Entity.Polygon polygon)
        {
            GfxObj   = gfxObj;
            _polygon = polygon;

            BuildIndices();

            Texture = gfxObj.Textures[polygon.PosSurface];
        }
Exemplo n.º 3
0
 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);
 }