Пример #1
0
        protected int nid;//特征id,比如卡的id,npc的id等等

        public PictureRegion(int id, int x, int y, int width, int height, PictureRegionCellType type, int nid)
            : base(id, x, y, width, height)
        {
            this.nid  = nid;
            this.type = type;
            Scale     = 1;
        }
Пример #2
0
        public void SetRegionType(int id, PictureRegionCellType value)
        {
            SubVirtualRegion region;

            if (subRegions.TryGetValue(id, out region))
            {
                (region as PictureRegion).SetType(value);
            }
        }
Пример #3
0
 public PictureAnimRegion(int id, int x, int y, int width, int height, PictureRegionCellType type, int nid)
     : base(id, x, y, width, height, type, nid)
 {
 }
Пример #4
0
 public void SetType(PictureRegionCellType value)
 {
     type = value;
 }