Ejemplo n.º 1
0
 public ObjectComponent(GameObject obj)
 {
     this.Obj   = obj;
     renderInfo = new WorldObjectRenderInfo();
     if (obj.OBJ.BaseGraphicID > 0)
     {
         var gid = obj.OBJ.BaseGraphicID;
         this.DrawGroup = obj.Resource.Get <DGRP>(gid);
     }
     dgrp = new DGRPRenderer(this.DrawGroup);
     dgrp.DynamicSpriteBaseID = obj.OBJ.DynamicSpriteBaseId;
     dgrp.NumDynamicSprites   = obj.OBJ.NumDynamicSprites;
 }
Ejemplo n.º 2
0
 public ObjectComponent(GameObject obj)
 {
     this.Obj = obj;
     if (obj.OBJ.BaseGraphicID > 0)
     {
         var gid = obj.OBJ.BaseGraphicID;
         //if (obj.OBJ.GUID == 0x98E0F8BD)
         //{
         //    var dgroups = obj.Resource.List<DGRP>();
         //    gid += 10;
         //    gid = 125;
         //}
         this.DrawGroup           = obj.Resource.Get <DGRP>(gid);
         dgrp                     = new DGRPRenderer(this.DrawGroup);
         dgrp.DynamicSpriteBaseID = obj.OBJ.DynamicSpriteBaseId;
         dgrp.NumDynamicSprites   = obj.OBJ.NumDynamicSprites;
     }
 }