예제 #1
0
        bool DoMaze(Player p, Vec3S32[] marks, object state, byte type, byte extType)
        {
            MazeDrawOp op = new MazeDrawOp();

            op.randomizer = (int)state;
            return(DrawOp.DoDrawOp(op, null, p, marks));
        }
예제 #2
0
        protected override DrawOp GetDrawOp(DrawArgs dArgs)
        {
            MazeDrawOp op = new MazeDrawOp();

            op.rng = MapGen.MakeRng(dArgs.Message);
            return(op);
        }
예제 #3
0
        void Blockchange2(Player p, ushort x, ushort y, ushort z, byte type, byte extType)
        {
            RevertAndClearState(p, x, y, z);
            CatchPos   cpos   = (CatchPos)p.blockchangeObject;
            MazeDrawOp drawOp = new MazeDrawOp();

            drawOp.randomizer = cpos.randomizer;

            if (!DrawOp.DoDrawOp(drawOp, null, p, cpos.x, cpos.y, cpos.z, x, y, z))
            {
                return;
            }
            if (p.staticCommands)
            {
                p.Blockchange += new Player.BlockchangeEventHandler(Blockchange1);
            }
        }
예제 #4
0
        protected override DrawOp GetDrawOp(DrawArgs dArgs)
        {
            if (dArgs.Message.Length == 0)
            {
                return(new MazeDrawOp());
            }
            int randomizer = 0;

            if (!CommandParser.GetInt(dArgs.Player, dArgs.Message, "Randomizer", ref randomizer))
            {
                return(null);
            }

            MazeDrawOp op = new MazeDrawOp();

            op.randomizer = randomizer;
            return(op);
        }