public void UpdateItem(int posx, int posy, int posn, int id) { EditList list = listDic[GridModel.Instance.brushType]; EditItem item = list.GetItemByPos(posx, posy, posn); if (GridModel.Instance.brushType == FightLayerType.cell) { config_cell_item config_cell = (config_cell_item)GridMain.resourceMgr.config_cell.GetItem(id); item.icon = config_cell.icon; item.zrotate = config_cell.rotate * FightConst.ROTATE_BASE; } else if (GridModel.Instance.brushType == FightLayerType.monster) { config_monster_item config_monster = (config_monster_item)GridMain.resourceMgr.config_monster.GetItem(id); item.icon = config_monster.icon; item.zrotate = config_monster.rotate * FightConst.ROTATE_BASE; } else if (GridModel.Instance.brushType == FightLayerType.cover) { config_cover_item config_cover = (config_cover_item)GridMain.resourceMgr.config_cover.GetItem(id); item.icon = config_cover.icon; } else { item.icon = id; } }