ChangeFubenMap() public method

public ChangeFubenMap ( GameMap map, short x, short y ) : void
map GameMap
x short
y short
return void
Exemplo n.º 1
0
        public bool Action_Fuben_Create(ActionInfo info, PlayerObject play)
        {
            String[] option = info.param.Split(' ');
            uint mapid = Convert.ToUInt32(option[0]);
            byte type = Convert.ToByte(option[1]);
            short x = Convert.ToInt16(option[2]);
            short y = Convert.ToInt16(option[3]);
            GameMap fb_map =  MapManager.Instance().AddFubenMap(mapid);
            if (fb_map == null)
            {
                return false;
            }
            if(type == 1)//单人副本
            {
                play.ChangeFubenMap(fb_map, x, y);
            }
            else if (type == 2)//组队副本
            {

            }
            return true;
        }