NScumm.Dump.ScriptParser8.CameraOps C# (CSharp) Method

CameraOps() private method

private CameraOps ( ) : Statement
return Statement
        Statement CameraOps()
        {
            var subOp = ReadByte();

            switch (subOp)
            {
                case 0x32:      // SO_CAMERA_PAUSE
                    return new MethodInvocation("CameraPause").ToStatement();
                case 0x33:      // SO_CAMERA_RESUME
                    return new MethodInvocation("CameraResume").ToStatement();
                default:
                    throw new InvalidOperationException(string.Format("CameraOps8: default case 0x{0:X}", subOp));
            }
        }